Click here to Skip to main content
16,017,954 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: file uploder Pin
vinay_K24-Sep-08 2:35
vinay_K24-Sep-08 2:35 
GeneralRe: file uploder Pin
Vasudevan Deepak Kumar24-Sep-08 6:29
Vasudevan Deepak Kumar24-Sep-08 6:29 
Questionhow to assign image in image control from another drive at run time Pin
amitajain00823-Sep-08 20:54
amitajain00823-Sep-08 20:54 
AnswerRe: how to assign image in image control from another drive at run time Pin
Abhijit Jana24-Sep-08 18:05
professionalAbhijit Jana24-Sep-08 18:05 
GeneralRe: how to assign image in image control from another drive at run time Pin
amitajain00824-Sep-08 18:53
amitajain00824-Sep-08 18:53 
QuestionMenu Outine Pin
developer.ravish23-Sep-08 20:38
developer.ravish23-Sep-08 20:38 
AnswerRe: Menu Outine Pin
Illegal Operation24-Sep-08 14:05
Illegal Operation24-Sep-08 14:05 
QuestionExport PDF file Pin
r aa j23-Sep-08 20:32
r aa j23-Sep-08 20:32 
hi all,
I want export the pdf file.and I am using following code.In my system .But an error is displaying like adobe readercould not open 'down.pdf' because it is either not a supported file type or because the file has been damaged...



DataSet Ds = FillGrid2(sessionvalue, cid, cmid, crid, pid, sdate, edate);

Response.Clear();
Response.AppendHeader("Content-Type", "application/pdf");
Response.AppendHeader("Content-disposition", "attachment; filename=Download.pdf");
string str = "<table style='border:1px solid #000000;'>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Client: </b>" + client + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Campaign: </b>" + campaign + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Report Summary</b>" + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td>" + "Type" + "</td>";
str += "<td>" + "Impression" + "</td>";
str += "<td>" + "Clicks" + "</td>";
str += "<td>" + "Start Date" + "</td>";
str += "<td>" + "End Date" + "</td>";
str += "</tr>";

for (int i = 0; i < Ds.Tables[0].Rows.Count; i++)
{
str += "<tr style='border:1px solid #000000;'>";
for (int j = 0; j < Ds.Tables[0].Columns.Count; j++)
{
str += "<td>" + Ds.Tables[0].Rows[i][j].ToString() + "</td>";
}
str += "</tr>";
}
str += "</table>";


Response.Write(str);

If anybody knows please reply me..

thanks...

Raaj

QuestionJuavascript Close window Pin
avi_dadi200223-Sep-08 20:15
avi_dadi200223-Sep-08 20:15 
AnswerRe: Juavascript Close window Pin
lakshmichawala23-Sep-08 20:57
lakshmichawala23-Sep-08 20:57 
GeneralRe: Juavascript Close window Pin
vimal_yet23-Sep-08 21:02
vimal_yet23-Sep-08 21:02 
GeneralRe: Juavascript Close window Pin
avi_dadi200223-Sep-08 21:13
avi_dadi200223-Sep-08 21:13 
GeneralRe: Juavascript Close window Pin
lakshmichawala23-Sep-08 21:45
lakshmichawala23-Sep-08 21:45 
GeneralRe: Juavascript Close window Pin
avi_dadi200223-Sep-08 22:36
avi_dadi200223-Sep-08 22:36 
AnswerRe: Juavascript Close window Pin
vimal_yet23-Sep-08 21:07
vimal_yet23-Sep-08 21:07 
AnswerRe: Juavascript Close window Pin
Abhishek Sur23-Sep-08 22:30
professionalAbhishek Sur23-Sep-08 22:30 
AnswerRe: Juavascript Close window Pin
avi_dadi200223-Sep-08 23:07
avi_dadi200223-Sep-08 23:07 
QuestionCustom control development - Security issues Pin
Palli Rummi23-Sep-08 19:49
Palli Rummi23-Sep-08 19:49 
AnswerRe: Custom control development - Security issues Pin
Abhishek Sur23-Sep-08 22:40
professionalAbhishek Sur23-Sep-08 22:40 
Questionhow to validate the grid when a checkbox and textbox is present Pin
lakshmichawala23-Sep-08 19:22
lakshmichawala23-Sep-08 19:22 
AnswerRe: how to validate the grid when a checkbox and textbox is present Pin
avi_dadi200223-Sep-08 21:04
avi_dadi200223-Sep-08 21:04 
AnswerRe: how to validate the grid when a checkbox and textbox is present Pin
vimal_yet23-Sep-08 21:05
vimal_yet23-Sep-08 21:05 
Questionremove single quote from a string Pin
Member 387988123-Sep-08 19:06
Member 387988123-Sep-08 19:06 
AnswerRe: remove single quote from a string Pin
lakshmichawala23-Sep-08 19:34
lakshmichawala23-Sep-08 19:34 
AnswerRe: remove single quote from a string Pin
Baran M23-Sep-08 23:08
Baran M23-Sep-08 23:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.