|
Don't worry about it, CodeProject has code explicitly designed to do that. Use Google.com as your sample. Now if you are trying to adframe around CodeProject, then I think you see why they have done what they have done.
|
|
|
|
|
Wrong forum: try web development or asp.net.
Probably has some JavaScript on the page that makes it the topmost or parent page to stop it being opened inside another web site - view the source of the page in question and you may be able to track it down.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Thanks you all. for your kind words.
There is not any solution for that .... right ?? sharp devlopers .
|
|
|
|
|
There's no way in C# to do this. Maybe there's a solution in some CLIENT-SIDE language like JavaScript.
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
Actually there is a way in C# to do this. It involves using the WebRequest object and parsing out the offending js method and then rendering the newly stolen web page to the client. Of course you have to rewrite the URL's too but it isn't so terribly difficult as to be hard.
|
|
|
|
|
Actually I suppose you could read in the source of the page, strip out anything you don't want and then write it back out to a window.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
The reason is that you are probably violating the terms of use of the site. If a site doesn't want its content used outside of the site itself, that is their choice. You should always ask permission if you intend to integrate someone else's site into your own.
|
|
|
|
|
i am not taking content of anysite. it is just my test and given test link for that.
if everysite is coming to iframe and not popping then why codeproject is popping out.
Just a Questiong.
|
|
|
|
|
Look at the source code of CodeProject's web pages.
I think
if(top!=self)top.location.href=location.href;
does the trick.
|
|
|
|
|
thanks bhiller..
I think code project may have attached that code.
|
|
|
|
|
hello - any idea on this sort of exception?
<br />
+ [System.InvalidCastException] {"<br />
[A]MyLib.SomeAccount cannot be cast to [B]MyLib.SomeAccount. <br />
Type A originates from in the context 'Default' at location <br />
'Y:\\MySrcCode\\FolderA\\Debug\\MyAcct.dll'. <br />
Type B originates from 'MyLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'LoadFrom' at location <br />
'Y:\\MySrcCode\\FolderB\\Debug\\MyAcct.dll'."} System.InvalidCastException<br />
Note, class exactly the same... but folder different ... how to resolve...?
This may be hint but...[^]
Another hint here[^]
|
|
|
|
|
Those are two different classes, in two different assemblies. They may look the same, the may have the same implementation; but they're not the same class.
I are Troll
|
|
|
|
|
Use the WCF forum for WCF questions.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
|
hi guys
how to known that exits blutooth on pc?
if this class of wmi function is true ?
Win32_NetworkAdapter ??
thanks a lot
|
|
|
|
|
yes, I would enumerate the Win32_NetworkAdapters; when Bluetooth is present, there will be one that seems to have "Bluetooth" in its Name, Description and ProductName fields.
|
|
|
|
|
thanks
that is good
but when we put bluetooth in usb windows install that driver and when we drop out from usb the software of that is exist and after that we run program represent bluetooth but must not represent
i following this
|
|
|
|
|
I don't know how to tell whether Bluetooth is enabled or disabled, the Win32_NetworkAdapter content doesn't get changed by switching it on or off.
|
|
|
|
|
behzadcp wrote: i following this
I am so glad someone is! I'm not following that at all...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
really? maybe you should work out more. It isn't going any real distance, it is about Bluetooth after all.
|
|
|
|
|
WHAT!? You mean the "E" word? Gulp!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Curious - for simple array such as string[], if I declare known type from interface, they just won't show on object browser (but other custom/non-System types developed in-house can), thus the infamous:
<br />
There was an error while trying to serialize parameter http:
I have to resort to set it programmatically from proxy in order to get it working:
<br />
foreach (var operation in proxy.Endpoint.Contract.Operations) <br />
{ <br />
operation.KnownTypes.Add(typeof(MyDynamicallyAddedKnownType)); <br />
} <br />
why...
|
|
|
|
|
Ummm... what? You must be doing something wrong.
|
|
|
|
|
You're asking this in the wrong forum. Use the WCF forum instead.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Dose anyone know how to contact form1 from form2 without opening a new form? this is my code.
Form1 form1 = new Form1();<br />
if (e.KeyData == Keys.Escape)<br />
{<br />
this.Visible = false;<br />
form1.timeToolStripMenuItem.Checked = false;<br />
}
|
|
|
|