Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 6th, 2004, 04:41 AM
Authorized User
 
Join Date: May 2004
Location: San Francisco, CA, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CSharp1314 Send a message via AIM to CSharp1314 Send a message via MSN to CSharp1314 Send a message via Yahoo to CSharp1314
Default 3 asp.net n00b question, please help ^_^;;;

#1
I added some custom animated cursor (.ani files) in my css file but the aspx page doesn't display those animated cursors, they work in regular html pages, why? what's wrong? I did add the css file to the head section, I'm not that n00b, I know I didn't make any mistake but it just doesn't work, maybe aspx doesn't support .ani cursor file? or I need to do something to my IIS configuration? ^_^;
#2
How do I include a page in an aspx page? Let's say I have a menu for index aspx page, I want that menu to show in other aspx pages without puting all the codes in other aspx pages, how would I do that? ^_^;
#3
I have alot of junk C# scripts in the
<script runat="server">
    void Page_Load(Object sender, EventArgs e)
    {
section of the aspx file, I want to put them into a cs file and just compile it into dll file, but it gave me errors when I try to view the page and stuff, I don't want to rely on Visual Studio .NET, I want to use notepad or Web Matrix, please help ^_^;

Thanks

http://www.csharpusa.com
Website look and work exactly like Microsoft Windows ^_^;
__________________
http://www.csharpusa.com
Website look and work exactly like Microsoft Windows ^_^;
  #2 (permalink)  
Old May 6th, 2004, 07:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

#1 - I don't know.
#2 - Either create a module or class that the page can use. ASP.NET doesn't use include files. Either create a custom control to implement, add it programmatically to a container control at runtime, or create a template by using a class that inherits from the System.Web.UI.Page, and then the ASP.NET page inherits from this class. You can override the oninit or render method to render a site layout and menu options.
#3 - Out of curiosity, why don't you want to rely on Visual Studio .NET. I use this functionality all the time with no problems...

Hope this helps,

Brian
  #3 (permalink)  
Old May 6th, 2004, 12:13 PM
Authorized User
 
Join Date: May 2004
Location: San Francisco, CA, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CSharp1314 Send a message via AIM to CSharp1314 Send a message via MSN to CSharp1314 Send a message via Yahoo to CSharp1314
Default

Because I don't like visual studio, it generate alot of junk X_x;

somebody answer my questions in a way a n00b can understand, don't ask me question, I'm a n00b, just answer my questions ^_^;;;

http://www.csharpusa.com
Website look and work exactly like Microsoft Windows ^_^;
  #4 (permalink)  
Old May 6th, 2004, 12:24 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Even if you're a noob, it sometimes takes a lot of questions before you can actually answer a question. So, requiring people not to ask a question back, may not get you very far on this forum.

That said, Visual Studio .NET quite behaves when it comes to adding junk. It does really mess up the HTML, so it's almost completely useless for Visual ASP.NET design. However, the code it generates. the way it manages projects and solutions, the way you can connect these projects together etc etc are actually pretty clean.
Take some time to learn that tool; you'll discover it's worth it.

Re# 1: ASP.NET pages are, in the end, nothing but standard HTML pages. There is NO difference between the two as far as the browser is concerned. So, if your cursors don't work, you must be making a mistakes somewhere, ending up with something different from the HTML pages. Show us some code and we can take a look.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Parabola by Tool (Track 7 from the album: Lateralus) What's This?
  #5 (permalink)  
Old May 7th, 2004, 01:42 AM
Authorized User
 
Join Date: May 2004
Location: San Francisco, CA, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to CSharp1314 Send a message via AIM to CSharp1314 Send a message via MSN to CSharp1314 Send a message via Yahoo to CSharp1314
Default

about the cursor, I'm 100% sure I didn't do anything wrong, because here www.csharpusa.com (use IE6 to view this), you can see that this site I made have animated cursors .ani files, but in aspx pages only .cur non-animated cursor works, the .ani files don't show at all.
The way to add cursor is
cursor: url(normal.ani);
in cascading stylesheet, I'm not a n00b when it comes to clientside html stuff, I know I didn't do anything wrong.

http://www.csharpusa.com
Website look and work exactly like Microsoft Windows ^_^;
  #6 (permalink)  
Old May 7th, 2004, 02:08 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And still it's odd that it wouldn't work. Like I said, from a browser point of view, ASPX pages are nothing but simple HTML pages so there would be NO reason why some client side things would work in "html" pages, and not in "aspx" pages. So, although you think you didn't do anything wrong, something went wrong anyway.

Can you put up two sample pages? One with plain HTML the other with ASPX, and both with the cursor? You made me quite curious and I'd like to see what's causing this....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Suck it Up by Hed Planet Earth (Track 1 from the album: Blackout ) What's This?


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT n00b question rockypg XSLT 4 October 3rd, 2006 10:23 AM
Asp.net question asp.netUser ASP.NET 1.0 and 1.1 Basics 1 September 13th, 2005 03:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.