I hope I ask my question in the right place.
I want to access to source code of a WEBPAGE and change it.
For this, use mshtml.HTMLDocument2.
Usually I write source code with a StreameReader on Object IHTMLDocumetn2.
The output of StreamReader is perfect.
But after writing the output on IHTMLDocument2 something strange happens.
some quotation marks and backslashes disappear and the header changes.
Codes are as below:
The problem is I can avoid qoutations and backslashes. for output I need standard xhtml. it's better to explain the problem in other way. In my project all relative urls must change to absolute ones. Href belongs to anchor
-Src belongs to images
-Parameters belongs to flashmovie
-Src belongs to script
-Src belongs to link
The solution I know is using IHTMLDOCUMENT2 but as I told when I use it there occured some problems in Sourcecode, using REGEX may lead to some other problems because expanding sourcecodes are not always in XHTML format (for example missing "TAG and CLOSETAG or Qoutations arround properties etc."). In this case using REGEX is so complex.
Please let me know if you know other solutions as well as how I can use IHTMLDOUCMENT2 by Sourcecode which first I use without any changes
I developed a Console application exe and its working fine in my local machine. I need to run the exe in remote machine using remote paths.
For example, if the remote server name is XYZ, the exe should be run on XYZ using remote paths like:
C:\>\\XYZ\C$\abc.exe ( on XYZ machine itself, actually this exe should be executed from vbscript with this path).
But its giving exception as following:
Exception : Request for the permission of type 'System.Data.SqlClient.SqlClientP
ermission, System.Data, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c5
Exception : System.Security.SecurityException: Request for the permission of typ
e 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=126.96.36.199, Cult
ure=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMa
rk& stackMark, Boolean isPermSet)
at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection o
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection ou
terConnection, DbConnectionFactory connectionFactory)
at BulkDataCopy.BulkDataCopy.Main(String args)
The action that failed was:
The type of the first permission that failed was:
The Zone of the assembly that failed was:
Please let me know the solution if you find any...
Pls i want my program to be the topmost window when it running. And it should not respond to command keys, like Alt+F4, Alt+Tab and Ctrl+Alt+Del, that allow for the user to abruptly leave, or exit the program.
How do i accomplish this?
He who goes for revenge must first dig two graves.
I created a report with CrystalReport2005 in C#2005, the report contains a subreport, and the master report links the subreport by a grouping field (That is master report and sub report is related by the grouping field, ) when creating the linkage between the master report and subreport, then automatically generating a parameter in the subreport , It works well when I preview in the CrystalReport environment , but when I execute in the C#2005,it ask me to pass the value for the parameter. I don't know how to handle it in the C#, Could you help me on it?
I am new to asp.net. Iam developing a webapplication in which i use a dynamically generated table control. I add rows into it, according to the data retrieved from the database. but when i try to resubmit the values in the table to the database, only the value in the last row is getting submitted. How can i sort out this problem??
Last Visit: 31-Dec-99 18:00 Last Update: 20-Apr-21 10:53