Link to home
Start Free TrialLog in
Avatar of somits
somits

asked on

How to place AccessDataSource Control or SqlDataSource Control where we want them

Hi:

We're writing some vb.net web app with Microsoft Visual Studio 2010, using VB.

When we drag a data source control, e.g. AccessDataSource or SqlDataSource, into a "Design" page of .aspx file, the control always resides next to the left border of the design page and near to the top of the page.

We want to move the control to another pace in the design panel by dragging the smart tag of control to the place where we want. However, it does not work. The control does not move at all.

If you know how to do this, please give us some help.

Really appreciated,

Somits
ASKER CERTIFIED SOLUTION
Avatar of lojk
lojk
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of somits
somits

ASKER

Hi lojk:

Thanks a lot for your comments that are very helpful.

You're right. These controls are not visible at run time. However, I'd like to find some way to manage these controls - the same default way in .NET 2003 (VS placed all these controls in a panel at the bottom of the design.

Once again, thanks.

Somits
Ah, i understand exactly what you mean.

My comment about using usercontrols does provide a nice simple and agreed best practise way to group the data source with the consuming control and the code that belongs with it but there is no direct equivalent for what you are trying to do (i missed this too when i moved to web development)