16,019,140 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 Rustam Ansari (Top 20 by date)
Rustam Ansari
24-May-15 9:59am
View
Hi Frankie
I am using this Rich text box editor in our Application
http://richtexteditor.com/demo/default.aspx
Every thing is good in this editor. I want only No. Of pages in below side. Could you Please help me How can I do it?
Rustam Ansari
24-May-15 9:03am
View
<%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>
<RTE:Editor ID="txtEditor" ContentCss="CSS/example.css" runat="server" width="90%" Height="450" />
I am using this Rich Text box Editor. In this editor I can't fire the text_Changed event or OnClick, onblur event is also not working. I checked it same. Please share me some links if you have any solution for this
Rustam Ansari
24-May-15 4:18am
View
There is any other way to display the count of total Pages in label. I have words count and character count through by Rich text box through by J-Query, Java-Script, or Ajax any of them.
Rustam Ansari
24-May-15 4:00am
View
I have checked all the above link what's you have shared for me, but it's not useful for me. I want to display the Number of pages in Rich Text Editor. I have total Character Count and words count whatever I have written in Rich text box editor. When I click on print option then I have get that all the page number along with data what I have written in Rich text box editor I want to same display page number in editor without clicking on print option.
I am Using Asp.Net, C#, Web based Application
Rustam Ansari
2-Apr-15 9:11am
View
Having a same problem passing value C# to word and also add Header and Footer if you have any solution please let me know
Rustam Ansari
2-Apr-15 9:03am
View
I have follow up so many thing in Google but my problem is not resolved if you have solution please let me know
Rustam Ansari
2-Apr-15 7:52am
View
How to add Header and footer in each page while print the page getting problem while printing the page
Rustam Ansari
24-Mar-15 0:46am
View
I am Using TextBox <asp:TextBox ID ="txtDescription" runat="server" TextMode="MultiLine" data-bind="tinymce: model.html"> and apply tinymce and when I fetch the record through database by Java-script record is displayed check in alert but this data is not bind in description Textbox . If I removed Texmode = "MultiLine" then data will get display. My concern is why data is not diplay while applying tinymce data
Rustam Ansari
22-Mar-15 8:56am
View
Deleted
...
Rustam Ansari
22-Mar-15 8:51am
View
Deleted
...
Rustam Ansari
22-Mar-15 8:50am
View
Deleted
...
Rustam Ansari
17-Mar-15 10:03am
View
In the above description I want <thead></thead> and <tfoot></tfoot> repeat on all Header and footer place
<thead><tr><th><img id="img3" src="Images/letterhead.jpg" style="border-width:0px; width:100%; margin-top:0px;"/></th></tr></thead>
<tfoot><tr><th><img id="img4" src="Images/letterheadfooter.jpg" style="border-width:0px; width:100%; margin-bottom:0px;"/></th></tr></tfoot>
Rustam Ansari
17-Mar-15 10:02am
View
<asp:TemplateField HeaderText="Discount">
<itemtemplate>
<asp:Label ID="lblDiscountAmount" CssClass="lblMessage" runat="server" Text='<%#Bind("DiscountAmount") %>'>
<itemstyle horizontalalign="Right">
<asp:TemplateField HeaderText="Amount">
<itemtemplate>
<asp:Label ID="lblAmount" runat="server" Text='<%#Bind("Amount") %>' Width="78">
<itemstyle horizontalalign="Right">
<footerstyle backcolor="#CCCCCC">
<HeaderStyle BackColor="#010133" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
<rowstyle backcolor="White">
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<sortedascendingcellstyle backcolor="#F1F1F1">
<sortedascendingheaderstyle backcolor="#808080">
<sorteddescendingcellstyle backcolor="#CAC9C9">
<sorteddescendingheaderstyle backcolor="#383838">
</td>
</tr>
<tr>
<td colspan ="2">
<table style="border:2px solid #999999; border-bottom:4px solid #999999; margin-top:-10px; width:100%">
<tr class="Normal" >
<td class ="AmountField" style="border-right:2px solid #999999;">Sub Total :<asp:Label ID ="lblTotalAmountWords" runat="server"></td>
<td class="gridtxtBox" align="right"><asp:Label ID ="lblTotalAmount" runat="server" style="font-weight: 700"></td>
</tr>
<tr class="Normal" style="border-top:2px solid #999999; border-bottom:2px solid #999999;">
<td class ="AmountField" style="border-right:2px solid #999999; font-weight: 700;">Discount :<asp:Label ID ="lblDiscountAmountWords" runat="server"></td>
<td class="gridtxtBox" align="right"><asp:Label ID ="lblDiscountAmount" CssClass="lblMessage" runat="server" style="font-weight: 700"></td>
</tr>
<tr class="Normal" style="background-color:#FBDEBB;">
<td class ="AmountField" style="border-right:2px solid #999999; font-weight: 700;">Net Total :<asp:Label ID ="lblPaidAmountWords" runat="server"></td>
<td class="gridtxtBox" align="right"><asp:Label ID ="lblPaidAmount" runat="server" style="font-weight: 700"></td>
</tr>
</table>
</td> </tr>
<tr class="Field"><td colspan="2" style="font-size:18px; font-weight:700">Terms and Conditions</td>
</tr>
<tr class="Normal"><td colspan="2"><asp:Label ID ="lblTermsandCondition" runat ="server"></td>
</tr>
<tr class="Field"><td colspan="2" style="font-size:15px; font-weight:700"><asp:Label ID ="lblProjectName" runat ="server"></td>
</tr>
<tr class="Field"><td colspan="2" style="font-size:15px; font-weight:700">Prepared By: <asp:Label ID ="lblPreparedBy" runat ="server"></td>
</tr>
<tr class="Field">
<td class="QuotationField">Page <asp:Label ID ="lblPage" runat="server"></td>
<td class="QuotationField">Reference No :
<asp:Label ID ="lblReferenceNo" runa
Rustam Ansari
17-Mar-15 9:29am
View
In the above description I want <thead></thead> and <tfoot></tfoot> repeat on all Header and footer place
<thead><tr><th><img id="img3" src="Images/letterhead.jpg" style="border-width:0px; width:100%; margin-top:0px;"/></th></tr></thead>
<tfoot><tr><th><img id="img4" src="Images/letterheadfooter.jpg" style="border-width:0px; width:100%; margin-bottom:0px;"/></th></tr></tfoot>
Rustam Ansari
17-Mar-15 9:28am
View
<tr>
<td colspan ="2">
<table style="border:2px solid #999999; border-bottom:4px solid #999999; margin-top:-10px; width:100%">
<tr class="Normal" >
<td class ="AmountField" style="border-right:2px solid #999999;">
Sub Total :<asp:Label ID ="lblTotalAmountWords" runat="server">
</td>
<td class="gridtxtBox" align="right"><asp:Label ID ="lblTotalAmount" runat="server" style="font-weight: 700"></td>
</tr>
<tr class="Normal" style="border-top:2px solid #999999; border-bottom:2px solid #999999;">
<td class ="AmountField" style="border-right:2px solid #999999; font-weight: 700;">
Discount :
<asp:Label ID ="lblDiscountAmountWords" runat="server"></td>
<td class="gridtxtBox" align="right"><asp:Label ID ="lblDiscountAmount" CssClass="lblMessage" runat="server" style="font-weight: 700"></td>
</tr>
<tr class="Normal" style="background-color:#FBDEBB;">
<td class ="AmountField" style="border-right:2px solid #999999; font-weight: 700;">
Net Total :
<asp:Label ID ="lblPaidAmountWords" runat="server"></td>
<td class="gridtxtBox" align="right"><asp:Label ID ="lblPaidAmount" runat="server" style="font-weight: 700"></td>
</tr>
</table>
</td> </tr>
<tr class="Field"><td colspan="2" style="font-size:18px; font-weight:700">Terms and Conditions</td>
</tr>
<tr class="Normal"><td colspan="2"><asp:Label ID ="lblTermsandCondition" runat ="server"></td>
</tr>
<tr class="Field"><td colspan="2" style="font-size:15px; font-weight:700"><asp:Label ID ="lblProjectName" runat ="server"></td>
</tr>
<tr class="Field"><td colspan="2" style="font-size:15px; font-weight:700">Prepared By: <asp:Label ID ="lblPreparedBy" runat ="server"></td>
</tr>
<tr class="Field">
<td class="QuotationField">Page <asp:Label ID ="lblPage" runat="server"></td>
<td class="QuotationField">Reference No :
<asp:Label ID ="lblReferenceNo" runat ="server">
</td>
</tr>
</tbody>
<tfoot><tr><th><img id="img4" src="Images/letterheadfooter.jpg" style="border-width:0px; width:100%; margin-bottom:0px;"/></th></tr></tfoot>
</table>
Rustam Ansari
17-Mar-15 9:24am
View
Deleted
<div class="Field" id="tblPrinttemp" runat="server">
<div class="MandatoryField" style="margin-left:40px;">
<span class="ActionButton"> Print </span>
</div>
<div class ="MandatoryField"><asp:Button ID ="btnReport" runat ="server" Text ="Print Pdf" CssClass ="ActionButton" OnClick="btnReport_Click" /></div>
</div>
<style type="text/css">
@media print {
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
}
@media screen {
thead { display: block; }
tfoot { display: block; }
}
</style>
</head>
<script type="text/javascript">
function Clickheretoprint() {
// var div = document.getElementById('tblBanner');
var divtemp = document.getElementById('tblPrinttemp');
// div.style.display = 'none';
divtemp.style.display = 'none';
window.print();
}
</script>
<body>
Rustam Ansari
17-Mar-15 9:23am
View
<table id ="print_content" cellpadding="5" style="margin:10px 10px 10px 10px; width:95%; background: #FFFFFF; color:#333; overflow:scroll;"
cellspacing="0" runat="server">
<thead><tr><th><img id="img3" src="Images/letterhead.jpg" style="border-width:0px; width:100%; margin-top:0px;"/></th></tr></thead>
<tbody>
<tr>
<td colspan="2" style="text-align:center;font-size:25px; font-weight:700">Quotation</td>
</tr>
<tr class="Normal">
<td class="QuotationField"> </td>
<td>
Reference No :
<asp:Label ID ="lblReferenceNumber" runat ="server"></td>
</tr>
<tr class="Normal">
<td class="QuotationField"> </td>
<td>
Date :
<asp:Label ID ="lblQuotationDate" runat ="server"></td>
</tr>
<tr class="Normal">
<td class="QuotationField"> </td>
<td>
Pages :
<asp:Label ID ="lblPages" runat ="server"></td>
</tr>
<tr class="Normal" style="border:2px solid #9CAAC1;">
<td class="QuotationField"><asp:Label ID ="lblCompanyAddress" runat="server"></td>
<td class="QuotationField" style="border-left:2px solid #9CAAC1;">
<p style="direction: ltr; text-align: left; margin-left: 1px">
<asp:Label ID ="lblClientAddress" runat ="server">
</p>
</td>
</tr>
<tr class="Field">
<td colspan="2">
<asp:GridView ID="GvQuotation" runat="server" DataKeyNames="ID" Width="100%"
EmptyDataText="No Record Found" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black">
<columns>
<asp:TemplateField HeaderText="Code">
<itemtemplate>
<asp:Image ID ="ImgProduct" runat="server" Width="60" Height="50" ImageAlign="Middle" ImageUrl='<%#Bind("ImageProduct") %>' />
<itemstyle horizontalalign="Center">
<asp:TemplateField HeaderText="Description">
<itemtemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%#Bind("Description") %>'>
<asp:TemplateField HeaderText="Quantity">
<itemtemplate>
<asp:Label ID="lblQuantity" runat="server" Text='<%#Bind("Quantity") %>'>
<itemstyle horizontalalign="Right">
<asp:TemplateField HeaderText="UnitPrice">
<itemtemplate>
<asp:Label ID="lblUnitPrice" runat="server" Text='<%#Bind("UnitPrice") %>'>
<itemstyle horizontalalign="Right">
<asp:TemplateField HeaderText="Discount">
<itemtemplate>
<asp:Label ID="lblDiscountAmount" CssClass="lblMessage" ru
Rustam Ansari
17-Mar-15 8:58am
View
When I Click on window.print();
Header and footer content is not repeated in each page
Rustam Ansari
13-Jan-15 8:51am
View
Above both this content is Grid and java-script function, Java-Script function is not calculate the value ItemRate * Quantity = Total Balance (display in label) Please do if you have any question, Please let me know
Rustam Ansari
13-Jan-15 8:48am
View
Java-Script function
Calculation two values Rate and Quantity and dispaly to label getting some problem to display the label it's below my java-script function
function SupplierCalculation(obj) {
var id = obj.id;
var splitid = obj.id.split("_");
var grid = document.getElementById("ctl00_AccountMaster_GvMaterial");
if (grid.rows.length > 0) {
for (i = 2; i <= eval(grid.rows.length); i++) {
if (i < 20) {
var ItemRate = "ctl00_AccountMaster_GvMaterial_ct10" + i + "_lblItemRate";
alert('Hi...........' + ItemRate.value);
if (document.getElementById(ItemRate).value == "") {
document.getElementById(ItemRate).value = "0";
}
alert('ItemRate1......' + (eval(document.getElementById(ItemRate).valueOf)));
var Quantity = "ctl00_AccountMaster_GvMaterial_ct10" + i + "_txtQuantity";
if (document.getElementById(Quantity).value == "") {
document.getElementById(Quantity).value = "0";
}
var Value = "ctl00_AccountMaster_GvMaterial_ct10" + i + "_lblMaterialBalance";
if (document.getElementById(Value).value == "") {
document.getElementById(Value).value = "0";
}
if (document.getElementById(ItemRate).value != "") {
document.getElementById(Value).value = (eval(document.getElementById(ItemRate).value) * eval(document.getElementById(Quantity).value));
}
else {
document.getElementById(Value).value = (eval(document.getElementById(ItemRate).value) * eval(document.getElementById(Quantity).value))
}
}
else {
var IItemRate = "ctl00_AccountMaster_GvMaterial_ctl0" + i + "_lblItemRate";
var IQuantity = "ctl00_AccountMaster_GvMaterial_ctl0" + i + "_txtQuantity";
var Value1 = "ctl00_AccountMaster_GvMaterial_ctl0" + i + "_lblMaterialBalance";
if (document.getElementById(IItemRate).value != "") {
document.getElementById(Value1).value = (eval(IItemRate) * eval(IQuantity));
}
else {
document.getElementById(Value1).value = (eval(IItemRate) * eval(IQuantity));
}
}
}
}
}
Show More