Click here to Skip to main content
Click here to Skip to main content

Development of Dynamically linked comboboxes set for ASP.NET

By , 13 Jun 2005
 

Introduction

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\">" + 
         "</iframe>";

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.

License

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

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

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralDelete all "void" keywords from JavaScript function definitionsmemberkarench9 May '07 - 21:30 
GeneralAJAX might be an optionmemberj_a_n13 Jun '05 - 3:10 
GeneralRe: AJAX might be an optionmemberkarench14 Jun '05 - 2:27 

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

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