visual studio 2003 questions

S

Steve Richter

using visual studio 2003 for my asp.net projects ...

Once I undock the property window to get a better look at things, I
cant dock it back where it came from. Can someone tell me how to redock
the property window?

When I copy HTML snippets from another page the code behind class is
not automatically updated with the new controls. For example, the Web
Controls are not added to the group of stmts at the start of the page
class which declare the control to the class. Is it possible to tell
Visual Studio to declare a control in the code behind class?

Isnt there a panel of the property page which lists the events that a
control is capable of raising? If so, how do I access it?

thanks,
-Steve
 
J

Jason Brown [MSFT]

inline
Steve Richter said:
using visual studio 2003 for my asp.net projects ...

Once I undock the property window to get a better look at things, I
cant dock it back where it came from. Can someone tell me how to redock
the property window?

you've got to pick it up and drag it to the right, _further than you'd
ordinarily expect_. it should then dock.
When I copy HTML snippets from another page the code behind class is
not automatically updated with the new controls. For example, the Web
Controls are not added to the group of stmts at the start of the page
class which declare the control to the class. Is it possible to tell
Visual Studio to declare a control in the code behind class?

double click the control in design view, it'll be added to your
declarations. bonus tip: surround these declarations with #region and
#endregion tags to reduce clutter in code view
Isnt there a panel of the property page which lists the events that a
control is capable of raising? If so, how do I access it?

not that I'm aware of, but MSDN and the .NET documentation should be
available through the IDE, then just find the appropriate control and events
should be listed
thanks,
-Steve

someone feel free to correct me if I'm slightly off


--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
H

Hans Kesting

Steve said:
using visual studio 2003 for my asp.net projects ...


Isnt there a panel of the property page which lists the events that a
control is capable of raising? If so, how do I access it?

If you have the property page visible, look at the top iconbar
of that window. There is a lightning-flash icon there. Click
on that to get a list of possible events. Double click
on an empty box to create an empty handler.
To the left of that lightning-flash you have the icon
to go back to the "normal" properties.
 
S

Steve Richter

Hans said:
If you have the property page visible, look at the top iconbar
of that window. There is a lightning-flash icon there. Click
on that to get a list of possible events. Double click
on an empty box to create an empty handler.
To the left of that lightning-flash you have the icon
to go back to the "normal" properties.

oh, I only see the lightning bolt when in design mode. When in HTML
mode, the event panel is not available.

thanks,
-Steve
 
S

Steve Richter

Jason said:
inline


you've got to pick it up and drag it to the right, _further than you'd
ordinarily expect_. it should then dock.

got it! and the pinning thing works nicely also.
double click the control in design view, it'll be added to your
declarations. bonus tip: surround these declarations with #region and
#endregion tags to reduce clutter in code view

VS does not appear to handle my use of the asp:Table, asp:TableRow,
asp:TableCell controls very well. In Design view, clicking on any
control in the structure and the property window always shows the
asp:Table. VS will not bring up, in design view, the property page (
with the event lightning bolt ) of the asp:TableRow, asp:TableCell and
most importantly, the controls that I have placed within the table
cells. Is it possible for design view to show the properties of
controls within an asp:Table?

Here is what I am doing:
- drag a Web Control - table to the form
- use the "collections" thing to add rows and cells to the table (
very nice! )
- switch to HTML view and manually enter an asp:Button control within
a table cell.
- click on the asp:Button html code to bring up the properties panel
of the button.
- change the ID of the button.

FIRST PROBLEM ======> No event lighting bolt for the asp:Button in HTML
View. But in Design View, VW will not show the property panel of my
button!

SECOND PROBLEM ======:
- switch to Design view.
- Double click on the asp:Button that is within the asp:TableCell.
- VS switches to the code behind code, but does not auto generate the
code for the button click like it does when the asp:Button is on the
form outside of the asp:Table.

any ideas? I appreciate the help,
-Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top