i want to run .aspx page in in my internet browser and he is showing this message file attached
what is the problem
<%@ Page Language="VB" Debug="true" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.Sql" %>
<%@ import Namespace="System.Data.SqlClient" %>
<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
Response.Redirect("index.aspx")
End Sub
Sub Button1_Click_1(sender As Object, e As EventArgs)
'Function MumtazInsert() As Integer
Dim connectionString As String = "Data Source=mumtz;Initial Catalog=Mumtazshah;Integrated Security=True"
'"server='(local)'; trusted_connection=true; database='Mumtazshah'"
Dim dbConnection As System.Data.IDbConnection = New System.Data.SqlClient.SqlConnection(connectionString)
Dim queryString As String = "INSERT INTO [MumtazProduct] ([Sno], [Pname], [Company], [Cataogry], [PRate], [PDa" & _
"te], [PPlace], [SaleRate], [MiniSaleRate], [Stock]) VALUES ( '" & tbs.Text & "', '" & tbpname.Text & "', '" & tbcomp.Text & "'" & _
", '" & tbcat.Text & "', '" & tbrate.Text & "', '" & tbdt.Text & "', '" & tbpla.Text & "', '" & tbsr.Text & "', '" & tbmsr.Text & "', '" & tbstcok.Text & "')"
Dim dbCommand As System.Data.IDbCommand = New System.Data.SqlClient.SqlCommand
dbCommand.CommandText = queryString
dbCommand.Connection = dbConnection
Dim rowsAffected As Integer = 0
dbConnection.Open
Try
rowsAffected = dbCommand.ExecuteNonQuery
MsgBox("Record Enter Successfully", MsgBoxStyle.Information, "Record Info")
Finally
dbConnection.Close
End Try
'Return rowsAffected
'End Function
With (Me)
.tbs.Text = ""
.tbcat.Text = ""
.tbcomp.Text = ""
.tbdt.Text = ""
.tbpla.Text = ""
.tbpname.Text = ""
.tbrate.Text = ""
.tbsr.Text = ""
.tbstcok.Text = ""
.tbmsr.Text = ""
End With
End Sub
Sub Button3_Click(sender As Object, e As EventArgs)
Response.Redirect("msn.html")
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<table style="WIDTH: 496px; HEIGHT: 88px">
<tbody>
<tr>
<td colspan="2">
<asp:Label id="Label1" runat="server" text="Mumtaz Purchase" font-size="X-Large" font-bold="True"></asp:Label></td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label2" runat="server" text="Sno"></asp:Label></td>
<td>
<asp:TextBox id="tbs" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label3" runat="server" text="Product Name"></asp:Label></td>
<td>
<asp:TextBox id="tbpname" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label4" runat="server" text="Company"></asp:Label></td>
<td>
<asp:TextBox id="tbcomp" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label5" runat="server" text="Catagory"></asp:Label></td>
<td>
<asp:TextBox id="tbcat" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label6" runat="server" text="Purchase Rate"></asp:Label></td>
<td>
<asp:TextBox id="tbrate" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label7" runat="server" text="Purchase Date"></asp:Label></td>
<td>
<asp:TextBox id="tbdt" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label8" runat="server" text="Purchase Place"></asp:Label></td>
<td>
<asp:TextBox id="tbpla" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label9" runat="server" text="Sale Rate"></asp:Label></td>
<td>
<asp:TextBox id="tbsr" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label10" runat="server" text="Minimum Sale Rate"></asp:Label></td>
<td>
<asp:TextBox id="tbmsr" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Label id="Label11" runat="server" text="Stock"></asp:Label></td>
<td>
<asp:TextBox id="tbstcok" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td style="WIDTH: 206px">
<asp:Button id="Button1" onclick="Button1_Click_1" runat="server" Text="Save" Width="100px"></asp:Button>
</td>
<td>
<asp:Button id="Button3" onclick="Button3_Click" runat="server" Text="Exit" Width="100px"></asp:Button>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>