Click here to Skip to main content
15,891,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Use your own code to validate Pin
Muhammad Gouda12-Mar-08 6:15
Muhammad Gouda12-Mar-08 6:15 
Generalemail error Pin
solarthur0112-Mar-08 4:55
solarthur0112-Mar-08 4:55 
Generalpicking subject from mail Pin
Azi Qaiser12-Mar-08 4:38
Azi Qaiser12-Mar-08 4:38 
GeneralRe: picking subject from mail Pin
Justin Perez12-Mar-08 5:28
Justin Perez12-Mar-08 5:28 
GeneralRe: picking subject from mail Pin
eyeseetee12-Mar-08 5:33
eyeseetee12-Mar-08 5:33 
GeneralRe: picking subject from mail Pin
James J. Foster12-Mar-08 5:41
James J. Foster12-Mar-08 5:41 
GeneralRe: picking subject from mail Pin
Christian Graus12-Mar-08 17:35
protectorChristian Graus12-Mar-08 17:35 
QuestionRadioButtonList won't show Pin
thomasa12-Mar-08 3:40
thomasa12-Mar-08 3:40 
Hey.

I have a anthem:PlaceHolder inside a asp:Repeater that contains an asp:RadioButtonList
something like
<br />
<asp:repeater id="rp" runat="server" gt;<br="" mode="hold" />HeaderTemplate&gt table&gt;&lt;/HeaderTemplate<br />
ItemTemplate&gt;<br />
td><anthem:ImageButton id="ibPt" runat="server"></anthem:ImageButton><br />
<anthem:PlaceHolder id="phPt" runat="server"><br />
<asp:Literal ID="liPt" Runat="server"></asp:Literal><br />
<asp:RadioButtonList ID="rblPt" Runat="server" Visible="False"></asp:RadioButtonList><br />
</anthem:PlaceHolder></td


And I have added a click event on my anthem:ImageButton that shall fill the RadioButtonList with items and make it Visible="true"
something like

private void OnPt(object sender, ImageClickEventArgs e)<br />
        {<br />
            MiBlo.Product bloProduct = null;<br />
            Anthem.ImageButton aibtnPartType = (Anthem.ImageButton)sender;<br />
            try <br />
            {   <br />
System.Web.UI.WebControls.RepeaterItem riSL = (System.Web.UI.WebControls.RepeaterItem)aibtnPartType.Parent;<br />
<br />
                int lngProductID = int.Parse(aibtnPartType.CommandName);<br />
                int lngCatalogID = int.Parse(aibtnPartType.CommandArgument);<br />
<br />
                bloProduct = new MiBlo.Product();<br />
<br />
                DataView dvProductPartTypes = bloProduct.GetProductPartTypes(lngProductID, lngCatalogID);<br />
<br />
                aibtnPartType.UpdateAfterCallBack = true;<br />
                aibtnPartType.Visible = false;<br />
<br />
                Anthem.PlaceHolder phPt = (Anthem.PlaceHolder)riSL.FindControl("phPt"); <br />
                Literal liPt = (Literal)phPt.FindControl("liPt");<br />
                liPt.Text = "";<br />
                liPt.Visible = false;<br />
<br />
                RadioButtonList rblPt = (RadioButtonList)phPt.FindControl("rblPt");<br />
                rblPt.Visible = true;<br />
                rblPt.RepeatColumns = 1;<br />
                <br />
                <br />
                for(int i = 0; i &lt; dvProductPartTypes.Count; i++)<br />
                {<br />
                    RadioButton rb = new RadioButton();<br />
                    rb.Text = dvProductPartTypes[i]["dblNumberInUnit"].ToString();<br />
                    rb.GroupName = "rblPt";                   <br />
                                        <br />
                    rblPt.Controls.Add(rb);<br />
                }<br />
<br />
                phPt.UpdateAfterCallBack = true;<br />
            }<br />
            catch (Exception err) <br />
            {<br />
                lblMessage.Text += err.Message;<br />
            }<br />
        }


It enters the code and everything seems OK, but it won't show. I tryed just to set the Literal liPt.Text = "Test" and not setting it
to liPt.Visible = false and that is shown correctly.

But I have no idea why the RadioButtonList won't show.
I have allso tried an anthem:RadioButtonList insted of an asp:RadioButtonList inside an anthem:PlaceHolder but it gave the same
result.

Anyone know the RadioButtonList won't show?
Thanks
Thomas
GeneralRe: RadioButtonList won't show solution Pin
thomasa12-Mar-08 4:09
thomasa12-Mar-08 4:09 
GeneralConnection to database Pin
John.L.Ponratnam12-Mar-08 3:23
John.L.Ponratnam12-Mar-08 3:23 
GeneralRe: Connection to database Pin
J a a n s12-Mar-08 3:26
professionalJ a a n s12-Mar-08 3:26 
GeneralRe: Connection to database Pin
eyeseetee12-Mar-08 3:33
eyeseetee12-Mar-08 3:33 
Generalloop for textboxes Pin
eyeseetee12-Mar-08 1:45
eyeseetee12-Mar-08 1:45 
GeneralRe: loop for textboxes Pin
N a v a n e e t h12-Mar-08 1:47
N a v a n e e t h12-Mar-08 1:47 
GeneralRe: loop for textboxes Pin
eyeseetee12-Mar-08 1:58
eyeseetee12-Mar-08 1:58 
GeneralRe: loop for textboxes Pin
N a v a n e e t h12-Mar-08 2:07
N a v a n e e t h12-Mar-08 2:07 
GeneralRe: loop for textboxes Pin
eyeseetee12-Mar-08 2:16
eyeseetee12-Mar-08 2:16 
GeneralRe: loop for textboxes Pin
N a v a n e e t h12-Mar-08 2:34
N a v a n e e t h12-Mar-08 2:34 
GeneralRe: loop for textboxes Pin
eyeseetee12-Mar-08 3:11
eyeseetee12-Mar-08 3:11 
GeneralRe: loop for textboxes Pin
N a v a n e e t h12-Mar-08 4:00
N a v a n e e t h12-Mar-08 4:00 
GeneralRe: loop for textboxes Pin
eyeseetee12-Mar-08 4:07
eyeseetee12-Mar-08 4:07 
GeneralRe: loop for textboxes Pin
Parwej Ahamad12-Mar-08 6:29
professionalParwej Ahamad12-Mar-08 6:29 
GeneralRe: loop for textboxes Pin
eyeseetee12-Mar-08 22:32
eyeseetee12-Mar-08 22:32 
GeneralRe: loop for textboxes Pin
P Tagore Srinivas Dhanunjay13-Mar-08 2:47
P Tagore Srinivas Dhanunjay13-Mar-08 2:47 
Generaljava script in ASP.net Pin
frndjust12-Mar-08 1:40
frndjust12-Mar-08 1:40 

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.