Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > javascript problem asp.net

Reply
Thread Tools

javascript problem asp.net

 
 
pl
Guest
Posts: n/a
 
      10-17-2003
1) build drop down list on server
2) manipulating lists on the client using javascript
3) when postback to server, lost the values that were
manipulated on the client.
4) how we defined to client js
cboInternalOrigin.Attributes.Add
("OnBlur", "CheckRequiredField()")
4) why ? is there another way to define?
 
Reply With Quote
 
 
 
 
Jalil Vaidya
Guest
Posts: n/a
 
      10-18-2003
If you are adding attributes to the dropdown control using client side
scripting, they will be lost on server side because they are not part of
post data. Either add the data to the value attribute and make sure the
item is selected when submitting the form or add the data to the value
of a hidden element which you can access from the server side on postback.

Jalil Vaidya

pl wrote:

> 1) build drop down list on server
> 2) manipulating lists on the client using javascript
> 3) when postback to server, lost the values that were
> manipulated on the client.
> 4) how we defined to client js
> cboInternalOrigin.Attributes.Add
> ("OnBlur", "CheckRequiredField()")
> 4) why ? is there another way to define?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generated JavaScript vs. Manually Created JavaScript: Which one comes first? Nathan Sokalski ASP .Net 4 11-08-2007 07:24 AM
JavaScript or not JavaScript Mark Rae ASP .Net 36 09-09-2006 01:12 PM
href="javascript:func()" vs href="#" onclick="javascript:func()" CRON HTML 24 06-20-2006 08:05 PM
Javascript -> Applet: variable reset after method call from javascript?! mcdeveloper Java 1 06-13-2006 08:34 AM
tricky javascript problem requires javascript guru ! Andy Javascript 2 03-04-2004 08:19 PM



Advertisments