Click here to Skip to main content
12,751,306 members (33,393 online)
Click here to Skip to main content
Add your own
alternative version


19 bookmarked
Posted 12 Jun 2005

Development of Dynamically linked comboboxes set for ASP.NET

, 13 Jun 2005
Rate this:
Please Sign up or sign in to vote.
Development of dynamically linked comboboxes set for ASP.NET.


In my article "Dynamically linked comboboxes set for ASP.NET", I have represented an ASP.NET custom control realized by a FrameSet with one hidden aspx file. This hidden file pumps data from database and carries out data to acting page.

At present, browsers mostly support IFRAME, so we can realize data exchange between pages by this tag  and refuse data from FrameSet. In this case you don’t need to keep HTML file for FrameSet, in which hidden frame was located. We can link hidden aspx file by src attribute of IFRAME or write code directly in IFRAME tag.

I have carried out the binding code by aspx file and register this script in OnPreRender method of the custom control class (see CLocate.cs).

string siframe ="<iframe name=\"hidefrm\" " + 
         "style=\"DISPLAY:none\" src=\"CusControl/HiddenFrm.aspx\">" + 

Page.RegisterStartupScript("scriptiframe", siframe);

Surely I have made appropriate changes in the client scripts. Now you need not care to link your active page with the FrameSet HTML file. The pPrevious version of the class LocControls has been renamed to CLocate.

Further details can be received from my previous article Dynamically linked comboboxes set for ASP.NET.

To further develop this control you can change LocControl.cs and/or HiddenFrm.aspx.cs and compile once by this command line:

  • csc /t:library /out:CusControl.dll CLocate.cs HiddenFrm.aspx.cs.

Client side code is stored in Cuscontrol/usscript.js.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Armenia Armenia
I am a programmer for database applications and data aware web sites.

You may also be interested in...

Comments and Discussions

GeneralDelete all "void" keywords from JavaScript function definitions Pin
karench9-May-07 22:30
memberkarench9-May-07 22:30 
GeneralAJAX might be an option Pin
j_a_n13-Jun-05 4:10
memberj_a_n13-Jun-05 4:10 
GeneralRe: AJAX might be an option Pin
karench14-Jun-05 3:27
memberkarench14-Jun-05 3:27 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170215.1 | Last Updated 13 Jun 2005
Article Copyright 2005 by karench
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid