how i can get a complete source code of an html page
-
iam using iframe .in that iframe i kept an html page .now on clicking a button i want the complete source code of that html page form to
-
iam using iframe .in that iframe i kept an html page .now on clicking a button i want the complete source code of that html page form to
jagadeeshkumar1984 wrote:
i want the complete source code of that html page form to
You want source code for that ???:confused::confused: or you want to read the source code of that html file through program ??? :doh::sigh:
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
-
iam using iframe .in that iframe i kept an html page .now on clicking a button i want the complete source code of that html page form to
Using Javascript ? Then you need to get the content document of IFrame and look in InnerHTML property. If you need this in server side, put a hidden server side textbox, assign the InnerHTML to this textbox using Javascript before page gets posted. Access the value from this textbox on server
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Using Javascript ? Then you need to get the content document of IFrame and look in InnerHTML property. If you need this in server side, put a hidden server side textbox, assign the InnerHTML to this textbox using Javascript before page gets posted. Access the value from this textbox on server
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
sir if dont mind give the code how to write
-
jagadeeshkumar1984 wrote:
i want the complete source code of that html page form to
You want source code for that ???:confused::confused: or you want to read the source code of that html file through program ??? :doh::sigh:
Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"
sir i want to read the source code of that html file through program or a when a button was clicked i want the source code of that html page in the i frame only
-
sir if dont mind give the code how to write
Assume your IFrame is named "MyIframe". So InnerHTML can be taken like
var IframeDoc = document.getElementById('MyIframe').contentWindow.document
alert(IframeDoc.body.innerHTML);I hope you know how to put this to a textbox and get this in server.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Assume your IFrame is named "MyIframe". So InnerHTML can be taken like
var IframeDoc = document.getElementById('MyIframe').contentWindow.document
alert(IframeDoc.body.innerHTML);I hope you know how to put this to a textbox and get this in server.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
sir i used like this only with innerhtml .but iam getting only the source code from
to
.but iam not getting the java script which i used in the html page.
-
Assume your IFrame is named "MyIframe". So InnerHTML can be taken like
var IframeDoc = document.getElementById('MyIframe').contentWindow.document
alert(IframeDoc.body.innerHTML);I hope you know how to put this to a textbox and get this in server.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
I want to get html source code of an URL. the user gives url in text box and upon clicking the submit button i need to get he html source code of that webpage(URL). I want this to be done using innerHTML Regards Manish T