473,569 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem working with objectDataSourc e/Gridview.

2 New Member
I am having a gridview accessing 'objectDataSour ce1' which inturn is connected to data addapter. The dataadapter is having a select function getmydata1(int3 2 eid,String edesc) which is having a select statement."SELE CT .....FROM mytable
where (@eid ='' or eid = @eid)
and(@edesc ='' or @edesc=edesc)"

I am able to show all the records in my form(with in the gridview) at the first time. In the same form I am having 2 text boxes which are used to enter the search criteria, if I am keeping these text boxes empty and click on search then it is showing all the records, If I am entering the description alone it is working fine but if I am trying to enter the eid then it is saying..."Objec tDataSource 'ObjectDataSour ce1' could not find a non-generic method 'getmydata1' that has parameters: eid"

I need help in this regards.... thanks in advance.
Oct 3 '06 #1
1 2270
parshuram
2 New Member
I am having a gridview accessing 'objectDataSour ce1' which inturn is connected to data addapter. The dataadapter is having a select function getmydata1(int3 2 eid,String edesc) which is having a select statement."SELE CT .....FROM mytable
where (@eid ='' or eid = @eid)
and(@edesc ='' or @edesc=edesc)"

I am able to show all the records in my form(with in the gridview) at the first time. In the same form I am having 2 text boxes which are used to enter the search criteria, if I am keeping these text boxes empty and click on search then it is showing all the records, If I am entering the description alone it is working fine but if I am trying to enter the eid then it is saying..."Objec tDataSource 'ObjectDataSour ce1' could not find a non-generic method 'getmydata1' that has parameters: eid"

I need help in this regards.... thanks in advance.

Sorry In my posting I forgot to give the SelectParameter s.....
<SelectParamete rs>
<asp:ControlPar ameter ControlID="Text Box1" Name="eid" PropertyName="T ext" DefaultValue="0 " />
<asp:ControlPar ameter ControlID="Text Box2" ConvertEmptyStr ingToNull="Fals e" DefaultValue=""
Name="edesc" PropertyName="T ext" Type="String" />
</SelectParameter s>

and when I set ' ConvertEmptyStr ingToNull="Fals e" ' to eid then it gives me an error.."Index was outside the bounds of the array."
Oct 3 '06 #2

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

Similar topics

2
2212
by: Kjetil Klaussen | last post by:
Hi, I’m having some troubles trying to bind my dataset to a GridView control through an ObjectDataSource control. The binding works fine for regular columns in my dataset, but I can’t seem to get my expression columns to show up in my GridView. Anybody knows any neat tricks to make this work? Here’s a “step-by-step” to reproduce...
0
1076
by: Herman verschooten | last post by:
Hi, I am creating my first real ASP.NET 2.0 site and want to use the some of the new features. I created a masterpage with my main layout and added several contentpages, no problem so far. I added a members-only section where I want to use a second masterpage, and am now having trouble. My member-startpage contains: A WebPartManager...
2
3811
by: Damon | last post by:
Help! Need this fixed ASAP. I have a GridView/DetailsView master/details form set up, with both bound to separate ObjectDataSource objects. Both the GridView and the DetailsView have a DataKeyNames parameter of "UserCompany, BillableCompany". The DetailsView has control parameters for its select method pointing to these two keys on the...
0
1556
by: Frank | last post by:
Hello All, I am working with VS.NET 2005 and I have an editable GridView whose HTML markup is shown below. In short, when the user clicks on the Edit button, one of the textboxes is replaced with a DropDownList that displays account numbers in a list. If the user selects an account from the DropDownList that already exists in the list, I...
0
1355
by: Frank | last post by:
Hello All, I am working with VS.NET 2005 and I have an editable GridView whose HTML markup is shown below. In short, when the user clicks on the Edit button, one of the textboxes is replaced with a DropDownList that displays account numbers in a list. If the user selects an account from the DropDownList that already exists in the list, I...
0
2655
by: Steve | last post by:
I have a gridview which uses an objectdatasource for its select and delete. The delete command uses the function below. The delete itself works but the extra logic which requires parameters AccountDebitID and AccountCreditID does not work. 'Delete a transaction Sub deletetrans(ByVal transactionid As Integer, ByVal transactionamount
2
6773
by: Olivier Matrot | last post by:
Hello, I'm using a gridview with objectdatasource and custom objects collections SELECT/INSERT/UPDATE/DELETE methods are using custom objects as parameters. This is working fine. But I have a problem with the object that is passed back to the update method. It contains some of the properties of the original object sent during the SELECT...
5
4359
by: Norbert Ruessmann | last post by:
Hello group, I have a business object, which contains Orders. Each Order has a list of OrderItems. Orders are collected in a list List<Order>, OrderItems for each order are of type v<OrderItems>. From a database view this is a one to many relation. I define two GridView controls: one for displaying/editing the Orders, another one for...
0
5508
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to code what I think is a fairly typical Master/Detail scenario with two GridViews, using AJAX. Using the Northwind sample, I have two...
0
1224
by: Jeff | last post by:
hi there ;) asp.net 2.0 I'm having problem with paging in GridView, I'm using custom paging. The ObjectDataSource reads in the rows needed for displaying each page as each page is selected. So that the entire resultset isn't read, but instead just enough to display the pages. The problem now is that the GridView is only displaying the...
0
7703
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, well explore What is ONU, What Is Router, ONU & Routers main...
0
7930
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. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
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...
1
5514
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...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.