Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / December 2004

Tip: Looking for answers? Try searching our database.

Postback - .net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Uhway - 28 Dec 2004 04:05 GMT
1.  When a user enter's a value in a text field on a web form, I want to
display everything in capital.  How canI do so?

2.  I have a form with two command buttons (Submit).  The first one is to
search and retrieve data in to one of the drop downs on a form.  The second
one is for Adding a new record to database.    But the problem is when I
click on the first button, it validates the text fields under the second
button group.  What can I do it limit validation to only certain fields on a
postback/submit.?

Thanks in Advance
BVR
Scott M. - 28 Dec 2004 05:26 GMT
If you want this to happen immediately, you need to write a client-side
onKeyPress event for the textbox element in question.  You would use the
String object's toUpper() method.  If you want to do this in .NET, you need
to wait until the user submits the data and in the page's postback event
handler use:  Textbox.Text = Textbox.Text.ToUpper().

Instead of using RequiredFieldValidator controls for the Add Record fields,
use CustomValidator controls.  In the Click event handler for the Add Record
button, set a Boolean flag to True.  In your custom validator code, do your
validation for non-null values only if the Boolean flag is True.

> 1.  When a user enter's a value in a text field on a web form, I want to
> display everything in capital.  How canI do so?
[quoted text clipped - 10 lines]
> Thanks in Advance
> BVR

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.