Click here to Skip to main content
15,898,222 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerMicrosoft Website Templates Pin
David Mujica27-Mar-09 7:43
David Mujica27-Mar-09 7:43 
QuestionAjax based web application breaks on html tag in text field Pin
meenakumar27-Mar-09 6:01
meenakumar27-Mar-09 6:01 
AnswerRe: Ajax based web application breaks on html tag in text field Pin
Yusuf27-Mar-09 6:11
Yusuf27-Mar-09 6:11 
QuestionAccessing dropdownlist in footer of gridview from javascript Pin
nainakarri27-Mar-09 5:57
nainakarri27-Mar-09 5:57 
AnswerRe: Accessing dropdownlist in footer of gridview from javascript Pin
Ibrahim Bello27-Mar-09 6:50
Ibrahim Bello27-Mar-09 6:50 
GeneralRe: Accessing dropdownlist in footer of gridview from javascript Pin
nainakarri27-Mar-09 7:57
nainakarri27-Mar-09 7:57 
GeneralRe: Accessing dropdownlist in footer of gridview from javascript Pin
Ibrahim Bello30-Mar-09 6:02
Ibrahim Bello30-Mar-09 6:02 
QuestionChanging GridView Column Header Pin
Ibrahim Bello27-Mar-09 5:13
Ibrahim Bello27-Mar-09 5:13 
Hi, I've designed a templated ASP.NET GridView Control. What I want to achieve is to change the HeaderText of one of the columns based on a DropDownList SelectedIndexChanged event. I placed a label into the HeaderTemplate:

<headertemplate>
<asp:label id="lblValueRate" runat="server" width="64px" xmlns:asp="#unknown">""

If a User selects 'Value' from the dropdownlist then I set the Text property of lblValueRate to 'Value' and if User selects 'Rate', changes to 'Rate'.

<asp:dropdownlist id="dbcValueRate" runat="server" autopostback="True" xmlns:asp="#unknown">
<asp:listitem>Rate <asp:listitem>Value

I've tried implementing it this way without success:

Label lblNew = (Label)GridView1.HeaderRow.FindControl("lblValueRate");
Then set lblNew.Text = Rate or Value

This didn't change the GridView Column Header so I thought perhaps I wasn't getting a reference to lblValueRate. So I tried using pointer in unsafe code, Like this:

Label* ptrLabel = &((Label)GridView1.HeaderRow.FindControl("lblValueRate"));

and dereferenced it this way: Label lblNew = *(ptrLabel);

But throws up error that can't get address of managed control.

I believe this is very trivial, but I seem stuck here. Thanks!
AnswerRe: Changing GridView Column Header Pin
Ibrahim Bello27-Mar-09 8:23
Ibrahim Bello27-Mar-09 8:23 
QuestionModal pop up extender on click of radio button Pin
hozsam27-Mar-09 3:17
hozsam27-Mar-09 3:17 
AnswerRe: Modal pop up extender on click of radio button Pin
srividya0931-May-10 20:52
srividya0931-May-10 20:52 
Questionadd user control using fckeditor ? Pin
keyur satyadev27-Mar-09 3:01
keyur satyadev27-Mar-09 3:01 
AnswerRe: add user control using fckeditor ? Pin
Yusuf27-Mar-09 3:53
Yusuf27-Mar-09 3:53 
QuestionCaret disappears when tabbing Pin
Lonnie Raffray27-Mar-09 2:49
Lonnie Raffray27-Mar-09 2:49 
Questionresize calendar control Pin
meghamaharshi27-Mar-09 2:38
meghamaharshi27-Mar-09 2:38 
AnswerRe: resize calendar control Pin
Ravi Mori27-Mar-09 2:47
Ravi Mori27-Mar-09 2:47 
GeneralRe: resize calendar control Pin
meghamaharshi27-Mar-09 2:53
meghamaharshi27-Mar-09 2:53 
GeneralRe: resize calendar control Pin
Ravi Mori27-Mar-09 2:59
Ravi Mori27-Mar-09 2:59 
GeneralRe: resize calendar control Pin
meghamaharshi27-Mar-09 3:01
meghamaharshi27-Mar-09 3:01 
GeneralRe: resize calendar control Pin
meghamaharshi27-Mar-09 3:07
meghamaharshi27-Mar-09 3:07 
GeneralRe: resize calendar control Pin
Ravi Mori27-Mar-09 3:17
Ravi Mori27-Mar-09 3:17 
QuestionThrowing an Security Exception error Pin
.NET- India 27-Mar-09 2:16
.NET- India 27-Mar-09 2:16 
AnswerRe: Throwing an Security Exception error Pin
Ravi Mori27-Mar-09 2:42
Ravi Mori27-Mar-09 2:42 
GeneralRe: Throwing an Security Exception error Pin
.NET- India 27-Mar-09 19:22
.NET- India 27-Mar-09 19:22 
AnswerRe: Throwing an Security Exception error Pin
Paddy Boyd27-Mar-09 3:05
Paddy Boyd27-Mar-09 3:05 

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.