Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Side Problem

Status
Not open for further replies.

ratcho

Programmer
Joined
Jul 25, 2002
Messages
3
Location
CA
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=&quot;vb&quot; AutoEventWireup=&quot;false&quot; Codebehind=&quot;trySQL.aspx.vb&quot; Inherits=&quot;prjMenu.trySQL&quot;%>

<script runat=&quot;server&quot;>
Sub Page_Load(Sender As Object, E As EventArgs)
link1.HRef=&quot;End Sub
</script>

<html>
<body>
<form runat=&quot;server&quot; ID=&quot;Form1&quot;>
<a id=&quot;link1&quot; runat=&quot;server&quot;>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=&quot;button1&quot; Text=&quot;Click me!&quot; runat=&quot;server&quot;></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!
 
you have no apparent need for the form and shouldn't this:

<a id=&quot;Link1&quot; runat=&quot;server&quot;>Visit W3Schools!</a>

be

<asp:a id=&quot;Link1&quot; runat=&quot;server&quot;>Visit W3Schools!</asp:a>

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top