15,913,570 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 Member 10820603 (Top 10 by date)
Member 10820603
12-Jan-16 4:41am
View
Can you please give me an example?
Member 10820603
3-Sep-15 10:08am
View
System.Web.HttpContext.Current.Server.MapPath works perfectly but does not append. It replaces rather
Member 10820603
3-Sep-15 9:06am
View
I get this error "could not find a part of the path"
path is
string path = "Images/report.pdf";
Member 10820603
31-Jul-15 19:26pm
View
Thanks so much. It worked perfectly.
Member 10820603
15-May-14 11:41am
View
Thanks a lot. It works perfectly.
Member 10820603
15-May-14 8:52am
View
Do I need to add textboxes to the gridview code above?
Member 10820603
15-May-14 8:50am
View
there is no label or textbox in it
Member 10820603
15-May-14 7:34am
View
Deleted
there is no label or textbox in it
Member 10820603
15-May-14 7:24am
View
It still insert an empty space into the database.
I also want to mention that it is a web application.
Member 10820603
15-May-14 7:19am
View
I fill the gridview by another button click. I add one row at a time. That particular cell has "SNAR 105". Actually it is not only that cell I want to insert. I want to insert all the cells into the database but I know which column each cell should go to.
This is my gridview
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnRowDeleting="GridView1_RowDeleting"
ShowFooter="True">
<rowstyle backcolor="#E7E7FF" forecolor="#4A3C8C">
<footerstyle backcolor="#B5C7DE" forecolor="#4A3C8C">
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<alternatingrowstyle backcolor="#F7F7F7">
<columns>
<asp:CommandField HeaderText="Delete" ShowDeleteButton="True" />
<asp:TemplateField HeaderText="No.">
<itemtemplate>
<%#Container.DataItemIndex + 1 %>
<asp:BoundField DataField="id" HeaderText="No." Visible="False" />
<asp:TemplateField HeaderText="Code">
<edititemtemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Code") %>'>
<itemtemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Code") %>'>
<asp:TemplateField HeaderText="Course">
<edititemtemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Course") %>'>
<itemtemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Course") %>'>
<asp:TemplateField HeaderText="Credit">
<edititemtemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Credit") %>'>
<itemtemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Credit") %>'>
Show More