By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,606 Members | 2,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,606 IT Pros & Developers. It's quick & easy.

identification of NET objects

P: n/a
guy
Hello

My browser doesnt know NET objects.
for example if i download this small asp.net page ,the Button ,label and
text box dont appear on the screen . only the text!!
how can i fix that???

<%@ Page Language="VB" %>
2:
3: <script runat="server">
4: Sub tbMessage_Change(Sender As Object, E As EventArgs)
5: lblMessage.Text = "Hello " + tbMessage.Text
6: End Sub
7: </script>
8:
9: <html><body>
10: <font size="5">Sam's Teach Yourself ASP.NET in 21 Days:
11: Day 2</font><hr><p>
12: <% Response.Write("Our First Page<p>") %>
13:
14: <form runat="server">
15: Please enter your name:
16: <asp:textbox id="tbMessage"
17: OnTextChanged="tbMessage_Change"
18: runat=server/>
19: <asp:button id="btSubmit" Text="Submit"
20: runat=server/><p>
21: <asp:label id="lblMessage" font-size="20pt"
22: runat=server/>
23: </form>
24: </body></html>
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
That's right. Your browser knows nothing of NET objects. Asp.Net does. It
knows how to make an html page out of .aspx file. That what Asp.Net is all
about.

Eliyahu

"guy" <al******@bezeqint.net> wrote in message
news:eC**************@TK2MSFTNGP11.phx.gbl...
Hello

My browser doesnt know NET objects.
for example if i download this small asp.net page ,the Button ,label and
text box dont appear on the screen . only the text!!
how can i fix that???

<%@ Page Language="VB" %>
2:
3: <script runat="server">
4: Sub tbMessage_Change(Sender As Object, E As EventArgs)
5: lblMessage.Text = "Hello " + tbMessage.Text
6: End Sub
7: </script>
8:
9: <html><body>
10: <font size="5">Sam's Teach Yourself ASP.NET in 21 Days:
11: Day 2</font><hr><p>
12: <% Response.Write("Our First Page<p>") %>
13:
14: <form runat="server">
15: Please enter your name:
16: <asp:textbox id="tbMessage"
17: OnTextChanged="tbMessage_Change"
18: runat=server/>
19: <asp:button id="btSubmit" Text="Submit"
20: runat=server/><p>
21: <asp:label id="lblMessage" font-size="20pt"
22: runat=server/>
23: </form>
24: </body></html>

Nov 19 '05 #2

P: n/a
Eliyahu Goldin wrote:
That's right. Your browser knows nothing of NET objects. Asp.Net
does. It knows how to make an html page out of .aspx file. That what
Asp.Net is all about.

Eliyahu

And to make the answer a bit longer:
Your page needs to have a .aspx extension (not .html), and you can't just load it
from the filesystem (file:// ...), but you need to access it through
IIS with .Net installed (http://localhost/...).
If you already had IIS installed before you installed the .Net framework,
then IIS will know how to process aspx pages.

Hans Kesting
"guy" <al******@bezeqint.net> wrote in message
news:eC**************@TK2MSFTNGP11.phx.gbl...
Hello

My browser doesnt know NET objects.
for example if i download this small asp.net page ,the Button ,label
and text box dont appear on the screen . only the text!!
how can i fix that???

<%@ Page Language="VB" %>
2:
3: <script runat="server">
4: Sub tbMessage_Change(Sender As Object, E As EventArgs)
5: lblMessage.Text = "Hello " + tbMessage.Text
6: End Sub
7: </script>
8:
9: <html><body>
10: <font size="5">Sam's Teach Yourself ASP.NET in 21 Days:
11: Day 2</font><hr><p>
12: <% Response.Write("Our First Page<p>") %>
13:
14: <form runat="server">
15: Please enter your name:
16: <asp:textbox id="tbMessage"
17: OnTextChanged="tbMessage_Change"
18: runat=server/>
19: <asp:button id="btSubmit" Text="Submit"
20: runat=server/><p>
21: <asp:label id="lblMessage" font-size="20pt"
22: runat=server/>
23: </form>
24: </body></html>

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.