datasource

Sql datasource wizard problem

hi guys i have an error with sqldatasource. When i click sqldatasource's updatequery property visual studio give an error: Microsoft Visual Studio Could not load file or assembly 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\%DXROOT%\ProductionTools\BuildComponents.dll' or one of its dependencies. The system cannot find ...

How to access to the elements properties inside a Repeater?

Hi, I have a Repeater control who has its dataSource setted with a typed object list and in the inline code I want to access to its elements properties inside the ItemTemplate tag. I tried this with the eval expression but it does not work: <ItemTemplate> <tr> <td><%# Eval("code") %></td> <td><%# Eval("description") %></td> ...

Asp.net Datasource - view sql data by lookin at datasource object?

Is there a way to view data that is returned from db by looking at DataSource or DataSourceView object in codebehind? I'm trying to view DataSourceView in debug but I don't see the data returned. ...

C# - ListBox DataSource property and binding an ArrayList

Hi. I created an ArrayList which contains KeyValuePair<string, string> objects. There are ListBoxes which I would like to bind to that list so that I do not have to fill them by iteration, copying at the same time all the data I have in the above mentioned ArrayList. I am a Delphi programmer and in Delphi I would use the ListView contr...

Generating Columns in GridView ( C#, LINQ )

The situation is, that i need to create table in grid view looking like this: ----------| ID---|---Name--|--1/2002--|--2/2002--|--1/2003--|........| 2/2009 | Cust1--| Cust2--| : : I have two tables in db - Customers and orders, throught LINQ to SQL DataContext ID and Name of the customers i´m getting from a simple query var custInfo = ...

JBoss Database Connection Pool

I am new to jboss and i have been asked to incorporate jboss connection pooling mechanism with an existing web application. Considering that a web application database layer is properly written i.e. all resultsets, statements and connections being closed properly when not needed, What all code changes i will have to make in my web app af...

Multiple Listboxes bound to same List

I am trying to bind several ListBoxs to a List. When a ListBox on one form is updated, I want it to update the other ListBox, too. The problem I am running into is that it doesn't seem to update the view on the ListBox when I update the underlying List. If I look at the ListBox.Items in debug, I can see that all the items I add are th...

SQL Server Reporting Services Datasource keeps losing database login credentials

In my development environment, every time I reboot windows (which must be done at least daily for me), all of my Shared SSRS Datasources lose their credentials. Currently I have them set up to log into the database using a fixed credential, but on reboot all the datasources pop over to using no credentials. Granted, it's only in the de...

How can I databind dynamically loaded DataGridViews?

I'm developing a Windows Forms application in VS2008. I want to display a unknown, but small number of DataGridViews on a form, using code like this: foreach (QueryFilter f in Query.Filter) { DataGridView grid = CreateGridView(String.Format("GridView{0}", filters.Count)); grid.Location = new System.Drawing.Po...

Where does a Datasource object belong to? Controller or Model?

I'm implementing a datasource object for an UIScrollView. Is that part of the Controller, or part of the Model? I think Controller, but not sure. It delivers the data. But the data could be in sqlite3, files, from the net. So actually I would say it's not from the Data part, since it should be flexible to from where the data comes. What ...

DataGridView and DataSource: Any way to display fields linked to by foreign keys easily?

I have a three-tier Windows Forms DB application in VB.NET. I'm using VS 2005. I'd like to display records in a table in a DataGridView. I can already display the records as is by binding the DataSource to the business class that talks to the DB class: Dim assetList as List(Of Asset) assetList = DB_Asset.GetAssetListOrderByID_Asset ...

DataGridview Problem

I have three column in my datagridview .One is text ,one is Combo and another one is Text ...i dont want to use datasource want to add values on cell like datagridview.Rows[].cells[].value. Help me how i can do it? My database have several columns...How to add column value dynamically.... ...

DataTextField in a ListBox is a combination of 2 fields.

I have a listbox containing Users. The datasource is an generic list of the type User (contains, id, firstname, lastname, ...). Now I want to use the id as datavalue (through dataValueField) and I want LastName + ' ' + Firstname as a DataTextField. Can anyone tell me how this is possible? I'm using C# (ASP.NET). ...

Silverlight that degrades to html

I am interested in creating a website entirely in silverlight (personal reasons) but I don't want people who don't yet have silverlight (a good many) to have to install a plugin just to view my site. The solution I am leaning towards is to start with a flat html/css version of the site and present the silverlight version only to people w...

LINQ and Devexpress Grid Datasource

I have a DevExpress grid (DevExpress.XtraGrid.GridControl 8.2) with a datasource set at runtime like so: private DataContext db = new DataContext("connection string"); gridControl.DataSource = from t in db.sometable select new { Field1 = t.Name, ...

ASP.Net Datalist with linked DataSourceId does not reload

I have a MultiView control which has a View in which a DataList is filled like this: <asp:DataList ID="DataList6" runat="server" DataSourceID="SqlDataSource11" Width="100%"> <ItemTemplate> <!-- rendering is left out to keep this sample simple --> </ItemTemplate> </asp:DataList> The problem is that when I switch to another view of t...

Visual Studio 2008 SP1 Not allowing to add website datasources

Hi all. I have a project with two reports (master.rdlc & detail.rdlc) wich both uses datasets to fill data. So far so good. They work ok, or used to work ok. For some reason, they lost the references to the datasets and the datasets are not showing in the Website Data Sources window so I'm unable to work with them. Also in the window W...

How can I bind a combobox field of a databound object to a datasource and still allow nulls?

I have a form databound to a customer object, and one of the fields is a nullable int representing a "type". This is displayed as a combobox, and the combobox is bound to the "Types" table. When a customer with a null type is loaded into the form's datasource, the combo box displays no value, but then upon clicking it you must select a...

Does Reporting Services 2008 support multiple datasources for a single object?

i.e. Can you have more than one data source in a table, or do you still need to use subreports if you want that functionality? ...

Reading data from BaseDataBoundControl.DataSource (ASP.NET GridView)

I have an ASP.NET 3.5 GridView on a WebForm. The GridView gets data from an ObjectDataSource which is set via the DataSourceID property in the code in front. The ObjectDataSource returns a List of custom data class objects (just a class with public properties) to populate the GridView. What I want to do is use the a List comsumed by t...