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

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.

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
I am a programmer for database applications and data aware web sites.

Comments and Discussions

 
GeneralDelete all "void" keywords from JavaScript function definitions Pinmemberkarench9-May-07 21:30 
GeneralAJAX might be an option Pinmemberj_a_n13-Jun-05 3:10 
GeneralRe: AJAX might be an option Pinmemberkarench14-Jun-05 2:27 

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

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

| Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 13 Jun 2005
Article Copyright 2005 by karench
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid