embedded-code

Embedding ASP.Net code in external javascript files

Hi, I have a code like var mySession = "<%= Session["MyID"] %>"; alert ( mySession ); and when I place this code in my aspx page inside a script tag, it works fine. But it doesn't work in an external js file. I am not able to figure out the problem. Is there anything wrong in my code, or is it like this by default? Thanks in advan...

Embedded code in NavigateUrl of an asp:Hyperlink. What am I doing wrong?

In code-behind of an ASP.NET page I have this method: public string TestFunc() { return "http://www.blabla.net"; } And in markup this: <%= TestFunc() %> If I run the page I see "http://www.blabla.net" as text on the page and in debugger I enter TestFunc - all as expected. If I put this Hyperlink on the same aspx page... <asp:...

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? ...

how to create a thumbnail image with embedded video code

Hi all, How to create a thumbnail image with embedded video code. For example i am having the following embedded code: > <object width="480" > height="385"><param name="movie" > value="http://www.youtube.com/v/6r-mz0dh6cs&amp;hl=en_US&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param > name="allowFullScreen" > value="true"></param><param > nam...

How to play a embedded code in lightbox type popup

Hi all How to play a embedded code in lightbox type pop up? Here is the whole code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=U...

jQuery.load() with AJAX Kontactr form

After seeing many questions about how jQuery.load() handles tags in the content to be loaded, I see that jQuery strips out inline tags. But, I'd like to use Kontactr for the contact page in my site, and the much nicer AJAX embed they have is two script tags as in the code examples below. How can I work around the jQuery.load() constrai...