views:

32

answers:

2

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?

A: 

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.

jarrett
+2  A: 

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

ydobonmai
nice one.......
Muhammad Akhtar