ASP.NET Custom role provider

Easy guide to write your custom role provider

Merge splitted .mkv files

Learn how to merge splitted .mkv files (.mkv001,.mkv002...)

How to Zoom in and Zoom out your sql execution plan ?

Tool to tune your sql query

send .exe files with gmail

How to send files having blocked extension with Gmail ?

Multiple home pages in Internet explorer

How to set multiple home pages in internet explorer ?

6/28/2009

Microsoft announces pricing plans for Windows 7 : 50 % discount on Windows 7


Software giant Microsoft has announced the pricing plans for its new operating system Windows 7 .The prices for Windows 7 in United states are as follows :



1. Windows 7 Home Premium (Upgrade): $119.99
2. Windows 7 Professional (Upgrade): $199.99
3. Windows 7 Ultimate (Upgrade): $219.99



And the prices for the Windows 7 full package are:



1. Windows 7 Home Premium (Full): $199.99
2. Windows 7 Professional (Full): $299.99
3. Windows 7 Ultimate (Full): $319.99



The Redmond giant also says that customers who purchase new computers before Windows 7 goes on sale will get free upgrades once it is released . The home basic version of Vista wont be eligible for upgrade. The company also offers customerswho live in the United States and other select markets the opportunity to preorder Windows 7 starting yesterday at a discount of 50 %, which means that in the United States, you can preorder Windows 7 Home Premium for $50 or Windows 7 Professional for $100 till supplies last.



The offer ends July 11 in the United States and Canada, and July 5 in Japan. Customers in the United Kingdom, France and Germany can preorder theirs July 15 to Aug. 14. For all the fine print concerning the offer, click here or here.


The new Operating System , Microsoft Windows 7 will officially hit the stores on Oct. 22.

5/30/2009

How to reset user session in IIS when using AJAX updatepanel extensively on the page ?

I guess every ASP.net developer might be using Updatepanel control these days which lets us to do partial postbacks on the page .If you are using Updatepanel control once on your page , you wont come across any issues . But if you are using it extensively obviously you will run into many issues.

In a traditional ASP.net web application the users session timeout counter will be reset everytime a user requests a page from the server, thus by preventing the user’s session from getting timed out. However,In AJAX ASP.NET application which uses XMLHTTP request to update part of a page , the users session counter on IIS will not be reset . So How to prevent Timeout in AJAX Asp.net Application which uses updatepanels ? How can we reset user Session in IIS when so activity happens in updatepanel ? The solution is here . Read on .
  • Create a new WebForm - KeepAlive.aspx in your application.
  • Now go to the code behind of the webform by hitting F7.
  • In the page_load method of the webform (KeepAlive.aspx) add the following lines of code
Response.ContentType = "text/html";
Response.Write("Technade");
  • Now go to the page where you are using the updatepanel extensively and add the following javascript to the markup.
function sessionKeepAlive(sender, args) {
//Create a New web Request and make a call to KeepAlive
var SubRequest = new Sys.Net.WebRequest();
SubRequest.set_url("KeepAlive.aspx");
SubRequest.set_httpVerb("POST");
SubRequest.add_completed(sessionKeepAlive_Callback);
SubRequest.set_body();
SubRequest.get_headers()["Content-Length"] = 0;
SubRequest.invoke();
}

//This function processes the return values
function sessionKeepAlive_Callback(executor, eventArgs)
{
// If you want to check any returned value from server ,you can use this else skip it
//else leave as it is
}
//Raised after an asynchronous postback is finished and control has been returned to the
// browser.
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(sessionKeepAlive)

  • What we are doing above is that, whenever you make a asynchronous postback call to the server , we are requesting the KeepAlive.aspx from the server using a new web request which inturn will reset the user session in IIS.
This solution has been tested and it works. So you dont need to worry that your updatepanel activity is not resetting the session in IIS.I hope this one helps the developers.Please post your doubts and views as comments.This one also might help you
How to remove 'sys' is undefuned ?

For more ASP.NET solutions , Subscribe here or click here to get updates via email .

5/23/2009

Banned by Adsense

Yes ,I am banned by adsense . On the day I received a mail from adsense that they had banned my account , I was stunned as usual . As we all know adsense never let people know the exact reason behind banning a website. I finally entered some form requesting google to reinstate my account . But nothing happened.

So Why am I banned by Google adsense ?

The only reason I can think of is I am not updating my blog . Yes guys , if you have a high revenue generating blog/website and you are not updating it regularly , Google will consider it as Made For Adsense website (MFA) and they will ban the respective account .

Apart from this , there are lot of reasons why Google might ban your adsense account .
Please check here to find the reasons why Google ban your adsense account .
For more updates from techworld , Subscribe here or click here to get updates via email .

5/14/2009

Meet me @ Tech.ed 2009 , Hyderabad

Join me @ Microsoft tech.ed 2009 , one of the most exciting events for Microsoft developers from 13-15th of May in Hyderabad . I will be posting updates on Technade.Stay tuned .

4/05/2009

Beware of Microsoft Powerpoint Flaw

Microsoft has warned that Hackers are targetting a unpatched flaw in Microsoft office Powerpoint to attack users PC 's .

Versions Vulnerable : Microsoft Office 2003 SP3,Office 2002 SP3 and 2000 SP3 .

Hackers will launch attack by making you open a powerpoint file which has been crafted already . When you open the file powerpoint will try to access a invalid object in the memory which in turn allows the hacker to execute code remotely on your system .

As per Security advisory , attacks are not spread yet heavily but they expect some limited number of expects targetted at some users .Right Now Microsoft did not come up with any patch for this flaw but they might do it in next patch.

So What should I do to protect myself against powerpoint vulnerability ?

Microsoft suggests us not to open files received from untrusted sources, use the Microsoft Office Isolated Conversion Environment (MOICE) to open untrusted files, and use Microsoft Office File Block policy to restrict the opening of Office 2003 and earlier documents.
For more TechWorld updates and security News , Subscribe here or Click here to get updates via email .