Wednesday, March 28, 2012

Web control does net load display

I stat doing my First ASP.NET Page
Hello world

Using web control "label , button and textbox"

I run it using the matrix server and it shows everything.

When I try to use IIS 5.1 it only show the text in my case it was Label
All I can see in the page is "Label" no button or text field

What shall i do to correct this and how can i switch between running it in matrix server and iis

Thank you.are you opening internet explorer to run it? Post your code so we can see if it has any problems...
************* Edited by moderator Adec ***************
Inserted missing < code></ code> tags. Always include such
tags when including code in your postings. Don't force the
moderators to do this for you. Many readers disregard
postings without the code tags.
**************************************************


<%@. Page Language="VB" %>
<script runat="server"
' Insert page code here
'
Sub Button1_Click(sender As Object, e As EventArgs)
Label1.Text = "Hellow" & TextBox1.Text & " Welcomee to the ASP.net web materix project!"
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<p>
<asp:Label id="Label1" runat="server">Label</asp:Label>
</p>
<p>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
</p>
<p>
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
</p>
<!-- Insert content here -->
</form>
</body>
</html>

It is very simple code
When I open the page I use address par for ie6 http://localhost/matrx/ss.aspx
The above code should show a label a text area and a button
When I use IIS http://localhost/matrx/ss.aspx it only show "label"

When I use matrix server http://localhost:8080/ss.aspx
It shows every thing the code should show
Label
Text area
Button

Thank you
Solved thank you,
here is how

the framwrok is the problem

i used this command to uninstall and install again the asp.net part of the framework


find aspnet_regiis.exe in framework
then form cmmand use

aspnet_regiis.exe -u -> uninstall
aspnet_regiis.exe -i -> to install

0 comments:

Post a Comment