Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
AnswerRe: find all textbox in a form at runtime Pin
Christian Graus4-Oct-07 20:43
protectorChristian Graus4-Oct-07 20:43 
GeneralRe: find all textbox in a form at runtime Pin
darkelv4-Oct-07 21:19
darkelv4-Oct-07 21:19 
GeneralRe: find all textbox in a form at runtime Pin
Christian Graus4-Oct-07 22:03
protectorChristian Graus4-Oct-07 22:03 
QuestionHelp to choose project Pin
M. Ahmed4-Oct-07 20:30
M. Ahmed4-Oct-07 20:30 
AnswerRe: Help to choose project Pin
Andrei Ungureanu4-Oct-07 22:12
Andrei Ungureanu4-Oct-07 22:12 
QuestionDynamic controlls in asp.net Pin
sonigirish4-Oct-07 20:30
sonigirish4-Oct-07 20:30 
AnswerRe: Dynamic controlls in asp.net Pin
Christian Graus4-Oct-07 20:40
protectorChristian Graus4-Oct-07 20:40 
AnswerRe: Dynamic controlls in asp.net Pin
Guffa4-Oct-07 20:42
Guffa4-Oct-07 20:42 
If you add OnClick as an attribute, it will just end up in the client code. It's only when you write it in the markup code that it is compiled into code that binds the event handler.

When you create the control dynamically, you have to write the code that binds the event handler yourself:

btn.Click += new EventHandler(Button1_Click);

The runat and Text attributes are also only used when you write the control in the markup code. If you add them as attributes, they will end up unchanged in the generated html code, where they have no meaning at all. Use the Text property of the control to set the text:

btn.Text = "Press Button";

---
single minded; short sighted; long gone;

Questionhow to find digits and spical charcter in a string Pin
Naveed7274-Oct-07 20:01
Naveed7274-Oct-07 20:01 
AnswerRe: how to find digits and spical charcter in a string Pin
Andrei Ungureanu4-Oct-07 20:06
Andrei Ungureanu4-Oct-07 20:06 
AnswerRe: how to find digits and spical charcter in a string Pin
Christian Graus4-Oct-07 20:06
protectorChristian Graus4-Oct-07 20:06 
AnswerRe: how to find digits and spical charcter in a string Pin
Naveed7274-Oct-07 20:19
Naveed7274-Oct-07 20:19 
AnswerRe: how to find digits and spical charcter in a string Pin
M. Ahmed4-Oct-07 20:43
M. Ahmed4-Oct-07 20:43 
GeneralRe: how to find digits and spical charcter in a string Pin
Christian Graus4-Oct-07 23:16
protectorChristian Graus4-Oct-07 23:16 
QuestionCOM Interoperability Pin
KrunalC4-Oct-07 19:34
KrunalC4-Oct-07 19:34 
AnswerRe: COM Interoperability Pin
Christian Graus4-Oct-07 19:38
protectorChristian Graus4-Oct-07 19:38 
GeneralRe: COM Interoperability Pin
KrunalC4-Oct-07 19:44
KrunalC4-Oct-07 19:44 
GeneralRe: COM Interoperability Pin
Christian Graus4-Oct-07 19:53
protectorChristian Graus4-Oct-07 19:53 
GeneralRe: COM Interoperability Pin
KrunalC4-Oct-07 20:09
KrunalC4-Oct-07 20:09 
GeneralRe: COM Interoperability Pin
Christian Graus4-Oct-07 20:41
protectorChristian Graus4-Oct-07 20:41 
GeneralRe: COM Interoperability Pin
KrunalC4-Oct-07 20:48
KrunalC4-Oct-07 20:48 
Questionpicking data(row) from database with cycling form Pin
syibu4-Oct-07 18:16
syibu4-Oct-07 18:16 
QuestionExtending xsd.exe generated classes Pin
Rafferty Uy4-Oct-07 17:59
Rafferty Uy4-Oct-07 17:59 
AnswerRe: Extending xsd.exe generated classes Pin
Rob Philpott4-Oct-07 22:58
Rob Philpott4-Oct-07 22:58 
GeneralRe: Extending xsd.exe generated classes Pin
Rafferty Uy10-Oct-07 23:58
Rafferty Uy10-Oct-07 23:58 

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.