Click here to Skip to main content
15,867,686 members

Comments by Jariwala Amin (Top 6 by date)

Jariwala Amin 8-Oct-22 2:46am View    
Did you find any solution? I am also facing this issue.
Jariwala Amin 4-Jul-15 13:34pm View    
This is my Full demo aspx code I tried in new aspx page but this is not working. This page doesn't contain any js or css only pure asp.net controls are there as you can see.
----------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="MyWebsite.Website.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" ValidationGroup="ValidateForm">
<asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="ValidateForm" />
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="true"
ControlToValidate="TextBox1" ValidationGroup="ValidateForm">

</div>
</form>
</body>
</html>
Jariwala Amin 4-Jul-15 13:01pm View    
Deleted
This is my Full demo aspx code I tried in new aspx page but this is not working. This page doesn't contain any js or css only pure asp.net controls are there as you can see.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Room2Shop.Website.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" ValidationGroup="ValidateForm">
<asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="ValidateForm" />
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="true"
ControlToValidate="TextBox1" ValidationGroup="ValidateForm">

</div>
</form>
</body>
</html>
Jariwala Amin 4-Jul-15 3:27am View    
I have added validation field as you can see. But this field is not validating my control. My code is fine and i did same validation method to my previous websites and all are working fine. But in this website I have added requiredfieldvalidator but it is not working or not validating aspx controls.
Jariwala Amin 4-Jul-15 2:33am View    
That's all what I have. My page contain only this form which i have submitted here.