Click here to Skip to main content
15,905,590 members
Home / Discussions / C#
   

C#

 
AnswerRe: controls Pin
Martin#2-Jul-07 22:40
Martin#2-Jul-07 22:40 
GeneralRe: controls Pin
kalyan_24162-Jul-07 23:12
kalyan_24162-Jul-07 23:12 
GeneralRe: controls Pin
Martin#2-Jul-07 23:13
Martin#2-Jul-07 23:13 
GeneralRe: controls Pin
kalyan_24162-Jul-07 23:24
kalyan_24162-Jul-07 23:24 
GeneralRe: controls Pin
Tamimi - Code2-Jul-07 23:32
Tamimi - Code2-Jul-07 23:32 
GeneralRe: controls Pin
kalyan_24162-Jul-07 23:39
kalyan_24162-Jul-07 23:39 
GeneralRe: controls Pin
Tamimi - Code2-Jul-07 23:46
Tamimi - Code2-Jul-07 23:46 
AnswerRe: controls Pin
Martin#2-Jul-07 23:40
Martin#2-Jul-07 23:40 
Hello,

Like somebody said befor, what is FindControl doing? (please show code)

But apard from that:
kalyan_2416 wrote:
(LinkButton)this.FindControl

This will throw an exception if the control which is returned from the method, is not typof LinkButton.
Therefor I suggested the 'as' operator.
LinkButton l = this.FindControl("blabla") as LinkButton;
if(l!=null)
{
     //it's a linbutton
}
else
{
   //it's not a linkbutton
}


All the best,

Martin
GeneralRe: controls Pin
kalyan_24162-Jul-07 23:45
kalyan_24162-Jul-07 23:45 
GeneralRe: controls Pin
kalyan_24163-Jul-07 0:22
kalyan_24163-Jul-07 0:22 
GeneralRe: controls Pin
Martin#3-Jul-07 0:45
Martin#3-Jul-07 0:45 
Questionchr(13) Pin
sengottuvelud2-Jul-07 21:37
sengottuvelud2-Jul-07 21:37 
AnswerRe: chr(13) Pin
Ed.Poore2-Jul-07 22:16
Ed.Poore2-Jul-07 22:16 
QuestionEmail Template Pin
bhanu123452-Jul-07 21:06
bhanu123452-Jul-07 21:06 
AnswerRe: Email Template Pin
Jimmanuel3-Jul-07 3:18
Jimmanuel3-Jul-07 3:18 
QuestionDatagridview ComboBox Column Pin
Mr Perfect2-Jul-07 20:56
Mr Perfect2-Jul-07 20:56 
Questionwceusbsh.sys problem Pin
SilvermanDK2-Jul-07 20:51
SilvermanDK2-Jul-07 20:51 
QuestionGenerating SQL reports in C# Pin
Aks_aks2-Jul-07 20:16
Aks_aks2-Jul-07 20:16 
QuestionRewriting progress code in C# Pin
AmarjeetSinghMatharu2-Jul-07 20:13
AmarjeetSinghMatharu2-Jul-07 20:13 
JokeRe: Rewriting progress code in C# Pin
CPallini2-Jul-07 20:20
mveCPallini2-Jul-07 20:20 
GeneralRe: Rewriting progress code in C# Pin
AmarjeetSinghMatharu2-Jul-07 21:49
AmarjeetSinghMatharu2-Jul-07 21:49 
GeneralRe: Rewriting progress code in C# Pin
CPallini2-Jul-07 21:57
mveCPallini2-Jul-07 21:57 
AnswerRe: listbox Pin
Rahul.Goel2-Jul-07 20:55
Rahul.Goel2-Jul-07 20:55 
GeneralRe: listbox Pin
pmartike2-Jul-07 22:02
pmartike2-Jul-07 22:02 
GeneralRe: listbox Pin
pmartike3-Jul-07 0:12
pmartike3-Jul-07 0:12 

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.