Click here to Skip to main content
15,921,452 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: secure webservice Pin
jzonthemtn10-Nov-08 3:44
jzonthemtn10-Nov-08 3:44 
QuestionMoving Data from one list box to another using Ajax Pin
meeram3959-Nov-08 18:06
meeram3959-Nov-08 18:06 
Questiondo not have step out option in debugger Pin
hassanmohamed9-Nov-08 5:36
hassanmohamed9-Nov-08 5:36 
AnswerRe: do not have step out option in debugger PinPopular
Christian Graus9-Nov-08 6:05
protectorChristian Graus9-Nov-08 6:05 
GeneralRe: do not have step out option in debugger Pin
hassanmohamed9-Nov-08 9:40
hassanmohamed9-Nov-08 9:40 
GeneralRe: do not have step out option in debugger Pin
Christian Graus9-Nov-08 9:47
protectorChristian Graus9-Nov-08 9:47 
AnswerRe: do not have step out option in debugger Pin
Guffa9-Nov-08 7:12
Guffa9-Nov-08 7:12 
QuestionHow do I refresh an UpdatePanel in a master page from a child page Pin
bluewavestrider9-Nov-08 4:48
bluewavestrider9-Nov-08 4:48 
Hi People,

I have an UpdatePanel (upCart) inside a master page that contains a label.
A child page I created from the master page has another UpdatePanel (upContent) within which I have a button that I intend to use as a trigger for upCart.

How do I accomplish this?

Here is an extract from my master page:
MASTER PAGE
<asp:scriptmanager... xmlns:asp="#unknown" />

<script runat="server" type="text/C#">
    void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Session["dummy"] == null)
                Session["dummy"] = 1;
        }

        lbItem.Text = Session["dummy"].ToString() + " items";
    }
</script>

<asp:contentplaceholder id="contentCart" runat="server" xmlns:asp="#unknown">
<asp:updatepanel id="upCart" runat="server" updatemode="Always" rendermode="Inline">
<contenttemplate>
    <table>
    <tr>
    <td>
    <asp:label id="lbItem" runat="server" />
    </td>
    </tr>
    </table>
    </contenttemplate>
    </asp:updatepanel>
    </asp:contentplaceholder>


And here is an extract from the child page
CHILD PAGE
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        ScriptManager sm1 = (ScriptManager)this.Master.FindControl("ScriptManager1");
        sm1.RegisterAsyncPostBackControl(Button1);          
    }
    
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (TextBox2.Text != "")
        {
            Session["dummy"] = (int)Session["dummy"] + int.Parse(TextBox2.Text);
        }                 
    }
</script>


I thought that registering the Button1 with the ScriptManager on the master page would provide this functionality, but it dosen't. I even tried getting an instance of upCart from the master page using(UpdatePanel)this.Master.FindControl("upCart"), but it returns as a null.

Please help!

Live in fragments no longer. Only connect.

QuestionGridview inside Formview Pin
TheEagle9-Nov-08 4:18
TheEagle9-Nov-08 4:18 
QuestionLog4Net AsyncAppender and ASP.Net [modified] Pin
fdbpro9-Nov-08 0:53
fdbpro9-Nov-08 0:53 
QuestionHow do i use from a proxy class? Pin
aref878-Nov-08 22:10
aref878-Nov-08 22:10 
AnswerRe: How do i use from a proxy class? Pin
Christian Graus9-Nov-08 2:38
protectorChristian Graus9-Nov-08 2:38 
QuestionSend Mail (Error) Pin
mehrdadc488-Nov-08 11:49
mehrdadc488-Nov-08 11:49 
AnswerRe: Send Mail (Error) Pin
Christian Graus9-Nov-08 2:36
protectorChristian Graus9-Nov-08 2:36 
Questionhow to design and develop a database driven website for personnel info? Pin
Member 31916418-Nov-08 8:26
Member 31916418-Nov-08 8:26 
AnswerRe: how to design and develop a database driven website for personnel info? Pin
Christian Graus8-Nov-08 8:36
protectorChristian Graus8-Nov-08 8:36 
AnswerRe: how to design and develop a database driven website for personnel info? Pin
Paul Conrad8-Nov-08 13:13
professionalPaul Conrad8-Nov-08 13:13 
GeneralRe: how to design and develop a database driven website for personnel info? Pin
Member 31916419-Nov-08 0:14
Member 31916419-Nov-08 0:14 
GeneralRe: how to design and develop a database driven website for personnel info? Pin
Christian Graus9-Nov-08 2:39
protectorChristian Graus9-Nov-08 2:39 
AnswerRe: how to design and develop a database driven website for personnel info? Pin
Jeremy Falcon9-Nov-08 10:23
professionalJeremy Falcon9-Nov-08 10:23 
Questionhow to show and hide datalist content? Pin
hardyyanto8-Nov-08 3:46
hardyyanto8-Nov-08 3:46 
AnswerRe: how to show and hide datalist content? Pin
Christian Graus8-Nov-08 8:38
protectorChristian Graus8-Nov-08 8:38 
GeneralRe: how to show and hide datalist content? Pin
hardyyanto9-Nov-08 7:09
hardyyanto9-Nov-08 7:09 
GeneralRe: how to show and hide datalist content? Pin
Christian Graus9-Nov-08 9:32
protectorChristian Graus9-Nov-08 9:32 
GeneralRe: how to show and hide datalist content? Pin
hardyyanto9-Nov-08 16:33
hardyyanto9-Nov-08 16:33 

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.