16,012,611 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 .NET 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 Member 11796666 (Top 11 by date)
Member 11796666
12-Jul-15 10:56am
View
Dear Phil.o
When I used the query("OW_NUMBER() OVER (ORDER BY t.Score DESC) AS Rank") in my webform, a problem is occured with my e.commandargument. It was arranged (0-1-2-3-...). In fact, e.commnadargument should be depends on clicking mouse click on the gridview column(as TemplateField which is binded to my table).
Member 11796666
12-Jul-15 7:50am
View
Dear Phil.o
It is Microsoft SQl Serevr 2008
Member 11796666
11-Jul-15 17:39pm
View
Dear ....
I used this and it was useful but there is an error as below:
"THE OVER SQL construct or statement is not supported"
but an additional column(1-2-3-...) is added to my table in sql.
what about the error?
best wishes
Member 11796666
11-Jul-15 4:51am
View
protected void Button1_Click(object sender, EventArgs e)
{
int id = Convert.ToInt32(ViewState["id"]);
SqlConnection con = new SqlConnection()
//con.ConnectionString = "";
string q = "update ooo set title=@title where id=@id";
SqlCommand cmd = new SqlCommand(q, con);
cmd.Parameters.Add("@id", id);
cmd.Parameters.AddWithValue("@title",TextBox1.Text);
cmd.Parameters.AddWithValues("@title1",TextBox2.Text);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
}
}
Member 11796666
11-Jul-15 4:49am
View
Dear Richard
To complete the program, It is enough to add these;
TextBox2.Text = dr["title1"].ToString();
cmd.Parameters.AddWithValue("@title",TextBox2.Text);
best wishes
Member 11796666
4-Jul-15 6:52am
View
Dear Richard
I used one textbox in my program for simplicity to show the program for you. In fact in my program I have used more than one label and textbox. But the problem is datareader and I do not know how to solve the problem.
Best wishes.
Member 11796666
2-Jul-15 10:57am
View
Dear Richard
In fact, I need more than one record to show. Therefore I could not use ExecuteScalar().
thank for your time
Member 11796666
30-Jun-15 7:05am
View
In fact, Datareader does not allow to button click to change the title in sql. textbox is affected by datareader and the its value does not change.(textbox1 is showing the datareader values and also is used to change the title). I want to eliminate the effect of datareader when the button is clicked.
best wishes
Member 11796666
30-Jun-15 2:43am
View
Dear Richard
I tried your advise, But the problem has not been solved.
Member 11796666
29-Jun-15 9:17am
View
Dear My Friends
The Problem is solved. Thanks for your time and attentions.
Best wishes
Member 11796666
27-Jun-15 11:41am
View
I do not think so. But please explain your answer more for me.
Show More