Click here to Skip to main content
15,913,773 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCreating 3D type menu Pin
Jagz W29-Nov-09 18:48
professionalJagz W29-Nov-09 18:48 
AnswerRe: Creating 3D type menu Pin
Abhijit Jana29-Nov-09 19:45
professionalAbhijit Jana29-Nov-09 19:45 
AnswerRe: Creating 3D type menu Pin
sashidhar29-Nov-09 19:48
sashidhar29-Nov-09 19:48 
QuestionFindControl which is inside of a Repeater control Pin
Thilina.madush29-Nov-09 18:14
Thilina.madush29-Nov-09 18:14 
AnswerRe: FindControl which is inside of a Repeater control Pin
nainakarri29-Nov-09 18:50
nainakarri29-Nov-09 18:50 
AnswerRe: FindControl which is inside of a Repeater control Pin
Navin Pandit30-Nov-09 1:19
Navin Pandit30-Nov-09 1:19 
GeneralRe: FindControl which is inside of a Repeater control Pin
Thilina.madush14-Dec-09 2:37
Thilina.madush14-Dec-09 2:37 
GeneralRe: FindControl which is inside of a Repeater control [modified] Pin
Navin Pandit14-Dec-09 23:07
Navin Pandit14-Dec-09 23:07 
Hii,

Use this or mail me your scenario in which scope you want to use.
Remmeber, before using this lines of code, you must bind your repeater control, otherwise it will not work as the control has no values.

Hope this will work:

foreach (RepeaterItem item in Repeater1.Items)
{
Label lbl = (Label)item.FindControl("lblName");
// Use any othe asp control that you want instead of 'Label'.
if (lbl != null)
{
lbl.Text="I cached you!";
}
}


Or, for "DataBound" event of repeater you can use as:-

protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Label lbl = (Label)e.Item.FindControl("lblID");
if(lbl!=null)
{
// Do your code with found control;
}
}
}

Regards,
Navin C.
E-mail: navin2k6@gmail.com
Smile | :)

modified on Tuesday, December 15, 2009 5:25 AM

QuestionExport webform to pdf Pin
Nekkantidivya29-Nov-09 17:55
Nekkantidivya29-Nov-09 17:55 
AnswerRe: Export webform to pdf Pin
dan!sh 29-Nov-09 18:13
professional dan!sh 29-Nov-09 18:13 
Questioncode for remember me Pin
rajni_nanu29-Nov-09 17:47
rajni_nanu29-Nov-09 17:47 
AnswerRe: code for remember me Pin
dan!sh 29-Nov-09 17:56
professional dan!sh 29-Nov-09 17:56 
AnswerRe: code for remember me Pin
Abhijit Jana29-Nov-09 18:41
professionalAbhijit Jana29-Nov-09 18:41 
AnswerRe: code for remember me Pin
carlecomm2-Dec-09 23:33
carlecomm2-Dec-09 23:33 
Questiontemplates for a forum website........ Pin
Thilina.madush29-Nov-09 17:38
Thilina.madush29-Nov-09 17:38 
AnswerRe: templates for a forum website........ Pin
N a v a n e e t h29-Nov-09 17:39
N a v a n e e t h29-Nov-09 17:39 
AnswerRe: templates for a forum website........ Pin
Abhijit Jana29-Nov-09 19:10
professionalAbhijit Jana29-Nov-09 19:10 
QuestionSilent File(eg. doc, xls) Transfer(download) from Server to client Pin
kbsnet29-Nov-09 17:37
kbsnet29-Nov-09 17:37 
AnswerRe: Silent File(eg. doc, xls) Transfer(download) from Server to client Pin
Ashfield29-Nov-09 21:34
Ashfield29-Nov-09 21:34 
QuestionDisplay a datagridview with a certain columns when web application runs Pin
Member 470414329-Nov-09 16:38
Member 470414329-Nov-09 16:38 
AnswerRe: Display a datagridview with a certain columns when web application runs Pin
nainakarri29-Nov-09 16:48
nainakarri29-Nov-09 16:48 
AnswerRe: Display a datagridview with a certain columns when web application runs Pin
dan!sh 29-Nov-09 16:48
professional dan!sh 29-Nov-09 16:48 
GeneralRe: Display a datagridview with a certain columns when web application runs Pin
Member 470414329-Nov-09 17:00
Member 470414329-Nov-09 17:00 
GeneralRe: Display a datagridview with a certain columns when web application runs [modified] Pin
sashidhar29-Nov-09 17:26
sashidhar29-Nov-09 17:26 
GeneralRe: Display a datagridview with a certain columns when web application runs Pin
Member 470414329-Nov-09 19:09
Member 470414329-Nov-09 19:09 

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.