Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2012-03-12
3
Medium Priority
?
533 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

704 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