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

I uploaded a video file into the SQL database converting into binary data.

I Have a Problem that to Retrieve Video File (.MP4) From SQL Server 2012 DataBase and which has toPlay on Media Player.In this i am going to upload a Video in DataBase and Display the Link in Listview,...

View Article


I Have a Problem that to Retrieve Video File (.MP4) From SQL Server 2012...

I Have a Problem that to Retrieve Video File (.MP4)  From SQL Server 2012 DataBase and which has to Play on Media Player.In this i am going to upload a Video in DataBase and Display the Link in...

View Article


Our Favorite Issue - procedure or function has too many arguments specified

Battling with this issue in both VB and C#, SQLDatasource and DetailsView data component. Insert/add method works fine, no errors reported. However the update functionality fails with the titled error....

View Article

How to Use UNION (Combine data from two table for bind GridView)?

HelloI have similar two table and need to combine them before bind to GridView.Googled and found UNION command but I dont know how to use it with my SqlDataSource.Any help?Here is my...

View Article

How to compare original and changed values when updating with ObjectDataSources

Hi All, I have a general query about SQL and object datasources in ASP.NET which I hope someone can shed light upon. Suppose I have a simple database table with just two fields: CountryCode - such as...

View Article


Select the same field from a Table more than once

HelloI have a table to store Contacts (ID, Name, ....)ID: is the primary keyIn another Table I store a School data (SchoolID, SchoolName, Supervisor, Manager, ....)Supervisor and Manager are foreign...

View Article

How to call Eval by column index?

Hello,My resultset comes from a dynamic query, so that the column names are not known in advance.When binding those up with the GridView, I can't call Eval by name, how do I call them by column...

View Article

How best to code hierarchy controls bound to sqldatasource for search feature...

 On my main product  page I am having trouble getting my search controls to work in sequence.They  rely on other control for parameter values according to product selected from main menu. Each product...

View Article


Repeater controls dynamic display

HiI have database of users,items and bookmarks tables.When user bookmarks an item it stores user id and item id into bookmarks tableI have a repeater that shows many items list using data binding and...

View Article


TSQL SELECT Question

I want to get results from a specified row to another specified row like: row 1 to row 10 row 11 to row 20 i don't know how the TSQL code would look like: SELECT FROM [myTable] FROM ROW 1 TO ROW 10...

View Article

Sql question( select the first, second row in the table)

In MS Sql server, no "first" function, how to select only the first row? By the way, how to select only the seoncd row? Thx

View Article

This code executes but the record does not change

Any ideas why this is not updating the record? Using Conn As New SqlConnection(ConfigurationManager.ConnectionStrings("cerberusConnectionString").ConnectionString) Dim strDocids As String =...

View Article

Uploading images through the ObjectDataSource control

Question? Why is it when I use the SqlDataSource control that hard codes the SQL insert statement will allow me to add images in the database but when I use the ObjectDataSource control pointing to my...

View Article


SQL report to change data from all data in one column to display in one row...

If I have the below data in one tableWhat I need is a SQL query that would GROUP all items from the PRODUCT column, and show each ID in a separate column, I could predetermine the max columns neededSo...

View Article

SQLDataSource/webform date fields access

Hallo,I got a problem trying to manage date fields using SQLDataSource inside a webform.I got a very simple page with some text fields and a datefield. I'm using a SQLDataSource control to feed the...

View Article


Duplication of record in store procedure when I add the second 2nd Stored...

select top 20 ROW_NUMBER() OVER (Order by Sum(TB1.TT) Desc) as Srno, @CompanyName AS CompanyName,@RegistrationNumber AS RegistrationNo,@ParentCompanyName AS ParentCompanyName, @MOHFacilityCode AS...

View Article

Duplication of record in staore procedure 1

select top 20 ROW_NUMBER() OVER (Order by Sum(TB1.TT) Desc) as Srno, @CompanyName AS CompanyName,@RegistrationNumber AS RegistrationNo,@ParentCompanyName AS ParentCompanyName, @MOHFacilityCode AS...

View Article


Trouble while passing DataTable from .Net to SQL Server 2008

I am trying the new feature in SQL Server 2008 where you can pass in a DataTable to a stored procedure.I am using the SQLHelper class to pass the datatable formed to the DataBase.Here's the...

View Article

How do you retrieve a control value in a FormView onItemUpdating?

I want to update the users email address in an asp.net identity table when saving. The issue that I see is in the method UserProfileFormView_ItemUpdating. I am not able to retrieve the new entered...

View Article

How to use parameter with IN operator in SQL query

I am trying to use a parameter in a query in conjunction with an IN operator.  I'm finding that the query works when the parameter works out to as single value...EOOI...returning the expected dataset...

View Article
Browsing all 956 articles
Browse latest View live


Latest Images