Click here to Skip to main content
15,919,500 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNamespace? Pin
Illegal Operation7-Apr-09 17:20
Illegal Operation7-Apr-09 17:20 
AnswerRe: Namespace? Pin
lovexiaoxiao7-Apr-09 17:26
lovexiaoxiao7-Apr-09 17:26 
AnswerRe: Namespace? Pin
Christian Graus7-Apr-09 17:37
protectorChristian Graus7-Apr-09 17:37 
GeneralRe: Namespace? Pin
Illegal Operation7-Apr-09 18:17
Illegal Operation7-Apr-09 18:17 
GeneralRe: Namespace? Pin
lovexiaoxiao7-Apr-09 18:28
lovexiaoxiao7-Apr-09 18:28 
QuestionGet DetailsView templatefield value... [modified] Pin
alvarog017-Apr-09 9:53
alvarog017-Apr-09 9:53 
AnswerRe: Get DetailsView templatefield value... Pin
Yusuf7-Apr-09 11:15
Yusuf7-Apr-09 11:15 
GeneralRe: Get DetailsView templatefield value... Pin
alvarog017-Apr-09 22:36
alvarog017-Apr-09 22:36 
Hi Yusuf,

the code is located on a void arguments method, which i invoked somewhere inside the "father" gridview _SelectedIndexChanged() method :

public void BlahBla()
{
   ...
   System.Web.UI.Control c = dvCU.FindControl("Label8");
   string s = ((System.Web.UI.WebControls.Label)c).Text;
}


You are right, i think now the problem is that i need some argument that contains the detailsview control so i can access it in right way. So i went to the detailsview_DataBound() event, and did this:

protected void dvCU_DataBound(object sender, EventArgs e)
{
    if (((DetailsView)sender).FindControl("lblAlcance") != null)
        iAlcance.ImageUrl = "~/Recursos/Iconos/Alcance (scope)/" + ((System.Web.UI.WebControls.Label)((DetailsView)sender).FindControl("lblAlcance")).Text + ".png";
    if (((DetailsView)sender).FindControl("lblNivel") != null)
        iNivel.ImageUrl = "~/Recursos/Iconos/Nivel (level)/" + ((System.Web.UI.WebControls.Label)((DetailsView)sender).FindControl("lblNivel")).Text + ".png";
}


and... voila!! the thing worked as charm!!

Thanks a lot for your help.

Sorry if i explain not very good, i am very noob at asp and c#.
GeneralRe: Get DetailsView templatefield value... Pin
Yusuf8-Apr-09 1:42
Yusuf8-Apr-09 1:42 
QuestionHow to Paly with TemplateField in a DataGrid Pin
harissssss7-Apr-09 9:48
harissssss7-Apr-09 9:48 
AnswerRe: How to Paly with TemplateField in a DataGrid Pin
Yusuf7-Apr-09 11:10
Yusuf7-Apr-09 11:10 
GeneralRe: How to Paly with TemplateField in a DataGrid Pin
harissssss8-Apr-09 11:14
harissssss8-Apr-09 11:14 
GeneralRe: How to Paly with TemplateField in a DataGrid Pin
Yusuf8-Apr-09 12:12
Yusuf8-Apr-09 12:12 
QuestionLogin and Password Validations!! Pin
Sr...Frank7-Apr-09 9:38
Sr...Frank7-Apr-09 9:38 
AnswerRe: Login and Password Validations!! Pin
Christian Graus7-Apr-09 10:41
protectorChristian Graus7-Apr-09 10:41 
AnswerRe: Login and Password Validations!! Pin
Yusuf7-Apr-09 11:07
Yusuf7-Apr-09 11:07 
QuestionUsing Mouse to Sign Web Documents Pin
Zhat7-Apr-09 9:35
Zhat7-Apr-09 9:35 
AnswerRe: Using Mouse to Sign Web Documents Pin
Christian Graus7-Apr-09 10:42
protectorChristian Graus7-Apr-09 10:42 
GeneralRe: Using Mouse to Sign Web Documents Pin
Zhat8-Apr-09 1:58
Zhat8-Apr-09 1:58 
AnswerRe: Using Mouse to Sign Web Documents Pin
Yusuf7-Apr-09 11:04
Yusuf7-Apr-09 11:04 
GeneralRe: Using Mouse to Sign Web Documents Pin
Zhat8-Apr-09 2:03
Zhat8-Apr-09 2:03 
GeneralRe: Using Mouse to Sign Web Documents Pin
Yusuf8-Apr-09 3:59
Yusuf8-Apr-09 3:59 
GeneralRe: Using Mouse to Sign Web Documents Pin
Zhat8-Apr-09 4:02
Zhat8-Apr-09 4:02 
Question[Message Deleted] Pin
attalurisubbu7-Apr-09 9:16
attalurisubbu7-Apr-09 9:16 
AnswerRe: How to add checkbox to word document using itextDotNet Pin
Christian Graus7-Apr-09 10:42
protectorChristian Graus7-Apr-09 10:42 

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.