Click here to Skip to main content
15,895,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCheckBoxList and PostBack Pin
Ahmed Galal18-Nov-08 7:26
Ahmed Galal18-Nov-08 7:26 
AnswerRe: CheckBoxList and PostBack Pin
ToddHileHoffer18-Nov-08 7:41
ToddHileHoffer18-Nov-08 7:41 
GeneralRe: CheckBoxList and PostBack Pin
Ahmed Galal18-Nov-08 9:25
Ahmed Galal18-Nov-08 9:25 
GeneralRe: CheckBoxList and PostBack Pin
ToddHileHoffer18-Nov-08 10:06
ToddHileHoffer18-Nov-08 10:06 
GeneralRe: CheckBoxList and PostBack Pin
Ahmed Galal19-Nov-08 5:54
Ahmed Galal19-Nov-08 5:54 
QuestionDataReader used type of function and closed when tried to call after RETURN(C#/VS 2005) Pin
Davidv12318-Nov-08 6:23
Davidv12318-Nov-08 6:23 
AnswerRe: DataReader used type of function and closed when tried to call after RETURN(C#/VS 2005) Pin
Ennis Ray Lynch, Jr.18-Nov-08 7:32
Ennis Ray Lynch, Jr.18-Nov-08 7:32 
QuestionMultiview and Radiobuttonlist problem in updatePanel Pin
sawssinette18-Nov-08 5:43
sawssinette18-Nov-08 5:43 
Hello,

I'm using a radiobuttonlist with 5 listitem, depending on the user choice a different view will be diplayed. All this is placed in an updatePanel control to avoid refreshing the whole page on each Radio button change click. Everything works fine except when initially a radiobuttonlist item is by default selected in my aspx code. What happens is all other radiobuttons click refresh the view except when i click back on the previous default selected radiobutton. Any ideas how I can resolve this in a neat way? I obsolutley have to have the first RadioButton selected by default cause it's a none view selection.

Please find below part of the code I'm using.

<pre><asp:RadioButtonList ID="ExpressionSystemRB" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ExpressionSystemRB_SelectedIndexChanged" RepeatDirection="Horizontal">

<asp:ListItem Text="None" Value="none" Selected="True"></asp:ListItem>

<asp:ListItem Text="Hybridoma" Value="hybridoma"></asp:ListItem>

<asp:ListItem Text="Stable cell line" Value="cellLine"></asp:ListItem>

<asp:ListItem Text="Transient expression" Value="transient"></asp:ListItem>

<asp:ListItem Text="Recombiniant stain" Value="recombiniant"></asp:ListItem>

</asp:RadioButtonList>



<asp:UpdatePanel ID="UpdatePanel1" runat="server">

<Triggers>

<asp:AsyncPostBackTrigger ControlID="ExpressionSystemRB" EventName="SelectedIndexChanged" />

</Triggers>

<ContentTemplate>

<asp:MultiView ID="ProductionInfoMultiView" runat="server" ActiveViewIndex="0">

<asp:View ID="noneView" runat="server" >



// empty view

</asp:View>

<asp:View ID="hybridomaView" runat="server" >

// view 1 table display

</asp:View>

<asp:View ID="cellineView" runat="server">

// view 2 new table display

</asp:View>

<asp:View ID="transientView" runat="server">

// view 3 new table display

</asp:View>

<asp:View ID="recombiniantView" runat="server">

// view 4 new table display

</asp:View>

</asp:MultiView>

</ContentTemplate>

</asp:UpdatePanel></pre>

***************************

so if I put a selectedvalue=true like this

<code><asp:ListItem Text="None" Value="none" Selected="True"></asp:ListItem></code>

whenever i click on the none RB the view won't refresh but if i take the selected = true out everything works fine!!!



her'es the codebehind of the method i call on each RB click

<pre>protected void ExpressionSystemRB_SelectedIndexChanged(object sender, EventArgs e)
{

if (ExpressionSystemRB.SelectedValue == "none")
{

ProductionInfoMultiView.SetActiveView(noneView);

}

else if (ExpressionSystemRB.SelectedValue == "hybridoma")
{

ProductionInfoMultiView.SetActiveView(hybridomaView);

}

else if (ExpressionSystemRB.SelectedValue == "cellLine")
{

ProductionInfoMultiView.SetActiveView(cellineView);

}

else if (ExpressionSystemRB.SelectedValue == "transient")
{

ProductionInfoMultiView.SetActiveView(transientView);

}

else if (ExpressionSystemRB.SelectedValue == "recombiniant")
{

ProductionInfoMultiView.SetActiveView(recombiniantView);

}

}</pre>


Thanx in advance for your help!
AnswerRe: Multiview and Radiobuttonlist problem in updatePanel Pin
ToddHileHoffer18-Nov-08 7:51
ToddHileHoffer18-Nov-08 7:51 
AnswerRe: Multiview and Radiobuttonlist problem in updatePanel Pin
sawssinette18-Nov-08 22:34
sawssinette18-Nov-08 22:34 
GeneralRe: Multiview and Radiobuttonlist problem in updatePanel Pin
ToddHileHoffer19-Nov-08 2:05
ToddHileHoffer19-Nov-08 2:05 
QuestionConvert rdlc to PDF without using LocalReport.Render method Pin
Member 183766118-Nov-08 5:14
Member 183766118-Nov-08 5:14 
QuestionLocalReport.Render Pin
Member 183766118-Nov-08 4:54
Member 183766118-Nov-08 4:54 
AnswerRe: LocalReport.Render Pin
Christian Graus18-Nov-08 9:05
protectorChristian Graus18-Nov-08 9:05 
QuestionStringBuilder Problem Pin
krishnaveer18-Nov-08 1:55
krishnaveer18-Nov-08 1:55 
AnswerRe: StringBuilder Problem Pin
Brij18-Nov-08 3:41
mentorBrij18-Nov-08 3:41 
Questionhelp Updatepanel and alert ; [modified] Pin
ahmed eldeghedy18-Nov-08 0:45
professionalahmed eldeghedy18-Nov-08 0:45 
AnswerRe: help Updatepanel and alert ; Pin
Eduard Keilholz18-Nov-08 1:09
Eduard Keilholz18-Nov-08 1:09 
QuestionInternationalization Issues Pin
Bijgupt17-Nov-08 23:17
Bijgupt17-Nov-08 23:17 
Questionchange css using javascript Pin
nikhil123417-Nov-08 22:41
nikhil123417-Nov-08 22:41 
AnswerRe: change css using javascript Pin
NeverHeardOfMe17-Nov-08 23:07
NeverHeardOfMe17-Nov-08 23:07 
AnswerRe: change css using javascript Pin
Parwej Ahamad18-Nov-08 0:06
professionalParwej Ahamad18-Nov-08 0:06 
QuestionRename FileUpload Control Button Pin
frankwiemer-HH17-Nov-08 22:28
frankwiemer-HH17-Nov-08 22:28 
AnswerRe: Rename FileUpload Control Button (Typical German!!) Pin
NeverHeardOfMe17-Nov-08 22:58
NeverHeardOfMe17-Nov-08 22:58 
GeneralRe: Rename FileUpload Control Button (Typical German!!) Pin
frankwiemer-HH18-Nov-08 21:13
frankwiemer-HH18-Nov-08 21:13 

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.