objectdatasource

Why won't my anonymous function fire on grid.prerender?

In my gridview I have fields for inserting a new record in the footer. In my objectdatasource selecting event if no records came back I bind a single mock row to force the footer to show so they can still add records. Since the row does not contain real data I hide the row. ... If result.ItemCount = 0 Then result = mock...

Problem wth paging ObjectDataSource

asp page code: <asp:ObjectDataSource runat="server" ID="odsResults" OnSelecting="odsResults_Selecting" /> <tr><td> <wssawc:SPGridViewPager ID="sgvpPagerTop" runat="server" GridViewId="sgvConversionResults" /> </td></tr> <tr> <td colspan="2" class="ms-vb"> <wssawc:SPGridView runat="s...

SubSonic - Scaffoling with ObjectDataSource

Using SubSonic v2.2, I'd like to use the scaffolding control. All my data access is done through stored procedures, and as so, I'm wondering if this will be possible, as there are only execute permissions on my sprocs, and no direct table access? Thanks. ...

Parent-Child relation while using object data source

Hello guys I am experiencing with a class generator I've written, which generates a class for each table in database with each table field as a property and such. Before that, I used to add a typed dataset to the project and add some tables to it. It automatically detected the relationship between tables and when I added a parent table a...

ObjectDataSource cannot find type when deployed to SharePoint

I'm receiving the following error when deploying a feature containing ASP.NET pages to our development SharePoint servers: System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'odsYears' could not be found. Our .dll is being deployed to the GAC and our pages are being deployed to the the res...

Set DetailsView as selected row of GridView

I am creating a GridView/DetailsView page. I have a grid that displays a bunch of rows, when a row is selected it uses a DetailsView to allow for Insert/Update. My question is what is the best way to link these? I do not want to reach out to the web service again, all the data i need is in the selected grid view row. I basically ha...

object datasource problems in visual studio 2008,

After going to the process of adding the various attributes like insert,delete and update.But when i run it through the browser ,editing works but updating and deleting doesn't !(for the update and shows the same thing for delete,my friends think i need to use codes to repair the problems,can you help me please.it shows this: Server Err...

Problems with objectatasource,giving attributes like delete insert and update

After going to the process of adding the various attributes like insert,delete and update.But when i run it through the browser ,editing works but updating and deleting doesn't !(for the update and shows the same thing for delete,my friends think i need to use codes to repair the problems,can you help me please.it shows this: Server Err...

Comparing 2 linq applications: Unexpected result

I drafted 2 ASP.NET applications using LINQ. One connects to MS SQL Server, another to some proprietary memory structure. Both applications work with tables of 3 int fields, having 500 000 records (the memory structure is identical to SQL Server table). The controls used are regular: GridView and ObjectDataSource. In the applications I c...

Objectdatasource always passes 0 and startIndex and pageSize in asp.net 2.0

I have a DevXpress ASPXGridview, and I am using ObjectDataSource for custom paging. This is my objectDataSource code on aspx page. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetItems" EnablePaging="true" TypeName="BLL.Item" StartRowIndexParameterName="startIndex" MaximumRowsParameterName="pageSize" Select...

Gridview Paging via ObjectDataSource: Why is maximumRows being set to -1?

So before I tried custom gridview paging via ObjectDataSource... I think I read every tutorial known to man just to be sure I got it. It didn't look like rocket science. I've set the AllowPaging = True on my gridview. I've specified PageSize="10" on my gridview. I've set EnablePaging="True" on the ObjectDataSource. I've added the 2 p...

ObjectDataSource Insert and Update methods error

I m developing asp.net 3.5 project. When I want to Insert with DetailsView this error occured: Error : ObjectDataSource 'ObjectDataSource2' could not find a non-generic method 'AddCity' that has parameters: CITY_NAME. <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetCityByID" UpdateMethod="UpdateCity" Inse...

Can't see or add Website Data Sources in RDLC report in ASP.NET MVC

In the RDLC report, in Design view in Visual Studio 2008, we don't see anything in the Website Data Sources tab and the button to Add New Data Source is grayed out. Only the Refresh button is enabled, and clicking it doesn't do anything. Our business logic layer returns Lists of business objects and the business logic and business obje...

How to fill a ListView with a list using ObjectDataSource

What i'm I missing? My line "foreach (ProductCrash productCrash in _fiveLastest)" is wrong, but I can't see any alternatives. I wont to get ride out the foreach and let the ListView do its magic for me.. does any know how to do this? It would really help me out. I can only show one object from my list in my ListView. I'm using ObjectDa...

I need CompareValidator control to accept date in format month/day/year

I have the following template defined within DetailsView ( DetailsView is bound to object data source ): <EditItemTemplate> <asp:TextBox ID="txtReleaseDate" runat="server" Text='<%# Bind("ReleaseDate", "{0:d}") %>'> </asp:TextBox> <asp:CompareValidator ID="valReleaseDateType" runat="server" ...

GridView not DataBinding Automatically after ObjectDataSource Select Method

I've created a objectadasource that returns a datatable, the gridview is binded to this datasource. the ODS have parameters assigned on the Page_Load event, and the ODS returns the data ok and the gridview shows it fine. the problem is i have a textbox with a filter. first I created a filterexpression in gridview, using the contents...

Cached ObjectDataSource not firing Select Event even Cache Dependecy Removed

I have the following scenario. A Page with a DetailsView binded to an ObjectDatasource with cache-enabled. The SelectMethod is assigned at Page_Load event, depending on my User Level Logic. After assigned the selectMethod and Parameters for the ODS, if Cache not exists, then ODS will be cached the first time. The next time, the cache w...

Why or why not use a DataSource to fill ASP controls?

So we have a GridView asp control and one of my coworkers doesn't like to use an DataSource to fill the GridView. I wasn't sure if/what the pros and cons are of using one. I don't mind using going through the wizard to set the type, and the select/update methods. Besides using the wizard are there pros and cons? ...

Paged ObjectDataSource results in PageSize -1

Hi, I'm using a ListView with a Paged DataSource. When the ObjectDataSource tries to fetch data from the "GetData"-method, the parameter PageSize is set to -1, even though I have set the PageSize to 8 in the DataPager. Have I forgotten something? <asp:ListView DataSourceID="odsProductIndex" ID="lstProductIndex" runat="server" OnItemDa...

ASP.NET ObjectDataSource Sorting Twice

Hello, I'm working with some existing code uses an objectDataSource and that calls a sort method inside a DLL that I don't have access to. I'm trying to add a custom field to sort and I basically want to re-sort after the initial sort. I don't know if this can be done but before the GridView is displayed, I need to intercept the code an...