Click here to Skip to main content
15,904,653 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: AutoClose of DivisionTag Window ....... Pin
Arindam Tewary30-Mar-10 21:11
professionalArindam Tewary30-Mar-10 21:11 
Questionhow to databind a adrotator [modified] Pin
ships_agr30-Mar-10 18:33
ships_agr30-Mar-10 18:33 
Questionproblem with datetime datatype of sqlserver 2005 using asp.net Pin
ships_agr30-Mar-10 18:30
ships_agr30-Mar-10 18:30 
AnswerRe: problem with datetime datatype of sqlserver 2005 using asp.net Pin
test-0930-Mar-10 18:49
test-0930-Mar-10 18:49 
AnswerRe: problem with datetime datatype of sqlserver 2005 using asp.net Pin
Arindam Tewary30-Mar-10 19:25
professionalArindam Tewary30-Mar-10 19:25 
AnswerRe: problem with datetime datatype of sqlserver 2005 using asp.net Pin
Dinesh Mani30-Mar-10 20:16
Dinesh Mani30-Mar-10 20:16 
GeneralRe: problem with datetime datatype of sqlserver 2005 using asp.net Pin
ships_agr31-Mar-10 3:50
ships_agr31-Mar-10 3:50 
Questionrepeater control Pin
test-0930-Mar-10 18:26
test-0930-Mar-10 18:26 
AnswerRe: repeater control Pin
Arun Jacob30-Mar-10 20:02
Arun Jacob30-Mar-10 20:02 
GeneralRe: repeater control Pin
test-0930-Mar-10 20:10
test-0930-Mar-10 20:10 
AnswerRe: repeater control Pin
Arun Jacob30-Mar-10 20:12
Arun Jacob30-Mar-10 20:12 
GeneralRe: repeater control Pin
test-0930-Mar-10 20:19
test-0930-Mar-10 20:19 
AnswerRe: repeater control Pin
Arun Jacob30-Mar-10 20:23
Arun Jacob30-Mar-10 20:23 
GeneralRe: repeater control Pin
test-0930-Mar-10 20:46
test-0930-Mar-10 20:46 
AnswerRe: repeater control Pin
Arun Jacob30-Mar-10 20:53
Arun Jacob30-Mar-10 20:53 
GeneralRe: repeater control Pin
test-0930-Mar-10 21:03
test-0930-Mar-10 21:03 
GeneralRe: repeater control Pin
Arindam Tewary30-Mar-10 21:15
professionalArindam Tewary30-Mar-10 21:15 
Questionusing javascript to create seat chart Pin
ships_agr30-Mar-10 18:15
ships_agr30-Mar-10 18:15 
AnswerRe: using javascript to create seat chart Pin
sashidhar30-Mar-10 23:34
sashidhar30-Mar-10 23:34 
GeneralRe: using javascript to create seat chart [modified] Pin
ships_agr31-Mar-10 3:48
ships_agr31-Mar-10 3:48 
GeneralRe: using javascript to create seat chart Pin
sashidhar31-Mar-10 19:39
sashidhar31-Mar-10 19:39 
GeneralRe: using javascript to create seat chart Pin
ships_agr1-Apr-10 3:32
ships_agr1-Apr-10 3:32 
GeneralRe: using javascript to create seat chart(i tried nd presenting the code here) Pin
ships_agr1-Apr-10 5:21
ships_agr1-Apr-10 5:21 
hi sashidhar.....

i tried to use the update panel.....i took an update panel.....and 5 buttons....took a session variable and incremented it on click event of each button.....it all worked but the problem now is if i refresh the page the value of session variable is not refreshed....counting starts from the last where the page was refreshed....i'm providing you the code....Have a look....!!!
The default.aspx File:
<body>
<form id="form1" runat="server">
<div>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<br />
<asp:Button ID="Button6" runat="server" onclick="Button6_Click" Text="cancel" />
<br />
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<br />
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="Panel Created"></asp:Label>
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" BackColor="Aqua"
onclick="Button1_Click" Text="Button" />
<br />
<br />
<asp:Button ID="Button2" runat="server" BackColor="Aqua"
onclick="Button2_Click" Text="Button" />
<br />
<br />
<asp:Button ID="Button3" runat="server" BackColor="Aqua"
onclick="Button3_Click" Text="Button" />
<br />
<br />
<asp:Button ID="Button4" runat="server" BackColor="Aqua"
onclick="Button4_Click" Text="Button" />
<br />
<br />
<asp:Button ID="Button5" runat="server" BackColor="Aqua"
onclick="Button5_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>

</div>
</form>
</body>



now the Default.aspx.cs File:
The code was given on click event of all buttons taken in update panel:

int i = Convert.ToInt32(Session["i"]);
i++;
Session["i"] = i.ToString();
Button3.BackColor = System.Drawing.Color.Red;
Label1.Text = "Refreshed at " + DateTime.Now.ToString();
Button3.Enabled = false;
GeneralRe: using javascript to create seat chart(i tried nd presenting the code here) Pin
ships_agr1-Apr-10 5:26
ships_agr1-Apr-10 5:26 
QuestionReg IIS Pin
sowjanya330-Mar-10 17:48
sowjanya330-Mar-10 17:48 

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.