knowledgehungry Posted July 2, 2007 Share Posted July 2, 2007 hi all, when i tried running one of the code from the given ASP.NET examples in w3schools.com i found following error.My code Look Like this:<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" action="Default.aspx" method="post" runat="server"> <div> Your name: <input type="text" name="fname" size="20"> <input type="submit" value="Submit"> </div> </form><%dim fname;fname=Request.Form("fname")If fname<>"" ThenResponse.Write("Hello " & fname & "!")End If%></body></html>================ERROR:=================Source Error: Line 19: <%Line 20: dim fname;Line 21: fname=Request.Form("fname")Line 22: If fname<>"" ThenLine 23: Response.Write("Hello " & fname & "!") Link to comment Share on other sites More sharing options...
aspnetguy Posted July 3, 2007 Share Posted July 3, 2007 try this <%Dim fname As String;fname=Request.Form("fname")If fname<>"" ThenResponse.Write("Hello " & fname & "!")End If%> Link to comment Share on other sites More sharing options...
knowledgehungry Posted July 3, 2007 Author Share Posted July 3, 2007 well i tried this but , it doesnot work.Actually the problem i think is with the use of javascript. Can u please rectify.Thanks a lot. Link to comment Share on other sites More sharing options...
aspnetguy Posted July 4, 2007 Share Posted July 4, 2007 well i tried this but , it doesnot work.Actually the problem i think is with the use of javascript. Can u please rectify.Thanks a lot.You don;t have any javascript in the provided code. Can you post the whoile page and the spcific error message and stack trace. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.