Re: asp.net code not displaying results



Hi, Kevin.

You may have it installed...but not registered.

Open a command window at :
Drive:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

and run the following command :

aspnet_regiis -i

That should get the .Net Framework up and running.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Kevin" <thersitz@xxxxxxxxx> wrote in message news:ujy3gejwGHA.4140@xxxxxxxxxxxxxxxxxxxxxxx
thanks everyone.

I searched google for info on how to determine if the framework is installed -- and the page I
located had me check the registry. By all indications, I do have it installed -- atleast here is
the reg key it referenced:

HKEY_LOCAL_MACHINE/SOFTWARE/
MICROSOFT/.NETFramework/policy/v1.1

the 4322 key has a value of 3706-4322

Is there a way to determine a bad install or should I just look to reinstall? And if you were me,
would you go to the 2.0 ver.?

thanks again everyone.




I will look into uninstalling and reinstalling.

"Marina Levit [MVP]" <someone@xxxxxxxxxx> wrote in message
news:e7ZkSPjwGHA.2232@xxxxxxxxxxxxxxxxxxxxxxx
Right, I didn't say it shouldn't work. I pointed out that using those functions isn't a good idea
to begin with. This was just a comment with regards to my opinion on good coding practices.

I ended my post with a recommendation at looking into making sure that ASP.NET is property
installed and configured.

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:eG6JGLjwGHA.4688@xxxxxxxxxxxxxxxxxxxxxxx
re:
I think NOW is a throwback to VB6, which is in the Microsoft.VisualBasic namespace. It's not in
the core framework namespace which all start with System.

<%Response.Write(now())%> should compile without importing Microsoft.VisualBasic.

See a working example at : http://asp.net.do/test/DateTime.aspx

I don't think Kevin installed a .Net Framework version at all,
or if he did install it, he's got a bad install.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Marina Levit [MVP]" <someone@xxxxxxxxxx> wrote in message
news:%234KfH6iwGHA.2120@xxxxxxxxxxxxxxxxxxxxxxx
I think NOW is a throwback to VB6, which is in the Microsoft.VisualBasic namespace. It's not in
the core framework namespace which all start with System.

You should use DateTime.Now if you want to get the current date/time. Call the ToString method
on it, to get it in string format for Response.Write.

You should avoid using all those old functions in generals, there is always a way to do it that
is more portable across languages. For example, C# wouldn't reference Microsoft.VisualBasic by
default.

If there are no syntax errors on the ASP.NET page, then I would assume that NOW is supported
just fine there, so I would make sure the ASP.NET is properly installed, etc.

Call Response.Write and give it "test" as the argument. If you still see blank, the problem
would with the configuration of ASP.NET.

"Kevin" <thersitz@xxxxxxxxx> wrote in message news:%23ImC8uiwGHA.5056@xxxxxxxxxxxxxxxxxxxxxxx
Well, i am not sure how much more basic I can get. Here is the complex code I copied and
pasted --

<%Response.Write(now())%>

and the w3schools site sez it it is asp.net compatibile -- and in fact they provide a link to
display this powerful piece of code -- and it displays.

So thanks for your help.





"Marina Levit [MVP]" <someone@xxxxxxxxxx> wrote in message
news:%23snk$oiwGHA.1808@xxxxxxxxxxxxxxxxxxxxxxx
The script you took - is it an ASP script. or an ASP.NET script?

I suspect it is an ASP script, which means it won't necessarily work in ASP.NET, since
ASP.NET has a different syntax, different set of libraries, etc.

I would forget trying to copy things off the web, and start off with learning the basics
about .NET and ASP.NET, and starting off slowly before jumping right in.

"Kevin Hanken" <thersitz@xxxxxxxxx> wrote in message
news:eCy2%23biwGHA.1272@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

Pretty much a newbie to aspnet and xp -- I am using XP Pro, Service Pack 2.

I installed IIS, set up a virtual directory, created an aspx file and pasted in a little
code from the w3schools site and then tried viewing the page using my localhost.

The aspx page loads, but the little aspnet script asking to write the NOW function -- won't
display. Since I copied it from w3schools, I am assuming it is syntactically correct.

Before sending this off -- I just saved the file as an ASP file and tried displaying it --
and it works.

Can anyone clarify where my grief is?

thanks,
Kevin















.



Relevant Pages

  • Re: Slightly OT: How to tell when Windows was booted for the first time
    ... Maybe it's saved in the registry somewhere, ... particular file's date/time stamp that can be relied upon to give ... Run systeminfo from a command window then scroll up half a mile, ... it says my XP install in 2005. ...
    (uk.comp.homebuilt)
  • Re: asp.net code not displaying results
    ... You may have it installed...but not registered with IIS. ... the core framework namespace which all start with System. ... or if he did install it, ... from the w3schools site and then tried viewing the page using my localhost. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asp.net code not displaying results
    ... It's not in the core framework namespace which all start with ... or if he did install it, ... and the w3schools site sez it it is asp.net compatibile -- and in fact ... NOW function -- won't display. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asp.net code not displaying results
    ... core framework namespace which all start with System. ... or if he did install it, ... I installed IIS, set up a virtual directory, created an aspx file and pasted in a little code ... from the w3schools site and then tried viewing the page using my localhost. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asp.net code not displaying results
    ... I searched google for info on how to determine if the framework is ... Is there a way to determine a bad install or should I just look to ... It's not in the core framework namespace which all start with ... NOW function -- won't display. ...
    (microsoft.public.dotnet.framework.aspnet)