Solved

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

Posted on 2012-03-12
3
530 Views
Last Modified: 2012-03-13
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
0
Comment
Question by:somits
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
lojk earned 500 total points
ID: 37714152
I find it easier to use 'Split' view, collapse the section around the datasource and actually drag the (collapsed) code.

I also recommend using a panel (or updatepanel if thats what you need) to group the datasource to its consumer (grid etc) as moving panels around is easier, especially if you have multiple Datasources and Consumers on a page.

Consider using ascx (usercontrols) to group things too - it reduces the total amount of stuff on one (code) file and promotes reusability.

Why does it matter anyway - they are not visible at runtime?
0
 

Author Comment

by:somits
ID: 37717215
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
0
 
LVL 9

Expert Comment

by:lojk
ID: 37717510
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)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question