5
Answers

Unable to access my ASP.NET Application.

Kartik Pawar

Kartik Pawar

7y
794
1
Hello everyone,
I"m new to ASP.NET Web Forms. I have created a registration page in ASP.NET after executing i'm unable to use it in the browser and i'm getting an error message about JQuery.
Please help me to fix this issue.
Thank you. 

 
 

Attachment: ASP.NET_JQuery.zip

Answers (5)
0
Sandy

Sandy

NA 823 66.9k 7y
HI Kartik,
I think you don't have default.aspx page in your project you it didn't get any default page and throwing an error in browser.
 
Either set default page  or enter the PageName in browser
like : localhost:59740/test.aspx
 
Hope this help!
 
Thanks 
Accepted
0
Satyaprakash Samantaray

Satyaprakash Samantaray

56 29.2k 10.3m 7y
However u should use error handling exception
0
Bryian Tan

Bryian Tan

NA 9.7k 1.6m 7y
I think the configuration is the issue. This link might help: https://msdn.microsoft.com/en-us/library/xdt4thhy.aspx
0
Kartik Pawar

Kartik Pawar

591 1.9k 721.1k 7y
Is there any problem with the code because i am unable to access this registration page.    
 
  
<form id="form1" runat="server">
<table class="auto-style1">
<tr>
<td class="auto-style2">UserName</td>
<td>
<asp:TextBox ID="TextBoxUName" runat="server" Width="180px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxUName" ErrorMessage="Username is required" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">E-Mail</td>
<td>
<asp:TextBox ID="TextBoxEmail" runat="server" Width="180px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="E-Mail Id is required" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="You must enter a valid E-Mail id" ForeColor="Red" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">Password</td>
<td>
<asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password" Width="180px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxPassword" ErrorMessage="Password is required" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">Confirm Password</td>
<td>
<asp:TextBox ID="TextBoxConPassword" runat="server" TextMode="Password" Width="180px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxConPassword" ErrorMessage="Confirm password is required" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:CompareValidator ID="CompareValidatorPassword" runat="server" ControlToCompare="TextBoxPassword" ControlToValidate="TextBoxConPassword" ErrorMessage="Please insert the correct password" ForeColor="Red"></asp:CompareValidator>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">&nbsp;</td>
<td>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />
<input id="Reset1" type="reset" value="reset" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="auto-style2">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<div>
</div>
</form>                                                                                                                                                                                                     
 
0
Bryian Tan

Bryian Tan

NA 9.7k 1.6m 7y
The screenshoot doesn't show anything about jQuery. I'm assuming your description is correct, the application having issue accessing the jQuery script before login to the application. if that the case, update the web.config to allow anonymous access to the script. Assuming the jQuery script and all related JavaScript are in the Script folder
  1. <location path="Script">  
  2.       <system.web>  
  3.          <authorization>  
  4.             <allow users="?"/>  
  5.          </authorization>  
  6.       </system.web>  
  7.    </location> 
 
https://stackoverflow.com/questions/10351075/allow-anonymous-authentication-for-a-single-folder-in-web-config