Click here to Skip to main content
15,889,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Postback twice for a button click? Pin
munklefish2-Oct-06 2:36
munklefish2-Oct-06 2:36 
GeneralRe: Postback twice for a button click? Pin
pedestrian7972-Oct-06 3:34
pedestrian7972-Oct-06 3:34 
AnswerRe: Postback twice for a button click? Pin
Paddy Boyd2-Oct-06 2:43
Paddy Boyd2-Oct-06 2:43 
GeneralRe: Postback twice for a button click? Pin
pedestrian7972-Oct-06 3:39
pedestrian7972-Oct-06 3:39 
Questiondesign layout a form Pin
ptvce1-Oct-06 21:12
ptvce1-Oct-06 21:12 
QuestionJavaScript / AJAX Pin
Amit Kumar G1-Oct-06 12:56
Amit Kumar G1-Oct-06 12:56 
AnswerRe: JavaScript / AJAX Pin
Guffa1-Oct-06 13:19
Guffa1-Oct-06 13:19 
QuestionComposite User Controls or Templates Pin
Leightym1-Oct-06 6:56
Leightym1-Oct-06 6:56 
Hi Folks -
Here is what I want to do. I'm hoping someone out there knows what the best way to achieve my desired results is.

TOOLS
Development platform is of course Visual Studio 2005 on XP Pro (sometimes Vista RC1) with dot net 2.0.

MY PROBLEM
I have created many user controls that are essentially report summary panels that display various types of info and or controls in a table - the actual functions are not important. Each user control has many common UI elements - they are all in a table, they all have a title header, they all have a link in the header to show or hide the results and a link to a form to create or edit a record. They all have properties and methods that set the title, respond to the links etc. Since they are all so similar it seems obvious that a more OOP approach is warranted but I'm at a loss as to how best to proceed.

DESIRED SOLUTION DIRECTION
With the concept of the master site page and replaceable content pages in mind is there a way to build a master user control that captures the common elements and then develop user controls for the specific content that inherit the common elements from the master control? As I evolve the common elements I want all the user controls to inherit the UI elements from the base control as well as the common properties and methods in the base code behind file. The master page concept is such an elegant solution at the page (.aspx) level it only seems logical there should be a similar solution at the user control (.ascx) level.

I've spent the last 2 days reading various MSDN articles and USENET listings and none of the approaches I've read so far seem to address my requirements. The closest seems to indicate that I need to create a class that will write the common HTML out to a placeholder on my control but that bypasses the desired goal of using the visual designer.

I hope one of you gurus out there has a really slick and simple solution to my problem.
Thanks in advance,
Michael

Questionajax and img Pin
cmarmr1-Oct-06 6:49
cmarmr1-Oct-06 6:49 
AnswerRe: ajax and img Pin
Guffa1-Oct-06 8:11
Guffa1-Oct-06 8:11 
AnswerRe: ajax and img Pin
morteza572-Oct-06 12:25
morteza572-Oct-06 12:25 
QuestionPasswords Pin
TheEagle1-Oct-06 5:51
TheEagle1-Oct-06 5:51 
AnswerRe: Passwords Pin
sanju02761-Oct-06 6:40
sanju02761-Oct-06 6:40 
GeneralRe: Passwords Pin
TheEagle1-Oct-06 17:39
TheEagle1-Oct-06 17:39 
Questionhow to take web form textbox in array Pin
omi981-Oct-06 4:35
omi981-Oct-06 4:35 
AnswerRe: how to take web form textbox in array Pin
CWIZO1-Oct-06 5:05
CWIZO1-Oct-06 5:05 
Questionrandomizing order or ListBox or Hashtable items - how? Pin
Alice@mywonderland1-Oct-06 3:34
Alice@mywonderland1-Oct-06 3:34 
AnswerRe: randomizing order or ListBox or Hashtable items - how? Pin
Guffa1-Oct-06 14:52
Guffa1-Oct-06 14:52 
QuestionInsert menu created by sothink dhtml menu in asp.net page Pin
aligatojohn1-Oct-06 1:53
aligatojohn1-Oct-06 1:53 
QuestionCallback & Masterpage Pin
sbao0041-Oct-06 1:07
sbao0041-Oct-06 1:07 
AnswerRe: Callback & Masterpage Pin
minhpc_bk1-Oct-06 15:53
minhpc_bk1-Oct-06 15:53 
GeneralRe: Callback & Masterpage Pin
sbao0042-Oct-06 0:52
sbao0042-Oct-06 0:52 
GeneralRe: Callback & Masterpage Pin
minhpc_bk2-Oct-06 1:21
minhpc_bk2-Oct-06 1:21 
QuestionDifference between manual rendering and rendering by aspx Pin
thebread1-Oct-06 0:48
thebread1-Oct-06 0:48 
AnswerRe: Difference between manual rendering and rendering by aspx Pin
thebread1-Oct-06 21:35
thebread1-Oct-06 21:35 

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.