Newbie questions on Visual Studio .Net

  • Thread starter Thread starter Danny Ni
  • Start date Start date
D

Danny Ni

Hi,

I have the following questions:
(1) How do I add an user control into a aspx file using web form designer? I
have to switch to HTML mode and add <%@ Register.... manually, then switch
back to Design mode.
(2) Tab orders are out of control, every aspx I created using designer has
focus set to the first web control when it's diplayed, this is good thing.
However when I press tab key, the focus does not go to the next web control,
instead the focus moves to browser's address box(the place you type in URL).
Is this the way it's supposed to be?

TIA
 
#1 - This is really simple actually. If the User Control is in the same
project then just make sure that the Solution Explorer is visible. With the
WebForm you wish to add it to open and in Design View, Drag and Drop the
UserControl from the Solution Explorer onto your Web Form where you want it.
IT will automatically create all the code for you.

#2 - You would need to provide a sample page as ASP.NET merely builds on the
Regular html controls and HTML W3C Specifications and I have not come across
a scenario like the afore mentioned one. TabIndexes work the same. You can
set the TabIndexes of controls for better control.
 

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

Back
Top