Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Browsing index pages (956 articles)
↧

Error in obj.staffs

        int staffID;        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)        {                   if (e.RowIndex != -1 && e.ColumnIndex != -1)            {...

View Article


Using ReportViewer with SQLDataSource and MySQL

Hallo,I've been asked to upgrade some asp.net form associated with a report running onIIS with MySQL database.Such .rdlc reports have been created with an older release of MS ReportDesigner. I found...

View Article


data update using control

Hi,I am new to programming, I am working on creating new web service that update database. My requirement is using a web services with vb.net.PLEASE HELP!Rani

View Article

Databind problem

I can't seem to get a simple .NET application to recognize a databound control.  Basically I have a .NET application, this time in Visual Basic, with an Entity build from an existing database.  When I...

View Article

Exception Unhandled (System.InvalidOperationException:'ExecuteReader...

Hi all. i am new to coding in visual studio(C#). I am using Windows Forms App (.Net Framework). I am currently doing this code but i meant an error. The error is shown in the title. These are my codes...

View Article


SQLDataSource SelectParameters value do not set

I'm working on a ASP.NET form that should populate a GridViewtrough a SQLDataSource using controls values (TextBoxes, DropDownList) to set SelectParameters values. The ASP code below depict the most...

View Article

Using DropDownList empty value as SelectCommand ControlParameter

I need to use a DropDownList as a control to provide parameters to my query.<asp:ControlParameter Direction="Input" DbType="String" ControlID="_ddlMonth" ConvertEmptyStringToNull="true"...

View Article

ASP.NET SQLDataSource SelectParameters not set correctly

I have an `ASP.NET` web form coded like this:<asp:TextBox ClientIDMode="Static" ID="_txtExitDate" runat="server" EnableViewState="true" /><asp:TextBox ClientIDMode="Static" ID="_txtEnterDate"...

View Article


Commands out of sync; you can't run this command now

I am running a .Net WebForms site that queries a MySQL database repeatedly in order to fill drop-downs on a form.  The queries are almost all stored procedures if that makes a difference.  This has...

View Article


System.ComponentModel.Win32Exception (0x80004005): The system cannot find the...

Hi,I am trying to generate a report by using SQL Server 2008 R2 File Stream and WCF Service. I am able to generate reports if the service is hosted in the same server which database is located i.e....

View Article

INSERT Date in SQL Datebase using SQLDATASOURCE Control

Hi,I have built a data entry page. In which there re more than 20 Data which are being inserted via text box, dropdownlist etc.Below is the aspx code snippet of SQLDATASOURCE...

View Article

Sql Server

 Hi,     I am very week in making Sql Queries.I cannot make even a single simple query.Please refer me some book or some site through which I can learn how to make queries and update my knowledge about...

View Article

SqlDatasource update values how to ?

HiI'm working with Mysql database and I need to update one field. Here is my code SqlDataSource1.UpdateParameters.Clear(); SqlDataSource1.UpdateCommand = "update contas set valor=valor+? where...

View Article


System.Data.SqlClient.SqlException: 'Incorrect syntax near the keyword 'order'.'

This message is popping up when I try to click the update button on my web form.else if (proc.Equals("u")) { string sql = "SELECT id,fName,lName,email,phone,make,model,yearmodel,problem FROM...

View Article

Paging in asp.net

HiIn ASP Classic I could do the paging like this:SQL_Code ="Select * from ..." Set rs = Server.CreateObject("ADODB.Recordset") PageSize = 20 rs.PageSize = PageSize rs.CacheSize = PageSize rs.Open...

View Article


Must declare the scalar variable "@id".

Hi,I am using membership system and trying to use search input box so that only specific member who is login and type in the input box and click on search only his submitted order shows up to...

View Article

Configuring data source (fail)

I've created a project in VS Community 19 to build a asp.net app. I also have a SQL on azure populated by a sync to an on-premesis SQL. But I can't get to show any of the SQL data in the app. Using...

View Article


reading the Value of a variable xy

In asp classic I have the following procedure to give over the value of variable xy to Value1...Function Func_Replace(Variable) ...    Value1 = Eval(Variable) ... end functionnow: Eval(...) doesn't...

View Article

how to calculate any kind of formula?

HiI have the following problem: I have any formula: e.g. (10+5)^3-255/5...In asp classic I could calculate the formula by using: execute("result = " & Formula)In asp.net I can't use 'execute'...

View Article

Looping through all fields of a query result

HiI have dynamical queries. So the results (table) are always different.In asp classic it was possible to find out the field names by:    for each field in rs.fields         FieldName = field.name...

View Article
Browsing index pages (956 articles)


Latest Images