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

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

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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" <co************@hotmail.com> wrote in message
news:p_uxc.9444$NT6.858@clgrps13...
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


Nov 16 '05 #2

P: n/a
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 [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:%2****************@tk2msftngp13.phx.gbl...
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" <co************@hotmail.com> wrote in message
news:p_uxc.9444$NT6.858@clgrps13...
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

Nov 16 '05 #3

P: n/a
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" <co************@hotmail.com> wrote in message
news:YgGxc.1962$cS.1408@edtnps89...
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 [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:%2****************@tk2msftngp13.phx.gbl...
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" <co************@hotmail.com> wrote in message
news:p_uxc.9444$NT6.858@clgrps13...
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



Nov 16 '05 #4

P: n/a
All working perfect now. Thanks Dmitriy.

Corey
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:eL*************@TK2MSFTNGP12.phx.gbl...
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" <co************@hotmail.com> wrote in message
news:YgGxc.1962$cS.1408@edtnps89...
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 [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
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" <co************@hotmail.com> wrote in message
news:p_uxc.9444$NT6.858@clgrps13...
> 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
>
>


Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.