IDE :: ObjectDataSource X64 Bug?

Jan 26, 2012

Original project is VB, but did other testing in Web Developer.Essentially, when a project is compiled as x64 in the ".inx64" directory, "Choose a Business Object" ends up being empty.My workaround was to go into the project's properties and change the compile directory from ".inx64" to just ".in".

View 4 Replies


ADVERTISEMENT

C# - Use Multiple Objectdatasource In Detailsview?

Nov 14, 2011

Just want to ask, can we use multiple objectdatasource in detailsview?

Example, i have 2 different tables with same fields.

Insert, Update much work properly.

View 1 Replies

.net - Modifying ObjectDataSource Deleting Parameters?

May 26, 2011

I am trying to add a parameter to the deleting event of an ObjectDataSource as in the example below from msdn. I generated an event handler for the ObjectDataSource's deleting event, and it had the same signature as in the example, however, when I try to clear the paramsFromPage as in the example, I receive an error stating that

View 1 Replies

Checking Return Of Objectdatasource.select()?

Jan 17, 2010

I just wonder if it is possible to simply check if the objectdatasource.select() returns any rows?e.g.

If ObjectDataSourceM.Select().GetEnumerator Is Nothing Then
'..
End If

View 7 Replies

Updating Custom Objects With ObjectDataSource?

Mar 7, 2011

I am using VS 2010 web application projects

I have an object datasource connetced to a custom object. The data from objectdatasource is displayed

in the Formview. When i try to do the Update. It sends me two empty objects of the class.

This is my objectdatasource

<asp:ObjectDataSource ID="obj1" runat="server" SelectMethod="GetValues"
TypeName="CustomDAL" ConflictDetection="CompareAllValues"
UpdateMethod="Edit" OldValuesParameterFormatString="old_{0}"

[Code].....

View 1 Replies

Asp.net - ObjectDataSource.Select() Not Always Firing On Page Postback

May 15, 2012

I have a form with:

[Code]...

Whenever I change the value of MyTextBox and press MySubmitButton, the select method of MyObjectDataSource is invoked and everything works OK. But if I change the value of any of my check boxes (without changing the value of MyTextBox) and press MySubmitButton, the select method is not invoked, thus the "MyObjectDataSource_Selecting" event doesn't take place and I get the same results as before.

One way I found to work around this was to explicitly invoke MyGridView.DataBind method whenever MySubmitButton was clicked. Is this the best way to handle these type of parameters? What I am afraid is that this may cause the select method to be called twice making the page slower.

View 1 Replies

Building A ASP.NET Profile Wrapper To Use With An ObjectDataSource Control?

Dec 26, 2011

building a ASP.NET profile wrapper to use with an ObjectDataSource control. I would like to have the serialized profile data that I have defined in web.config be accessible via a FormView control within a user control. I'd like the users to be able to view and update their profile data. I have part of the code but am lacking the experience to complete it. I'm using a aspx page with some text boxes and having users update via a simple form now but I need something more reusable and efficient, not to mention moving the logic to a middle tier. I see that the ObjectDataSource control has some intrinsic ability to view profile common data but that seems to be limited.

Namespace SiteMemberShip
Public Class ProfileWrapper
Private FirstName As String
Private MiddleName As String

[code]....

View 10 Replies

IDE :: Pass Parameters To Stored Procedure Through ObjectDataSource?

Jun 7, 2007

I am building a three tierd app, and therefore have all my data access methods in a class by itself.This class only calls stored procedures, basically, I need to pass in the following:

1) stored procedure name as string

2) parameters as IDataParameter() -- an array of parameters

3) other fields ( not important to this discussion)

If I use a GridView on my web form and choose an ObjectDataSourceObjectDataSource, and then choose my business object and method, since the method is a call to a stored procedure with a parameter array, I don't know how to pass it values in the IDataParameter format.The Method Signature listed on the wizard is "RunSP(String spname, IDataParameter[] params), returns SqlDataReader" which basically is calling a method called RunSP with two parameters, of which the second parameter is a parameter array for a stored proc.

View 3 Replies

C# - Using ObjectDataSource And DataObjectTypeName - Handle Delete Methods With Just An Id Parameter?

May 27, 2009

If I have an ObjectDataSource setup like:

<asp:ObjectDataSource
ID="ObjectDataSource1"
runat="server" [code].....

How do I get the objectdatasource to use the Delete method with the parameter that is not an Employee object? what is the recommended alternative architecture?

Edit:

To clarify, I want to use the method signature on my data/business object as shown above, however if I try to allow an Employee object to be passed into some of the methods using DataObjectTypeName, then I seemingly lose the ability to have some methods take just an integer id for instance.If I do not use the DataObjectTypeName, then I have to place all the method parameters in the ObjectDataSource and change the methods on the data/business object to match, this seems like a bad design choice because as the Employee object changes I will have to update each of these methods.

View 6 Replies

Getting The Selected Row From A FormView Bound To ObjectDataSource In The ItemUpdating Event?

Oct 16, 2010

I have to maintain an ASP.net application in VB.Net.There is a page with a FormView bound to a ObjectDataSource.I have to add some business logic on the ItemUpdating event of this FormView.Unfortunately, some the data that I need to add this business logic is not exposed on the FormView user-interface itself, so I can not use FindControl to get the values (I could add the controls, bind them to the fields I need and set their visible property to true, but that's ugly).

View 2 Replies

Asp.net - Pass A Value To From Listview Item Control To Another ObjectDataSource Inside In The Same Place?

May 8, 2011

i have to list views A,and B listview B is inside listview A. i want to pass some parameters from Listview A to Listview B's ObjectDataSource.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved