16,018,919 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 Visual Basic questions
View Javascript 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 ArvindTomar (Top 16 by date)
ArvindTomar
21-Aug-23 14:56pm
View
it is not provide accuracy if any other method is there or any code link so please tell me.
ArvindTomar
12-Dec-18 6:45am
View
after long R & D Finaly i Got the answer i use ironpdf.dll for control the height and with of grid and page
Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f);
HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
string appPath = HttpContext.Current.Request.ApplicationPath;
pdfDoc.Open();
Panel pnl;
StringWriter sw = new StringWriter();
for (int i = 1; i <= 5; i++)
{
string Id = "pnldata" + i;
pnl = (Panel)FindControl(Id);
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
pdfDoc.SetPageSize(new Rectangle(595, 850));
htmlparser = new HTMLWorker(pdfDoc);
pdfDoc.NewPage();
pnl.RenderControl(hw);
StringReader sr = new StringReader(sw.ToString());
htmlparser.Parse(sr);
}
}
var Renderer = new HtmlToPdf();
string html1 = "" + sw.ToString() + "";
StringBuilder html = new StringBuilder(html1);
Renderer.PrintOptions.PaperSize = PdfPrintOptions.PdfPaperSize.A4;
Renderer.PrintOptions.PaperOrientation = PdfPrintOptions.PdfPaperOrientation.Portrait;
// Renderer.PrintOptions.Header = new SimpleHeaderFooter() { CenterText = "Iron PDf C# Html to PDF Example", FontSize = 10 };
// Renderer.PrintOptions.Footer = new HtmlHeaderFooter() { HtmlFragment = "
page {page} of {total-pages}
" };
var PDF = Renderer.RenderHtmlAsPdf(html1);
string path = Server.MapPath(appPath + "\\files\\" + "DeliveryChalan" + FileName + ".pdf");
PDF.SaveAs(path);
ArvindTomar
11-May-18 7:59am
View
Session.Abandon method logout current session but i want to refresh all my application tab in browser when change session value on dropdown selected index changed
ArvindTomar
4-Jan-18 3:13am
View
I am using switch statement and around 700-800 cases in switch
how can i trace error in witch case have problem system show error on switch. it is working fine with source code but not working when i host site on IIS
ArvindTomar
3-Jan-18 9:53am
View
i have checked but debugger not go to particular case it show the
Error on switch "an unhandled exception of type 'system.stackoverflowexception' occurred in mscorlib.dll"
ArvindTomar
3-Jun-16 21:40pm
View
When use machinekey then webpage not open show error(internal error 500)
ArvindTomar
17-Mar-16 6:32am
View
yes both are accessible
ArvindTomar
16-Mar-16 4:24am
View
Code work properly but i want to use not in condition to insert data one table to another it is not work .
can any one help me
my insert query is below
string query = "INSERT INTO " + schemaTable.Rows[29].ItemArray[2].ToString() + " IN '" + templetDataTable + "' SELECT * FROM " + schemaTable.Rows[4].ItemArray[2].ToString() +" WHERE PARANAME NOT IN (SELECT PARANAME FROM " + schemaTable.Rows[4].ItemArray[2].ToString() + ")" + "";
ArvindTomar
11-Dec-15 8:33am
View
I am using visual studio 2008 for web application I take one web page in which take grid view and in grid view first column on blur fill row
ArvindTomar
3-Nov-15 1:18am
View
I want to create map as a show like image(for dashboard) dynamicaly in asp.net
ArvindTomar
3-Nov-15 0:24am
View
I want to show state wise sale on india map dynamicaly in asp.net
ArvindTomar
1-Oct-15 11:23am
View
i want to create login and data insert web services and get data in json format not in xml format
ArvindTomar
22-Sep-15 11:58am
View
$("[id*=gvRetailOrder] tr").not($("[id*=gvRetailOrder] tr:first-child")).remove();
and when remove this line from my code then insert whole grid with first 1 column
ArvindTomar
22-Sep-15 11:43am
View
$(function() {
$("[id*=lnkITEM]").click(function() {
var Price_List = document.getElementById("<%=txtPriceList.ClientID%>").value;
var retailItem = "";
var grid = document.getElementById("<%= gvRetailOrder.ClientID%>");
for (var i = 0; i < grid.rows.length - 1; i++) {
var txtAmountReceive = $("input[id*=gvtxtItemCode]")
if (txtAmountReceive[i].value != '') {
retailItem=txtAmountReceive[i].value;
}
}
GetStockDetail()
// window.open('../PopUpWindows/InventoryAndStorePopUp/RetailGeneralPopUP.aspx?ShowDetails=ItemCCH&Id=' + ItemCode + '&VariantId=' + VariantNo + '&ItemCodeV=' + retailItem + '&Description=' + Description + '&Description_Value=' + document.getElementById(Description).value + '&UOMId=' + UomId + '&WHID=' + WhId + '&RateId=' + RateId + '&AmountId=' + AmountId + '&QtyId=' + QtyId + '&Price_List=' + Price_List + '&Li_no=' + Sr_no, 'popupwindow', 'width=530,height=480,top=100,left=200');
// document.getElementById("<%=btnhelpwindow.ClientID%>").disabled = true;
// currentfocus = null;
return false;
});
});
function GetStockDetail() {
debugger;
var strStock = document.getElementById("<%=hdnStock.ClientID %>").value;
var xmlDoc = $.parseXML(strStock);
var retailItem = "";
var grid = document.getElementById("<%= gvRetailOrder.ClientID%>");
for (var i = 0; i < grid.rows.length - 1; i++) {
var txtAmountReceive = $("input[id*=gvtxtItemCode]")
if (txtAmountReceive[i].value != '') {
retailItem = txtAmountReceive[i].value;
}
}
var xml = $(xmlDoc);
var Stocks = xml.find("Table1");
// var row1 = $("[id*=gvRetailOrder] tr:last-child").prev("tr").clone(true);
// row1 = $("[id*=gvRetailOrder] tr:last-child").clone(true);
var row = $("[id*=gvRetailOrder] tr:last-child").clone(true);
$("[id*=gvRetailOrder] tr").not($("[id*=gvRetailOrder] tr:first-child")).remove();
$("[id*=gvRetailOrder]").append(row);
$.each(Stocks, function() {
var Stock = $(this);
if ($(this).find("ITEM_CODE").text() == retailItem) {
//Find TextBox using ClassName and set Value.
$("td", row).eq(0).val($(this).find("LI_NO").text());
$("td", row).eq(1).val($(this).find("ITEM_CODE").text());
$("td", row).eq(2).html($(this).find("VARIANT_NO").text());
$("td", row).eq(3).html($(this).find("DESCRIPTION").text());
$("td", row).eq(4).html($(this).find("SALE_UOM").text());
$("td", row).eq(5).html($(this).find("WH_NO").text());
$(".textqty", row).val($(this).find("QUANTITY").text());
$(".textRate", row).val($(this).find("RATE").text());
$("td", row).eq(8).html($(this).find("AMOUNT").text());
$("td", row).eq(9).html($(this).find("TC_CODE").text());
$("[id*=gvRetailOrder]").append(row);
}
// else {
// alert('Please enter valid item');
// return false;
// }
});
}
this work properly but
$("[id*=gvRetailOrder] tr").not($("[id*=gvRetailOrder] tr:first-child")).remove(); this line delete previous row this is the problem
ArvindTomar
22-Sep-15 11:00am
View
how can i do this thing
ArvindTomar
8-Jan-14 2:44am
View
i want to get notification like facebook, when any person insert data or register and admin get notification for approval in asp.net or aspx page npt on email id
Show More