15,901,505 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 Lancy.net (Top 81 by date)
Lancy.net
19-Feb-14 3:29am
View
I have not locked it SA.
just opened a new project and when I try to go design view facing this issue
Lancy.net
14-Jun-13 0:34am
View
Thanks Amy I found the error
Lancy.net
25-May-13 9:55am
View
Thank you for your solution stll I am getting the same..
will try again and update u..
Lancy.net
4-Nov-12 23:26pm
View
Thanks a lot Abhinav i will chk and update..
Lancy.net
13-Jul-12 1:01am
View
Thanks for yr reply vani ... i need to extract all the .png images from word to a folder with .jpeg.
Lancy.net
21-May-12 0:01am
View
Hi Thanks for yr reply.Cells[1] i have the value what i need.
Every row has a button on button click i should get Cells[1] value.
when i chk with break point SelectedRow=null.
please correct.
Lancy.net
9-Apr-12 6:07am
View
Hi i tried with the example i can add a row after item template but not after header...Your help needed.
Lancy.net
8-Apr-12 23:44pm
View
Hi Thanks for your reply....
I need to create a row after the header template could u pls assist?
Lancy.net
24-Mar-12 12:58pm
View
Hi I am getting a error "The table width must be greater than zero.
"
Stack Trace:
[ArgumentException: The table width must be greater than zero.]
iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, PdfContentByte[] canvases, Boolean reusable) +162
iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, PdfContentByte canvas, Boolean reusable) +458
iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 colStart, Int32 colEnd, Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, PdfContentByte canvas) +57
iTextSharp.text.pdf.PdfPTable.WriteSelectedRows(Int32 rowStart, Int32 rowEnd, Single xPos, Single yPos, PdfContentByte canvas) +53
Admin_Pages_DO_Management_Print.btnExport_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Invoice\Admin_Pages\DO_Management\Print.aspx.cs:223
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Lancy.net
24-Mar-12 11:14am
View
Thanks Shiva for your reply i will try and let you know...
Lancy.net
22-Mar-12 2:41am
View
Hi I need it for pdf....
Lancy.net
21-Mar-12 0:20am
View
Thank you..
Lancy.net
19-Feb-12 6:38am
View
Thanks Edward you are right my question is why the whole page goes white when the box is shown?
Lancy.net
15-Feb-12 22:15pm
View
Hi Amith thanks for yr reply ... i need for Lan...any suggestions...
Lancy.net
13-Feb-12 2:09am
View
Thanks..
Lancy.net
13-Feb-12 1:59am
View
Thanks for your reply Friend
i checked dont have any duplicate entries......
is their any other possibilities....
Thanks
Lancy.net
12-Feb-12 4:55am
View
Hi Rahul i am new to this..
would you mind in explaining this to me...
Thanks
Lancy.net
12-Feb-12 4:30am
View
Thanks...i will try and revert u soon..
Lancy.net
12-Feb-12 1:30am
View
sorry may be my question is not clear
what i need is count value should reset every year...
for example if i have 10 dos in jan starts with 2012scl001-Do--2012scl010-Do
feb one 2012scl011.........
2013 jan first do must 2013scl001
Lancy.net
9-Feb-12 3:31am
View
Its for Invoice below the main header need to add another row......
Lancy.net
4-Feb-12 3:45am
View
Hi Thanks for your comment...i want to use this to print invoice pdf using iTextsharp...
Reason for many dataset is Header,Footer,Item Details,Address..
I am planning to bring all in one xml then to print pdf..
Lancy.net
4-Feb-12 3:38am
View
hi i need your valuable suggestion how do i do this please?
Lancy.net
4-Feb-12 3:37am
View
Thanks Mika let me try....
Lancy.net
4-Feb-12 1:59am
View
Thanks jai
Lancy.net
11-Dec-11 2:33am
View
Thanks...
Could you pls have a look i have posted complete code
private void AddNewRowToGrid()
{
int rowIndex = 0;
float total;
float subtotal = 0;
if (ViewState["CurrentTable"] != null)
{
DataTable dtCurrentTable = (DataTable)ViewState["CurrentTable"];
DataRow drCurrentRow = null;
if (dtCurrentTable.Rows.Count > 0)
{
for (int i = 1; i <= dtCurrentTable.Rows.Count; i++)
{
//extract the TextBox values
TextBox box1 = (TextBox)ItemGv.Rows[rowIndex].Cells[0].FindControl("itemNotb");
TextBox box2 = (TextBox)ItemGv.Rows[rowIndex].Cells[1].FindControl("desctb");
TextBox box3 = (TextBox)ItemGv.Rows[rowIndex].Cells[2].FindControl("qtytb");
TextBox box4 = (TextBox)ItemGv.Rows[rowIndex].Cells[3].FindControl("upricetb");
TextBox box5 = (TextBox)ItemGv.Rows[rowIndex].Cells[4].FindControl("amounttb");
drCurrentRow = dtCurrentTable.NewRow();
drCurrentRow["ItemNo"] = box1.Text;
drCurrentRow["Description"] = box2.Text;
drCurrentRow["Qty"] = box3.Text;
drCurrentRow["UnitPrice"] = box4.Text;
drCurrentRow["TotalAmount"] = box5.Text;
for (int j = 0; j < ItemGv.Columns.Count; j++)
{
total = Convert.ToInt32(box3.Text) * Convert.ToSingle(box4.Text);
box5.Text = total.ToString();
}
for (int k = 0; k < ItemGv.Rows.Count; k++)
{
subtotal = subtotal + Convert.ToSingle(box5.Text);
subtotaltb.Text = subtotal.ToString();
}
rowIndex++;
}
Lancy.net
9-Dec-11 2:59am
View
Hi could you pls help GridViewRow iam able to use for GridViewColumn getting error as "Error 3 The type or namespace name 'GridViewColumn' could not be found (are you missing a using directive or an assembly reference? need to add any reference
"
Lancy.net
9-Dec-11 0:14am
View
Thanks Friend
Lancy.net
9-Dec-11 0:11am
View
Thanks if it is dynamic column how to do the multiplication?
Lancy.net
8-Dec-11 3:36am
View
Deleted
Thanks
Lancy.net
6-Dec-11 6:57am
View
Thanks
Lancy.net
6-Dec-11 6:56am
View
Thanks
Lancy.net
3-Dec-11 20:56pm
View
Hi thanks for your reply
i used connection string pls see the code below
Lancy.net
1-Dec-11 3:19am
View
i dont know my question is correct or not? what the code u have given is for DDlist,Gview,detailview individually ... what i want is when i select let say dgg0001 as donumber in dropdown list in detail view it should display customer name,address for donumber related ,GRid view ---- item details please advice
Lancy.net
1-Dec-11 3:08am
View
hi thanks for your reply i have a doubt please
in one select statement we have to get all the values or
for grid view seperate and detail view seperate...
Lancy.net
30-Nov-11 1:34am
View
thanks for your reply
i need a line in that label should be the center aligned, sorry not underline..
Lancy.net
30-Nov-11 1:20am
View
Thanks karthik if i use this for example the text is Hi length of u is covering only hi my requirement is u must be longer and text center aligned in that
Lancy.net
29-Nov-11 5:15am
View
thanks prasad
Lancy.net
29-Nov-11 0:42am
View
Thanks for your reply ..issue not solved
Lancy.net
28-Nov-11 23:24pm
View
Hi Eduard thanks for your reply
i tried the same DetailsView1.Rows.Count != 0 becoming false
i have given aspx code above could you please correct where it is going wrong
Lancy.net
28-Nov-11 23:21pm
View
yes hi i will attach my aspx could you please chk am i doing any thing wrong
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px"
Width="554px" AutoGenerateRows="False" BackColor="White" Visible="false"
BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
GridLines="Horizontal" >
<footerstyle backcolor="White" forecolor="#333333">
<rowstyle backcolor="White" forecolor="#333333">
<PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
<fields>
<asp:TemplateField HeaderText="Company Name">
<itemtemplate>
<asp:Label ID="complbl" runat = "server" text='<%# Eval("CompName")%>'>
<asp:TemplateField HeaderText="Company Address">
<itemtemplate>
<asp:Label ID="addlbl" runat="server" Visible="true" text='<%# Eval("CompAdd")%>'>
<HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
<editrowstyle backcolor="#339966" font-bold="True" forecolor="White">
Lancy.net
28-Nov-11 4:45am
View
Thanks sagar...again error is "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
Lancy.net
28-Nov-11 4:38am
View
Thanks for your reply .. same error continuing
Lancy.net
25-Nov-11 6:04am
View
Thanks for your reply.. still the same
Lancy.net
25-Nov-11 5:09am
View
thanks it is not working
Lancy.net
25-Nov-11 0:50am
View
Thanks
Lancy.net
25-Nov-11 0:50am
View
Thanks
Lancy.net
24-Nov-11 23:43pm
View
Thanks
Lancy.net
24-Nov-11 22:52pm
View
Thanks Vinoth
Lancy.net
24-Nov-11 8:12am
View
Hi Anil thanks for your reply .. using dropdown list i have binded the value to detail view now my issue is grid view and textboxes, any suggestion how to link?
Lancy.net
23-Nov-11 7:47am
View
Thanks...
Lancy.net
23-Nov-11 4:37am
View
Thanks
Lancy.net
23-Nov-11 4:12am
View
Thanks for your reply? when you started learning that time some one reply to you like this how do you feel? why i should i want your approval???
Lancy.net
22-Nov-11 8:14am
View
Thanks for your reply
Lancy.net
21-Nov-11 9:09am
View
Thanks..
Lancy.net
21-Nov-11 4:13am
View
Hi Srinivas
Thanks for your reply.
string id = DetailsView1.Rows[0].Cells[1].Text.Trim(); is correct.
But i am able to take all row value and the cell value except what i want?
Rows[0].Cells[1].Text i am getting null value any suggestion?
Lancy.net
18-Nov-11 22:16pm
View
thanks
Lancy.net
18-Nov-11 22:15pm
View
Thanks
Lancy.net
15-Nov-11 3:19am
View
Hi Pranit and Hilmisu I am sorry this is my first project may be my question is wrong.
i am confused with this when i am adding the value of dynamic text box to datable can i add the value of other field also together? how to add? any links related to this?
Lancy.net
15-Nov-11 2:29am
View
Thanks Tushar for your repy .. the link is not opening .. do you know any other links like this?
Lancy.net
14-Nov-11 23:58pm
View
Thanks a lot Prerak.
I have a query could you please help
My project is invoice Management
i have tables like customer details , Items & Calculation
i am confused with the Item Table since this is my first project not able to design properly
item table i have fields like Item No,Description,Qty,donumber,dodate i cannot make any fields us primary key from this(values not unique). these values i am taking from dynamic textboxes and saving into datatable then i am inserting it to database.i have two other field also like dono and doDate. I am planned Dono to make us primarykey.
But really no idea how to add donumber and dodate value to the item table.since i am inserting first 3 values from datatable to item.
could you pls advice how to do?
Thanks for your help
Lancy.net
14-Nov-11 9:57am
View
yes , i made few changes pls see below
const string insertsql = "INSERT INTO Items(Description,ItemNo,Qty)VALUES (";
sb.AppendFormat("{0}", insertsql);
foreach (string item in sc)
{
if (item.Contains(","))
{
splitItems = item.Split(",".ToCharArray());
sb.AppendFormat("'{0}','{1}','{2}');", splitItems[0], splitItems[1], splitItems[2]);
}
}
Now if i have one row of data i am able to save it to database.
if more than one row getting error as incorrect statement near '{2}' pls chk
Lancy.net
14-Nov-11 8:47am
View
Hi just i have started learning asp.net.. i hope you are well experienced.. thanks for your comments..one request pls read the question before answering..it is adding data table value to sql..
Lancy.net
14-Nov-11 7:53am
View
Hi thanks for your kind reply, i have tried your code also again i am getting the error as "AddItem Error:Incorrect syntax near 'INSERT INTO Items(Description,ItemNo,Qty)VALUES'." i will attach stack track also
Lancy.net
14-Nov-11 3:52am
View
Thanks Prerak,Timber my first cell is BoundField and done some changes bit confused bacause of that thanks...
Lancy.net
10-Nov-11 22:50pm
View
thanks a lot this is the one what i am looking.but since i am new feeling some difficulties in adding references like System.Web.Mvc.dll(dont have in my Microsoft ASP.NET folder), Jason and Datatable could you please guide how to do that?
Lancy.net
10-Nov-11 2:58am
View
Thanks i will try..
Lancy.net
10-Nov-11 0:50am
View
thanks sriman my invoice consist of tables, textboxes, lines..
can i go ahead with crystal report?
Lancy.net
10-Nov-11 0:48am
View
thanks
Lancy.net
8-Nov-11 5:14am
View
Thanks prerak
Lancy.net
7-Nov-11 11:14am
View
Hi thanks for your reply first time trying this..
Lancy.net
7-Nov-11 8:08am
View
Hi Mukund thanks for your suggestion currently working on it..
Lancy.net
5-Nov-11 8:56am
View
Thanks i too find just now
Lancy.net
5-Nov-11 7:44am
View
Thanks Deepak let me try
Lancy.net
5-Nov-11 7:43am
View
Thanks Arun
Lancy.net
5-Nov-11 3:04am
View
Thanks
Lancy.net
5-Nov-11 0:52am
View
Database value to UI
Lancy.net
5-Nov-11 0:51am
View
yes deepak you are correct
Lancy.net
4-Nov-11 12:36pm
View
Hi Arya thanks for your quick reply could you pls give a sample for SCOPE_IDENTITY()i feel this is better.
Lancy.net
4-Nov-11 12:34pm
View
Thanks i will try for next option
Lancy.net
4-Nov-11 11:55am
View
Hi srimanch any updates?
Lancy.net
4-Nov-11 11:54am
View
hi sercan any updates?
Show More