Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used following code:
XML
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
        <asp:RadioButtonList ID="RadioButtonList1" runat="server"
            AppendDataBoundItems="True" AutoPostBack="True" BackColor="White"
            ForeColor="#009999"
            onselectedindexchanged="RadioButtonList1_SelectedIndexChanged"
            RepeatDirection="Horizontal" RepeatLayout="Flow"
            style="text-align: left; top: 407px; left: 98px; position: absolute; width: 143px; height: 23px; border-style: None">
            <asp:ListItem>Owner</asp:ListItem>
            <asp:ListItem>Broker</asp:ListItem>
        </asp:RadioButtonList>
        </ContentTemplate>
        </asp:UpdatePanel>


The whole page is refreshed. Can anyone help to sort out. Partial page rendering is not happening for the above code.
Posted

Instead of using updatepanel to the radiobuttonlist, you might use it to the entire page content

I hope it will help you to resolve your problem

--SRJ
 
Share this answer
 
XML
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = "Refreshed at " +
            DateTime.Now.ToString();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>UpdatePanel Tutorial</title>
    <style type="text/css">
    #UpdatePanel1 {
      width:300px;
     }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <fieldset>
                <legend>UpdatePanel</legend>
                <asp:Label ID="Label1" runat="server" Text="Panel created."></asp:Label><br />
                </fieldset>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Button1" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></div>
    </form>
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900