Click here to Skip to main content
15,889,480 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDropdownlist then open a new page [modified] Pin
MUSIWA16-Jan-08 12:10
MUSIWA16-Jan-08 12:10 
AnswerRe: Dropdownlist then open a new page Pin
MUSIWA21-Jan-08 5:35
MUSIWA21-Jan-08 5:35 
AnswerRe: Dropdownlist then open a new page Pin
MUSIWA21-Jan-08 5:37
MUSIWA21-Jan-08 5:37 
Questionforms authenticate problem Pin
scorpion_man198216-Jan-08 11:50
scorpion_man198216-Jan-08 11:50 
GeneralRe: forms authenticate problem Pin
Sam Xavier13-Mar-08 23:06
Sam Xavier13-Mar-08 23:06 
GeneralRe: forms authenticate problem Pin
scorpion_man198213-May-08 2:43
scorpion_man198213-May-08 2:43 
GeneralUser Accounts Pin
solarthur0116-Jan-08 11:42
solarthur0116-Jan-08 11:42 
QuestionUpdateProgress, UpdatePanel and Label Pin
Chavez0616-Jan-08 10:03
Chavez0616-Jan-08 10:03 
Hi there,

I have 1 Label (message), 2 Buttons (AddButton and RemoveButton) and 1 Textbox. When someone enters him/her e-mail to the Textbox:

if AddButton is clicked
E-mail address is adding to the database and Label gets value "You have added successfully"

if RemoveButton is clicked
E-mail address is removing from the database and Label gets value "You have removed successfully"

While Adding or Removing operation is processing
UpdateProgress writes "Processing..."

Everything works fine at the first adding and removing. If I repeat adding or removing without leaving web page, Label remains with exists value and when the operation is done (removing or addind), Label gets correct value. Sounds not bad but I want to set Label value to null while Processing. I wirte a line at the beginning of AddButton_Click and RemoveButton_Click but nothing changed...

The following codes are in the .aspx page:

<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<font size="3" color="#008800">Processing...</font>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="message" runat="server"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="AddButton" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="RemoveButton" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="mailtxt"
ErrorMessage="Not proper e-mail address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><div class="search_field">
<div class="search_form">
<asp:TextBox ID="mailtxt" class="search" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="mailtxt"
ErrorMessage="***" Font-Bold="True" Font-Size="Medium"></asp:RequiredFieldValidator><br /><br />
<asp:Button ID="AddButton" class="submit" runat="server" OnClick="AddButton_Click" Text="Add" />&nbsp;&nbsp;&nbsp;
<asp:Button ID="RemoveButton" class="submit" runat="server" Text="Remove" OnClick="RemoveButton_Click" /><br />

The following codes are in .aspx.cs file:

protected void AddButton_Click(object sender, EventArgs e)
{
message.Text = ""; //or message.Text=string.Empty;
...........................
}

protected void RemoveButton_Click(object sender, EventArgs e)
{
message.Text = "";
...........................
}

Do you have any idea about what should I do?

Thanks a lot...
AnswerRe: UpdateProgress, UpdatePanel and Label Pin
Chavez0618-Jan-08 7:11
Chavez0618-Jan-08 7:11 
QuestionFiltering into GridView Pin
Mr. Wonderful16-Jan-08 7:37
Mr. Wonderful16-Jan-08 7:37 
GeneralRe: Filtering into GridView Pin
pmarfleet16-Jan-08 8:54
pmarfleet16-Jan-08 8:54 
QuestionHow do I: use ASP.NET authentication provider by a Windows forms application Pin
Shimmy Weitzhandler16-Jan-08 7:07
Shimmy Weitzhandler16-Jan-08 7:07 
AnswerRe: How do I: use ASP.NET authentication provider by a Windows forms application Pin
Pete O'Hanlon16-Jan-08 11:26
mvePete O'Hanlon16-Jan-08 11:26 
GeneralRe: How do I: use ASP.NET authentication provider by a Windows forms application Pin
Shimmy Weitzhandler17-Jan-08 7:47
Shimmy Weitzhandler17-Jan-08 7:47 
GeneralBizarre asp.net issue greater than symbol [modified] Pin
Member 9616-Jan-08 6:09
Member 9616-Jan-08 6:09 
GeneralWeb application : Classes Pin
ss.mmm16-Jan-08 3:50
ss.mmm16-Jan-08 3:50 
GeneralRe: Web application : Classes Pin
just3ala216-Jan-08 5:04
just3ala216-Jan-08 5:04 
GeneralRe: Web application : Classes Pin
ss.mmm16-Jan-08 6:27
ss.mmm16-Jan-08 6:27 
GeneralRe: Web application : Classes Pin
Member 9616-Jan-08 6:36
Member 9616-Jan-08 6:36 
Generalneed a project title in asp.net for my final year project Pin
sathiya shalini16-Jan-08 3:49
sathiya shalini16-Jan-08 3:49 
GeneralRe: need a project title in asp.net for my final year project Pin
J4amieC16-Jan-08 4:20
J4amieC16-Jan-08 4:20 
GeneralRe: need a project title in asp.net for my final year project Pin
ToddHileHoffer16-Jan-08 7:23
ToddHileHoffer16-Jan-08 7:23 
GeneralRe: need a project title in asp.net for my final year project Pin
pmarfleet16-Jan-08 8:57
pmarfleet16-Jan-08 8:57 
GeneralRe: need a project title in asp.net for my final year project Pin
Vasudevan Deepak Kumar17-Jan-08 4:22
Vasudevan Deepak Kumar17-Jan-08 4:22 
QuestionWhat's the best type of database? Pin
Mohammad A Gdeisat16-Jan-08 3:25
Mohammad A Gdeisat16-Jan-08 3:25 

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.