473,327 Members | 2,103 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,327 software developers and data experts.

C#-Web, Update parameter of dataview controls collection

3
Hi all,

Don't know if its possible or not, but according to documentation, it should. Here's the basics as I am learning, so bear with me.

I have a class used as a object data source for returning tables from queries. This class also has methods for handling respective insert and updates based on specific parameters such as text, int, etc... no problem there.

Now, I want to try the OTHER option of a parameterized update based on a single parameter based on an object type. What I was trying to do is to call my method with a single object parameter that I could then dynamically scroll through instead of all the explicit parameters defined. So, I have a DataView control with an object data source that has a return result set of a single record... All that works no problem. Now I click on the UPDATE link (via the edit/update/cancel control), and want to pass into my class.method the current ROW in the DataView that was edited, not the individual fields, but the whole record all at once.

There's an ITEM(0) which should return the record (in my sample would always be 1), but it never shows going into my Update method... I have a second method with explicit parameters, and it goes there no problem.

Any insight would be greatly appreciated.

Don
Mar 22 '08 #1
0 1308

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jeffrey Todd | last post by:
I need to process a specific Control in a Web Page's Controls collection. I do know the ID of the control. I simply need to pass a reference to it to another method. The following code works...
0
by: Jeff Dockman | last post by:
Background: We needed the ability to create a templated web site that may change in layout from installation to installation. To accomplish this, we created a base Page class that all pages in...
1
by: Shloma Baum | last post by:
Hi, I would like to ask if there is something similer (even in a diffrent way) to loop all controls on a component in the same way there is on a form.controls collection? Thanks in advance...
2
by: James Doran | last post by:
Hello, I'd like to iterate through each Page of my ASP.NET project from within a Custom web control and access the Page.Controls collection. I've tried using Reflection on the web project...
1
by: msnews.microsoft.com | last post by:
I'm adding multiple web controls to the placeholder controls collection, but even when doing the for each and recursion method of getting the web controls, I'm only getting the first web control...
7
by: Rich | last post by:
Hello, I have a form with 5 textboxes named txt0, txt1, txt2, txt3, tx4. In VB6 I could iterate through these with For i = 0 to 4 debug.print Me.controls("txt" & i).Name Next
7
by: astro | last post by:
I am not farmilar with the object model for webforms. I want to loop through the web form controls - pulling out the checkboxes on the form like the following: For Each ctrl In Me.Controls ...
3
by: Charlie Brown | last post by:
I am adding controls to the Forms controls collection at run-time. Then when I loop through the controls and list them by name, I am missing half my controls. Is there a workaround? Debugger...
4
by: John Dalberg | last post by:
I am looking at a problem which is preventing my code to get a reference to any asp control inside a div section which has a runat=server attribute. This can be reproduced in a simple test:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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.