Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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
 
Old May 24th, 2005, 08:37 AM
Registered User
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to fkmfkm
Default VS Studio

I am using VS.

I create my my aspx form using the HTML editor(not the designer). I type all the server controls instead of dragging from the toolbox.

But the problem is, this way my objects are not created in my corresponding vb code. Is there a way to overcome this ?

Thank you.


 
Old May 24th, 2005, 10:59 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You have to manually create them in the code-behind. Something like this:

Protected WithEvents <controlID> As System.Web.UI.WebControls.<ControlType>

-Peter
 
Old May 25th, 2005, 05:21 AM
Registered User
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to fkmfkm
Default

Oh ok I got it...I thought there is a short cut...

 
Old May 26th, 2005, 09:33 AM
Registered User
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to fkmfkm
Default

In fact I found that if you swith to design view all.. the controls will be created in code behind..

saves my time.. :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM
Visual studio 6 or visual studio .NET chaitannyam Visual C++ 1 November 13th, 2005 09:26 AM
Using The Visual Studio jazzcatone ASP.NET 1.x and 2.0 Application Design 0 August 12th, 2005 03:07 AM
Visual Studio pbe02u BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 6th, 2005 08:47 PM





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