Click here to Skip to main content
15,892,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
dan!sh 6-Jul-09 2:11
professional dan!sh 6-Jul-09 2:11 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Christian Graus6-Jul-09 2:13
protectorChristian Graus6-Jul-09 2:13 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
satigar1238-Jul-09 8:05
satigar1238-Jul-09 8:05 
QuestionWhy this error always comes Pin
KhandelwalA6-Jul-09 1:36
KhandelwalA6-Jul-09 1:36 
AnswerRe: Why this error always comes Pin
Manas Bhardwaj6-Jul-09 1:46
professionalManas Bhardwaj6-Jul-09 1:46 
AnswerRe: Why this error always comes Pin
Christian Graus6-Jul-09 2:14
protectorChristian Graus6-Jul-09 2:14 
GeneralRe: Why this error always comes Pin
Manas Bhardwaj6-Jul-09 3:05
professionalManas Bhardwaj6-Jul-09 3:05 
QuestionOpen and save file from SQL Database Pin
Difink6-Jul-09 1:31
Difink6-Jul-09 1:31 
When I tried to open the file's which may be .doc or excel or any type of file I got the following error "Thread was being aborted..." in the below line of code
Response.Redirect( @"Documents/" + strFileName);------------------------------------------------------------------
First I read the file and saved the data into the database in a binary field
The below lines of code I have used for open the page
try
{
string strFileName = string.Empty;
objTarget.EmpNumaber = empID;
objTarget.DocName = documentName;
SqlDataReader sqlDr = objTarget.AppraiseeDetails();
while (sqlDr.Read())
{
strFileName = sqlDr["DocumentName"].ToString();
//Read binary Data into Bytes Array
byte[] fileBytes = (byte[])sqlDr["Document"];
//Create FileStream Object from for saving file
FileStream oFileStream = new FileStream(Server.MapPath("Documents") + @"\" + strFileName, FileMode.Create);
//SaveFile
oFileStream.Write(fileBytes, 0, fileBytes.Length);
//Dispose the memory of used objects
//Response.Flush();
oFileStream.Flush();
oFileStream.Close();
fileBytes = null;
}
//Close Reader and Connection
sqlDr.Close();
if (strFileName != string.Empty)
{
Response.Redirect( @"Documents/" + strFileName); }
}
catch (Exception ex)
{
Response.Write(ex.Message);
}

I can't able to find out the issue why this Thread was being abortd error message.Please look into the issue and let me know a solution

with regards
Difin Mathew
AnswerRe: Open and save file from SQL Database Pin
Manas Bhardwaj6-Jul-09 1:56
professionalManas Bhardwaj6-Jul-09 1:56 
GeneralRe: Open and save file from SQL Database Pin
Difink6-Jul-09 2:13
Difink6-Jul-09 2:13 
GeneralRe: Open and save file from SQL Database Pin
Christian Graus6-Jul-09 2:15
protectorChristian Graus6-Jul-09 2:15 
GeneralRe: Open and save file from SQL Database Pin
Difink6-Jul-09 2:25
Difink6-Jul-09 2:25 
QuestionFont error .....! [modified] Pin
RongNK6-Jul-09 0:40
RongNK6-Jul-09 0:40 
AnswerRe: Font error .....! Pin
Manas Bhardwaj6-Jul-09 1:22
professionalManas Bhardwaj6-Jul-09 1:22 
Questionin C# Asp.net How to send Email with images by using template approach Pin
prasadSn20036-Jul-09 0:31
prasadSn20036-Jul-09 0:31 
AnswerRe: in C# Asp.net How to send Email with images by using template approach Pin
Manas Bhardwaj6-Jul-09 0:37
professionalManas Bhardwaj6-Jul-09 0:37 
GeneralRe: in C# Asp.net How to send Email with images by using template approach Pin
prasadSn20036-Jul-09 0:42
prasadSn20036-Jul-09 0:42 
GeneralRe: in C# Asp.net How to send Email with images by using template approach Pin
prasadSn20037-Jul-09 3:21
prasadSn20037-Jul-09 3:21 
QuestionSave Data of TextBox those are Dynamically created Pin
KhandelwalA6-Jul-09 0:31
KhandelwalA6-Jul-09 0:31 
AnswerRe: Save Data of TextBox those are Dynamically created Pin
jaysaran6-Jul-09 1:29
jaysaran6-Jul-09 1:29 
AnswerRe: Save Data of TextBox those are Dynamically created Pin
Abhijit Jana6-Jul-09 9:34
professionalAbhijit Jana6-Jul-09 9:34 
QuestionHow to get live video stream from webcam in webpage? Pin
Digubha5-Jul-09 23:01
Digubha5-Jul-09 23:01 
AnswerRe: How to get live video stream from webcam in webpage? Pin
Manas Bhardwaj5-Jul-09 23:47
professionalManas Bhardwaj5-Jul-09 23:47 
QuestionProblem Reading PDF Pin
alasaadi5-Jul-09 22:48
alasaadi5-Jul-09 22:48 
QuestionA pdf on an Iframe Pin
LucBite5-Jul-09 22:38
LucBite5-Jul-09 22:38 

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.