473,721 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(ob ject sender, System.EventArg s e)
{
this.daMine.Fil l(this.dsMine,1 ,0,"EgTable");
}

private void cmdNext_Click(o bject sender, System.EventArg s e)
{
// Move to next record.
this.BindingCon text[this.dsMine,"Eg Table"].Position++
}

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

Nov 19 '05 #1
0 1535

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

Similar topics

6
2235
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 C++ (changing to C# soon) and can create separate forms, but I really just want to clone the first one, have the user select different options on each form and navigate between them via the PREV-NEXT-OKAY-CANCEL buttons on the bottom of the form. ...
1
1566
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. However, instead of getting the control on the form, I get nothing. No error message, no control. Yet there are other times where it does drop on the form as expected. I have tried recompiling the dll with the control and readding it to the...
1
3503
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 only in a single node operation. Here is my current code: private void trv_Directories_ItemDrag(object sender, ItemDragEventArgs e)
2
2799
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 events, and provide drag and drop functionality of the controls ? Thank You Ivo Tcholakov
5
3156
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 the code variable that are supposed to be linked to the contained controls. It runs fines when everything is contained in a single web form project. What do I need to do to make it work from a class library?
1
1408
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. VS2005 with SQL2005. I have a lot of these to do, and don't want to hard code each box. I can drop and drag the table elements to the form and they work fine, however, as textboxes. I want to add dropdown boxes populated by another table....
0
1394
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 operation by left Click of Mouse. FilmForm is comprised of UserControl placed over a Panel in a GridFormat.
0
1562
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 move its rows (index) according to the drag and drop of the first datagridview. Example: I f I had employees in one grid and the hours for the employees in the second grid, I need the hours to move to the same row position on the second...
3
2415
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 and timeconsuming to implement. Does a set of controls or anything like for accomplishing that exist - for ASP.Net?
0
8840
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9064
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.