Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExtract Section Wise Text Pin
panthagani santosh6-Jan-09 22:59
panthagani santosh6-Jan-09 22:59 
QuestionCode for :File download and simple e-mail system Pin
Subin Alex6-Jan-09 22:18
Subin Alex6-Jan-09 22:18 
AnswerRe: Code for :File download and simple e-mail system Pin
SeMartens6-Jan-09 22:50
SeMartens6-Jan-09 22:50 
AnswerRe: Code for :File download and simple e-mail system Pin
N a v a n e e t h6-Jan-09 22:50
N a v a n e e t h6-Jan-09 22:50 
QuestionHow get List of all domain and pc ? [modified] Pin
am.net6-Jan-09 22:02
am.net6-Jan-09 22:02 
AnswerRe: How get List of all domain and pc ? Pin
Ashfield7-Jan-09 1:38
Ashfield7-Jan-09 1:38 
AnswerRe: How get List of all domain and pc ? Pin
Paddy Boyd7-Jan-09 2:47
Paddy Boyd7-Jan-09 2:47 
QuestionWant to display HTML file in aspx page Pin
Anand Desai6-Jan-09 21:27
Anand Desai6-Jan-09 21:27 
Hi coders,

I want to display one HTML file contents in my aspx page. I am using for that. what I have written is:

aspx page:
<iframe frameborder="no" id="htmlAboutUs" style="width:100%; height:500px;" runat="server" scrolling="no">

cs file:
htmlAboutUs.Attributes["src"] = Server.MapPath(FolderName + "/styles/About-Us.html");


where FolderName is comming from session.
Its not working but. its showing blank page in result(not even "Page Not Found").

Then I tried another one:

FileStream fs = new FileStream(Server.MapPath(FolderName
+ "/styles/About-Us.html"), FileMode.Open);
byte[] data = new byte[fs.Length];
fs.Read(data, 0, (int)fs.Length);
fs.Close();
string dataString = Encoding.UTF8.GetString(data);
htmlAboutUs.InnerText = dataString;

It is also not working. I have checked that its bringing correct data in dataString but not displaying. mean my file contents are properly read but its not assigned to iframe. Please give some gidence.

Thanks for any help.

Anand Desai
Developer
Atharva Infotech

AnswerRe: Want to display HTML file in aspx page Pin
Colin Angus Mackay6-Jan-09 21:37
Colin Angus Mackay6-Jan-09 21:37 
GeneralRe: Want to display HTML file in aspx page Pin
Anand Desai6-Jan-09 21:43
Anand Desai6-Jan-09 21:43 
GeneralRe: Want to display HTML file in aspx page Pin
N a v a n e e t h6-Jan-09 21:55
N a v a n e e t h6-Jan-09 21:55 
QuestionPublishing a website created in VS2005 on windows 2003 server using remote desktop connection.... Pin
bishwambhar_sen6-Jan-09 21:16
bishwambhar_sen6-Jan-09 21:16 
AnswerRe: Publishing a website created in VS2005 on windows 2003 server using remote desktop connection.... Pin
Colin Angus Mackay6-Jan-09 21:34
Colin Angus Mackay6-Jan-09 21:34 
QuestionRead and Insert Data From Dynamic TextBox?public partial class test : System.Web.UI.Page Pin
developer.ravish6-Jan-09 20:38
developer.ravish6-Jan-09 20:38 
AnswerRe: Read and Insert Data From Dynamic TextBox?public partial class test : System.Web.UI.Page Pin
N a v a n e e t h6-Jan-09 21:00
N a v a n e e t h6-Jan-09 21:00 
QuestionCan any one answer my quesion? Pin
Hema Bairavan6-Jan-09 20:33
Hema Bairavan6-Jan-09 20:33 
GeneralRe: Can any one answer my quesion? Pin
Guffa6-Jan-09 21:55
Guffa6-Jan-09 21:55 
Generalrequiredfieldvalidator need to fire by clicking only button Pin
kamakshim6-Jan-09 20:10
kamakshim6-Jan-09 20:10 
QuestionHow to create modules in website project in microsoft visual studio 2008? Pin
alyy04066-Jan-09 19:59
alyy04066-Jan-09 19:59 
AnswerRe: How to create modules in website project in microsoft visual studio 2008? Pin
SeMartens6-Jan-09 22:56
SeMartens6-Jan-09 22:56 
GeneralRe: How to create modules in website project in microsoft visual studio 2008? Pin
alyy04066-Jan-09 23:53
alyy04066-Jan-09 23:53 
QuestionRole based authorization problem Pin
Mogaambo6-Jan-09 19:57
Mogaambo6-Jan-09 19:57 
QuestionXML and Javascript Pin
jonhbt6-Jan-09 19:48
jonhbt6-Jan-09 19:48 
AnswerRe: XML and Javascript Pin
N a v a n e e t h6-Jan-09 20:01
N a v a n e e t h6-Jan-09 20:01 
GeneralRe: XML and Javascript Pin
jonhbt6-Jan-09 20:15
jonhbt6-Jan-09 20:15 

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.