Click here to Skip to main content
15,887,135 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
AnswerRe: Reg IIS Pin
Arindam Tewary30-Mar-10 19:31
professionalArindam Tewary30-Mar-10 19:31 
GeneralRe: Reg IIS Pin
sowjanya331-Mar-10 23:37
sowjanya331-Mar-10 23:37 
AnswerRe: Reg IIS Pin
sowjanya330-Mar-10 21:27
sowjanya330-Mar-10 21:27 
Questiondialog box on if condition Pin
ships_agr30-Mar-10 9:23
ships_agr30-Mar-10 9:23 
AnswerRe: dialog box on if condition Pin
Not Active30-Mar-10 9:50
mentorNot Active30-Mar-10 9:50 
JokeRe: dialog box on if condition Pin
T M Gray30-Mar-10 10:09
T M Gray30-Mar-10 10:09 
GeneralRe: dialog box on if condition Pin
Not Active30-Mar-10 10:27
mentorNot Active30-Mar-10 10:27 
GeneralRe: dialog box on if condition Pin
ships_agr30-Mar-10 18:08
ships_agr30-Mar-10 18:08 
QuestionA problem with Textbox and the property .SelectedText Pin
_ASPAle_30-Mar-10 9:15
_ASPAle_30-Mar-10 9:15 
AnswerRe: A problem with Textbox and the property .SelectedText Pin
Gregory Gadow30-Mar-10 9:28
Gregory Gadow30-Mar-10 9:28 
GeneralRe: A problem with Textbox and the property .SelectedText Pin
_ASPAle_30-Mar-10 12:02
_ASPAle_30-Mar-10 12:02 
GeneralRe: A problem with Textbox and the property .SelectedText Pin
Gregory Gadow30-Mar-10 18:22
Gregory Gadow30-Mar-10 18:22 
GeneralRe: A problem with Textbox and the property .SelectedText Pin
Venkatesh Mookkan31-Mar-10 1:36
Venkatesh Mookkan31-Mar-10 1:36 
QuestionPopulate A Label in Listview From VB Event Pin
MarkPhD30-Mar-10 7:52
MarkPhD30-Mar-10 7:52 
AnswerRe: Populate A Label in Listview From VB Event Pin
Gregory Gadow30-Mar-10 8:04
Gregory Gadow30-Mar-10 8:04 

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.