Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 4th, 2005, 12:48 PM
Registered User
 
Join Date: Oct 2005
Location: indore, madhyapradesh, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default page_load() hassel

hi,
i am using and Visual Studio.NET environment for web application development using c#.
i am developing a asp.net1.1 web page project and using c# as the script language.
i want to know whether there is a way around to use page_load() method within <script> tag on the webform1.aspx page to display some welcome message(Response.Write() for instance), overpowering the page_load() method on the webform1.cs page in VS.NET environent.(no solution using web matrix please!)
  #2 (permalink)  
Old October 4th, 2005, 02:36 PM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I am not exactly sure what you're asking. Don't you want to use VS.NET's code behind feature but use in-line script instead?

This is possible, but it will seriously cripple VS.NET as a RAD development tool. You'll loose intelli sense, project compilation and may other benefits.

If you persist on doing this, you can create ASPX pages like you normally would (as you'd do in Web Matrix or Dreamweaver MX or Notepad or whatever). Then drag the file from a Windows Explorer into VS.NET. When it asks if you want to create a class for the file, simply click no, and you'll end up with an ASPX file for in-line code.

But again, I wouldn't do this if I were you.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Pulse by The Tea Party (Track 9 from the album: Transmission) What's This?
  #3 (permalink)  
Old October 6th, 2005, 01:30 PM
Registered User
 
Join Date: Oct 2005
Location: indore, madhyapradesh, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for the help. i was exactly loking for this solution. as i m a beginner in this field. therefore i was quite surpised by the different behaviour by web matrix and VS.NET. it seems to be ok now. keep in touch .
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page_Load question wayneamurphy BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 4 November 6th, 2006 03:54 AM
Page_Load not working! New2ASPnet General .NET 6 July 28th, 2004 01:53 PM
forcing a page_load ? Rashe ASP.NET 1.0 and 1.1 Basics 2 February 16th, 2004 10:53 AM
force Page_Load miguel.ossa ASP.NET 1.0 and 1.1 Basics 7 January 23rd, 2004 06:04 AM



All times are GMT -4. The time now is 05:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.