473,326 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How do I navigate through records using drag 'n' drop controls?

How do I navigate through records using drag 'n' drop controls?

I have an example in C# for Windows forms that relies on
BindingContext but this is not available for ASP.NET. How do I solve
that problem?

PS: I don't need a code example showing me how to do it without drag
'n' drop because I already know how. I WANT to learn how to do it with
drag 'n' drop.

Suppose I have a form in which I want to display records with two
textboxes: txtID and txtName, two buttons 'Last' and 'Next'. My
database record has an key field: myID which is an integer Identity
field and a varchar field called myName.

I already have the sqlConnection, sqlDataAdaptor, DataSet and
DataView. Let's call them connMine, daMine, dsMine and dvMine.

I set the properties of each textbox to a relevant field from the
DataView, dvMine. I'm not worried about what to do when the Last and
Next click events loop around to the first and last records; I can
deal with that. I just need an example of drag 'n' drop database
controls with navigation. There must be one somewhere?

For instance with a windows form I can bind records simply with the
code:

private void frmMain_Load(object sender, System.EventArgs e)
{
this.daMine.Fill(this.dsMine,1,0,"EgTable");
}

private void cmdNext_Click(object sender, System.EventArgs e)
{
// Move to next record.
this.BindingContext[this.dsMine,"EgTable"].Position++
}

What code substitues in ASP.NET Page_Load() and cmdNext_Click()?

Nov 19 '05 #1
0 1513

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Patrick Coghlan | last post by:
I want to create about 4 forms with the same dimensions and background colours, similar to the forms one has to traverse when installing various software packages. I'm using Visual Studio and...
1
by: Greg | last post by:
I have a custom control called PageBanner which is compiled into a DLL and then put into the toolbox. It shows like I would expect it to in the toolbox, and I can drag and drop it onto a form. ...
1
by: emferrari | last post by:
Hi everybody I have two treeviews, one of them is only to receive items dragged from the treeview1. I want to know how to drag a full node information to the treeview2. I know how to do that...
2
by: Ivo Tcholakov | last post by:
Is it possible to drag and drop controls in an aspx page at runtime ? Meaning i have developed a ASP.NET web form, the web form is now downloaded in IE - now can i have this form to detect mouse...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
1
by: Harry | last post by:
I have two tables in a database. One fills the drop-down and the other records the selection. Filling the dropdown with another table seems to be breaking the binding with the table it records to....
0
by: arvinds | last post by:
I have an application in which I have 2 forms. 1.Review Form 2. FilmForm. Review Form is used for Loading some images and we can transfer the Images from Review From to FilmForm by Drag-Drop...
0
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hello All... I need a little help; I have two datagridview controls side by side. I need to allow the user to drag and drop rows with in the same grid, but I also need the second datagridview to...
3
by: =?Utf-8?B?S2xhdXMgSmVuc2Vu?= | last post by:
Hi I would like to be able to use drag and drop in a web-application - and implement it in a fairly easy way. I have seen it done "by hand" with layers, javascript etc, but that is tedioius...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.