Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Figure I might as well get this next question out of the way before I get burden by it.

 

I've seen on some sites where if you select something from a dropdownlist, new options display below it FAST. How can this be done?

 

ex.

(before)

Dropdown(select job) <-- you select something from here

 

 

(after)

Dropdown (education)

label (give job desc) <- shows after job selected

text box (blah blah blah blah) <- shows after job selected

 

 

I'm doing a postback to do this, and it seems to take forever to show the updated page. (20+secs) rather than one website (match.com) that takes like 1sec. Any suggestions?

 

Also does a database slow this down too?

Posted

This is the different between Client site process & Server site process.

 

The ASP.NET will do everything in Server site, so definitely you need to "PostBack" for every process.

 

For client site process like the example from you above, you can use Javascript + CSS to do it. The concept is from the first time Page_Load, put everything include the data from database to client site (you can use hidden textbox or javascript variables to keep your records), then use javascript to process from user action.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...