473,395 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

identification of NET objects

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
2 997
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brad H McCollum | last post by:
I've looked through many suggestions and partial examples all over this newsgroup and still am not coming up with anything that does specifically what I'm wanting to accomplish. I'm writing a VB...
5
by: Carl Ribbegaardh | last post by:
Is there any known list of compiler identification macros? I'm using VS 2003, g++ on windows, sun's cc and g++ on solaris. Is it possible to identify the compiler using macros? I'm aware of WIN32...
2
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. I recently purchased an Ink Dye Sublimation printer and I'm looking to do something with Access for my employee ID Cards. I know I shouldn't store...
23
by: Roel Melchers | last post by:
My ACCESS-database contains all members of my association. When the members attend to a meeting I want to record their presence. When they enter they identify themselves by putting their finger...
5
by: Mike | last post by:
I am relatively new to Web development and I have a pretty simple question. How do I get the web site identification information (from IIS) inside my aspx.cs? Spacifically I want the web pages...
2
by: Bernie Yaeger | last post by:
How do I get the data type of a given column of a datatable? Tx for any help. Bernie Yaeger
2
by: suresh | last post by:
Hello to you all In my .Net application, I want to import document images (Tiff images), having same format, in a batch, For e.g. I have a document folder containing mixed images like...
7
by: thomson | last post by:
Hi All, Connecting to SQL Server we say its an Un Managed connection Can any one tell me whether this statement objConnection = new System.Data.OleDb.OleDbConnection(strConnectionString); ...
4
by: baramuse | last post by:
Hi all, before starting I must say that I'm a remoting beginner so I certainly didn't assimilate all the tricks of remoting so please be kind ;) Now here is my interrogation: I'm working on a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.