Click here to Skip to main content
15,890,506 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCan I Bind method to the control? Pin
marijus518-Apr-10 5:34
marijus518-Apr-10 5:34 
AnswerRe: Can I Bind method to the control? Pin
Brij18-Apr-10 6:20
mentorBrij18-Apr-10 6:20 
GeneralRe: Can I Bind method to the control? Pin
marijus518-Apr-10 7:18
marijus518-Apr-10 7:18 
GeneralRe: Can I Bind method to the control? Pin
Brij18-Apr-10 7:58
mentorBrij18-Apr-10 7:58 
QuestionIssue with WebToolBox.DatePicker... Pin
<<Tash18>>18-Apr-10 3:39
<<Tash18>>18-Apr-10 3:39 
AnswerRe: Issue with WebToolBox.DatePicker... Pin
Sandeep Mewara18-Apr-10 5:26
mveSandeep Mewara18-Apr-10 5:26 
QuestionForcing full postback in UpdatePanel Pin
paper6718-Apr-10 3:04
paper6718-Apr-10 3:04 
AnswerRe: Forcing full postback in UpdatePanel [modified] Pin
daveyerwin18-Apr-10 4:42
daveyerwin18-Apr-10 4:42 
Because I can't work with your code as prsented
I will give this very simple example of an udatepanel
containing a button for update and another button for
postback ...
Hope it helps .
<%@ Page Language="C#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script runat="server">     
    protected void Page_Load(object sender, EventArgs e){
        if (Page.IsPostBack) { myLabel.Text = "posted back"; }        
            ScriptManager current = ScriptManager.GetCurrent(Page);
            if (current != null)
            { current.RegisterPostBackControl(Button2); }        
   }  
    protected void Button1_Click(object sender, EventArgs e)
    {      
        DropDownList1.Items.Clear();
        String[] ds = {"hi RED","sup RED"};
        String[] ds1 = { "hi BLUE", "sup BLUE" };
        if (DropDownList2.SelectedValue == "RED")
        {            DropDownList1.DataSource = ds;
            DropDownList1.DataBind();         }
        if (DropDownList2.SelectedValue == "BLUE")
        {            DropDownList1.DataSource = ds1;
            DropDownList1.DataBind();
        }
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
    #UpdatePanel1 {       width:300px; height:100px;     }    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="padding-top: 10px">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <fieldset>
                <legend>UpdatePanel</legend>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>RED</asp:ListItem>
                    <asp:ListItem>BLUE</asp:ListItem>
                    </asp:DropDownList>
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="UpDate" />                
                <asp:Button ID="Button2" runat="server" Text="PostBack" />
                </fieldset>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <asp:Label runat="server" ID="myLabel"></asp:Label>
        </div>        
    </form>
</body>
</html>

modified on Sunday, April 18, 2010 10:49 AM

GeneralRe: Forcing full postback in UpdatePanel Pin
paper6718-Apr-10 8:57
paper6718-Apr-10 8:57 
GeneralRe: Forcing full postback in UpdatePanel Pin
daveyerwin18-Apr-10 12:11
daveyerwin18-Apr-10 12:11 
QuestionInvalid column names in asp.net application with sql server Pin
Lessobvious18-Apr-10 0:48
Lessobvious18-Apr-10 0:48 
AnswerRe: Invalid column names in asp.net application with sql server Pin
Not Active18-Apr-10 1:07
mentorNot Active18-Apr-10 1:07 
GeneralRe: Invalid column names in asp.net application with sql server Pin
Lessobvious18-Apr-10 2:35
Lessobvious18-Apr-10 2:35 
GeneralRe: Invalid column names in asp.net application with sql server Pin
Brij18-Apr-10 6:25
mentorBrij18-Apr-10 6:25 
AnswerRe: Invalid column names in asp.net application with sql server Pin
preetpal kapoor7-Jun-11 5:54
preetpal kapoor7-Jun-11 5:54 
Questionradio button list problem [modified] Pin
SreejithKumar M18-Apr-10 0:00
SreejithKumar M18-Apr-10 0:00 
AnswerRe: radio button list problem Pin
Brij18-Apr-10 0:22
mentorBrij18-Apr-10 0:22 
AnswerRe: radio button list problem Pin
Abhijit Jana18-Apr-10 0:53
professionalAbhijit Jana18-Apr-10 0:53 
QuestionRedirection To Page Issue. Pin
VikashGohil17-Apr-10 21:58
VikashGohil17-Apr-10 21:58 
AnswerRe: Redirection To Page Issue. Pin
dan!sh 17-Apr-10 22:06
professional dan!sh 17-Apr-10 22:06 
GeneralRe: Redirection To Page Issue. Pin
VikashGohil18-Apr-10 23:28
VikashGohil18-Apr-10 23:28 
AnswerRe: Redirection To Page Issue. Pin
Chetan Patel18-Apr-10 0:40
Chetan Patel18-Apr-10 0:40 
GeneralRe: Redirection To Page Issue. Pin
VikashGohil19-Apr-10 6:39
VikashGohil19-Apr-10 6:39 
GeneralRe: Redirection To Page Issue. Pin
Chetan Patel1-Oct-11 23:12
Chetan Patel1-Oct-11 23:12 
Questionsession active and close the browser without login off... Pin
Sasmi_Office16-Apr-10 23:41
Sasmi_Office16-Apr-10 23:41 

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.