Archive for October, 2012

How to write string on web page in asp.net

{0 Comments}

In order to write string value to web page using c sharp in asp.net, we have to use a method know as response. Write method which will allow writing on a web page. Following is the easiest code snippets to write text on web page.  C# |  copy code |? 1Response.Write("hello world"); This response write method accept a parameter which …

Read More…

How to redirect in JavaScript to another page

{0 Comments}

In some scenario you need to redirect user form one page to another page on click of a button.  And if you have same type of scenario then you can use this approach. Here on button click we are calling JavaScript function which will take user to new page following in the JavaScript function.  Javascript |  copy code |? 1 …

Read More…

how to popup a window in javascript

{0 Comments}

how to popup a window in javascript

Here in this article we will see how to create or make popup of a window using JavaScript.  Here is a button having on click event which call the JavaScript function.  Our JavaScript function contains JavaScript open function and in this we are passing first parameter as a URL which is to be open in …

Read More…

How to create a timer in javascript

{0 Comments}

How to create a timer in javascript

Timer is kind of event which automatically execute after a time of specified number of millisecond. In order to write a timer in JavaScript we can do this as follows, First have a label whose id is lbltext then we have two button one is start timer which call test function. And other is stop …

Read More…

Does stored procedure increase performance

{0 Comments}

When you ask any dot net developer that why he prefer stored procedure as compared to inline queries. Most of them will reply back with standard statement like; Stored procedure are pre compiled They are cached so the performance must be better. In this article you will know that this are miss conception that stored …

Read More…

Do session variable use cookies.

{0 Comments}

In this article we will try to clarify a very important question. Does session variable use cookies? This is one of the favorite interview questions. Yes session variable use cookies, but internally. So what happens if somebody disables the cookies for the privacy reason? Then it won’t work, to still have a site with state …

Read More…

How to create a master page in asp.net

{0 Comments}

How to create a master page in asp.net

In this article you will know how to create a master page in asp.net step by step. So our first step would be creating a website or create a new project in which we will create a master page. Step1) launch you visual studio Step2) create new website/project Step3) rename it to some thing relevant …

Read More…

How to bold label in asp.net

{0 Comments}

You can apply bold property to asp.net label or any other property in static and dynamically both manner, for static you can simply add css style with property font-weight: bold; and apply same dynamically as follows;  C# |  copy code |? 1Label1.Attributes.Add("style","font-weight:bold");  

Read More…

How to add label dynamically in asp.net

{0 Comments}

Adding a label in asp.net dynamically is very easy, as we know that label is a type of control which on run time creates a span with same id which you assign to label. So we can create label control dynamically in the similar manner in which other controls are created, which is as follows, …

Read More…