Re: asp.net code not displaying results

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Juan. I really appreciate you getting me quickstarted like this. I'm
diving right in.

take care.

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:ucutEVkwGHA.324@xxxxxxxxxxxxxxxxxxxxxxx
You're very much welcome, Kevin!

Glad you're up and running...

re:
if you were me, would you go to the 2.0 ver.?

You can safely install the .Net Framework 2.0 side-by-side with the 1.1
version.
You can program for both Frameworks on the same box.

Use the links I sent you today in the message sent at : Thu, 17 Aug 2006
14:48:13 -0400
and download/install at least the redistributable and the free IDE (VWD ).

Later you should install the SDK, because it installs the 2.0 QuickStart
Tutorial,
which you can use to jumpstart your 2.0 skills.

See an online version of the QuickStart Tutorial at :
http://asp.net/quickstart/aspnet/Default.aspx

You'll enjoy learning about, and programming, ASP.NET!




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:uqBtGEkwGHA.5056@xxxxxxxxxxxxxxxxxxxxxxx
you Da Man, Juan.

Thank you very much.

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23s4DE%23jwGHA.5056@xxxxxxxxxxxxxxxxxxxxxxx
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: asp.net code not displaying results
    ... you Da Man, Juan. ... That should get the .Net Framework up and running. ... Is there a way to determine a bad install or should I just look to ... Microsoft.VisualBasic namespace. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Bitter about [Lack of] .Net Framework Deployment
    ... We built a very nice auto-update framework, ... the 30-60 minute range to install. ... Also, the user's perception is reality - and our app install sucks, ... deploying 3.0 application, so I've not paid that close attention. ...
    (microsoft.public.dotnet.framework)
  • Re: Conversion from 2008->2003?
    ... required and install only those, you've not solved the problem of a new .NET ... app that uses a namespace or class you didn't know about when you did the ... Many people have perfectly legitimate reasons for ... If some of the code is being compiled against the 3.5 Framework, ...
    (microsoft.public.dotnet.general)
  • Re: userName="machine" didnt work
    ... to unregister my 1.1 framework do you? ... ASP.NET and .Net Framework versions installed? ... Neither of them have a user specified in their processModel. ... Did you install ASP.NET from SBS disks? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ServiceModelReg fails in installation of WCF
    ... file from a system on which 3.5 framework, ... (those people had to format the whole OS and then install this 3.5 ... securityInformation, SecurityIdentifier owner, SecurityIdentifier ... streamName, Boolean success, Object writeContext, Boolean ...
    (microsoft.public.dotnet.framework)