Click here to Skip to main content
15,887,268 members
Home / Discussions / ASP.NET
   

ASP.NET

 
General(performacne) difference between Session and static class Pin
Seishin#20-Feb-08 11:03
Seishin#20-Feb-08 11:03 
GeneralRe: (performacne) difference between Session and static class Pin
Guffa20-Feb-08 11:33
Guffa20-Feb-08 11:33 
Questionconfusion over asynchronous methods inside web service Pin
ekynox20-Feb-08 10:31
ekynox20-Feb-08 10:31 
GeneralRe: confusion over asynchronous methods inside web service Pin
Venkatesh Mookkan20-Feb-08 15:49
Venkatesh Mookkan20-Feb-08 15:49 
GeneralRe: confusion over asynchronous methods inside web service Pin
ekynox21-Feb-08 9:53
ekynox21-Feb-08 9:53 
GeneralDynamic linkbuttons and event wiring Pin
Glenn E. Lanier II20-Feb-08 9:17
Glenn E. Lanier II20-Feb-08 9:17 
GeneralRe: Dynamic linkbuttons and event wiring Pin
Christian Graus20-Feb-08 11:50
protectorChristian Graus20-Feb-08 11:50 
QuestionRe: Dynamic linkbuttons and event wiring Pin
Glenn E. Lanier II21-Feb-08 3:07
Glenn E. Lanier II21-Feb-08 3:07 
Christian,

I must be really dense here -- I've tried overriding the OnInit and/or the LoadViewState, and recreating the object in every Page_Load, but still no success.

Currently, I have a member variable, LinkButton lb. I have a method, CreateButton, that creates the button, sets the properties, and creates the CommandEventHandler. I call this method in various places, but no luck. What am I missing?

<br />
protected LinkButton lb = null;<br />
protected override void LoadViewState(object savedState)<br />
{<br />
   CreateButton();<br />
   base.LoadViewState(savedState);<br />
}<br />
<br />
protected void CreateButton()<br />
{<br />
   if (null == lb)<br />
   {<br />
      lb = new LinkButton();<br />
   }<br />
   lb.ID = "lbTest001";<br />
   lb.CommandName = "lbViewSystem_Click";<br />
   lb.CommandArgument = "1";<br />
   lb.Command += new CommandEventHandler(lbViewSystem_Click);<br />
   lb.Text = string.Format("System {0:000}", 1);<br />
}<br />
<br />
protected void lbViewSystem_Click(object sender, CommandEventArgs e)<br />
{<br />
   logger.Info("lbViewSystem_Click");<br />
   Literal1.Text = string.Format("Argument = {0} at {1}", e.CommandArgument, DateTime.Now.ToString("MM.dd.yyyy HHmmss"));<br />
}<br />


Again, any help is very much appreciated.

--G
AnswerRe: Dynamic linkbuttons and event wiring Pin
Glenn E. Lanier II21-Feb-08 4:10
Glenn E. Lanier II21-Feb-08 4:10 
GeneralProgrammatically Setting Virtual Direction Expiration Pin
crystal915420-Feb-08 8:17
crystal915420-Feb-08 8:17 
Questioncan i link my javascript to a slideshow Pin
young34520-Feb-08 7:38
young34520-Feb-08 7:38 
AnswerRe: can i link my javascript to a slideshow Pin
Not Active20-Feb-08 7:52
mentorNot Active20-Feb-08 7:52 
GeneralRe: can i link my javascript to a slideshow Pin
young34520-Feb-08 9:16
young34520-Feb-08 9:16 
GeneralRe: can i link my javascript to a slideshow Pin
Not Active20-Feb-08 13:05
mentorNot Active20-Feb-08 13:05 
GeneralRe: can i link my javascript to a slideshow Pin
young34520-Feb-08 20:11
young34520-Feb-08 20:11 
GeneralGet User.Identity.Name on login page Pin
AlexeiXX320-Feb-08 7:31
AlexeiXX320-Feb-08 7:31 
GeneralRe: Get User.Identity.Name on login page Pin
Not Active20-Feb-08 7:44
mentorNot Active20-Feb-08 7:44 
GeneralRe: Get User.Identity.Name on login page Pin
AlexeiXX320-Feb-08 7:51
AlexeiXX320-Feb-08 7:51 
GeneralRe: Get User.Identity.Name on login page Pin
AlexeiXX320-Feb-08 7:55
AlexeiXX320-Feb-08 7:55 
GeneralTextarea.Value Commit issue Pin
gavin lane20-Feb-08 0:58
gavin lane20-Feb-08 0:58 
GeneralRe: Textarea.Value Commit issue Pin
newc120-Feb-08 1:47
newc120-Feb-08 1:47 
QuestionHow to store dataview's data in a datatable Pin
dews turner20-Feb-08 0:54
dews turner20-Feb-08 0:54 
AnswerRe: How to store dataview's data in a datatable Pin
dews turner20-Feb-08 1:18
dews turner20-Feb-08 1:18 
Generalrational clear case Pin
Member 387988120-Feb-08 0:43
Member 387988120-Feb-08 0:43 
GeneralRetrieving Videos from a directory and displaying them to a user Pin
capdevillia20-Feb-08 0:40
capdevillia20-Feb-08 0:40 

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.