|
Subject:
|
page_load() hassel
|
|
Posted By:
|
vijayapteET
|
Post Date:
|
10/4/2005 12:48:23 PM
|
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!)
|
|
Reply By:
|
Imar
|
Reply Date:
|
10/4/2005 2:36:30 PM
|
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?
|
|
Reply By:
|
vijayapteET
|
Reply Date:
|
10/6/2005 1:30:44 PM
|
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 .
|