Click here to Skip to main content
15,915,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: KeyBoard hook Pin
Brij14-Jun-10 4:15
mentorBrij14-Jun-10 4:15 
QuestionExtract A Pdf File from database Pin
raghvendrapanda14-Jun-10 1:48
raghvendrapanda14-Jun-10 1:48 
Hy,
I have saed a pdf file in the database.i want to extract it from the database
i have ued the following code

myConnection = new SqlConnection(strConn);
const string SQL = "SELECT TOP 1 PDF_FILE FROM dbo.pdffile";
SqlCommand myCommand = new SqlCommand(SQL, myConnection);
myConnection.Open();
SqlDataReader myReader = myCommand.ExecuteReader();
if (myReader.Read())
{
Response.BinaryWrite((byte[])myReader["PDF_FILE"]);
}
myReader.Close();
myConnection.Close();
while debgugging i checked that ((byte[])myReader["PDF_FILE"]) gets values but the end result is alwz blank
AnswerRe: Extract A Pdf File from database Pin
Blue_Boy14-Jun-10 2:07
Blue_Boy14-Jun-10 2:07 
GeneralRe: Extract A Pdf File from database Pin
hammerstein0514-Jun-10 2:15
hammerstein0514-Jun-10 2:15 
GeneralRe: Extract A Pdf File from database [modified] Pin
raghvendrapanda14-Jun-10 3:07
raghvendrapanda14-Jun-10 3:07 
AnswerRe: Extract A Pdf File from database Pin
hammerstein0514-Jun-10 10:37
hammerstein0514-Jun-10 10:37 
GeneralRe: Extract A Pdf File from database Pin
raghvendrapanda17-Jun-10 1:49
raghvendrapanda17-Jun-10 1:49 
QuestionFileUpload Control text Cleared Pin
vishnukamath14-Jun-10 1:46
vishnukamath14-Jun-10 1:46 
AnswerRe: FileUpload Control text Cleared Pin
Not Active14-Jun-10 2:41
mentorNot Active14-Jun-10 2:41 
AnswerRe: FileUpload Control text Cleared Pin
Anurag Gandhi14-Jun-10 3:33
professionalAnurag Gandhi14-Jun-10 3:33 
Questioncall code behind code from java script Pin
Amit Patel198514-Jun-10 1:31
Amit Patel198514-Jun-10 1:31 
AnswerRe: call code behind code from java script Pin
lakshmichawala14-Jun-10 2:05
lakshmichawala14-Jun-10 2:05 
GeneralRe: call code behind code from java script Pin
Not Active14-Jun-10 2:37
mentorNot Active14-Jun-10 2:37 
AnswerRe: call code behind code from java script Pin
Not Active14-Jun-10 2:38
mentorNot Active14-Jun-10 2:38 
AnswerRe: call code behind code from java script Pin
Tej Aj14-Jun-10 3:26
Tej Aj14-Jun-10 3:26 
QuestionXml Pin
siva45514-Jun-10 0:44
siva45514-Jun-10 0:44 
AnswerRe: Xml Pin
hammerstein0514-Jun-10 1:09
hammerstein0514-Jun-10 1:09 
QuestionHow could i analyze and do something to a webpage content? Pin
wnfk13-Jun-10 23:03
wnfk13-Jun-10 23:03 
AnswerRe: How could i analyze and do something to a webpage content? Pin
Jens Meyer14-Jun-10 0:16
Jens Meyer14-Jun-10 0:16 
GeneralRe: How could i analyze and do something to a webpage content? Pin
wnfk14-Jun-10 16:24
wnfk14-Jun-10 16:24 
GeneralRe: How could i analyze and do something to a webpage content? Pin
wnfk14-Jun-10 16:42
wnfk14-Jun-10 16:42 
GeneralRe: How could i analyze and do something to a webpage content? Pin
Jens Meyer14-Jun-10 18:40
Jens Meyer14-Jun-10 18:40 
GeneralRe: How could i analyze and do something to a webpage content? Pin
wnfk15-Jun-10 17:36
wnfk15-Jun-10 17:36 
QuestionAjax query Pin
Amit Patel198513-Jun-10 22:36
Amit Patel198513-Jun-10 22:36 
AnswerRe: Ajax query Pin
Brij13-Jun-10 23:06
mentorBrij13-Jun-10 23:06 

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.