15,887,175 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 Aatif Ali from Bangalore (Top 20 by date)
Aatif Ali from Bangalore
12-Jul-13 7:31am
View
First execute your query..then only know is it correct or error
Aatif Ali from Bangalore
12-Jul-13 7:18am
View
Lukeer U r right..
Aatif Ali from Bangalore
12-Jul-13 1:21am
View
No..i want to noraml text(some styles applied Text) in grid
Aatif Ali from Bangalore
10-Jul-13 0:45am
View
Thanks Brothr...Y r right...i solved this using a custom control
Aatif Ali from Bangalore
9-Jul-13 8:06am
View
if u are using like alert("hi"); .It will Pop up a window with displaying the message "hi" normally this window don't close automatically(Close means hide)whenever u click on OK button then it will disappear.I need to hide these window automatically after a specified time.
Aatif Ali from Bangalore
9-Jul-13 5:35am
View
Its working partially...In firefox the alert will automatically closed and page redirect to ma specified url..but in chrome the alert will showing indefinitly..It will close whenvr clicking on alert box.and control redirect to specified url at the clicking time.
Aatif Ali from Bangalore
8-Jul-13 9:21am
View
Sory to say...Your first link is utter waste..It not fetch url from browser history...it fetch from u r alredy created varaible....second link gv some information regrding these..but i dnt get propr answr
Aatif Ali from Bangalore
4-Jul-13 8:33am
View
Reason for my vote of 5 \n actualy i am searching the code for how to link our app to Fb,twitter.this article give a brightness to implemnt such like things
Aatif Ali from Bangalore
4-Jul-13 4:48am
View
<img src='/images/<%# DataBinder.Eval(Container.DataItem, "Image") %>'
alt="" style="height:200px;width:200px;border:1px solid gray;"/>
Aatif Ali from Bangalore
15-Jun-13 0:07am
View
.Addrange is not getting...only add option is here....
Aatif Ali from Bangalore
14-Jun-13 9:01am
View
i got error only in attachmnt line...
Aatif Ali from Bangalore
14-Jun-13 9:00am
View
public void SendMsgAttachmnts(System.Net.Mail.MailMessage message)
{
try
{
/* new changes for mail.winreo.net server */
System.Web.Mail.SmtpMail.SmtpServer = UNI.Core.ConfigurationManager.GetApplicationSetting("EmailManager.MailServer");
string from = Core.ConfigurationManager.GetApplicationSetting("EmailManager.SenderAddress");
System.Web.Mail.MailMessage webmessage = new System.Web.Mail.MailMessage();
webmessage.From = string.Format("REOU<{0}>", from);
webmessage.To = message.To.ToString();
webmessage.Subject = message.Subject.ToString();
webmessage.Body = message.Body;
webmessage.BodyFormat = System.Web.Mail.MailFormat.Html;
//System.Web.Mail.MailAttachment attachment;
//attachment = new System.Web.Mail.MailAttachment("c:\\intrspace.pdf");
webmessage.Attachments.Add(message.Attachments);
//webmessage.Attachments.Add(
System.Web.Mail.SmtpMail.Send(webmessage);
}
Aatif Ali from Bangalore
14-Jun-13 3:37am
View
Hai Prasd,i vistd ur last url for convertng html to pdf..but all answer finlly popup a window to download pdf..anywy to change in ur fisrt answer to perform these task also...dats will more helpful me...
Aatif Ali from Bangalore
14-Jun-13 3:31am
View
i vistd ur last url for convertng html to pdf..but all answer finlly popup a window to download pdf..anywy to change in ur fisrt answer to perform these task also...dats will more helpful me...
Aatif Ali from Bangalore
14-Jun-13 2:53am
View
Thanks Prasad...now we are adding textbox content...ma content is like
Test Track
Certificate...
<br><br><p style="font-size:14px;Textalign:
center"> This is to certify that
Muhammed.. Ali
bearing the address
Oklahoma
,<br><br>
Reesiyo
,
Nebraska
,
90010
has enrolled for the track named
Test track
on
06-12-2012
<br><br> and has successfully completed
the track of studies on
14-02-2013
with a percentage of
<br><br>
53
.</p><br><br>
------------
------------------------
<br>
Best Compliments
<br>
David
Gadish
<br>Date:
14-02-2013<br><br><br>
hwo to change thsese text to normal text with specified design...and add to pdf...?
Aatif Ali from Bangalore
13-Jun-13 2:37am
View
Thnks Brthr,suppose our prjct contain one special folder,it contain some files..can i send these files as attachmnt...
Aatif Ali from Bangalore
13-Jun-13 1:01am
View
hai frnd,i want to send pdf as attachment,this pdf is created just before sending the mail using the following code..
string src = string.Empty;
string AbsolutePath = string.Empty;
_Filter.Clear();
_Filter.Add("Id",hdnCertificateId.Value);
_CertificatesEntityCollection = CertificatesManager.SelectFiltered(_Filter);
ScriptManager.RegisterStartupScript(this, typeof(string), "script123", "AsPdf()", true);
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
//Response.AddHeader("content-disposition", "attachment;filename=" + _CertificatesEntityCollection.First().Name + ".pdf");
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + _CertificatesEntityCollection.First().Name + "\"");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
pnlCertificate.RenderControl(hw);
pnlCertificate.Style.Add("border", "2px solid black");
pnlCertificate.Style.Add("margin-top", "60px");
pnlCertificate.Style.Add("text-align", "justify");
src = sw.ToString();
AbsolutePath = HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.ApplicationPath;
src = src.Replace("img src=\"/", string.Format("img src=\"{0}", AbsolutePath));
StringReader sr = new StringReader(src);
//Document pdfDoc = new Document(PageSize.A4_LANDSCAPE, 20f, 10f, 50f, 0f);
Document pdfDoc = new Document();
pdfDoc.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
pdfDoc.Open();
htmlparser.Parse(sr);
pdfDoc.Close();
Response.Write(pdfDoc);
Response.End();
Aatif Ali from Bangalore
12-Jun-13 6:46am
View
check above solution and corresponding Comments...
Aatif Ali from Bangalore
12-Jun-13 2:21am
View
ya,sure..i want to find or accessing controls from a web method..in normal case it is easy to find out..but in web methods, i think it somewhat complex...
Aatif Ali from Bangalore
12-Jun-13 1:40am
View
hi friend,i think you are mistaken... i want to call page controls from web methods..not from normal c# methods..i will try different alternatives...but i unlucky...web methods s a static method ...thats the problem..
Show More