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
Visual Basic.NETVisual C++.NETASP.NET

Avatar of undefined
Last Comment
lojk

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
lojk

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
lojk

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)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes