Все вопросы: [objectdatasource]

79 вопросов

похожие теги:
0
голосов
2ответов
854 просмотров

Шаблон для GridView, привязанный к ObjectDataSource - позднее сохранение

У меня есть GridView, который я привязываю к своему уровню обслуживания. Я хочу, чтобы пользователь мог редактировать сетку, но я не хочу сохранять сетку, поскольку пользователь нажимает кнопку «Обновить» в каждой строке.Я хотел бы обновить все отредактированные / добавленные / удаленные стро...

2
голосов
1ответов
517 просмотров

ObjectDataSource против нового DomainDataSource

Я не вижу разницы между ObjectDataSource и новым DomainDataSource ( http://blogs.microsoft.co.il/blogs/bursteg/archive/2009/04/11/using-domaindatasource-in-asp-net.aspx а>). Мне нужно создать 4 метода, которые затем используются в обоих случаях. В чем основное отличие?

0
голосов
2ответов
1909 просмотров

Аутентификация с помощью форм - отображение информации о текущем вошедшем в систему пользователе в FormView с использованием источника данных объекта

В своем веб-приложении я использую проверку подлинности с помощью форм с файлом cookie.На странице я хочу отобразить информацию для текущего пользователя, вошедшего в систему, внутри FormView, работающего от ObjectDataSource.В моем источнике данных есть метод выбора, принимающий в качестве парам...

2
голосов
2ответов
3132 просмотров

ObjectDataSource and null parameters

I'm using Visual Web Developer 2008 EE using a Dataset (.xsd) to develop an invoicing application and i'm having trouble creating a custom search query. I have an ObjectDataSource that expects 4 ControlParameters, like so: <asp:ObjectDataSource ID="odsInvoices" runat="server" SelectMethod="ge...

1
голосов
1ответов
1754 просмотров

DevExpress Xtrareports using a Business object as a datasource

I am trying out DevExpress Xtrareports, but have asimple problem that I am not able to find an answer to. In an Asp.net website project, I want to add a business object to my report as a datasource and then drag and drop the fields from my new business object data source onto the report designer...

1
голосов
2ответов
371 просмотров

Link Two ObjectDataSource

My problem scenario is as follows: I have one GridviewA bound to a objectdatasourceA. When I click on a GridviewA row, I want another objectdatasourceB to pick the ID from the GridViewA and then fetch records for GridviewB. This is like masterdetail. Can i do this and how to use javascript/jque...

1
голосов
1ответов
3112 просмотров

.rdlc reporting bound to Object Data Source in Three layer Application

i have the following situation, i have a Reporting layer(stand alone) in asp.net application(NOT website, this means NO App_Code folder exists), and i want just to create Object Data Source to take an Object in a separate layer(lets say from Data Access Layer), and then to use that Object Data So...

0
голосов
2ответов
2188 просмотров

.NET Object Datasource, DetailsView and DropDownList

Ok, I am going to try and give a very bried yet detailed description of what I need to accomplish. First, I have a LinqToSQL datacontext defined that has an employee object. I then created a BLL (partial of employee) that handles my validations, inserts, updates etc. Everthing is good at thi...

1
голосов
1ответов
1915 просмотров

ObjectDataSource - SelectParameters using default value rather than FormParameter

I am using c#.net. I have a search form (within a View), when the user provides the correct details for each textbox and presses the search button, it redirects to another View within the same WebForm. I am using LINQ and ObjectDataSource to pull back the results for the database. As the query...

2
голосов
1ответов
1663 просмотров

How to use both DataSource and DataSourceID in gridview

work on C# asp.net vs05.i need to save some value and show them on the gridview.So under the button event i write a code that save value ,and show on gridview.I can save value but problem occur when show on gridview.So i use the DataSource .I also set the GridviewTask-->Choose Data Source--&gt...

0
голосов
1ответов
1528 просмотров

ASP.NET ObjectDataSource, change CommandName property of FormView Button

I have an ObjectDataSource that I'm using with a FormView, and it works fine, but i want to change one small thing. On the FormView the button that fires the update has the CommandName attribute set to "Update," but I would like to change that attribute to something other than "Update" - when I ...

1
голосов
1ответов
421 просмотров

ObjectDataSource trouble

I have been given a small project by the company I have applied for. They want a small application using asp.net GridView, FormView and an ObjectDataSource with a DataSet (xsd) file. I have been doing 3-tier applications but in a different way, I have my DataAccess layer as a c sharp file with me...

0
голосов
1ответов
1355 просмотров

refresh user control inside multiview

In my parentpage I have dropdownlist, multiview and button. Multiview has a user control. On click of the button i pass the selected value from dropdown to the user control and call the databind method to populate the user control with corresponding data. User control has gridview which is pop...

1
голосов
5ответов
5357 просмотров

System.FormatException: String was not recognized as a valid DateTime

I am using c#.net. Thanks in advance for any help. I am using a Repeater and a ObjectDataSource. I use LINQ to connect to the database. This requires a parameter to be passed through (used within the WHERE clause) public IQueryable<comments> GetComments(DateTime todaysDate) { ...

3
голосов
1ответов
1889 просмотров

SPGridView, data and correct method of ensuring data is safe

I am using an SPGridView to present some data, and have enabled the filtering ability which works very well. Until you choose a particular item in the data to filter on... The data item in question has an apostrophe in the string( e.g. "this is richards' string"), which causes the post-filter-a...

0
голосов
2ответов
2791 просмотров

Bind repeater to a list of files and/or folders

I would like to create a very simple image gallery. I am trying to figure out how to bind a Repeater to some kind of a custom object that would return back a list of files and/or folders. Can somebody point me in the right direction? UPDATE: Here's what i have so far, please let me know if ther...

0
голосов
1ответов
697 просмотров

Must I use parameters with an ObjectDataSource update?

I have a business object that I've been using, which has a bunch of properties and a Save method, which inserts/updates to the database. The save method is NOT status, so the object needs to be instantiated, and the properties for the DB update/insert get pulled from the object. Now I'm trying t...

0
голосов
1ответов
1179 просмотров

ObjectDataSource.Select with Parameters Time Out

I'm using an ObjectDataSource with a 2008 ReportViewer control and Linq to CSV. The ODS has two parameters (the SQL is spelled out in an XSD file with a table adapter). The Reportviewer takes a very long time to render the output after a button is clicked to generate the report. That's my first p...

4
голосов
4ответов
10462 просмотров

Objectdatasource and Gridview : Sorting, paging, filtering

Im using entity framework 1.0 and trying to feed out a Gridview with a objectdatasource that have access to my facade. The problem is, that it seems to be particulary difficult and haven't seen anything that realy do what i want it to do on the internet. For those who know, a gridview feeded wi...

4
голосов
1ответов
5385 просмотров

Data binding and user controls

This is really bugging me, so I hope someone can help me a bit 1) Assuming page contains user control, then Page.Page_Load is fired prior to UserControl.Page_Load: a) I assume that if Page contains ObjectDataSource1 control, then ObjectDataSource1 will perform data binding prior to UserContr...

