473,396 Members | 1,995 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,396 software developers and data experts.

Object DataSource parameters

Hi ,
i have a function which takes object as a parameter
eg: getCustomers(Customer objCustomer)

i have a gridview which inturn calls a objectDataSource which calls
getCustomers(Customer objCustomer)
How ever i have to send some parameters like objCustomer.Custid=
Somevalue to the objectDataSource,
How do i specify the values for the same

thanks in Advance

thomson

Aug 9 '07 #1
1 3151
On Aug 9, 7:50 am, thomson <saintthom...@yahoo.comwrote:
Hi ,
i have a function which takes object as a parameter

eg: getCustomers(Customer objCustomer)

i have a gridview which inturn calls a objectDataSource which calls
getCustomers(Customer objCustomer)

How ever i have to send some parameters like objCustomer.Custid=
Somevalue to the objectDataSource,

How do i specify the values for the same

thanks in Advance

thomson
You can use an event handler for the ObjectDataSource's Selecting
event to the page's code-behind class

Protected Sub objCustomer_Selecting (sender As Object, e As
ObjectDataSourceSelectingEventArgs) Handles objCustomer.Selecting
e.InputParameters("Custid") = Custid
End Sub

http://www.asp.net/learn/data-access...ial-06-vb.aspx

Hope it helps

Aug 9 '07 #2

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

Similar topics

0
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
4
by: Laura K | last post by:
Hi. I am trying to put a drop down in a repeater. I had this working in dreamweaver but now I am trying to transfer it into VS. I am obviously missing something. I am getting the following...
16
by: anonymous.user0 | last post by:
The way I understand it, if I have an object Listener that has registered as a listener for some event Event that's produced by an object Emitter, as long as Emitter is still allocated Listener...
3
by: Laura K | last post by:
I have been trying to figure this one out. I really need help. I have a relationship between two tables - product and colors. I have a repeater listing the products and then each product has a...
1
by: Paul Anderson | last post by:
I have a form in which I want to connect to an OLEdb datasource with a logon button. I also want the user to be able to disconnect with a logoff button. The connection string relies on input...
0
by: Adam Knight | last post by:
Hi All, I have a repeater control nested inside another repeater control. The nested (child) repeater control, is bound to an object data source. My problem is, i need to send a data item...
0
by: eagle | last post by:
I have a grid with an object datasource; selecting and populating the grid works fine. I want to delete an item in the grid. How can I find out the value of the parameters that are getting passed...
0
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a gridview that binds to an object datasource. I added an update method to the object data source through the wizard. The update method takes an object as input and returns an object of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.