Active Server Pages Programming (ASP)/ASP.net
Expert: Srini Nagarajan - 7/31/2005
QuestionDear sir,
I had two following questions. Could you please send me your reply in order to solve my problems.
1. In windows forms, I can use Rich Text Box to style each word in a string in this control, for example I can change font color for each word. However, as I understand, there is not a equivalent control in Web forms in ASP.NET.
In ASP web pages there used to be a Main Box control that I could use. Could you please advice me on this issue.
2. In an ASP.NET web application, I need to use an openFileDialog to open a file locally on the client side ; however when it gets to this code
Dim myStream As Stream = openFileDialog1.OpenFile()
I get the following error message :
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Could you please advise me on this issue?
Answerhi
1. goto
http://www.fckeditor.net/ you can download its free and they got lot of sample to use that.
2. its not possible any C# or VB.net code will execute only on the server side. If you want to open a file first upload from client to the server and open from server.
Happy programming!
-Srini