2
голосов
1ответов
5934 просмотров

Is this the only way we can force ObjectDataSource to…?

Greetings, 1) I assume ObjectDataSource automatically binds to data source only on first request, but not on postbacks ( else ObjectDataSource.Selecting event would be fired on postbacks also, but it isn’t): A) So only way to force ObjectDataSource to also bind on postbacks is by manually ca...

1
голосов
1ответов
1253 просмотров

Add Controls to Panel after FormView insert help

Here's my HTML <asp:UpdatePanel runat="server" ID="panel1" UpdateMode="Conditional"> <ContentTemplate> <asp:FormView runat="server" ID="formViewUno" DataSourceID="odsBob" DefaultMode="Insert"> <InsertItemTemplate> ...

1
голосов
2ответов
2238 просмотров

ASP.net GridView and Object DataSource

How can I configure a ASP.NET GridView to populate it by an Object DataSource where the object method needs a noticeCode to pass by the C# code? StudentControlPanel.aspx.cs protected void Page_Load(object sender, EventArgs e) { string username = (string)Request.QueryString["username...

5
голосов
3ответов
21042 просмотров

Understanding ObjectDataSource and Select Parameters

I have in a GridView control a TemplateField like: <asp:TemplateField ItemStyle-Width="150px"> <ItemTemplate> <asp:DropDownList ID="ddlFields" runat="server" DataSourceID="odsOperator" DataTextField="Text" DataValueField="Value" /> <asp:HiddenField ID="hfField...

0
голосов
1ответов
639 просмотров

Problem: Sorting for GridView/ObjectDataSource changes depending on page

I have a GridView tied to an ObjectDataSource using paging. The paging works fine, except that the sort order changes depending on which page of the results is being viewed. This causes items to reappear on subsequent pages among other issues. I traced the problem to my DAL, which reads a page a...

3
голосов
1ответов
3315 просмотров

How do you save items from a CheckBoxList in a FormView?

I am using a CheckBoxList inside of a FormView with an ObjectDataSource. In order to bind the selected values to the CheckBoxList I am using the FormView_DataBound event to find the CheckBoxList and set the selected items. This works fine. Now saving these values is becoming problematic. Is it ...

16
голосов
4ответов
10423 просмотров

SqlDataSource vs ObjectDataSource

If a web page needs some data, why not just have a SQLDataSource call a stored procedure? Why use an ObjectDataSource to call a business object that then calls the stored procedure? I understand that other apps (lets say desktop apps) built on the .net framework can access the business objects, b...

35
голосов
2ответов
22050 просмотров

GridView bound with Properties of nested class

I have an object map similar to what's listed below. When I try to bind the properties of NestedClass in a GridView I get the error: "A field or property with the name 'NestedClass.Name' was not found on the selected data source." The GridView is bound to an ObjectDataSource and the ObjectD...

1
голосов
1ответов
1224 просмотров

ObjectDataSource DataObjectTypeName Help. Pass object as parameter

I have a partial class (the main class is a LinqToSql generated class) <DataObject(True)> _ Partial Public Class MBI_Contract <DataObjectMethod(DataObjectMethodType.Select, True)> _ Public Shared Function GetCancelableContracts(ByVal dealer As Dealer) As List(Of MBI_Contra...

0
голосов
1ответов
3542 просмотров

FilterExpression не работает? Зачем?

ObjectDataSource1.FilterExpression = "ИД пользователя КАК '{0}' И действие КАК '{1}'"; ObjectDataSource1.FilterParameters.Add ("идентификатор пользователя", ddlUsers.SelectedValue); ObjectDataSource1.FilterParameters.Add ("действие", ddlAction.SelectedValue); Я пишу вот так. когда ...