Click here to Skip to main content
15,915,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionwrite file Pin
Vijayitsb21-May-08 19:08
Vijayitsb21-May-08 19:08 
AnswerRe: write file Pin
Abhijit Jana21-May-08 19:36
professionalAbhijit Jana21-May-08 19:36 
GeneralRe: write file Pin
Vijayitsb21-May-08 19:49
Vijayitsb21-May-08 19:49 
GeneralRe: write file Pin
eyeseetee21-May-08 21:40
eyeseetee21-May-08 21:40 
QuestionCalendar Problem Pin
Revathij21-May-08 18:30
Revathij21-May-08 18:30 
AnswerRe: Calendar Problem Pin
Abhijit Jana21-May-08 19:00
professionalAbhijit Jana21-May-08 19:00 
AnswerRe: Calendar Problem Pin
Vijayitsb21-May-08 19:09
Vijayitsb21-May-08 19:09 
QuestionValidator not working when hitting enter on textbox twice Pin
AlexeiXX321-May-08 17:25
AlexeiXX321-May-08 17:25 
Does anyone know why the validator doesnt prevent postback when hitting enter on textbox twice?

I just have this controls in my form:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
    ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" ></asp:RequiredFieldValidator><br />
<asp:Button ID="Button1" runat="server" Text="Button"  />


Ive also tryed putting this inside a panel:
<asp:Panel ID="Panel1" runat="server" DefaultButton="Button1">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
    ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" ></asp:RequiredFieldValidator><br />
<asp:Button ID="Button1" runat="server" Text="Button"  /></asp:Panel>

When i hit enter inside textbox, the validator appears, but if i hit enter again, the page is posted back

Does anyone know why?

Thanks in advance

Alexei Rodriguez

AnswerRe: Validator not working when hitting enter on textbox twice Pin
gnjunge21-May-08 21:24
gnjunge21-May-08 21:24 
QuestionHow to implement windows services like thread in ASP.net? Pin
pankazmittal21-May-08 10:59
pankazmittal21-May-08 10:59 
AnswerRe: How to implement windows services like thread in ASP.net? Pin
Christian Graus21-May-08 13:43
protectorChristian Graus21-May-08 13:43 
QuestionStart and stop iisadmin programatically Pin
Member 344944221-May-08 9:00
Member 344944221-May-08 9:00 
AnswerRe: Start and stop iisadmin programatically Pin
led mike21-May-08 9:36
led mike21-May-08 9:36 
AnswerRe: Start and stop iisadmin programatically Pin
Member 28960888-Jun-08 8:51
Member 28960888-Jun-08 8:51 
Questiondisplaying an image Pin
Mohammad Al Hoss21-May-08 8:47
Mohammad Al Hoss21-May-08 8:47 
AnswerRe: displaying an image Pin
Christian Graus21-May-08 14:02
protectorChristian Graus21-May-08 14:02 
QuestionCopying a dll from the windows assembly into project Pin
Ekjon21-May-08 7:54
Ekjon21-May-08 7:54 
AnswerRe: Copying a dll from the windows assembly into project Pin
led mike21-May-08 9:42
led mike21-May-08 9:42 
GeneralRe: Copying a dll from the windows assembly into project Pin
Ekjon21-May-08 10:31
Ekjon21-May-08 10:31 
GeneralRe: Copying a dll from the windows assembly into project Pin
led mike21-May-08 12:04
led mike21-May-08 12:04 
QuestionVisual Studio (open opposite) Pin
Todd Smith21-May-08 7:12
Todd Smith21-May-08 7:12 
AnswerRe: Visual Studio (open opposite) Pin
led mike21-May-08 9:39
led mike21-May-08 9:39 
GeneralRe: Visual Studio (open opposite) Pin
Todd Smith23-May-08 9:21
Todd Smith23-May-08 9:21 
GeneralRe: Visual Studio (open opposite) Pin
led mike23-May-08 10:09
led mike23-May-08 10:09 
QuestionSys.WebForms.PageRequestManagerServerErrorException? Pin
murali_utr21-May-08 5:35
murali_utr21-May-08 5:35 

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.