Click here to Skip to main content
15,911,306 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow can i lock a row while workng on it so that no other user can interfere Pin
raghvendrapanda9-Oct-08 20:46
raghvendrapanda9-Oct-08 20:46 
AnswerRe: how can i lock a row while workng on it so that no other user can interfere Pin
Ashfield9-Oct-08 21:46
Ashfield9-Oct-08 21:46 
GeneralRe: how can i lock a row while workng on it so that no other user can interfere Pin
Wendelius10-Oct-08 22:18
mentorWendelius10-Oct-08 22:18 
AnswerRe: how can i lock a row while workng on it so that no other user can interfere Pin
eyeseetee9-Oct-08 21:56
eyeseetee9-Oct-08 21:56 
QuestionAutocomplete Textbox through listbox value in .net 2.0 Pin
kandalu9-Oct-08 20:10
kandalu9-Oct-08 20:10 
AnswerRe: Autocomplete Textbox through listbox value in .net 2.0 Pin
eyeseetee9-Oct-08 21:57
eyeseetee9-Oct-08 21:57 
AnswerRe: Autocomplete Textbox through listbox value in .net 2.0 Pin
Hesham Amin10-Oct-08 1:29
Hesham Amin10-Oct-08 1:29 
Questionhow to read the conents of word file on web page [modified] Pin
raghvendrapanda9-Oct-08 20:10
raghvendrapanda9-Oct-08 20:10 
hy,
can any one tell me that how can i read the contents of a MS word(.doc) file on a webpage(.aspx page).
i tried to use filestream but whenevr i run it..i get a option to open or download the doc file which resluts in opening the word file but not the content of the word file on the web page.
the code that i used was
Response.ContentType = "application/ms-word";
Response.AddHeader("content-disposition", "attachment; filename=SFA & CRM.doc");
string a = Server.MapPath("SFA & CRM.doc");
FileStream sourceFile = new FileStream(a, FileMode.Open);
long FileSize;
FileSize = sourceFile.Length;
byte[] getContent = new byte[(int)FileSize];
sourceFile.Read(getContent, 0, (int)sourceFile.Length);
sourceFile.Close();

Response.BinaryWrite(getContent);
plz helpl me out..
regards

modified on Friday, October 10, 2008 4:00 AM

AnswerRe: how to read the conents of word file on web page Pin
John_Adams10-Oct-08 5:57
John_Adams10-Oct-08 5:57 
QuestionProbleam run web site on different browser [modified] Pin
Rinki Mukheraji9-Oct-08 19:27
Rinki Mukheraji9-Oct-08 19:27 
AnswerRe: Probleam run web site on different browser Pin
Ashfield9-Oct-08 21:48
Ashfield9-Oct-08 21:48 
QuestionListbox items in where clause of a SQL Query Pin
reogeo20089-Oct-08 18:08
reogeo20089-Oct-08 18:08 
AnswerRe: Listbox items in where clause of a SQL Query Pin
eyeseetee9-Oct-08 21:59
eyeseetee9-Oct-08 21:59 
QuestionDouble Postback using a .aspx submit page to process a PDF Pin
Zhat9-Oct-08 9:54
Zhat9-Oct-08 9:54 
AnswerRe: Double Postback using a .aspx submit page to process a PDF Pin
Dave Doknjas9-Oct-08 12:51
Dave Doknjas9-Oct-08 12:51 
GeneralProblem with System.IO.Directory.Exists Pin
Brady Kelly9-Oct-08 8:39
Brady Kelly9-Oct-08 8:39 
QuestionTabbed window problem Pin
enthusiastic4779-Oct-08 7:17
enthusiastic4779-Oct-08 7:17 
QuestionWhy does a listview show empty rows even there is data provided with an ObjectDataSource? Pin
JUNEYT9-Oct-08 5:36
JUNEYT9-Oct-08 5:36 
Questiontimer in asp.net Pin
sachees1239-Oct-08 3:05
sachees1239-Oct-08 3:05 
AnswerRe: timer in asp.net Pin
Abhijit Jana9-Oct-08 3:53
professionalAbhijit Jana9-Oct-08 3:53 
GeneralRe: timer in asp.net Pin
sachees1239-Oct-08 19:10
sachees1239-Oct-08 19:10 
GeneralRe: timer in asp.net Pin
Abhijit Jana10-Oct-08 3:59
professionalAbhijit Jana10-Oct-08 3:59 
QuestionSet the db dynamically in web.config Pin
kandalu9-Oct-08 0:45
kandalu9-Oct-08 0:45 
AnswerRe: Set the db dynamically in web.config Pin
Abhijit Jana9-Oct-08 1:06
professionalAbhijit Jana9-Oct-08 1:06 
GeneralRe: Set the db dynamically in web.config Pin
kandalu12-Oct-08 20:12
kandalu12-Oct-08 20:12 

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.