15,896,154 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 eraser950 (Top 8 by date)
eraser950
13-Oct-10 5:01am
View
still the same problem can any one have idea how to resolve
eraser950
13-Oct-10 2:54am
View
is there any way to show all data when i search but just highlight the searched data so that this problem will solve
eraser950
13-Oct-10 2:47am
View
no dear its not worrking
eraser950
13-Oct-10 2:43am
View
thnx i willl try this
eraser950
13-Oct-10 2:34am
View
this is my complete code behind
" protected void GVCity_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GVCity.PageIndex = e.NewPageIndex;
BindData();
}
protected void GVCity_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
GVCity.EditIndex = -1;
BindData();
}
protected void GVCity_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
a = ct.DeleteCity(((int)(GVCity.DataKeys[e.RowIndex].Value)));
BindData();
lblMesg.Text = a;
}
protected void GVCity_RowEditing(object sender, GridViewEditEventArgs e)
{
GVCity.EditIndex = e.NewEditIndex;
BindData();
}
protected void GVCity_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridViewRow row = GVCity.Rows[e.RowIndex];
a = ct.UpdateCity(((int)GVCity.DataKeys[e.RowIndex].Value), ((TextBox)(row.Cells[1].Controls[0])).Text, ((TextBox)(row.Cells[2].Controls[0])).Text);
//Reset the edit index.
GVCity.EditIndex = -1;
BindData();
lblMesg.Text = a;
}
public void BindData()
{
string SP = "SelectCity";
DataTable dt = esp.ExecSP(SP);
GVCity.DataSource = dt;
GVCity.DataBind();
lblMesg.Text = string.Empty;
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
BindData();
}
lblMesg.Text = string.Empty;
}
}
string SP="SearchCity";//store procedure
DataTable dt= sr.ExecSP(SP, txtSearch.Text);//execute //sp //and //return datatable
GVCity.DataSource = dt;
GVCity.DataBind();"
plz tell me wt i m missing
eraser950
12-Oct-10 4:44am
View
edit,update and delete is handled automatically as i have used sql datasource it was working properly but when i have put the above code its not working and giving the error
eraser950
9-Oct-10 3:21am
View
thnx ur article helps me alot, but the problem now i m facing is that when i punch a sale order and second time i again punch sale order the SID is not incrementing it again take the previous SID until i close and reopen the web
eraser950
25-Sep-10 1:36am
View
thnx for ur help
Show More