Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 11-27-2007, 01:27 PM   #1
Default Values set by javascript are not reflected in serverside(.Net)


Hi all

I am a new user & learner of .NET and this is my first question.
I am entering the values into a listbox using java script logic.
But when post back occurs because of another button control(not save button) , all the values entered by javascript into listbox disappears. But I have to save those values into database using save button.

java script is working fine.But because of postback those values are disappearing. Please suggest me a solution


rchimakurty
rchimakurty is offline   Reply With Quote
Old 11-28-2007, 07:39 AM   #2
urstop
Junior Member
 
Join Date: Oct 2007
Location: London
Posts: 20
Default
you will have to reload the data again when the page is loaded. Post all the avlues to the server and get them back on to your page and using javascript reload them again into the list box.

Regards,
UrStop


urstop
urstop is offline   Reply With Quote
Old 11-28-2007, 10:07 AM   #3
rchimakurty
Junior Member
 
Join Date: Nov 2007
Posts: 2
Default Then for gridview
it works for list box.And I did the same earlier.

But same problem is occuring with gridview also.

For gridview what to do?


rchimakurty
rchimakurty is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco QOS MIB values required manjunatht Hardware 1 06-13-2008 02:34 PM
Checkbox values problem in gridview thanigaimani.thirumalai Software 0 11-09-2007 05:12 AM
Cisco QOS MIB values required manjunatht Software 0 09-11-2007 05:40 PM
How to make the form View save it's field values in Visual Stdio .NET asammoud Software 0 07-17-2007 10:57 AM
How i can populate all fileds dynamically in jsp using javascript? vijendra Software 1 10-06-2006 01:33 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46