Hi guys!
I am new to ASP.Net. I wanted to try some simple examples, but it doesn't work.
This is the code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="trySQL.aspx.vb" Inherits="prjMenu.trySQL"%>
<script runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
link1.HRef="End Sub
</script>
<html>
<body>
<form runat="server" ID="Form1">
<a id="link1" runat="server">Visit W3Schools!</a>
</form>
</body>
</html>
The result is only the text Visit W3Schools!, but it's not a link. I have the same problem with textbox, button, and so on.
When I try the following:
<asp:Button id="button1" Text="Click me!" runat="server"></asp:Button>
the button does not appear.
What is the problem?
I'm using Windows 2000 Pro (so IIS should be installed), I have installed .Net Framework and Visual Studio.Net.
I have some ASP 2.0 projects wich work correctly.
On my Control Panel I have both icons: Internet Services Manager and Personal Web Manager. Is it normal? How can I check if I am using IIS ot PWS. I know that ASP.Net doesn't work with PWS. When I click on Add/Remove Windows components, I see that IIS is already installed.
What should I do? Your help is highly appeciated!
I am new to ASP.Net. I wanted to try some simple examples, but it doesn't work.
This is the code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="trySQL.aspx.vb" Inherits="prjMenu.trySQL"%>
<script runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
link1.HRef="End Sub
</script>
<html>
<body>
<form runat="server" ID="Form1">
<a id="link1" runat="server">Visit W3Schools!</a>
</form>
</body>
</html>
The result is only the text Visit W3Schools!, but it's not a link. I have the same problem with textbox, button, and so on.
When I try the following:
<asp:Button id="button1" Text="Click me!" runat="server"></asp:Button>
the button does not appear.
What is the problem?
I'm using Windows 2000 Pro (so IIS should be installed), I have installed .Net Framework and Visual Studio.Net.
I have some ASP 2.0 projects wich work correctly.
On my Control Panel I have both icons: Internet Services Manager and Personal Web Manager. Is it normal? How can I check if I am using IIS ot PWS. I know that ASP.Net doesn't work with PWS. When I click on Add/Remove Windows components, I see that IIS is already installed.
What should I do? Your help is highly appeciated!