hotcoder
hotcoder

Reputation: 3256

Embed code for my web page

I've created a web application in asp.net. I've to generate embed code for one of my page so that other websites can embed that code in their websites. Tell me what is the best way to do this?

Upvotes: 0

Views: 285

Answers (2)

Ashish Gupta
Ashish Gupta

Reputation: 15139

You can try IFRAME or a javascript depending on what you want to do. An example is right here in stackoverflow.

Upvotes: 2

Jarrett Widman
Jarrett Widman

Reputation: 6429

You can provide code for an iframe that contains your page, which usually isn't so great. Or you can provide a little snippet of javascript that will then write your content into the page, which in most cases is better. If you really don't want anyone to mess with the code, use the iframe though since javascript can't really access your code inside of an iframe to make changes.

Upvotes: 0

Related Questions