Click here to Skip to main content
15,885,546 members
Articles / Web Development / ASP.NET
Article

Development of Dynamically linked comboboxes set for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.43/5 (3 votes)
13 Jun 20051 min read 43.1K   1.4K   19   3
Development of dynamically linked comboboxes set for ASP.NET.

Image 1

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).

C#
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


Written By
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 Pin
karench9-May-07 21:30
karench9-May-07 21:30 
GeneralAJAX might be an option Pin
j_a_n13-Jun-05 3:10
j_a_n13-Jun-05 3:10 
GeneralRe: AJAX might be an option Pin
karench14-Jun-05 2:27
karench14-Jun-05 2: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.