ASP/C# Problem...please help oh wise programming people :)

  • Thread starter Thread starter Corey Dyke
  • Start date Start date
C

Corey Dyke

K here's what happened. For my English project at DeVry, I had to design a
website for a company of my choice. So since my dad has been after me for
years to do one for him, I decided to finally do it. So I decided to do
most of the pages in HTML, which i'll be doing soon. And since he's a
Flooring Contractor, I decided to do an Estimate Sheet page in ASP. I've
done C# courses and never had any problems with the programming aspect, but
now I've encountered a couple of problems.

At first, everything was going fine. then my IIS went crazy, so I
uninstalled it, then my project wouldn't work at all. Then I reinstalled my
IIS, so the project loads fine now, but now when I build my solution and run
it, all that shows up on my page is the text. none of the text boxes,
labels, or buttons show up. I have no clue how to fix it.

Also, when I do get this working again, I would like to use it with my HTML
files, but how do I go about incorporating my asp file with my web page? As
in, when i click on the 'Estimate Sheet' link in my frame, how do i get that
page to load up? Do I have to put my whole project in a certain directory?

Any and all help is appreciated.

Thanks

Corey
 
Corey,

You've most likely lost ASP .NET bindings while reinstalling IIS. Try to
restore these by using the following utility from the .NET Framework folder:

aspnet_regiis.exe

It's a command line tool so start it with the "/?" parameter first to
examine the possible options.

You shouldn't worry about mixing HTML and ASPX pages. IIS is smart enough to
recognize the pages by their file extensions so it will render an HTML page
to the browser as is, and will invoke ASP .NET to process an ASPX page. Your
only duty is to allow script execution on the virtual directory where your
website resides.

So what the utility mentioned above will actually do is configuring IIS
properly to 'understand' how it should properly handle extensions such as
ASPX, ASMX and so on. Without this, IIS treats all unknown file types as to
be sent as is to the browser. Why you see only text is that: IE treats
everything between < and > as an HTML tag, so even if it does not recognize
it, it won't be displayed on the page.
 
Thanks for the help Dmitri, I really appreciate it. Would a re-install of
..NET help as well?
I've been having a lot of computer trouble as of late and I'm going to be
formatting very soon.

Corey

Dmitriy Lapshin said:
Corey,

You've most likely lost ASP .NET bindings while reinstalling IIS. Try to
restore these by using the following utility from the .NET Framework folder:

aspnet_regiis.exe

It's a command line tool so start it with the "/?" parameter first to
examine the possible options.

You shouldn't worry about mixing HTML and ASPX pages. IIS is smart enough to
recognize the pages by their file extensions so it will render an HTML page
to the browser as is, and will invoke ASP .NET to process an ASPX page. Your
only duty is to allow script execution on the virtual directory where your
website resides.

So what the utility mentioned above will actually do is configuring IIS
properly to 'understand' how it should properly handle extensions such as
ASPX, ASMX and so on. Without this, IIS treats all unknown file types as to
be sent as is to the browser. Why you see only text is that: IE treats
everything between < and > as an HTML tag, so even if it does not recognize
it, it won't be displayed on the page.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Corey Dyke said:
K here's what happened. For my English project at DeVry, I had to
design
a
website for a company of my choice. So since my dad has been after me for
years to do one for him, I decided to finally do it. So I decided to do
most of the pages in HTML, which i'll be doing soon. And since he's a
Flooring Contractor, I decided to do an Estimate Sheet page in ASP. I've
done C# courses and never had any problems with the programming aspect, but
now I've encountered a couple of problems.

At first, everything was going fine. then my IIS went crazy, so I
uninstalled it, then my project wouldn't work at all. Then I
reinstalled
my
IIS, so the project loads fine now, but now when I build my solution and run
it, all that shows up on my page is the text. none of the text boxes,
labels, or buttons show up. I have no clue how to fix it.

Also, when I do get this working again, I would like to use it with my HTML
files, but how do I go about incorporating my asp file with my web page? As
in, when i click on the 'Estimate Sheet' link in my frame, how do i get that
page to load up? Do I have to put my whole project in a certain directory?

