15,907,000 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by waqar ahmad (Dev) (Top 11 by date)
waqar ahmad (Dev)
9-Jan-12 7:35am
View
I want to display like this
srno username Downlaod Date Time
1 waqar Download 09/01/2012
2 ali Download 09/01/2012
similary other records and files also display in Grid
How is it possible plz guide me i am new in ASP.net
waqar ahmad (Dev)
6-Jan-12 7:07am
View
From where i change the App pool indentity
waqar ahmad (Dev)
6-Jan-12 7:02am
View
How i change this security level permission
waqar ahmad (Dev)
31-Dec-11 2:00am
View
Thank Supriya Srivastav
waqar ahmad (Dev)
28-Dec-11 5:57am
View
Thanks Anushripatil
Now Its giving No Exception, but also not populating values in Drop Downlist. I think we are near to solution
waqar ahmad (Dev)
28-Dec-11 2:19am
View
I open it but still giving exception
System.Data.SqlClient.SqlException: Incorrect syntax near 'CustomerGroupContacts'.
Actuallay i have two tables
The id is one table1 and description in another table2 and i have to bind ID value dd.DataValueField from table1 and and description dd.DataTextField from Table2
waqar ahmad (Dev)
28-Dec-11 1:09am
View
My Code is for Filling Customer DropDownlist is
it giving error on dataset
public void FillCustomer(DropDownList ddsuplier)
{
DataSet ds = new DataSet();
using (SqlConnection con = ConnectionManager.GetConnection())
{
using (SqlDataAdapter da = new SqlDataAdapter("SELECT " +
"CustomerGroupContacts.cusg_id, " +
"CustomerGroupContacts.cusg_id+'___'+CustomerIDs.cusid_name as customername" +
"FROM " +
"CustomerGroupContacts INNER JOIN " +
"CustomerIDs ON CustomerGroupContacts.cusg_id = CustomerIDs.cusg_id", con))
{
da.SelectCommand.CommandType = CommandType.Text;
da.Fill(ds, "CustomerGroupContacts");
if (ds.Tables.Count > 0)
{
ddsuplier.DataSource = ds;
ddsuplier.DataTextField = ds.Tables["CustomerGroupContacts"].Columns["customername"].ToString();
ddsuplier.DataValueField = ds.Tables["CustomerGroupContacts"].Columns["CustomerGroupContacts.cusg_id"].ToString();
ddsuplier.DataBind();
}
}
}
}
waqar ahmad (Dev)
28-Dec-11 0:54am
View
Query is working in Sql server Query Editer and also shows data
waqar ahmad (Dev)
28-Dec-11 0:45am
View
Customer cusg_id char(4) its not integer
waqar ahmad (Dev)
28-Dec-11 0:41am
View
System.Data.SqlClient.SqlException: Incorrect syntax near 'CustomerGroupContacts'.
Source Error:
Line 30: {
Line 31: da.SelectCommand.CommandType = CommandType.Text;
Line 32: da.Fill(ds, "CustomerGroupContacts");
Line 33: if (ds.Tables.Count > 0)
Line 34: {
waqar ahmad (Dev)
29-Nov-11 5:40am
View
I fix my problem from your reply. I set decimal(8,4) for decimal value 4,4. Now when these values saved, are automatically round off e.g when I enter value 2.369 it will convert automatically 2.3700. I want to prevent it for automatically conversion.
Hope you have solution of my problem
Show More