Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Web Pages 1

Status
Not open for further replies.

Kizmet178

Programmer
Jul 22, 2009
3
GB
Hi

I'm currently creating a basic helpdesk website, within this website there is an incidence.aspx page which is a list of incidents in a gridview, when the user clicks the related incident it returns the resolution id. This is where I get stuck each resolution is different but I want to create only one resolution.aspx page which dynamically loads the relavent controls (textbox, button etc) for the specific resolution.

Could anyone assist on the best way of handling this.

Many Thanks
 
why not create a page for each resolution type. if the resolutions are that different then they should be segregated into separate work flows. unique webforms for each resolution makes sense.

if you want to stick with one page with dynamic controls then I would create a user control for each dynamic part. then add the user controls dynamically to the webform depending the resolution. note: dynamic controls must be added in the Init event, not the Load event. something to do with page life cycle.

this is basically doing the same thing as 1 webpage per resolution but breaking down the parts by user control rather than webpage.

you could also use a MultiView to define the different resolutions. 1 view per resolution.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top