<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6518806439004837230</id><updated>2011-11-27T16:38:53.760-08:00</updated><category term='png image repeat problem'/><category term='image upload stream'/><category term='shrinking image problem'/><category term='Fade out message'/><category term='change passowrd'/><category term='KKR'/><category term='Download images'/><category term='RegularExpression for file type'/><category term='png fix'/><category term='RegularExpression for images types'/><category term='image stored in database'/><category term='Fun'/><category term='Error message'/><category term='Yahoo delete mail meeage'/><category term='.quick-alert'/><category term='In top ten of MVC'/><category term='png images with ie6.0'/><category term='JQuery'/><category term='image distrote problem'/><category term='Response'/><category term='Fake Ipl player'/><category term='Polling system'/><category term='RegularExpression for images'/><category term='resizing image'/><category term='how to execute code after response'/><category term='content-type'/><category term='function()'/><category term='$(&quot;.quick-alert&quot;).fadeOut(&quot;slow&quot;'/><category term='File download'/><category term='asp.net'/><category term='password in textbox'/><category term='Ipl'/><category term='gmail delete mail meeage'/><category term='fetch images from database'/><category term='filter: progid:dximagetransform.microsoft.alphaimageloader probleme mit textbox'/><category term='update password'/><category term='ie6 hack for the png image'/><title type='text'>mohammad hussain</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-7985817123564057454</id><published>2010-05-21T03:54:00.000-07:00</published><updated>2010-05-21T04:01:41.527-07:00</updated><title type='text'>Captcha with asp.net using LINQ and Jquery</title><content type='html'>Hi, we all need to display captcha when ever we fill form.&lt;br /&gt;So you can get thousands of captcha example when you search.&lt;br /&gt;But the one i am providing you is interested and easy to implement.&lt;br /&gt;&lt;br /&gt;First of all we need to create Http Handler(generic handler) below : &lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Web.SessionState;&lt;br /&gt;&lt;br /&gt;namespace YourNamespace&lt;br /&gt;{&lt;br /&gt;    public class Captcha : IHttpHandler,IRequiresSessionState&lt;br /&gt;    {&lt;br /&gt;        #region "ProcessRequest"&lt;br /&gt;        &lt;br /&gt;        public void ProcessRequest(HttpContext context)&lt;br /&gt;        {&lt;br /&gt;            HttpContext.Current.Response.ContentType = "image/png";&lt;br /&gt;            var no = RandomText.GenerateRandomText(3);&lt;br /&gt;            //if (context.Session["Captcha"] == null) return;&lt;br /&gt;            HttpContext.Current.Session["Captcha"] = no;&lt;br /&gt;            //var bmpOut = new Bitmap(200, 50);&lt;br /&gt;            var bmpOut = new Bitmap(60, 25);&lt;br /&gt;            var g = Graphics.FromImage(bmpOut);&lt;br /&gt;            g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;&lt;br /&gt;            g.FillRectangle(Brushes.White, 0, 0, 60, 23);&lt;br /&gt;            g.DrawString(HttpContext.Current.Session["Captcha"].ToString(), new Font("Verdana", 18), new SolidBrush(Color.Gray), 0, 0);&lt;br /&gt;            var ms = new MemoryStream();&lt;br /&gt;            bmpOut.Save(ms, System.Drawing.Imaging.ImageFormat.Png);&lt;br /&gt;            var bmpBytes = ms.GetBuffer();&lt;br /&gt;            bmpOut.Dispose();&lt;br /&gt;            ms.Close();&lt;br /&gt;            context.Response.BinaryWrite(bmpBytes);&lt;br /&gt;            context.Response.End();&lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;&lt;br /&gt;        #region "Properties"&lt;br /&gt;        public bool IsReusable&lt;br /&gt;        {&lt;br /&gt;            get&lt;br /&gt;            {&lt;br /&gt;                return true;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static class RandomText&lt;br /&gt;    {&lt;br /&gt;        #region "GenerateRandomText"&lt;br /&gt;        &lt;br /&gt;        public static string GenerateRandomText(int textLength)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            const string chars = "ABCDEFGHIJKLMNPQRSTUVWXYZ23456789";&lt;br /&gt;            var random = new Random();&lt;br /&gt;            var result = new string(&lt;br /&gt;                Enumerable.Repeat(chars, textLength)&lt;br /&gt;                          .Select(s =&gt; s[random.Next(s.Length)])&lt;br /&gt;                          .ToArray());&lt;br /&gt;            return result;&lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Alert creating http handler now we need to create the .aspx part &lt;br /&gt;where we will generate this image :&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- This part will placed in .aspx --&amp;gt;&lt;br /&gt;&amp;lt;div class="float_left"&amp;gt;&lt;br /&gt;   &amp;lt;img src="/Captcha.ashx?" id="img1" alt="" /&amp;gt;&lt;br /&gt;   &amp;lt;/div&amp;gt;&lt;br /&gt;   &amp;lt;div class="float_left paddingtop3"&amp;gt;&lt;br /&gt;       &amp;nbsp;&amp;lt;a href="javascript:void(0);" class="message" id="newchapta"&amp;gt;(Can&amp;rsquo;t see the image?)&amp;lt;/a&amp;gt;&amp;nbsp;&lt;br /&gt;   &amp;lt;/div&amp;gt;&lt;br /&gt;Now in the same page, to change change content or re-generate image again on hyper link click,add the following code :&lt;br /&gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;    // with this method this captcha gets chaned on client side ! have fun&lt;br /&gt;    $(function(e) {&lt;br /&gt;        $("#newchapta").click(function(e) {&lt;br /&gt;            var imgNew = $("#imgCode");&lt;br /&gt;            d = new Date();&lt;br /&gt;            imgNew.attr("src", 'Captcha.ashx?' + d.getTime());&lt;br /&gt;        });&lt;br /&gt;    });&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;Now on the server side we can match input entered by user like following code snippet :&lt;br /&gt;&amp;lt;!-- For code behind here you can check text value entered by user where captcha.Text is the text box value  --&amp;gt;&lt;br /&gt;if (HttpContext.Session["Captcha"] != null)&lt;br /&gt;            {&lt;br /&gt;                if (HttpContext.Session["Captcha"].ToString().ToLower() != captcha.Text.ToLower())&lt;br /&gt;                {&lt;br /&gt;                    error = "The digits you entered do not match the digits in the image.";&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- Till here --&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-7985817123564057454?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/7985817123564057454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/captcha-with-aspnet-using-linq-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/7985817123564057454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/7985817123564057454'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/captcha-with-aspnet-using-linq-and.html' title='Captcha with asp.net using LINQ and Jquery'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-6483480799370787225</id><published>2010-05-21T02:46:00.000-07:00</published><updated>2010-05-21T03:53:08.275-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Polling system'/><title type='text'>Create Polling System with Asp.net &amp; jQuery</title><content type='html'>&lt;span id="ctl00_ContentPlaceHolder1_lblDescription"  style="color:darkblue;"&gt;Hi,&lt;br /&gt;You can find many polling system on internet that are working .But here is the&lt;br /&gt;one which is merged with jQuery poll. You can use this with update panel and with out update panel as well.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At first Create the database using the following script :&lt;br /&gt;&lt;br /&gt;SET ANSI_NULLS ON&lt;br /&gt;GO&lt;br /&gt;SET QUOTED_IDENTIFIER ON&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE [dbo].[Poll](&lt;br /&gt;[PollID] [int] IDENTITY(1,1) NOT NULL,&lt;br /&gt;[Name] [nvarchar](400) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,&lt;br /&gt;[Published] [bit] NOT NULL,&lt;br /&gt;[CreatedOn] [datetime] NULL&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;script for poll question answer:&lt;br /&gt;&lt;br /&gt;SET ANSI_NULLS ON&lt;br /&gt;GO&lt;br /&gt;SET QUOTED_IDENTIFIER ON&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE [dbo].[YourPollAnswer](&lt;br /&gt;[PollAnswerID] [int] IDENTITY(1,1) NOT NULL,&lt;br /&gt;[PollID] [int] NOT NULL,&lt;br /&gt;[PollAnswerName] [nvarchar](400) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,&lt;br /&gt;[Count] [int] NOT NULL,&lt;br /&gt;[DisplayOrder] [int] NOT NULL,&lt;br /&gt;[CreatedOn] [datetime] NULL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Stored Procedures for selecting and updating counts/votes&lt;br /&gt;&lt;br /&gt;update YourPollAnswer set [Count] =  ([Count]+1) where PollAnswerID = @PollAnswerID and PollID = @PollID&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select PollAnswerName,[Count],PollAnswerID,PollID,DisplayOrder,CreatedOn from YourPollAnswer where PollID=@PollID&lt;br /&gt;------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now create the aspx page :&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&amp;lt;asp:ScriptManager ID="scrMgr" runat="server"&amp;gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;&amp;lt;table width="90%" border="0" cellspacing="0" cellpadding="0"&amp;gt;&lt;br /&gt;                &amp;lt;tr&amp;gt;&lt;br /&gt;                    &amp;lt;td&amp;gt;&lt;br /&gt;                        &amp;lt;asp:UpdatePanel ID="upPanelPoll" RenderMode="Block" runat="server"&amp;gt;&lt;br /&gt;                            &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;                                &amp;lt;div&amp;gt;&lt;br /&gt;                                    &amp;lt;div id="poll-container"&amp;gt;&lt;br /&gt;                                        &amp;lt;span class="black12"&amp;gt;&amp;lt;strong&amp;gt;&lt;br /&gt;                                            &amp;lt;asp:Label ID="lblQuestion" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;                                        &amp;lt;p&amp;gt;&lt;br /&gt;                                            &amp;lt;asp:RadioButtonList ID="rblPollAnswers" CssClass="black12" runat="server" DataTextField="PollAnswerName"&lt;br /&gt;                                                DataValueField="PollAnswerID"&amp;gt;&lt;br /&gt;                                            &amp;lt;/asp:RadioButtonList&amp;gt;&lt;br /&gt;                                            &amp;lt;asp:Button ID="btnsubmit" runat="server" Text="Vote" OnClientClick="javascript:return CheckAnswer();"&lt;br /&gt;                                                class="vote_button" OnClick="btnsubmit_Click" /&amp;gt;&lt;br /&gt;                                        &amp;lt;/p&amp;gt;&lt;br /&gt;                                    &amp;lt;/div&amp;gt;&lt;br /&gt;                                    &amp;lt;div id="poll-results" style="display: none;"&amp;gt;&lt;br /&gt;                                    &amp;lt;/div&amp;gt;&lt;br /&gt;                                &amp;lt;/div&amp;gt;&lt;br /&gt;                            &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;                        &amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;                    &amp;lt;/td&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;                &amp;lt;tr&amp;gt;&lt;br /&gt;                    &amp;lt;td&amp;gt;&lt;br /&gt;                        &amp;nbsp;&lt;br /&gt;                    &amp;lt;/td&amp;gt;&lt;br /&gt;                &amp;lt;/tr&amp;gt;&lt;br /&gt;            &amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;    function CheckAnswer()&lt;br /&gt; {&lt;br /&gt;    var all=document.getElementsByTagName("input");&lt;br /&gt;    var check=0;&lt;br /&gt;    for(i=0;i&amp;lt;all.length;i++)&lt;br /&gt;    {&lt;br /&gt;      if(all[i].type == "radio" &amp;&amp; all[i].checked == true)&lt;br /&gt;      {&lt;br /&gt;          check=0;&lt;br /&gt;          break;&lt;br /&gt;      }&lt;br /&gt;      else&lt;br /&gt;      {&lt;br /&gt;           check=1;&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;    if(check == 1)&lt;br /&gt;    {&lt;br /&gt;       alert("Please select answer before voting.");&lt;br /&gt;       return false;&lt;br /&gt;    }&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Now, Create an JS file which will contains the necessary JavaScript functions :&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;var OPT_ID = 0;&lt;br /&gt;var OPT_TITLE = 1;&lt;br /&gt;var OPT_VOTES = 2;&lt;br /&gt;var votedID;&lt;br /&gt;&lt;br /&gt;function animateResults() {&lt;br /&gt;    $("#poll-results div").each(function() {&lt;br /&gt;        var percentage = $(this).next().text();&lt;br /&gt;        $(this).css({ width: "0%" }).animate({&lt;br /&gt;            width: percentage&lt;br /&gt;        }, 'slow');&lt;br /&gt;    });&lt;br /&gt;}&lt;br /&gt;$("#btnshowresult").click(function() {&lt;br /&gt;    // alert('show result');&lt;br /&gt;    $("#divfill").fadeOut('normal', function() {&lt;br /&gt;        $(this).css("display", "none");&lt;br /&gt;        $("#divresult").fadeIn('normal', function() {&lt;br /&gt;            $("#divresult").css("display", "block");&lt;br /&gt;        });&lt;br /&gt;    });&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;$("#btnshowpoll").click(function() {&lt;br /&gt;    //alert('Show poll');&lt;br /&gt;    $("#divresult").fadeOut('normal', function() {&lt;br /&gt;        $("#divresult").css("display", "none");&lt;br /&gt;        $("#divfill").fadeIn('normal', function() {&lt;br /&gt;            $("#divfill").css("display", "block");&lt;br /&gt;        });&lt;br /&gt;    });&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;function loadResults(data) {&lt;br /&gt;    //alert('here');&lt;br /&gt;    var total_votes = 0;&lt;br /&gt;    var percent;&lt;br /&gt;    for (id in data) {&lt;br /&gt;        total_votes = total_votes + parseInt(data[id][OPT_VOTES]);&lt;br /&gt;    }&lt;br /&gt;    //alert(total_votes);&lt;br /&gt;&lt;br /&gt;    var results_html = "&lt;span class='black11'&gt;&lt;strong&gt;Poll Results&lt;/strong&gt;&lt;/span&gt;\n&lt;dl class='graph'&gt;\n";&lt;br /&gt;    for (id in data) {&lt;br /&gt;        percent = Math.round((parseInt(data[id][OPT_VOTES]) / parseInt(total_votes)) * 100);&lt;br /&gt;        if (data[id][OPT_ID] !== votedID) {&lt;br /&gt;            results_html = results_html + "&lt;dt class='bar-title'&gt;" + data[id][OPT_TITLE] + "&lt;/dt&gt;&lt;dd class='bar-container'&gt;&lt;div id='bar" + data[id][OPT_ID] + "'style='width:0%;'&gt;&amp;nbsp;&lt;/div&gt;&lt;strong&gt;" + percent + "%&lt;/strong&gt;&lt;/dd&gt;\n";&lt;br /&gt;        } else {&lt;br /&gt;            results_html = results_html + "&lt;dt class='bar-title'&gt;" + data[id][OPT_TITLE] + "&lt;/dt&gt;&lt;dd class='bar-container'&gt;&lt;div id='bar" + data[id][OPT_ID] + "'style='width:0%;background-color:#0066cc;'&gt;&amp;nbsp;&lt;/div&gt;&lt;strong&gt;" + percent + "%&lt;/strong&gt;&lt;/dd&gt;\n";&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    results_html = results_html + "&lt;/dl&gt;\n&lt;br /&gt;&lt;span class='black12' style='margin-left:20px;'&gt;&lt;strong&gt;Total Votes : " + total_votes + "&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;input type='button' class='voteagain_button' style='margin-left:20px;' id='btnret' value='Vote Again' onclick='backtopoll()' /&amp;gt;\n";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    $("#poll-container").fadeOut('normal', function() {&lt;br /&gt;        $(this).css("display", "none");&lt;br /&gt;        $("#poll-results").empty();&lt;br /&gt;        $("#poll-results").append(results_html).fadeIn('normal', function() {&lt;br /&gt;            $("#poll-results").css("display", "block");&lt;br /&gt;            animateResults();&lt;br /&gt;        });&lt;br /&gt;    });&lt;br /&gt;}&lt;br /&gt;function backtopoll() {&lt;br /&gt;    $("#poll-results").fadeOut('normal', function() {&lt;br /&gt;        $("#poll-results").css("display", "none");&lt;br /&gt;        $("#poll-container").fadeIn('normal', function() {&lt;br /&gt;            $("#poll-container").css("display", "block");&lt;br /&gt;        });&lt;br /&gt;    });&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-6483480799370787225?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/6483480799370787225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/hi-you-can-find-many-polling-system-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/6483480799370787225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/6483480799370787225'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/hi-you-can-find-many-polling-system-on.html' title='Create Polling System with Asp.net &amp; jQuery'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-2822932793081257153</id><published>2010-05-21T02:28:00.000-07:00</published><updated>2010-05-21T02:46:17.364-07:00</updated><title type='text'>another milestone achieved</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_qx9nurjBlqU/S_ZTW2FEPrI/AAAAAAAAACY/-U7wKVdZ4OE/s1600/another_Mohd.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 186px;" src="http://4.bp.blogspot.com/_qx9nurjBlqU/S_ZTW2FEPrI/AAAAAAAAACY/-U7wKVdZ4OE/s400/another_Mohd.JPG" alt="" id="BLOGGER_PHOTO_ID_5473654049054408370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Hi all,&lt;br /&gt;&lt;br /&gt;Another milestone achieved on 21 may 2010.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-2822932793081257153?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/2822932793081257153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/another-milestone-achieved.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/2822932793081257153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/2822932793081257153'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/another-milestone-achieved.html' title='another milestone achieved'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_qx9nurjBlqU/S_ZTW2FEPrI/AAAAAAAAACY/-U7wKVdZ4OE/s72-c/another_Mohd.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-878459309182223843</id><published>2010-05-05T22:26:00.000-07:00</published><updated>2010-05-05T22:45:00.939-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='In top ten of MVC'/><title type='text'>Following the gurus</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_qx9nurjBlqU/S-JW_JtzN5I/AAAAAAAAACQ/e0-etxCuQns/s1600/mohd-mvc.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_qx9nurjBlqU/S-JW_JtzN5I/AAAAAAAAACQ/e0-etxCuQns/s400/mohd-mvc.JPG" alt="" id="BLOGGER_PHOTO_ID_5468028540520970130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Following the path set by DotNet Gurus.... I am trying my best to contribute my thoughts and ideas to help people working with Asp.Net. One small achievement on 6th may 2010 is to get into Top 10.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-878459309182223843?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/878459309182223843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/following-gurus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/878459309182223843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/878459309182223843'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2010/05/following-gurus.html' title='Following the gurus'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_qx9nurjBlqU/S-JW_JtzN5I/AAAAAAAAACQ/e0-etxCuQns/s72-c/mohd-mvc.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-4751613659836762981</id><published>2009-06-29T04:29:00.000-07:00</published><updated>2009-06-29T04:43:15.100-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image upload stream'/><category scheme='http://www.blogger.com/atom/ns#' term='shrinking image problem'/><category scheme='http://www.blogger.com/atom/ns#' term='image distrote problem'/><category scheme='http://www.blogger.com/atom/ns#' term='resizing image'/><title type='text'>Reduse image height/width without saving to hard disk</title><content type='html'>Hi,&lt;br /&gt;if you are uploading the image with flie type control,and you want to reduce image size without saving the original image on the hard disk,THen you can do it like the following (this is all code behind part) :&lt;br /&gt;on the button click write the code:&lt;br /&gt;protected void btnSubmit_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;      Stream s = Request.Files["id of the file control"].InputStream;&lt;br /&gt;      Size size = new Size(); // size class is included in using      //System.Drawing.Imaging; namespace&lt;br /&gt;      size = GetBigDimensions(); &lt;br /&gt;      size = GetBigDimensions(); &lt;br /&gt;        System.Drawing.Bitmap img = (Bitmap)System.Drawing.Bitmap.FromStream(s);&lt;br /&gt;if (img.Width != size.Width || img.Height != size.Height )&lt;br /&gt;        {&lt;br /&gt;            img = (System.Drawing.Bitmap)GetThumb(new Bitmap(img), size.Width, size.Height, true, Color.White);  &lt;br /&gt;        }&lt;br /&gt;        SaveImage(img, Server.MapPath("~/path of the folder where you want to store the image" + imagename variable));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Size GetBigDimensions()&lt;br /&gt;    {&lt;br /&gt;        Size s = new Size(302, 204);// you can set height and width what you want&lt;br /&gt;        return s;&lt;br /&gt;    }&lt;br /&gt;public Image GetThumb(Image _image, int w, int h, bool HiQuality, Color bgColor)&lt;br /&gt;    {&lt;br /&gt;        if (_image == null)&lt;br /&gt;            return null;&lt;br /&gt;&lt;br /&gt;        Bitmap bmp = new Bitmap(w, h);&lt;br /&gt;        Image img = (Image)bmp;&lt;br /&gt;        System.Drawing.Graphics g = System.Drawing.Graphics.FromImage((Image)img);&lt;br /&gt;        g.Clear(bgColor);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        if (_image.Width &gt; w&lt;br /&gt;            || _image.Height &gt; h)&lt;br /&gt;        {&lt;br /&gt;            if (HiQuality)&lt;br /&gt;            {&lt;br /&gt;                g.CompositingQuality = CompositingQuality.HighQuality;&lt;br /&gt;                g.PixelOffsetMode = PixelOffsetMode.HighQuality;&lt;br /&gt;                g.SmoothingMode = SmoothingMode.HighQuality;&lt;br /&gt;                g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;                g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Low;&lt;br /&gt;&lt;br /&gt;            double ratio = Math.Min(1 / ((double)_image.Width / w), 1 / ((double)_image.Height / h));&lt;br /&gt;            float posX = (w / 2 - (_image.Width * (float)ratio) / 2);&lt;br /&gt;            float posY = (h / 2 - (_image.Height * (float)ratio) / 2);&lt;br /&gt;            g.DrawImage(_image, posX, posY, (float)_image.Width * (float)ratio, (float)_image.Height * (float)ratio);&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            int posX2 = (int)(((double)w / 2.0) - ((double)_image.Width / 2.0));&lt;br /&gt;            int posY2 = (int)(((double)h / 2.0) - ((double)_image.Height / 2.0));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            g.DrawImage(_image, posX2, posY2, _image.Width, _image.Height);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        g = null;&lt;br /&gt;        return img;&lt;br /&gt;    }&lt;br /&gt;public void SaveImage(System.Drawing.Image img, string path)&lt;br /&gt;    {&lt;br /&gt;        string Format = path.Substring(path.IndexOf(".") + 1);&lt;br /&gt;        switch (Format.ToLower())&lt;br /&gt;        {&lt;br /&gt;            case "gif":&lt;br /&gt;            case "jpg":&lt;br /&gt;                {&lt;br /&gt;                    EncoderParameters eps = new EncoderParameters(1);&lt;br /&gt;                    eps.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 90L);&lt;br /&gt;                    ImageCodecInfo ici = GetEncoderInfo("image/jpeg");&lt;br /&gt;                    img.Save(path, ici, eps);&lt;br /&gt;                } break;&lt;br /&gt;            default:&lt;br /&gt;                img.Save(path);&lt;br /&gt;                break;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    private static ImageCodecInfo GetEncoderInfo(String mimeType)&lt;br /&gt;    {&lt;br /&gt;        int j;&lt;br /&gt;        ImageCodecInfo[] encoders;&lt;br /&gt;        encoders = ImageCodecInfo.GetImageEncoders();&lt;br /&gt;        for (j = 0; j &lt; encoders.Length; ++j)&lt;br /&gt;        {&lt;br /&gt;            if (encoders[j].MimeType == mimeType)&lt;br /&gt;                return encoders[j];&lt;br /&gt;        } return null;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;and you are done with it ,Its that easy.Using the above we can also reduce of image shriking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-4751613659836762981?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/4751613659836762981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/06/reduse-image-heightwidth-without-saving.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/4751613659836762981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/4751613659836762981'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/06/reduse-image-heightwidth-without-saving.html' title='Reduse image height/width without saving to hard disk'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-6001011107429844251</id><published>2009-06-12T03:19:00.000-07:00</published><updated>2009-06-21T21:42:10.185-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error message'/><category scheme='http://www.blogger.com/atom/ns#' term='Fade out message'/><category scheme='http://www.blogger.com/atom/ns#' term='how to execute code after response'/><category scheme='http://www.blogger.com/atom/ns#' term='JQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Yahoo delete mail meeage'/><category scheme='http://www.blogger.com/atom/ns#' term='gmail delete mail meeage'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='function()'/><category scheme='http://www.blogger.com/atom/ns#' term='$(&quot;.quick-alert&quot;).fadeOut(&quot;slow&quot;'/><category scheme='http://www.blogger.com/atom/ns#' term='.quick-alert'/><title type='text'>Show Error/Succcess Messages like gmail,yahoo mail through JQuery</title><content type='html'>Hi All,&lt;br /&gt;Recently i have applied &lt;span style="font-weight:bold;"&gt;new message system&lt;/span&gt; like what we have seen in &lt;span style="font-weight:bold;"&gt;gmail and yahoo , when we delete the message&lt;/span&gt;,the message come for 4-5 second and after that it just fade out. First i was thinking it is going to be though.But after i implement it,i was not all that diffcult.So below is the solution .&lt;br /&gt;&lt;br /&gt;/******************************************************************/&lt;br /&gt;First we have to place a div in the master page and have to assign id to it.&lt;br /&gt;&amp;lt;div id="msgdiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;Make the body of the master page runat="server" and have a id for it as well.&lt;br /&gt;&lt;br /&gt;&amp;lt;body id="MainBody" runat="server"&amp;gt;&lt;br /&gt;&lt;br /&gt;we also have to add jquery file of 1.2.1min.js file :&lt;br /&gt;&amp;lt;script src="js/jquery-1.2.1.min.js" type="text/JavaScript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;Now lets say you want to show message on deleting of message from inbox. &lt;br /&gt;So add the following two functions in JavaScript:&lt;br /&gt;&lt;br /&gt; function DeleteFromInbox() {&lt;br /&gt;        document.getElementById("msgdiv").className = "quick-alert";&lt;br /&gt;        document.getElementById("msgdiv").innerHTML = "&amp;lt;table border='0' align='center' cellpadding='0' cellspacing='0'&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src='images/checked_new_icon.jpg' alt='' /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td width='8'&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;message deleted from inbox successfully.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&lt;br /&gt;        setTimeout("FadeOutDiv()", 2000);&lt;br /&gt;    }&lt;br /&gt;function ErrorInDeleteing() {&lt;br /&gt;        document.getElementById("msgdiv").className = "quick-alert";&lt;br /&gt;        document.getElementById("msgdiv").innerHTML = "&amp;lt;table border='0' align='center' cellpadding='0' cellspacing='0'&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src='images/checked_new_icon.jpg' alt='' /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td width='8'&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;message was not deleted from inbox.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&lt;br /&gt;        setTimeout("FadeOutDiv()", 2000);&lt;br /&gt;    }&lt;br /&gt;function FadeOutDiv() {&lt;br /&gt;        $(".quick-alert").fadeOut("slow", function() {&lt;br /&gt;            $(".quick-alert").remove();&lt;br /&gt;        });&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;we should have following in our css file :&lt;br /&gt;.quick-alert &lt;br /&gt;{&lt;br /&gt;   width:66%; &lt;br /&gt;   background:#EE5A1E; font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#fff; font-weight:bold; text-align:center; border:1px solid #727272; padding:5px; margin:3px;margin-left:100px;&lt;br /&gt;   &lt;br /&gt; }&lt;br /&gt;here you can set BG-color and font size according to your design.&lt;br /&gt;&lt;br /&gt;Now finally on the click of the delete button we have to call this function from server-side :&lt;br /&gt;protected void btnDelete_Click(object sender, ImageClickEventArgs e)&lt;br /&gt;{&lt;br /&gt;   int i =  DeleteFromInbox();&lt;br /&gt;     // after this we can return any variable knowing if the message is deleted or not&lt;br /&gt;HtmlGenericControl MasterPageBodyTag = (HtmlGenericControl)this.Page.Master.FindControl("MainBody");&lt;br /&gt;   if (i&gt;0)&lt;br /&gt;   {&lt;br /&gt;      MasterPageBodyTag.Attributes.Add("Onload", "javascript:DeleteFromInbox();");&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;     MasterPageBodyTag.Attributes.Add("Onload", "javascript:ErrorInDeleteing();");&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;/******************************************************************/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-6001011107429844251?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/6001011107429844251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/06/show-errorsucccess-messages-like.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/6001011107429844251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/6001011107429844251'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/06/show-errorsucccess-messages-like.html' title='Show Error/Succcess Messages like gmail,yahoo mail through JQuery'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-1983279412198965545</id><published>2009-06-01T02:25:00.000-07:00</published><updated>2009-07-04T04:05:01.047-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='png images with ie6.0'/><category scheme='http://www.blogger.com/atom/ns#' term='png image repeat problem'/><category scheme='http://www.blogger.com/atom/ns#' term='filter: progid:dximagetransform.microsoft.alphaimageloader probleme mit textbox'/><category scheme='http://www.blogger.com/atom/ns#' term='png fix'/><category scheme='http://www.blogger.com/atom/ns#' term='ie6 hack for the png image'/><title type='text'>PNG images problem for ie6</title><content type='html'>Hi,&lt;br /&gt;Today i have a problem regarding the png images dot displaying properly in IE6 browser.&lt;br /&gt;Then i find some of the best solution regarding this they are listed below :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. IF YOU ARE USING PNG IMAGE AS SOURCE IMAGE&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;if you are using png image like the following :&lt;br /&gt;&amp;lt; img src=".png" / &amp;gt;&lt;br /&gt;then all you have to do is to place the following code in your head section of the page :&lt;br /&gt;&lt;!--[if lte IE 6]&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;function correctPNG() // correctly handle &lt;span class="hilite1"&gt;PNG&lt;/span&gt; transparency in Win IE 5.5 &amp;amp; 6.&lt;br /&gt;{&lt;br /&gt;  var arVersion = navigator.appVersion.split("MSIE")&lt;br /&gt;  var version = parseFloat(arVersion[1])&lt;br /&gt;  if ((version &gt;= 5.5) &amp;amp;&amp;amp; (document.body.filters))&lt;br /&gt;  {&lt;br /&gt;     for(var i=0; i&lt;document.images.length; img =" document.images[i]" imgname =" img.src.toUpperCase()" class="hilite1"&gt;PNG&lt;/span&gt;")&lt;br /&gt;        {&lt;br /&gt;           var imgID = (img.id) ? "id='" + img.id + "' " : ""&lt;br /&gt;           var imgClass = (img.className) ? "class='" + img.className + "' " : ""&lt;br /&gt;           var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "&lt;br /&gt;           var imgStyle = "display:inline-block;" + img.style.cssText&lt;br /&gt;           if (img.align == "left") imgStyle = "float:left;" + imgStyle&lt;br /&gt;           if (img.align == "right") imgStyle = "float:right;" + imgStyle&lt;br /&gt;           if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle&lt;br /&gt;           var strNewHTML = "&lt;span style="\" src="\'" sizingmethod="'scale');\"&gt;&lt;/span&gt;"&lt;br /&gt;           img.outerHTML = strNewHTML&lt;br /&gt;           i = i-1&lt;br /&gt;        }&lt;br /&gt;     }&lt;br /&gt;  }   &lt;br /&gt;}&lt;br /&gt;window.attachEvent("onload", correctPNG);&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;and it will slove your problem.&lt;br /&gt;&lt;br /&gt;&lt;![endif]--&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. IF YOU ARE USING PNG IMAGE IN Css as Background image&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;if you are setting the png images in your css file as background image then the follwoing is the solution :&lt;br /&gt;.tab {&lt;br /&gt; background-image:url(images/tab_b.png);&lt;br /&gt; background-repeat:repeat-x;&lt;br /&gt; background-position:0 0;&lt;br /&gt;&lt;br /&gt;height: 42px;&lt;br /&gt;position: relative;&lt;br /&gt; top: 0;&lt;br /&gt; z-index: 999;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;then you can use the following in bold to hack the png for ie6 and you done&lt;br /&gt;&lt;br /&gt;.tab {&lt;br /&gt; background-image:url(images/tab_b.png);&lt;br /&gt; background-repeat:repeat-x;&lt;br /&gt; background-position:0 0;&lt;br /&gt;&lt;br /&gt;height: 42px;&lt;br /&gt;position: relative;&lt;br /&gt; top: 0;&lt;br /&gt; z-index: 999;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;_background-image: none;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/tab_b.png,&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;sizingMethod='scale');&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. If There are png&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;images in both your css and&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;page then you can use the follwing script&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;to correct ong effect :&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;var bgsleight = function() {&lt;br /&gt;&lt;br /&gt;function addLoadEvent(func) {&lt;br /&gt; var oldonload = window.onload;&lt;br /&gt; if (typeof window.onload != 'function') {&lt;br /&gt;  window.onload = func;&lt;br /&gt; } else {&lt;br /&gt;  window.onload = function() {&lt;br /&gt;   if (oldonload) {&lt;br /&gt;    oldonload();&lt;br /&gt;   }&lt;br /&gt;   func();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function fnLoadPngs() {&lt;br /&gt; var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');&lt;br /&gt; var itsAllGood = (rslt != null &amp;amp;&amp;amp; Number(rslt[1]) &gt;= 5.5);&lt;br /&gt; for (var i = document.all.length - 1, obj = null; (obj = document.all[i]); i--) {&lt;br /&gt;  if (itsAllGood &amp;amp;&amp;amp; obj.currentStyle.backgroundImage.match(/\.png/i) != null) {&lt;br /&gt;   fnFixPng(obj);&lt;br /&gt;   obj.attachEvent("onpropertychange", fnPropertyChanged);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function fnPropertyChanged() {&lt;br /&gt; if (window.event.propertyName == "style.backgroundImage") {&lt;br /&gt;  var el = window.event.srcElement;&lt;br /&gt;  if (!el.currentStyle.backgroundImage.match(/transparent\.gif/i)) {&lt;br /&gt;   var bg = el.currentStyle.backgroundImage;&lt;br /&gt;   var src = bg.substring(5,bg.length-2);&lt;br /&gt;   el.filters.item(0).src = src;&lt;br /&gt;   el.style.backgroundImage = "url(blank.gif)";&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function fnFixPng(obj) {&lt;br /&gt; var bg = obj.currentStyle.backgroundImage;&lt;br /&gt; var src = bg.substring(5,bg.length-2);&lt;br /&gt; var sizingMethod = (obj.currentStyle.backgroundRepeat == "no-repeat") ? "crop" : "scale";&lt;br /&gt; obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";&lt;br /&gt; obj.style.backgroundImage = "url(blank.gif)";&lt;br /&gt;}&lt;br /&gt;return {&lt;br /&gt; init: function() {&lt;br /&gt;   if (navigator.platform == "Win32" &amp;amp;&amp;amp; navigator.appName == "Microsoft Internet Explorer" &amp;amp;&amp;amp; window.attachEvent) {&lt;br /&gt;   addLoadEvent(fnLoadPngs);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;}();&lt;br /&gt;&lt;br /&gt;bgsleight.init();&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;place the above code in js file and set the path of the file in your page&lt;span style="font-weight: bold;"&gt;.&lt;/span&gt;Also place a blank.gif file in the same directory where the .js file is.&lt;br /&gt;&lt;br /&gt;You can get image below :&lt;br /&gt;&lt;br /&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 1px; height: 1px;" src="http://1.bp.blogspot.com/_qx9nurjBlqU/SiOiOG3zyGI/AAAAAAAAAB8/GSNVhXGSQ3U/s400/blank.gif" alt="" id="BLOGGER_PHOTO_ID_5342291946238101602" border="0" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-1983279412198965545?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/1983279412198965545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/06/png-images-problem-for-ie6.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/1983279412198965545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/1983279412198965545'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/06/png-images-problem-for-ie6.html' title='PNG images problem for ie6'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_qx9nurjBlqU/SiOiOG3zyGI/AAAAAAAAAB8/GSNVhXGSQ3U/s72-c/blank.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-7238054891385170595</id><published>2009-05-02T02:46:00.000-07:00</published><updated>2009-05-02T02:56:44.517-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='change passowrd'/><category scheme='http://www.blogger.com/atom/ns#' term='update password'/><category scheme='http://www.blogger.com/atom/ns#' term='password in textbox'/><title type='text'>Show Password in textbox in normal mode</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;If you want the user to change his passowrd then you has to show him his last password&lt;br /&gt;that is in Normal mode.&lt;br /&gt;Ex : if the password is "Testing" then if you show it directly in textbox where textbox mode is&lt;br /&gt;Password will be shown as "******".&lt;br /&gt;So now if you want to show it as "Testing".then below is solution for it:&lt;br /&gt;&lt;br /&gt;Place the text box on the .aspx part&lt;br /&gt;&lt;br /&gt;In the code behind call function on page_load&lt;br /&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        if (!IsPostBack)&lt;br /&gt;        {&lt;br /&gt;            LoginInfo();&lt;br /&gt;            txtpass.Attributes.Add("value", viewstate["pwd"].ToString());&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;void LoginInfo()&lt;br /&gt;{&lt;br /&gt;Try&lt;br /&gt;           &lt;br /&gt;SqlCommand cmd = new SqlCommand("select PassHint from tbllogin where UserID=@aid ", new SqlConnection(ConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString.ToString()));&lt;br /&gt;cmd.CommandType = CommandType.Text;&lt;br /&gt;cmd.Connection.Open();&lt;br /&gt; using (SqlDataReader dr = cmd.ExecuteReader())&lt;br /&gt; {&lt;br /&gt;                if (dr.HasRows)&lt;br /&gt;                {&lt;br /&gt;                        viewstate["pwd"] = dr["UserPass"].ToString();&lt;br /&gt;                }&lt;br /&gt;}           &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            dr_.Close();&lt;br /&gt;            cmd.Connection.Close();&lt;br /&gt;            cmd.Dispose();&lt;br /&gt;        catch (Exception ex)&lt;br /&gt;        {&lt;br /&gt;            //Response.Write(ex.ToString());&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;And you are done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-7238054891385170595?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/7238054891385170595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/05/show-password-in-textbox-in-normal-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/7238054891385170595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/7238054891385170595'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/05/show-password-in-textbox-in-normal-mode.html' title='Show Password in textbox in normal mode'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-5464045372700951518</id><published>2009-04-28T22:35:00.000-07:00</published><updated>2009-04-28T22:53:45.139-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File download'/><category scheme='http://www.blogger.com/atom/ns#' term='Download images'/><category scheme='http://www.blogger.com/atom/ns#' term='Response'/><category scheme='http://www.blogger.com/atom/ns#' term='content-type'/><title type='text'>Allow user to download files of different types</title><content type='html'>Hi All,&lt;br /&gt;&lt;br /&gt;here is code for you if you want the users to download file from your web page (as image,.xsls,.xslt etc).&lt;br /&gt;&lt;br /&gt;*************** Code from here *******************&lt;br /&gt;&lt;br /&gt;Response.ContentType = "&lt;em&gt;image&lt;/em&gt;/jpeg";&lt;br /&gt;Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename);&lt;br /&gt;Response.TransmitFile(Server.MapPath("foldername" + filename));&lt;br /&gt;Response.End();&lt;br /&gt;&lt;br /&gt;*************** Till here *************************&lt;br /&gt;&lt;br /&gt;Content-Type -- You can set the content-type according to your file......&lt;br /&gt;as if it is jpeg then content-type will be "image/jpeg"&lt;br /&gt;below is list of some of content-type :&lt;br /&gt;MS Word file   ---  &lt;strong&gt;&lt;span style="font-weight: normal;"&gt;application/msword&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;straight binary  --- &lt;strong&gt;&lt;span style="font-weight: normal;"&gt;application/octet-stream&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;xml,xslt files ---- application/xslt+xml&lt;br /&gt;RTF document --- application/rtf&lt;br /&gt;PDF document  --- application/pdf&lt;br /&gt;ZIP document  --- application/zip&lt;br /&gt;&lt;br /&gt;you can view more about these at the below link :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.asptutorial.info/sscript/ContentType.html"&gt;http://www.asptutorial.info/sscript/ContentType.html&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-5464045372700951518?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/5464045372700951518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/allow-user-to-download-files-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/5464045372700951518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/5464045372700951518'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/allow-user-to-download-files-of.html' title='Allow user to download files of different types'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-2647450892464680721</id><published>2009-04-23T21:52:00.000-07:00</published><updated>2009-04-23T22:10:49.090-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fetch images from database'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='image stored in database'/><title type='text'>Display images from database</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Now a days developer like to save images to database.&lt;br /&gt;&lt;br /&gt;Now the problem how to get image back from database.&lt;br /&gt;&lt;br /&gt;For the same purpose we can use &lt;span style="font-weight: bold;"&gt;HttpHandler which can get the image from database.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and can be applied easily :&lt;br /&gt;&lt;br /&gt;Here is code for that&lt;br /&gt;&lt;br /&gt;&lt;p&gt;you has to create a new generic handler.say its name is &lt;span style="font-weight: bold;"&gt;ImageViewer.ashx&lt;/span&gt;&lt;/p&gt;&lt;p&gt;here you put the following code in ProcessRequest() of the &lt;span style="font-weight: bold;"&gt;httphandler&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;context.Request.QueryString["ImageID"].ToString() // id of the row of database&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Stream stream = null;&lt;/p&gt;&lt;p&gt;context.Response.ContentType = "image/jpeg/gif";&lt;br /&gt;context.Response.Cache.SetCacheability(HttpCacheability.Public);&lt;br /&gt;context.Response.BufferOutput = false;&lt;/p&gt;&lt;p&gt;int buffersize = 1024 * 16;&lt;br /&gt;byte[] buffer = new byte[buffersize];&lt;br /&gt;//Run your query here and get the binary stream from database assign it the stream variable as below&lt;br /&gt;stream = stream from database;&lt;br /&gt;int count = stream.Read(buffer, 0, buffersize); &lt;/p&gt;&lt;p&gt; while (count &gt; 0)&lt;br /&gt;{&lt;br /&gt;  context.Response.OutputStream.Write(buffer, 0, count);&lt;br /&gt;  count = stream.Read(buffer, 0, buffersize);&lt;br /&gt;}&lt;/p&gt;----------------------- that all has to do in httphandler --------------&lt;br /&gt;Now in the .aspx this what you need to do :&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qx9nurjBlqU/SfFJUV1Yj5I/AAAAAAAAABg/CKeij0L7QAc/s1600-h/note.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 476px; height: 97px;" src="http://1.bp.blogspot.com/_qx9nurjBlqU/SfFJUV1Yj5I/AAAAAAAAABg/CKeij0L7QAc/s320/note.JPG" alt="" id="BLOGGER_PHOTO_ID_5328120447963271058" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and you are done .&lt;br /&gt;&lt;br /&gt;You can view the same here :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://forums.asp.net/t/1394122.aspx?PageIndex=2"&gt;http://forums.asp.net/t/1394122.aspx?PageIndex=2&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-2647450892464680721?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/2647450892464680721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/display-images-from-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/2647450892464680721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/2647450892464680721'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/display-images-from-database.html' title='Display images from database'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_qx9nurjBlqU/SfFJUV1Yj5I/AAAAAAAAABg/CKeij0L7QAc/s72-c/note.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-6552758693937172779</id><published>2009-04-23T01:58:00.000-07:00</published><updated>2009-04-23T22:13:20.140-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RegularExpression for file type'/><category scheme='http://www.blogger.com/atom/ns#' term='RegularExpression for images types'/><category scheme='http://www.blogger.com/atom/ns#' term='RegularExpression for images'/><title type='text'>RegularExpressionValidator for image upload</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;you can &lt;asp:regularexpressionvalidator&gt; control for uploading of only images(.jpg,.gif) etc.&lt;br /&gt;Using the RegularExpressionValidator you can validate it on client side .&lt;br /&gt;Here is the code for this :&lt;br /&gt;&lt;br /&gt;asp:regularexpressionvalidator runat="server" errormessage="Only picture files are allowed!" validationexpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.gif|.GIF|.jpg|.JPG|.jpeg|.JPEG)$" controltovalidate="fileUpload" display="None"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/asp:regularexpressionvalidator&gt;&lt;a href="http://forums.asp.net/p/1411282/3093528.aspx#3093528"&gt;http://forums.asp.net/p/1411282/3093528.aspx#3093528&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-6552758693937172779?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/6552758693937172779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/regularexpressionvalidator-for-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/6552758693937172779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/6552758693937172779'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/regularexpressionvalidator-for-image.html' title='RegularExpressionValidator for image upload'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-5379150512164279019</id><published>2009-04-22T22:29:00.000-07:00</published><updated>2009-04-22T22:34:04.072-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fake Ipl player'/><category scheme='http://www.blogger.com/atom/ns#' term='Fun'/><category scheme='http://www.blogger.com/atom/ns#' term='KKR'/><category scheme='http://www.blogger.com/atom/ns#' term='Ipl'/><title type='text'>Fake player of the IPl part-2</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;there is one blog which is getting every body crazy these days.&lt;br /&gt;&lt;br /&gt;here you can get lots of detail and funny things about the IPL-2.&lt;br /&gt;&lt;br /&gt;Have a look at the link below and have fun :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fakeiplplayer.blogspot.com"&gt;http://fakeiplplayer.blogspot.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-5379150512164279019?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/5379150512164279019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/fake-player-of-ipl-part-2.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/5379150512164279019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/5379150512164279019'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/04/fake-player-of-ipl-part-2.html' title='Fake player of the IPl part-2'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6518806439004837230.post-3012831017847595121</id><published>2009-02-05T22:35:00.001-08:00</published><updated>2009-04-15T03:54:50.683-07:00</updated><title type='text'>First Blog</title><content type='html'>Welcome to my blog . from now onwards you can ask your asp.net, javascript , sql related queries directly here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6518806439004837230-3012831017847595121?l=mohdhussain.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mohdhussain.blogspot.com/feeds/3012831017847595121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mohdhussain.blogspot.com/2009/02/first-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/3012831017847595121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6518806439004837230/posts/default/3012831017847595121'/><link rel='alternate' type='text/html' href='http://mohdhussain.blogspot.com/2009/02/first-blog.html' title='First Blog'/><author><name>mohammad</name><uri>http://www.blogger.com/profile/17989166608368586349</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
