Click here to Skip to main content
15,892,005 members
Home / Discussions / Web Development
   

Web Development

 
AnswerThis address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection : Firefox Port Problem Pin
Nilesh Thakkar9-Jul-09 0:57
Nilesh Thakkar9-Jul-09 0:57 
QuestionCan not connect to sql server database from web application(Configured in IIS) Pin
Hemant Thaker8-Jul-09 22:13
Hemant Thaker8-Jul-09 22:13 
AnswerRe: Can not connect to sql server database from web application(Configured in IIS) Pin
K03069-Jul-09 0:35
K03069-Jul-09 0:35 
Questioncombobox with postback Pin
shabonaa8-Jul-09 11:38
shabonaa8-Jul-09 11:38 
AnswerRe: combobox with postback Pin
Adam Maras8-Jul-09 12:22
Adam Maras8-Jul-09 12:22 
GeneralRe: combobox with postback Pin
shabonaa8-Jul-09 22:23
shabonaa8-Jul-09 22:23 
GeneralRe: combobox with postback Pin
Christian Graus9-Jul-09 4:03
protectorChristian Graus9-Jul-09 4:03 
AnswerRe: combobox with postback Pin
Jeremy Likness9-Jul-09 7:29
professionalJeremy Likness9-Jul-09 7:29 
Are you looking to load the data dynamically, or is it small enough that you can emit it to the browser?

UpdatePanels are fine if you know how to use them correctly. Slamming one over the entire page isn't always good. You should have it surround the dependent ComboBox and then trigger it based on the source combo box, so only the view state and code for the combo is round tripped.

There are two other methods that will work.

The first is to emit the list to the client and parse it - take a look at my blog post:

http://csharperimage.jeremylikness.com/2009/03/json-and-c-using-generics-and-delegates.html[^]

Basically, I serialize my objects using JSON and reconstruct them on the client, then when one combo box changes, I parse the appropriate sublist and dynamically the options for the second control. This is fast because there is no round trip to the server.

Finally, use a tool like Fiddler to examine your post going back and forth. 15 seconds is a long time so somewhere you have latency - whether its processing, network, database access, etc depends on many factors. If you wrapped the whole page in the update panel with viewstate turned on you could have a huge messae and you just need to wrap a smaller portion, which the AJAX extender will address.

You might event want to look at implementing ICallbackEventhandler and wiring up the call yourself to trim down the size of the payload. Essentially you bind to the onchange for the dropdown, then use WebForm_DoCallback to call back, parse out the new values, etc.

Jeremy Likness
http://csharperimage.jeremylikness.com/

GeneralRe: combobox with postback Pin
shabonaa9-Jul-09 8:38
shabonaa9-Jul-09 8:38 
QuestionHow to embed fonts in my website? Pin
CoderForEver8-Jul-09 5:18
CoderForEver8-Jul-09 5:18 
AnswerRe: How to embed fonts in my website? Pin
Marc Firth9-Jul-09 22:20
Marc Firth9-Jul-09 22:20 
GeneralRe: How to embed fonts in my website? Pin
CoderForEver10-Jul-09 8:07
CoderForEver10-Jul-09 8:07 
GeneralRe: How to embed fonts in my website? Pin
Marc Firth12-Jul-09 21:56
Marc Firth12-Jul-09 21:56 
GeneralRe: How to embed fonts in my website? Pin
Vinny Troia30-Sep-09 9:24
Vinny Troia30-Sep-09 9:24 
QuestionSite loads slowly in IE6 only, how to fix? Pin
cdietschrun8-Jul-09 3:45
cdietschrun8-Jul-09 3:45 
AnswerRe: Site loads slowly in IE6 only, how to fix? Pin
DoctorMick8-Jul-09 4:16
DoctorMick8-Jul-09 4:16 
GeneralRe: Site loads slowly in IE6 only, how to fix? Pin
cdietschrun8-Jul-09 4:22
cdietschrun8-Jul-09 4:22 
GeneralRe: Site loads slowly in IE6 only, how to fix? Pin
joycejohnson8-Jul-09 17:59
joycejohnson8-Jul-09 17:59 
GeneralRe: Site loads slowly in IE6 only, how to fix? Pin
cdietschrun8-Jul-09 18:02
cdietschrun8-Jul-09 18:02 
AnswerRe: Site loads slowly in IE6 only, how to fix? Pin
joanportman9-Jul-09 2:48
joanportman9-Jul-09 2:48 
GeneralRe: Site loads slowly in IE6 only, how to fix? Pin
cdietschrun9-Jul-09 4:52
cdietschrun9-Jul-09 4:52 
GeneralRe: Site loads slowly in IE6 only, how to fix? Pin
joanportman9-Jul-09 10:11
joanportman9-Jul-09 10:11 
QuestionNeed to capture raw HTML of any page displayed on browser and write to file. Pin
Antone Eason8-Jul-09 3:13
professionalAntone Eason8-Jul-09 3:13 
AnswerRe: Need to capture raw HTML of any page displayed on browser and write to file. Pin
David Mujica8-Jul-09 3:24
David Mujica8-Jul-09 3:24 
GeneralRe: Need to capture raw HTML of any page displayed on browser and write to file. Pin
Antone Eason8-Jul-09 3:32
professionalAntone Eason8-Jul-09 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.