In this post you will learn how to upload video on YouTube from your application. I’ve used ASP.NET Web Forms as well as MVC bits to implement all functionality easily. You can achieve similar functionality ASP.NET Web Forms or MVC alone.
29 Nov 2015
2 Apr 2015
31 Mar 2015
15 Jan 2015
The very nice people at PACKT Publication recently asked me to technical review one of the upcoming new book TypeScript, and you know I never miss such opportunities to review book and become its part. Greedily, to get reviewer name printed on book gives great feel.
23 Jan 2014
10 Sep 2013
9 Sep 2013
2 Oct 2012
5 Aug 2012
3 Aug 2012
26 Jul 2012
23 Jul 2012
This is a quick hit post. If you are developing a form in ASP.NET you may be noticed that when we press enter key even without writing any information in textboxes, form gets post (submitted). So, how do you stop it?
24 May 2012
This post shows how to make the clone of elements on web page using jQuery, for this we will use .clone() method.
Sometimes we want to copy (clone) elements on web page, for example, navigate menu can be placed on header and footer too and there may be many situations come to us where we need to clone. Why write something twice if we have opportunity to use jQuery.
So, let's create a demonstration page for this talk.
<h2>History of Visual Studio</h2>
Visual Studio's history probably begins in <strong class="year">1975</strong> with Bill and Paul's decision to create Altair BASIC. Maybe you could start before that but I think that's as far back as you could go and still say it's about Visual Studio at all – it's at that time that Microsoft decided it was going to have software development products and not, say, toaster automation.
Some more informations.
Let's assume; we want to copy the 'mainBody' <div> and place it after first <p>. To do this we will use following jQuery:
Above jQuery, making the clone of <div> that has class 'mainBody' and inserting this new clone after first <p>, in DOM 0 refers the very first <p>, 1 refers the second <p> and so on.
Output in Browser:
Take one more assumption; what if we want to apply different style to cloned copy?
Now, to do this we need to create a style class.
font: italic 1.4em "Times New Roman", Times, serif;
So, we have a style now; let's add it to cloned copy.
Nothing new here, just added one more attribute .addClass('cloneStyle') to existing jQuery above.
Now, look at the output in browser:
So, that's all about the making clone on web page. You can dive deep in this topic to achieve some more functionality.
23 May 2012
testwindow = window.open("", "mywindow", "location=1,status=1,scrollbars=1,width=300,height=300");
my_window = window.open("", "mywindow1", "status=1,width=300,height=200");