Any and all help is appreciated.

Thanks

Corey
 
The reinstall should help. To the best of my knowledge, .NET Framework
performs all necessary changes to the IIS metabase upon installation.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Corey Dyke said:
Thanks for the help Dmitri, I really appreciate it. Would a re-install of
.NET help as well?
I've been having a lot of computer trouble as of late and I'm going to be
formatting very soon.

Corey

Dmitriy Lapshin said:
Corey,

You've most likely lost ASP .NET bindings while reinstalling IIS. Try to
restore these by using the following utility from the .NET Framework folder:

aspnet_regiis.exe

It's a command line tool so start it with the "/?" parameter first to
examine the possible options.

You shouldn't worry about mixing HTML and ASPX pages. IIS is smart
enough
to
recognize the pages by their file extensions so it will render an HTML page
to the browser as is, and will invoke ASP .NET to process an ASPX page. Your
only duty is to allow script execution on the virtual directory where your
website resides.

So what the utility mentioned above will actually do is configuring IIS
properly to 'understand' how it should properly handle extensions such as
ASPX, ASMX and so on. Without this, IIS treats all unknown file types as to
be sent as is to the browser. Why you see only text is that: IE treats
everything between < and > as an HTML tag, so even if it does not recognize
it, it won't be displayed on the page.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Corey Dyke said:
K here's what happened. For my English project at DeVry, I had to
design
a
website for a company of my choice. So since my dad has been after me for
years to do one for him, I decided to finally do it. So I decided to do
most of the pages in HTML, which i'll be doing soon. And since he's a
Flooring Contractor, I decided to do an Estimate Sheet page in ASP. I've
done C# courses and never had any problems with the programming
aspect,
but
now I've encountered a couple of problems.

At first, everything was going fine. then my IIS went crazy, so I
uninstalled it, then my project wouldn't work at all. Then I
reinstalled
my
IIS, so the project loads fine now, but now when I build my solution
and
run
it, all that shows up on my page is the text. none of the text boxes,
labels, or buttons show up. I have no clue how to fix it.

Also, when I do get this working again, I would like to use it with my HTML
files, but how do I go about incorporating my asp file with my web
page?
As
in, when i click on the 'Estimate Sheet' link in my frame, how do i
get
that
page to load up? Do I have to put my whole project in a certain directory?

Any and all help is appreciated.

Thanks

Corey
 
All working perfect now. Thanks Dmitriy.

Corey
Dmitriy Lapshin said:
The reinstall should help. To the best of my knowledge, .NET Framework
performs all necessary changes to the IIS metabase upon installation.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Corey Dyke said:
Thanks for the help Dmitri, I really appreciate it. Would a re-install of
.NET help as well?
I've been having a lot of computer trouble as of late and I'm going to be
formatting very soon.

Corey

in message news:%[email protected]...
Corey,

You've most likely lost ASP .NET bindings while reinstalling IIS. Try to
restore these by using the following utility from the .NET Framework folder:

aspnet_regiis.exe

It's a command line tool so start it with the "/?" parameter first to
examine the possible options.

You shouldn't worry about mixing HTML and ASPX pages. IIS is smart
enough
to
recognize the pages by their file extensions so it will render an HTML page
to the browser as is, and will invoke ASP .NET to process an ASPX
page.
Your
only duty is to allow script execution on the virtual directory where your
website resides.

So what the utility mentioned above will actually do is configuring IIS
properly to 'understand' how it should properly handle extensions such as
ASPX, ASMX and so on. Without this, IIS treats all unknown file types
as
to
be sent as is to the browser. Why you see only text is that: IE treats
everything between < and > as an HTML tag, so even if it does not recognize
it, it won't be displayed on the page.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

K here's what happened. For my English project at DeVry, I had to design
a
website for a company of my choice. So since my dad has been after
me
for
years to do one for him, I decided to finally do it. So I decided
to
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top