473,378 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Automatically recreating control declarations

My teammate on a project somehow removed all the control declarations in a
project. Since most of the control declarations are added automatically when
the controls are added, is there a way to have Visual Studio add them again?
(my project is ASP.NET/VB) Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Nov 21 '05 #1
5 932
Nathan,

I'm not sure if it will work, but first (if your project is under some type
of source control) check out the design view and code behind of the page(s)
in question, then in the design view switch to the html view and then back
again. I know that if you add a control while in html view it doesn't get
added to the codebehind until you've switched back to the design view
again... So maybe that will do the trick.

I've got my fingers crossed.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
My teammate on a project somehow removed all the control declarations in a
project. Since most of the control declarations are added automatically
when the controls are added, is there a way to have Visual Studio add them
again? (my project is ASP.NET/VB) Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Nov 21 '05 #2
Why do you continue to cross post to multiple news groups?



"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
My teammate on a project somehow removed all the control declarations in a
project. Since most of the control declarations are added automatically
when the controls are added, is there a way to have Visual Studio add them
again? (my project is ASP.NET/VB) Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Nov 21 '05 #3
Jeremy S. wrote:
Why do you continue to cross post to multiple news groups?



"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:ut*************@TK2MSFTNGP12.phx.gbl...
My teammate on a project somehow removed all the control declarations in a
project. Since most of the control declarations are added automatically
when the controls are added, is there a way to have Visual Studio add them
again? (my project is ASP.NET/VB) Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/



Why not? It's not like he multi-posted. This is to be encouraged...

Chris
Nov 21 '05 #4
<< This is to be encouraged>>

So, we're supposed to post to as many groups as we think might even
tangentally be relevant to our questions? Cool!
Nov 21 '05 #5
Jeremy,

Why not, at least I see now from the language.vb newsgroup that it is about
a webform program.

You can ask yourself if all are relevant, by instance I don't see why to
debugging.

Just my thought,

Cor
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andreas Schmidt | last post by:
Suppose there is a 10,000 lines header file that wildly mixes definitions (the interface) and implementations. Other code that includes this header file takes hours to compile, and it's impossible...
1
by: Ole Hanson | last post by:
Hi I am having a number of User Controls (ascx) on my page (aspx). The page is in my scenario only working as a dumb "container "giving life to the Controls, as these are handling my UI-logic...
0
by: foldface | last post by:
Hi I have an odd problem with a user control. - I have an asp page which holds a single usercontrol. - On that user control I have a button and placeholder. When the button is pressed I want a...
2
by: Steph | last post by:
Hello, I have an user control with any public propertys. I wand set up propertys directlly in a code behind of a page where he will be put in, and not directly in the aspx page. How can I...
3
by: sean | last post by:
Hi There, I am trying to display some textboxes on my page, When I run the code the textbox is written to the page (when I view source) but not to the screen. Could someone tell me if I have the...
5
by: Nathan Sokalski | last post by:
My teammate on a project somehow removed all the control declarations in a project. Since most of the control declarations are added automatically when the controls are added, is there a way to...
2
by: Charlie | last post by:
Hi: I'm getting tired of typing get/set property definitions especially when my class has a lot of fields. Is there a way to have the VS.NET IDE declare them automatically? Thanks, Charlie
1
by: GMartin | last post by:
I'm having a problem with being unable to access the Declarations for Controls. In a UserControl, what I'm trying to do is make certain controls Public, so I can access them from the page that...
3
by: Mike | last post by:
I've just begun converting some websites from ASP.NET 1.1 to ASP.NET 2.0. I'm consistently losing web control declarations when converting aspx pages. All declarations like this disappear and I...
31
by: smachin1000 | last post by:
Hi All, Does anyone know of a tool that can automatically analyze C source to remove unused #includes? Thanks, Sean
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.