Showing posts with label pro. Show all posts
Showing posts with label pro. Show all posts

Monday, March 26, 2012

Newbie ASP.NET Testing probles

OK I'm a complete beginner, and I've hit a snag.
I'm using Dreamweaver to create my ASP.NET pages, and i'm testing on my pc.
I have
XP Pro (Service Pack 2)
.NET Framework 1.1
IIS
and I'm using VB as my language
The problem is when i create my pages (that are stored in the wwwroot folder in inetpub) they do not run the ASP.NET VB code. I do not get errors it just shows some of the text but not the bits that should be generated by the VB and when I view the source code it says exactly what i have typed in my page. Not the HTML page that should be created with ASP.NET VB?, hiding the code you have written.
An example of this is this page.
<%@dotnet.itags.org.Page Language="VB" Debug="True" Explicit="True" %>
<html>
<head>
<title>Date</title>
</head>
<body>
<%
Dim CurrentDate As String
CurrentDate = Today
%>
The Current Date is <%=CurrentDate %>.<br>
</body>
</html>
Which produces the following result
The Current Date is .
My preview page in Dreamweaver says.
The Current Date is {text}.
Has anyone got any ideas please. Do I need to tweak the settings of IIS or do I need to install something into my inetpub?
Any help would be great guys thanks.

I don't use the inline method, which you're trying to use here...but itappears you're missing <script> tags. You should have alook at the tutorials on this site.
http://asp.net/Tutorials/quickstart.aspx

To get into the ASP.NET swing of things, try your page like this:
<%@. Page Language="VB" %>
<script runat="server">
Sub Page_Load (s As Object, e As EventArgs)
lblDate.text = DateTime.Now.ToString("d")
End Sub
</script>
<html>
<head>
<title>Date</title>
</head>
<body>
<form runat="server">
The Current Date is <asp:Label id="lblDate" runat="server"/>
</form>
</body>
</html>

As Frank said, definitely work through the tutorials, and strongly consider picking up a copy ofASP.NET Unleashed, Second Edition. Make that, DEFINITELY pick up a copy of that book! Every new ASP.NET developer should have it.

Cheers Tmorton
I've bought ASP.NET unleashed, Second Edition. Excellent recommendation.
I've got the code to work now. I've stopped using dreamweaver for testing. I create my site and ASPX pages in dreamweaver then open the file in web matrix to insert my code and test the pages.
To follow on from your previous post.
Having used ASP.NET unleashed and looked at the tutorials on the site; I can't find samples of what I am trying to do. After covering adding the date and calendar sections as ways of adding real time data into pages, which technique would be best to add these to multiple pages with the view to making altering the modification properties easiest to change i.e. font type and color without having to change every page on the site?
Should I use Global.asax or the config file in the bin? Or is there another way.
Sorry for the long winded description but I am new to this so I need to explain what I am trying to do.
Any links or tutorial references will be great
Cheers
RDG01


RDG01 wrote:

I've bought ASP.NET unleashed, Second Edition. Excellent recommendation.



Yes, that book is highly recommended across the board. I am glad you are finding it helpful.


RDG01 wrote:


After covering addingthe date and calendar sections as ways of adding real time data intopages, which technique would be best to add these to multiple pageswith the view to making altering the modification properties easiest tochange i.e. font type and color without having to change every page onthe site?


This sounds like a job for a user control. Check out chapter 5 ofthe ASP.NET Unleashed book you have in your hands - Creating CustomControls with User Controls.


Saturday, March 24, 2012

NEWBIE has a prob

Hello, I have just picked up a book on ASP.NET and installed the .NET
framework 1.1. I run Win XP Pro SP1 and IIS 5.1.

The problem:
I 've tried to run two different .aspx files and the browser displays simple
html (text) but no forms or anything like that. IE keeps giving this error
"Line: 4, Char:6, Error:Expected ';', Code:0", but I've checked the code and
is fine. Everything works ok with good old ASP.
Any idea what this annoyance might be?

Thank you all in advance.You may need to repair your IIS mappings.
To do this, run the following command:
aspnet_regiis.exe -i

Here's further information:
http://support.microsoft.com/defaul...B;EN-US;q306005

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net

"Hugo Bohorquez" <hugob@.sympatico.ca> wrote in message
news:JOmYa.6040$pq5.811642@.news20.bellglobal.com.. .
> Hello, I have just picked up a book on ASP.NET and installed the .NET
> framework 1.1. I run Win XP Pro SP1 and IIS 5.1.
> The problem:
> I 've tried to run two different .aspx files and the browser displays
simple
> html (text) but no forms or anything like that. IE keeps giving this error
> "Line: 4, Char:6, Error:Expected ';', Code:0", but I've checked the code
and
> is fine. Everything works ok with good old ASP.
> Any idea what this annoyance might be?
> Thank you all in advance.

Friday, March 16, 2012

Newbie needs help!

Hi everyone,

I've got an xp Pro with IIS5.01 on it. I tried to create an ASP webapplication under VB.NET project but the IDE prompted 'VS.NET has detected the specific web server is not runing ASP.NET version 1.1. You will unable to use ASP.NET services or application.'

I do have .NET framwork 1.1, which came with the VS.NET 2003. I setup the VS.NET in another PC which has WIndows Server 2003 and IIS6.0 and it runs smoothly.

So I figure the problem is IIS or I could be wrong. Anyone can tell me how to upgrade IIS5.0 to 6.0 in XP Pro? I tried to do some research at microsoft website but no luck.

Any help will be appreciated.

TKSYou may try to run "aspnet_regiis.exe -i" from your .net framework 1.1 folder.
The .net framework 1.1 folder is most likely here:
C:\Windows\Microsoft.NET\Framework\v1.1.4322

You can goto start, run, type cmd
then change to the above directory & type: aspnet_regiis.exe -i
>Anyone can tell me how to upgrade IIS5.0 to 6.0 in XP Pro?

You can't. IIS 6.0 is an integrated part of Windows Server 2003; it cannot be installed on another OS.