Click here to Skip to main content
15,902,112 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I need help with sequel query with INNER/OUTER JOIN Pin
hurrem16-Aug-07 12:35
hurrem16-Aug-07 12:35 
QuestionCompiler Error Message: CS0117 Pin
BigtimeOneEleven16-Aug-07 8:31
BigtimeOneEleven16-Aug-07 8:31 
AnswerRe: Compiler Error Message: CS0117 Pin
Christian Graus16-Aug-07 11:38
protectorChristian Graus16-Aug-07 11:38 
QuestionConnecting to SQL !!! Pin
mrkeivan16-Aug-07 7:11
mrkeivan16-Aug-07 7:11 
AnswerRe: Connecting to SQL !!! Pin
mani_iips16-Aug-07 7:16
mani_iips16-Aug-07 7:16 
GeneralRe: Connecting to SQL !!! Pin
mrkeivan16-Aug-07 7:26
mrkeivan16-Aug-07 7:26 
GeneralRe: Connecting to SQL !!! Pin
mani_iips16-Aug-07 7:29
mani_iips16-Aug-07 7:29 
QuestionCan Someone Explain this (ref Page Life Cycle) Pin
mani_iips16-Aug-07 7:08
mani_iips16-Aug-07 7:08 
I have made a user control ( text.ascx) with a text box (txtUserControl) and a button (btnUserControl) .

<br />
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="test.ascx.cs" Inherits="WebApplication1.test" %><br />
<br />
<asp:TextBox ID="txtUserControl" runat="server"></asp:TextBox><br />
<br />
<asp:Button ID="btnUserControl" runat="server" Text="Button" /><br />
<br />


Now i load this usercontrol dynamically on (default.aspx) into two panels:

<br />
 public partial class _Default : System.Web.UI.Page<br />
    {<br />
        protected void Page_Load(object sender, EventArgs e)<br />
        {<br />
            test tst = Page.LoadControl(@"~\test.ascx") as test;<br />
            pnlDefaultOne.Controls.Add(tst);<br />
        }<br />
<br />
        protected void btnDefault_Click(object sender, EventArgs e)<br />
        {<br />
            test tst = Page.LoadControl(@"~\test.ascx") as  test;<br />
            pnlDefaultTwo.Controls.Add(tst);<br />
        }<br />
    }<br />


Now, the question is about the beahviour of textbox (txtUserControl), and its viewstate.

When i click btnDefault.. it loads the userControl in panelTwo.
now when i enter values in both the textboxes (each of a usercontrol), and click the btnDefault, the value in the first control (the one loaded at page_load) is persisted, while in the other one which was loaded in btnEvent is NOT.

i have read decent enough abt page cycle and am aware abt rendering, viewstate, postBackData.
BUt cant really figure out the reason behind this.

Any comment on the same will be of help.

Thanks in advance.
QuestionGod dam dates Pin
Sam Heller16-Aug-07 6:18
Sam Heller16-Aug-07 6:18 
AnswerRe: God dam dates Pin
ToddHileHoffer16-Aug-07 8:11
ToddHileHoffer16-Aug-07 8:11 
AnswerRe: God dam dates Pin
Not Active16-Aug-07 9:25
mentorNot Active16-Aug-07 9:25 
Questionwww.xtravels.com is not working inside the Host Server Pin
pubududilena16-Aug-07 5:41
pubududilena16-Aug-07 5:41 
AnswerRe: www.xtravels.com is not working inside the Host Server Pin
Michael Sync16-Aug-07 5:47
Michael Sync16-Aug-07 5:47 
GeneralRe: www.xtravels.com is not working inside the Host Server Pin
Sam Heller16-Aug-07 6:20
Sam Heller16-Aug-07 6:20 
GeneralRe: www.xtravels.com is not working inside the Host Server Pin
pubududilena16-Aug-07 21:00
pubududilena16-Aug-07 21:00 
QuestionHow to stop server side event firing based on client side event [modified] Pin
here2learn16-Aug-07 5:00
here2learn16-Aug-07 5:00 
AnswerRe: How to stop server side event firing based on client side event Pin
ToddHileHoffer16-Aug-07 7:48
ToddHileHoffer16-Aug-07 7:48 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn16-Aug-07 18:34
here2learn16-Aug-07 18:34 
QuestionEmail in ASP.NET : Plz it's very urgent Pin
.NET- India 16-Aug-07 3:04
.NET- India 16-Aug-07 3:04 
AnswerRe: Email in ASP.NET : Plz it's very urgent Pin
Sathesh Sakthivel16-Aug-07 3:10
Sathesh Sakthivel16-Aug-07 3:10 
GeneralRe: Email in ASP.NET : Plz it's very urgent Pin
.NET- India 16-Aug-07 3:20
.NET- India 16-Aug-07 3:20 
GeneralRe: Email in ASP.NET : Plz it's very urgent Pin
Michael Sync16-Aug-07 3:49
Michael Sync16-Aug-07 3:49 
AnswerRe: Email in ASP.NET : Plz it's very urgent Pin
Urs Enzler16-Aug-07 3:48
Urs Enzler16-Aug-07 3:48 
AnswerRe: Email in ASP.NET : Plz it's very urgent Pin
Not Active16-Aug-07 9:21
mentorNot Active16-Aug-07 9:21 
Questionasp.net 1.1 mail shows only ? mark when displays in yahoo account Pin
Rahees8316-Aug-07 2:32
Rahees8316-Aug-07 2:32 

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.