Click here to Skip to main content
15,915,864 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Naming on web publishing Pin
Tad McClellan3-Oct-06 11:26
professionalTad McClellan3-Oct-06 11:26 
QuestionFormat String for Decimal {0:D2} Pin
OldDog.Net3-Oct-06 9:25
OldDog.Net3-Oct-06 9:25 
AnswerRe: Format String for Decimal {0:D2} Pin
Jon Sagara3-Oct-06 9:50
Jon Sagara3-Oct-06 9:50 
GeneralRe: Format String for Decimal {0:D2} Pin
OldDog.Net4-Oct-06 2:52
OldDog.Net4-Oct-06 2:52 
AnswerRe: Format String for Decimal {0:D2} Pin
Guffa3-Oct-06 9:51
Guffa3-Oct-06 9:51 
GeneralRe: Format String for Decimal {0:D2} Pin
OldDog.Net4-Oct-06 2:56
OldDog.Net4-Oct-06 2:56 
AnswerRe: Format String for Decimal {0:D2} Pin
Guffa4-Oct-06 6:07
Guffa4-Oct-06 6:07 
QuestionProblem with ButtonEvents on dynamic UserContols Pin
Ibana3-Oct-06 7:44
Ibana3-Oct-06 7:44 
Hello There!

I have a usercontrol named A that displays data from a database. I create a dynamic number of usercontrols depending on the number of hits from the database given a certain critera. If I receive 4 datasets from the database I create 4 usercontrols and so on…

These Usercontrols contains repeater objects displaying the data aswell as a button that interact with the data. Im now experiencing some major problems to get these buttons to fire once pressed.

I do believe I have done it the right way.

Usercontrol A

1. Initialize
2. declare Click method
<br />
private void InitializeComponent()<br />
{<br />
this.OpenButton.Click += new System.EventHandler(this.Open_Click);<br />
this.Load += new System.EventHandler(this.Page_Load);<br />
}


protected void OpenButton_Click(object sender, System.EventArgs e)<br />
{<br />
//Log activity<br />
}


It works perfect using static usercontrols, but not in this dynamic case. It wont even enter the OpenButton_click method in debug mode.

Is the EventHandler passing the event to the main app or what is happening.?!? Nothing what so ever happens..

Please help me Experts-Number-One, you are my only hope….


/Peter
AnswerRe: Problem with ButtonEvents on dynamic UserContols Pin
e-laj3-Oct-06 11:33
e-laj3-Oct-06 11:33 
GeneralRe: Problem with ButtonEvents on dynamic UserContols Pin
nguyenvhn3-Oct-06 17:31
nguyenvhn3-Oct-06 17:31 
GeneralRe: Problem with ButtonEvents on dynamic UserContols Pin
Ibana5-Oct-06 12:52
Ibana5-Oct-06 12:52 
AnswerRe: Problem with ButtonEvents on dynamic UserContols Pin
e-laj5-Oct-06 21:45
e-laj5-Oct-06 21:45 
Questionhow make make sorting and paging both work togeather? Pin
jwrz200t3-Oct-06 6:27
jwrz200t3-Oct-06 6:27 
AnswerRe: how make make sorting and paging both work togeather? Pin
laocat20036-Oct-06 5:06
laocat20036-Oct-06 5:06 
Question(Ultra)WebTabs from Ingragistic Pin
julie763-Oct-06 6:22
julie763-Oct-06 6:22 
AnswerRe: (Ultra)WebTabs from Ingragistic Pin
Member 964-Oct-06 13:23
Member 964-Oct-06 13:23 
QuestionWrong button clicked when user presses "Enter" key Pin
Goalie353-Oct-06 5:28
Goalie353-Oct-06 5:28 
AnswerRe: Wrong button clicked when user presses "Enter" key Pin
ToddHileHoffer3-Oct-06 5:47
ToddHileHoffer3-Oct-06 5:47 
QuestionHow to get Focus on one Button,if two buttons exists on the same form Pin
ravindradonkada3-Oct-06 3:07
ravindradonkada3-Oct-06 3:07 
AnswerRe: How to get Focus on one Button,if two buttons exists on the same form Pin
Sathesh Sakthivel3-Oct-06 3:15
Sathesh Sakthivel3-Oct-06 3:15 
AnswerRe: How to get Focus on one Button,if two buttons exists on the same form Pin
ToddHileHoffer3-Oct-06 4:55
ToddHileHoffer3-Oct-06 4:55 
AnswerRe: How to get Focus on one Button,if two buttons exists on the same form Pin
vikram1383-Oct-06 17:36
vikram1383-Oct-06 17:36 
Questionpage load event not called Pin
Deepak the Cool3-Oct-06 1:23
Deepak the Cool3-Oct-06 1:23 
AnswerRe: page load event not called Pin
CWIZO3-Oct-06 6:37
CWIZO3-Oct-06 6:37 
QuestionWebservice and COM object Pin
Talal Sultan3-Oct-06 1:22
Talal Sultan3-Oct-06 1:22 

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.