Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Browsing all 956 articles
Browse latest View live

Bind Dropdownlist

HiI need to fill a Dropdownlist from one SQLDataSource , and Bind the selectedvalue to another SQLDataSourceNote:the dropdownlist and the (filling) sqldatasource locates in the edit template of a...

View Article


ObjectDataSource and FormView: How to manually load/save values?

Hello, I have an ObjectDataSource and a FormView. When I edit a record, all the fields are loaded automatically and also saved automatically, when the user clicks the insert/update button.However,...

View Article


DataSet Designer doesn't create INSERT/UPDATE/DELETE-Commands for View

Hello,I want to create a TableAdapter for a view. Unfortunately, the DataSet designer doesn't create INSERT/UPDATE/DELETE commands for it. I assume it's because it's a view.However, the view has...

View Article

Why can’t any references to my SQL database be found?

Errors occur everywhere there is an attempt to access a database table, such as with “TextTable texttable = db.TextTables.SingleOrDefault(p => p.TexID == TextID);” which state: Error 16...

View Article

asp:SqlDataSource delete command needs to have two sql statements to delete...

In the following code, you will see that the delete command has two statements.delete FROM gdsvalue.usersitesqueue where userid = (select iduserprofile from gdsvalue.userprofile where iduserprofile =...

View Article


Filter Text starts with Numbers

Hi,How to assign dataview rowfilter to sqldatasource filterexpression , which needs to show the list of text starts with numbers (sql query like'[0-9]%')ThxCS

View Article

DropDownList.DataBind() aborts when...

Hi,I have a SQLDataSource representing a list of cars (fictive) with one parameter:<asp:SqlDataSource ID="src_Cars" runat="server" ConnectionString='<%$ ConnectionStrings:MyConnectionString...

View Article

Sorting with ObjectDataSource and Report

I have seen examples online on sorting ObjectDataSource with GridView, but I have not been able to make it work with a Report because there is a DataSet, TableAdapter, etc.I would like to use exactly...

View Article


Showing a gridview within a listview

Hi,I must apologise if this seems a stupid question, but I have only just started with asp.netI have two tablesHistory with PSID, Surname, Week as fields TSHistory with TSID, PSID, Date, Hours as...

View Article


SelectCommand for NULL

I have a GridView that is populated with a SqldataSource Select Command, as illustrated below. When there is a "Null" value in a table cell (e.g. UA.Section) ... Then no results are displayed in the...

View Article

SqlDataSource and setting ControlParameters

Hi. I'm not a web developer. I'm a data warehouse dev but I've had this task dumped on me. My experience of asp.net and c# is very basic.I've got a data list view which is populated by a sql command...

View Article

Export SqlDataSource to excel

Hi,I want export all data of SqlDataSource to excel,How i do?Help me, Please

View Article

SQL Server Stored Procedure

I have the following VB.net code and would appreciate if some one help to do same in STORED PROCEDURE..---------------------------Dim myConnString As String =...

View Article


Image may be NSFW.
Clik here to view.

Pass session variable as parameter

Hello Every bodymy page contains a GridView that is bounded to SQLDataSourcethis is the SelectQuerySELECT Activity.ID,Activity.title FROM Activity WHERE Activity.Department=(SELECT Department.ID FROM...

View Article

Update Distinct

I have a table that has an ReviewNum, Facility, Area and SubArea.ReviewNum     Facility     Area     SubArea1                        PD            301        ME2                        PD...

View Article


Listview label into a session variable

Hi,After having my previous problem solved here I thought I would again turn to this site for help.It seems such a simple event, but I can't get it to work correctly. To aid with security I've changed...

View Article

How to start reading Table or Query from a specific record onwards?

I have a requirement to read an SQL Table or Query STARTING from a specified record (MS Access 2010).This record could be identified by one unique field within it, not by record number.Let say we have...

View Article


why is not declared. It may be inaccessible due to its protection level?

i don't know why i received this error "DTLLigue' is not declared. It may be inaccessible due to its protection level"<asp:Repeater id="DTLDispo" runat="server"...

View Article

About paging an objectdatasource

Hi all:I have an objectdatasource<asp:ObjectDataSource ID="objdspuntosganados" TypeName="comercial.puntos_ganados_datospersonales" SelectCountMethod="seleccionar_cuenta" EnablePaging="true"...

View Article

How to apply an arbitrary filter expression to ListView?

Hello,I have a ListView that shows documents. The documents may belong to an organization, a room or whatever. To show the right documents, I pass an arbitrary filter expression to the ListView.The...

View Article
Browsing all 956 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>