Guest rumana Posted August 5, 2006 Share Posted August 5, 2006 I am being able to see only codes with in HTML not of Script ones: like in the following I can only see the text: Enter your name: at the browser nothing else. but it works fine in my local host. What might be the problem.?? pls help <html><script language="VB" runat="server">Sub submit(sender As Object, e As EventArgs) lbl1.Text="Your name is " & txt1.TextEnd Sub</script><body><form runat="server">Enter your name:<asp:TextBox id="txt1" runat="server" /><asp:Button OnClick="submit" Text="Submit" runat="server" /><p><asp:Label id="lbl1" runat="server" /></p></form> </body></html>Thanks, Link to comment Share on other sites More sharing options...
aspnetguy Posted August 7, 2006 Share Posted August 7, 2006 you have no page declartion for starters...Does you host support ASP.Net...it sounds like they don't.Check the page source in your browser and post it. I'll be able to tell from that. Link to comment Share on other sites More sharing options...
pulpfiction Posted August 17, 2006 Share Posted August 17, 2006 ......... but it works fine in my local host. What might be the problem.?? pls helpThis is a lil confusing.... The code will work only when its in the localhost, since ASP.NET is a server side scripting it needs a server running. if you have the file else where it will not completly work. like you said only the HTML part will show up.. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 18, 2006 Share Posted August 18, 2006 You developed this with your own PC using IIS, .Net framework, running localhost right?Where is the live version being run? On a hosting company's server? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now