<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D0MBR3s_eCp7ImA9WhRVF0w.&quot;"><id>tag:blogger.com,1999:blog-19327040</id><updated>2012-01-16T04:04:16.540-08:00</updated><category term="Lotus Domino Administrator Server Account" /><category term="attachment" /><category term="CISCO" /><category term="P3P Issue" /><category term="ODBC." /><category term="php basics" /><category term="ucertify prepkit" /><category term="Close Modalpopup" /><category term="gmail facebook ajax chat instant messenger asp.net" /><category term="shimla uttarkashi sortcut" /><category term="Scope_Identity ()  equivalent for mysql" /><category term="internet access" /><category term="vwd 2010 asp.net" /><category term="internal error" /><category term="insert" /><category term="Form" /><category term="Session Lost  Iframe" /><category term="2800" /><category term="submit" /><category term="LinqDataSource" /><category term="vwd 2010" /><category term="css" /><category term="XML Data source" /><category term="form data" /><category term="Trans Himalaya Trek" /><category term="multiple sql staements" /><category term="IE7 hover problem fix" /><category term="domino administrator" /><category term="email" /><category term="sqldatasource" /><category term="Query" /><category term="MS Access database" /><category term="LAST_INSERT_ID()" /><category term="2008" /><category term="IE z-index bug" /><category term="Listview" /><category term="MPLS Connectivity CPE ADM STM1 and OFC" /><category term="Combining rows" /><category term="linq" /><category term="date format." /><category term="Load report failed" /><category term="MySQL" /><category term="authentication" /><category term="ISA internet proxy" /><category term="pure css menu" /><category term="Web Services" /><category term="file name" /><category term="DateTime in asp.net and my sql server" /><category term="XML" /><category term="Insert Item Template" /><category term="sort 2d array" /><category term="server 2003" /><category term="Crystal Report" /><category term="columns to rows" /><category term="rohtang pass" /><category term="VB.net" /><category term="control contains code blocks (i.e. % … %)" /><category term="file upload" /><category term="asp.net" /><category term="nsf" /><category term="ping asp.net application vb code vwd2010" /><category term="transfer lotus mail files" /><category term="Crystal Reports" /><category term="c:\fakepath" /><category term="datasource" /><category term="common html code" /><category term="code blocks" /><category term="interface GigabitEthernet" /><category term="tab panel" /><category term="Mysql Database" /><category term="asp.net 2010" /><category term="Menu Control" /><category term="vwd 2008" /><category term="jaiselmer" /><category term="jaipur" /><category term="webform control" /><category term="append text to file" /><category term="Asp.net 4.0 ajax" /><category term="Gridview" /><category term="max size" /><category term="best practice" /><category term="ISA" /><category term="external page" /><category term="Trans Himalaya" /><category term="html 5" /><category term="datakeynames" /><category term="Product Review" /><category term="router bgp" /><category term="ADO" /><category term="router" /><category term="recertify" /><category term="ascx" /><category term="lambda expression" /><category term="ajax" /><category term="records" /><category term="web proxy" /><category term="MySQL." /><category term="isa management" /><category term="DropDown List" /><category term="pivot logic" /><category term="change LAN IP" /><category term="vb" /><category term="PHP" /><category term="jquery" /><category term="iis6.0" /><category term="update parameter List View" /><category term="tab control" /><category term="Refresh Parent Page" /><category term="Passing url parameter" /><category term="certain IP" /><category term="sql express" /><category term="manali" /><title>Vinod Kotiya</title><subtitle type="html">Hi,
I m vinod kotiya and i m from bhopal....
Currently i m working in NTPC Limited posted at Uttarkashi in Himalayas.

This blog is all about few how to's... music...games and softwares made by me.. nd.. the places i visited etc.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://vinodkotiya.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>104</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/VinodKotiya" /><feedburner:info uri="vinodkotiya" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0MBR3s8cCp7ImA9WhRVF0w.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-6012239216701676107</id><published>2012-01-16T04:04:00.000-08:00</published><updated>2012-01-16T04:04:16.578-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-16T04:04:16.578-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="email" /><category scheme="http://www.blogger.com/atom/ns#" term="attachment" /><title>VB.Net : Send Email with attachment</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;VB.Net : Send Email with attachment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue;"&gt;Private Function SendEmail(ByVal mailfrom As String, ByVal mailto As String, ByVal cc As String, ByVal bcc As String, ByVal subject As String, ByVal message As String, ByVal attach1 As String, ByVal attach2 As String, ByVal userid As String, ByVal pwd As String) As String&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'create the mail message&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim mail As New MailMessage()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'set the addresses&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mail.From = New MailAddress(mailfrom)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mail.To.Add(mailto)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' mail.CC.Add(cc)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'mail.Bcc.Add(bcc)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'set the content&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mail.Subject = subject&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mail.Body = message&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'add an attachment from the filesystem&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mail.Attachments.Add(New Attachment(attach1))&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'to add additional attachments, simply call .Add(...) again&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' &amp;nbsp;mail.Attachments.Add(New Attachment(attach2))&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' mail.Attachments.Add(New Attachment("c:\temp\example3.txt"))&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'send the message&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim mailClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'This object stores the authentication values&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim basicCredential As System.Net.NetworkCredential = New System.Net.NetworkCredential(userid, pwd)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailClient.Host = "10.0.8.220"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailClient.UseDefaultCredentials = False&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailClient.Credentials = basicCredential&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailClient.Send(mail)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return "ok"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch exp As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return "Error: " &amp;amp; exp.Message&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/span&gt; '&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue;"&gt;Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim dt As String = Now.Day.ToString &amp;amp; "." &amp;amp; Now.Month.ToString &amp;amp; "." &amp;amp; Now.Year.ToString&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblStatus.Text = lblStatus.Text &amp;amp; SendEmail("cpmc@ntpc.co.in", "vinodkotiya@ntpc.co.in", "", "", "PP&amp;amp;M Website Upload Status " &amp;amp; dt, "Please find attached herewith PP&amp;amp;M Website Upload Status " &amp;amp; dt, "E:\winapps\Emailer\Emailer\bin\Debug\pdf\upload_status.pdf", "c:\vin1.txt", "cpmc@ntpc.co.in", "c****")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;- By Vinod Kotiya&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-6012239216701676107?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TS4FfJkCyOHskH9eTLeGcdRn8uA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TS4FfJkCyOHskH9eTLeGcdRn8uA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TS4FfJkCyOHskH9eTLeGcdRn8uA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TS4FfJkCyOHskH9eTLeGcdRn8uA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/SfDbLhunKco" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/6012239216701676107/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=6012239216701676107" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6012239216701676107?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6012239216701676107?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/SfDbLhunKco/vbnet-send-email-with-attachment.html" title="VB.Net : Send Email with attachment" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2012/01/vbnet-send-email-with-attachment.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cNQng4cCp7ImA9WhRVF0w.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-4096733338394158906</id><published>2012-01-16T03:58:00.000-08:00</published><updated>2012-01-16T03:58:13.638-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-16T03:58:13.638-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="code blocks" /><title>ASP.Net control contains code blocks (i.e. &lt;% ... %&gt;) Error</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.Net control contains code blocks (i.e. &amp;lt;% ... %&amp;gt;) Error&lt;br /&gt;
&lt;br /&gt;
My page was having few javascript in head tag...&lt;br /&gt;
when creating a combobox with sqldatasource in modalpopup extender i got above error at runtime.&lt;br /&gt;
&lt;br /&gt;
Fix: Move all javascript code from head tag to inside body tag just before &amp;lt; / body&amp;gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-4096733338394158906?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VPT5VaSMECoinhoSKmNUm-o7i-E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VPT5VaSMECoinhoSKmNUm-o7i-E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VPT5VaSMECoinhoSKmNUm-o7i-E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VPT5VaSMECoinhoSKmNUm-o7i-E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/po0Y6pAZc7M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/4096733338394158906/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=4096733338394158906" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/4096733338394158906?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/4096733338394158906?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/po0Y6pAZc7M/aspnet-control-contains-code-blocks-ie.html" title="ASP.Net control contains code blocks (i.e. &lt;% ... %&gt;) Error" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2012/01/aspnet-control-contains-code-blocks-ie.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EGRHw6fyp7ImA9WhRQE08.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-1008965514746758556</id><published>2011-12-06T21:11:00.000-08:00</published><updated>2011-12-07T22:27:05.217-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-07T22:27:05.217-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="P3P Issue" /><category scheme="http://www.blogger.com/atom/ns#" term="Session Lost  Iframe" /><title>ASP.Net with PHP : Session lost in iframe accessing php page P3P Issue</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.Net with PHP : Session lost in iframe accessing php page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Problem: If you have iFrame or multiple frameset in your ASP.NET page,  session is lost in the child frame.&amp;nbsp;I have a php app running inside an iframe on an aspx webpage.&lt;br /&gt;
I pass a piece of info to this  iframe through http parameters, php gets it and then set it in the session.&amp;nbsp;  However, the session data is lost when I click submit button and postback occur in child frame . within  the same php application works fine if i do not use iframe.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;ifdisplay.Attributes("src") = "http://191.254.1.42/cmg/&lt;b&gt;upload.php&lt;/b&gt;?folder=" &amp;amp; destfolder &amp;amp; "&amp;amp;type=" &amp;amp; ddlType.SelectedValue &amp;amp; "&amp;amp;date=" &amp;amp; txtDate.Text &amp;amp; "&amp;amp;sub=" &amp;amp; txtSub.Text &amp;amp; "&amp;amp;eid=" &amp;amp; Session("eid").ToString &amp;amp; "-" &amp;amp; Request.UserHostAddress.ToString &amp;amp; "&amp;amp;uploadtype=" &amp;amp; Session("uploadtype")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifdisplay.Visible = True&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModalPopupExtender1.Show()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cause: Due to the browser and Platform for Privacy Preferences (P3P) natures,  the child frame will be considered as third party site if the top level domain  is different between the parent and child frame. Therefore, default privacy  settings of IE (medium) will be used and reject any cookies sent from the third  party site (that is your child frame).&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-JBAg33PcNVc/TuBYpnGLeCI/AAAAAAAAIdk/CphU8M1JwWo/s1600/p3p.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="411" src="http://4.bp.blogspot.com/-JBAg33PcNVc/TuBYpnGLeCI/AAAAAAAAIdk/CphU8M1JwWo/s640/p3p.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Solution: Apart from altering the settings in IE (which may not be possible  due to change at every client), the easiest solution is to  add a header to the base page and acknowledge it can trusted to the parent  site.&lt;br /&gt;
Note: &lt;b&gt;(If your parent (aspx) and child(php) are in two different platform then put the required code for p3p setting seperately at top of the code)&lt;/b&gt;&lt;br /&gt;
Add this line (In my case in parent aspx page)&lt;br /&gt;
// you can also put it in page_init&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Not Page.IsPostBack Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.AddHeader("p3p", "CP=" &amp;amp; Chr(34) &amp;amp; "IDC DSP COR ADM DEVi TATi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" &amp;amp; Chr(34))&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;End Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
And in child PHP page&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt; &amp;lt;?php header("p3p: CP=\"ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV\"");?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;- Vinod Kotiya&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-1008965514746758556?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5bXyUX6AtL0P-vdqTbtBULgixs8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5bXyUX6AtL0P-vdqTbtBULgixs8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5bXyUX6AtL0P-vdqTbtBULgixs8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5bXyUX6AtL0P-vdqTbtBULgixs8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/3tUliiINSYM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/1008965514746758556/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=1008965514746758556" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/1008965514746758556?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/1008965514746758556?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/3tUliiINSYM/aspnet-with-php-session-lost-in-iframe.html" title="ASP.Net with PHP : Session lost in iframe accessing php page P3P Issue" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-JBAg33PcNVc/TuBYpnGLeCI/AAAAAAAAIdk/CphU8M1JwWo/s72-c/p3p.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/12/aspnet-with-php-session-lost-in-iframe.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUDSHcyeSp7ImA9WhRQEEU.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-8441543818644113785</id><published>2011-12-05T02:50:00.000-08:00</published><updated>2011-12-05T02:51:19.991-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-05T02:51:19.991-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="control contains code blocks (i.e. % … %)" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>ASP.Net: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% … %&gt;)</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.Net: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. &amp;lt;% … %&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #151515; font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;I got this error when I was working on a small AJAX demo project the other day. In this project I only have 1 TextBox controls and 1 AJAX CalendarExtender controls: one text box is for a begin date entry controlled by one CalendarExtender. I had a little javascript in head tag to do some popup work:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #151515; font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #151515;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt; &amp;lt;asp:Label ID="lblDate" runat="server" Text="Date (*):" Visible="False"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID="txtDate" runat="server" &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:CalendarExtender ID="CalendarExtender1" runat="server"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TargetControlID="txtDate"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:CalendarExtender&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;The scrip in head section was :&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="color: #151515; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&amp;lt;script type="text/javascript" &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #151515;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; function vinModal( i, j )&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;document.getElementById('&amp;lt;%=HiddenField1.ClientID %&amp;gt;').value = j;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;document.getElementById('&amp;lt;%=HiddenField2.ClientID %&amp;gt;').value = i;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* &amp;nbsp;document.getElementById('&amp;lt;%=lblPop.ClientID%&amp;gt;').innerHTML = "vinod";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$find('ModalPopupExtender1').show();*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;document.getElementById('&amp;lt;%=LinkButton1.ClientID%&amp;gt;').click();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;I was getting this error:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px;"&gt;The Controls collection cannot be modified because the control contains code blocks (i.e. &amp;lt;% ... %&amp;gt;).&amp;nbsp;&lt;/span&gt;&lt;br style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto;" /&gt;&lt;span class="Apple-style-span" style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto;"&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&amp;nbsp;&lt;/span&gt;&lt;br style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto;" /&gt;&lt;br style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto;" /&gt;&lt;span class="Apple-style-span" style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto;"&gt;Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. &amp;lt;% ... %&amp;gt;).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; text-align: -webkit-auto;"&gt;Solution: I just put my javascript from head tag to just above form tag:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;&lt;span class="Apple-style-span" style="background-color: #fdfde7; color: #333333; font-family: Verdana, Calibri, Arial, serif; text-align: -webkit-auto;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #151515;"&gt;&lt;/div&gt;&lt;div style="font-size: 13px; line-height: 18px; margin-left: 10px; margin-right: 10px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; padding-top: 4px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;OK, now I kinda know what causes the error, though I don’t know exactly why it happens: the AJAX CalendarExtender will raise RegisterCssReferences function to inject some code into the  section and will throw exception error if there are some code blocks (&amp;lt;% … %&amp;gt;&amp;nbsp;&lt;style&gt;
. It leaves me two options to correct this error:&lt;/font&gt;&lt;/p&gt;&lt;p style="padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; margin-right: 10px; margin-left: 10px; font-size: 13px; line-height: 18px; "&gt;&lt;font class="Apple-style-span" face="Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif"&gt;1. Replace all code blocks with the actual control ID (in this case)&lt;/font&gt;&lt;/p&gt;&lt;p style="padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; margin-right: 10px; margin-left: 10px; font-size: 13px; line-height: 18px; "&gt;&lt;font class="Apple-style-span" face="Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif"&gt;2. Move the JavaScript function out of the &lt;head&gt; section&lt;/font&gt;&lt;/p&gt;&lt;p style="padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; margin-right: 10px; margin-left: 10px; font-size: 13px; line-height: 18px; "&gt;&lt;font class="Apple-style-span" face="Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif"&gt;I took the second option and place the JavaScript function right before &lt;body&gt; tag. Voila, everything is fine.&lt;/font&gt;&lt;/p&gt;&lt;p style="color: rgb(21, 21, 21); font-size: small; "&gt;&lt;font class="Apple-style-span" face="Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Calibri, Arial, serif; font-size: 10px; text-align: -webkit-auto; background-color: rgb(253, 253, 231); "&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/DIV&gt;&lt;/style&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #151515; font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif;"&gt;(&amp;lt;% … %&amp;gt; in the  section, either in a JavaScript function or &lt;style&gt;
. It leaves me two options to correct this error:&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; margin-right: 10px; margin-left: 10px; color: rgb(21, 21, 21); font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif; background-color: rgb(255, 255, 255); "&gt;1. Replace all code blocks with the actual control ID (in this case)&lt;/p&gt;&lt;p style="padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; margin-right: 10px; margin-left: 10px; color: rgb(21, 21, 21); font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif; background-color: rgb(255, 255, 255); "&gt;2. Move the JavaScript function out of the &lt;head&gt; section&lt;/p&gt;&lt;p style="padding-top: 4px; padding-right: 10px; padding-bottom: 4px; padding-left: 10px; margin-right: 10px; margin-left: 10px; color: rgb(21, 21, 21); font-family: Verdana, 'Trebuchet ms', 'Gill Sans MT', 'Gill sans', sans-serif; background-color: rgb(255, 255, 255); "&gt;I took the second option and place the JavaScript function right before &lt;body&gt; tag. Voila, everything is fine.&lt;/p&gt;&lt;/div&gt;&lt;/DIV&gt;&lt;/style&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-8441543818644113785?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tH5EHNwCY1DXMCsjKYoAVnG6ryw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tH5EHNwCY1DXMCsjKYoAVnG6ryw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tH5EHNwCY1DXMCsjKYoAVnG6ryw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tH5EHNwCY1DXMCsjKYoAVnG6ryw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/oVj-5GbIDhY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/8441543818644113785/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=8441543818644113785" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/8441543818644113785?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/8441543818644113785?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/oVj-5GbIDhY/aspnet-systemwebhttpexception-controls.html" title="ASP.Net: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% … %&gt;)" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/12/aspnet-systemwebhttpexception-controls.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IFQHo5fSp7ImA9WhRRFk4.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-189153112604731907</id><published>2011-11-29T22:45:00.000-08:00</published><updated>2011-11-29T22:45:11.425-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-29T22:45:11.425-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Listview" /><category scheme="http://www.blogger.com/atom/ns#" term="multiple sql staements" /><category scheme="http://www.blogger.com/atom/ns#" term="datakeynames" /><title>ASP.net : Listview datakeynames for multiple sql staements in SqlDataSource's update command</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.net : Listview datakeynames for multiple sql staements in SqlDataSource's update command&lt;br /&gt;
I am using two tables in listview. I have to update both tables simultaneously after update. To do this&lt;br /&gt;
1. use multiple sql update statement in sqldatasource update command seperated by ;&lt;br /&gt;
2. set datakeys property to primary key of both tables seperated by comma ,&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: #990000;"&gt; &amp;lt;asp:SqlDataSource ID="SqlDataSource1" runat="server"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ConnectionString="&amp;lt;%$ ConnectionStrings:entertrackConnectionString %&amp;gt;"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InsertCommand="&amp;nbsp;INSERT INTO contact_master (uid, eid, cell, email, dept, desig, name, rax, off, resid) values ( @uid, @eid, @cell, @email, @dept, @desig, @name, @rax, @off, @resid ) ;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;INSERT INTO contact_detail (eid, assign, field1, uid) values ( @uid, @assign, @field1, @uid )&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ProviderName="&amp;lt;%$ ConnectionStrings:entertrackConnectionString.ProviderName %&amp;gt;"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SelectCommand="select m.uid, m.eid, m.cell, m.email, m.dept, m.desig, m.name, m.rax, m.off, m.resid , d.eid as eid1, d.assign, d.field1, d.uid as uid1 from contact_detail d Left Outer Join contact_master m on d.eid = m.uid"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;UpdateCommand=" &amp;nbsp;UPDATE contact_master SET &amp;nbsp;eid= @eid, cell= @cell, email= @email, dept= @dept, desig= @desig, name= @name, rax= @rax, off= @off, resid= @resid WHERE uid = @uid ;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UPDATE contact_detail SET &amp;nbsp;eid= @uid, assign= @assign, field1= @field1 WHERE uid = @uid1 &amp;nbsp;"&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp;&amp;lt;UpdateParameters&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Parameter Name="uid" Type="Int32" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="eid" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="cell" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="email" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="dept" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="desig" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="name" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="rax" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="off" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="resid" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="eid1" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="assign" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="field1" Type="String" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="uid1" Type="Int32" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/UpdateParameters&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;/asp:SqlDataSource&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ListView ID="ListView1" runat="server" &lt;b&gt;DataKeyNames="uid, uid1"&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataSourceID="SqlDataSource1" InsertItemPosition="LastItem"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Thus you would be able to update in both tables from single list view. Same can be done for insert command using scope_identity.&lt;br /&gt;
- Vinod Kotiya&lt;br /&gt;
www.vinodkotiya.com&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-189153112604731907?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/la_CQOlP50N6i2Bc9D8FannkEuo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/la_CQOlP50N6i2Bc9D8FannkEuo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/la_CQOlP50N6i2Bc9D8FannkEuo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/la_CQOlP50N6i2Bc9D8FannkEuo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/o8Cy4qR6t_w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/189153112604731907/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=189153112604731907" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/189153112604731907?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/189153112604731907?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/o8Cy4qR6t_w/aspnet-listview-datakeynames-for.html" title="ASP.net : Listview datakeynames for multiple sql staements in SqlDataSource's update command" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/aspnet-listview-datakeynames-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04DRH4-eCp7ImA9WhRREU4.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-2105346403031110418</id><published>2011-11-24T03:59:00.000-08:00</published><updated>2011-11-24T03:59:35.050-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-24T03:59:35.050-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Close Modalpopup" /><category scheme="http://www.blogger.com/atom/ns#" term="webform control" /><category scheme="http://www.blogger.com/atom/ns#" term="Refresh Parent Page" /><category scheme="http://www.blogger.com/atom/ns#" term="ascx" /><title>ASP.Net: How To Close Modalpopup And Refresh Parent Page</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;h2 style="color: #333333; font-family: Verdana, Arial; font-size: 14px; font-weight: normal; margin-bottom: 3px; margin-top: 3px;"&gt;I've a parent page with a long form. I am opening ajax modal popup extender on the click of a link button.&lt;br /&gt;
&lt;br /&gt;
Default.aspx&lt;br /&gt;
&lt;br /&gt;
[Code]....&lt;br /&gt;
&lt;br /&gt;
In login.aspx, I've another &amp;nbsp;form. When the submit button is clicked, I am doing some processing, after that need to close the modal popup window and refresh my parent page, without disturbing the session &amp;nbsp;already created in parent page.&lt;br /&gt;
&lt;br /&gt;
login.aspx&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;h2 style="color: #333333; font-family: Verdana, Arial; font-size: 14px; font-weight: normal; margin-bottom: 3px; margin-top: 3px;"&gt;[Code]....&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="color: #073763;"&gt;Parent.Page.Response.Redirect("default.aspx")&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Solution: Earlier i was using iframe to load the login.aspx inside modal popup. Now i have switched to another concept of converting webform to control. As follows:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;h3 class="procedureSubHeading" style="color: #3f529c; font-family: 'Segoe UI', Verdana, Arial; font-size: 1.077em;"&gt;To convert a code-behind ASP.NET Web page into a user control&lt;/h3&gt;&lt;div class="subSection"&gt;&lt;ol&gt;&lt;li style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Rename the .aspx file so the file name extension is .ascx.&lt;/li&gt;
&lt;li style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Rename the code-behind file to have the file name extension .ascx.vb or .ascx.cs, depending on what programming language the code-behind file is in.&lt;/li&gt;
&lt;li style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Open the code-behind file and change the class from which it inherits from&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.aspx" style="color: #1364c4; text-decoration: none;"&gt;Page&lt;/a&gt;&amp;nbsp;to&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.usercontrol.aspx" style="color: #1364c4; text-decoration: none;"&gt;UserControl&lt;/a&gt;.&lt;/li&gt;
&lt;li style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;In the .aspx file, do the following:&lt;br /&gt;
&lt;ol style="list-style-type: lower-alpha;"&gt;&lt;li&gt;Remove the&amp;nbsp;&lt;span class="input"&gt;html&lt;/span&gt;,&amp;nbsp;&lt;span class="input"&gt;body&lt;/span&gt;, and&amp;nbsp;&lt;span class="input"&gt;form&lt;/span&gt;&amp;nbsp;elements from the page.&lt;/li&gt;
&lt;li&gt;Change the&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/ydy4x04a.aspx" style="color: #1364c4; text-decoration: none;"&gt;@&amp;nbsp;Page&lt;/a&gt;&amp;nbsp;directive to an&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/d19c0t4b.aspx" style="color: #1364c4; text-decoration: none;"&gt;@&amp;nbsp;Control&lt;/a&gt;&amp;nbsp;directive.&lt;/li&gt;
&lt;li&gt;Remove all attributes of the&amp;nbsp;&lt;span class="input"&gt;@&amp;nbsp;Control&lt;/span&gt;&amp;nbsp;directive except&amp;nbsp;&lt;span class="input"&gt;Language&lt;/span&gt;,&amp;nbsp;&lt;span class="input"&gt;AutoEventWireup&lt;/span&gt;&amp;nbsp;(if present),&amp;nbsp;&lt;span class="input"&gt;CodeFile&lt;/span&gt;, and&amp;nbsp;&lt;span class="input"&gt;Inherits&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;In the&amp;nbsp;&lt;span class="input"&gt;@&amp;nbsp;Control&lt;/span&gt;&amp;nbsp;directive, change the&amp;nbsp;&lt;span class="input"&gt;CodeFile&lt;/span&gt;&amp;nbsp;attribute to point to the renamed code-behind file.&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Include a&amp;nbsp;&lt;span class="input"&gt;className&lt;/span&gt;&amp;nbsp;attribute in the&amp;nbsp;&lt;span class="input"&gt;@&amp;nbsp;Control&lt;/span&gt;&amp;nbsp;directive. This allows the user control to be strongly typed when it is added to a page.&lt;/div&gt;&lt;div style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Example:&lt;/div&gt;&lt;div style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;My earlier login.aspx and login.vb file were like this:&lt;/div&gt;&lt;div style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: #990000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;%@ Page Language="VB" AutoEventWireup="false" CodeFile="login.aspx.vb" Inherits="login" %&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;head runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;form id="form1" runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="Label1" runat="server" Text="Username:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp;&amp;lt;asp:TextBox ID="txtName" runat="server" MaxLength="50"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="Label2" runat="server" Text="Password:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp;&amp;lt;asp:TextBox ID="txtPwd" runat="server" MaxLength="50" TextMode="Password"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp;&amp;lt;asp:Button ID="btnSubmit" runat="server" Text="Submit" Width="108px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="lblInfo" runat="server" Text="Label"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;And code behind was:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;Imports dbOperation&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;Partial Class login&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; Inherits System.Web.UI.Page&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Not Page.IsPostBack Then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Request.Params("login") = 1 Then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Sub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Request.Params("logout") = 1 Then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session.Clear()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session.Abandon()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim myquery = "SELECT distinct username,first_name,last_name FROM users u,groups g,group_users gu WHERE u.userid = gu.userid and g.gid = gu.gid and username='" &amp;amp; txtName.Text.Trim &amp;amp; "' and password=md5('" &amp;amp; txtPwd.Text.Trim &amp;amp; "') and g.name like ('%')"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim result() As String = authenticateUser(myquery)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If result(0) = "ok" Then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblInfo.Text = "Logged in"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session("eid") = txtName.Text.Trim&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session("ename") = result(2) &amp;amp; " " &amp;amp; result(3)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Else&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblInfo.Text = "Wrong Password. Please Try Again. Account shall be locked after 6 wront attempts." &amp;amp; result(0).ToString&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;End Class&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;Now i converted it to a control named &lt;b&gt;logme.ascx&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;%@ Control Language="VB" &amp;nbsp;CodeFile="logme.ascx.vb" classname="logme" Inherits="_logme" %&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;table border=0&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="Label1" runat="server" Text="Username:"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp;&amp;lt;asp:TextBox ID="txtName" runat="server" MaxLength="50"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt; &amp;nbsp;&amp;lt;asp:Label ID="Label2" runat="server" Text="Password:"&amp;gt;&amp;lt;/asp:Label&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp;&amp;lt;asp:TextBox ID="txtPwd" runat="server" MaxLength="50" TextMode="Password"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp;&amp;lt;asp:Button ID="btnSubmit" runat="server" Text="Submit" Width="108px" /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="lblInfo" runat="server" Text="Label"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;and Code behind &lt;b&gt;logme.ascx.vb&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;Imports dbOperation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;Partial Class _logme&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; Inherits System.Web.UI.UserControl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Not Page.IsPostBack Then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Request.Params("login") = 1 Then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Request.Params("logout") = 1 Then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session.Clear()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session.Abandon()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim myquery = "SELECT distinct username,first_name,last_name FROM users u,groups g,group_users gu WHERE u.userid = gu.userid and g.gid = gu.gid and username='" &amp;amp; txtName.Text.Trim &amp;amp; "' and password=md5('" &amp;amp; txtPwd.Text.Trim &amp;amp; "') and g.name like ('%')"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim result() As String = authenticateUser(myquery)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If result(0) = "ok" Then&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblInfo.Text = "Logged in"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session("eid") = txtName.Text.Trim&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session("ename") = result(2) &amp;amp; " " &amp;amp; result(3)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; &amp;nbsp;Parent.Page.Response.Redirect("default.aspx")&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblInfo.Text = "Wrong Password. Please Try Again. Account shall be locked after 6 wrong attempts." &amp;amp; result(0).ToString&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;End Class&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Thats It. Now use this control in default.aspx like this:&lt;/div&gt;&lt;div&gt;Before html tag declare the control&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;%@ Register TagPrefix="uc" TagName="log" Src="logme.ascx" %&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Use Inside the modalpopup&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;lt;!-- &amp;nbsp;popup --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: #990000;"&gt; &amp;lt;div id="popup"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:UpdatePanel ID="popupPanel" runat="server" &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ContentTemplate&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="insidemodalpopup"&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ImageButton ID="ibtnCancel" runat="server" ImageAlign="Right"&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ImageUrl="images/close.jpg" /&amp;gt;&amp;lt;br /&amp;gt; &amp;nbsp;&amp;lt;b&amp;gt;Help&amp;lt;/b&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="lblPop" runat="server" Text="Label"&amp;gt;&amp;lt;/asp:Label&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;uc:log ID="log1" runat=server Visible=false /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ContentTemplate&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:UpdatePanel&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:HyperLink ID="test" runat="server"&amp;gt;&amp;lt;/asp:HyperLink&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TargetControlID="test" PopupControlID="popupPanel"&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BackgroundCssClass="modalBackground" dropshadow="true"&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CancelControlID="ibtnCancel"&amp;gt;&amp;lt;/asp:ModalPopupExtender&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt; &amp;nbsp;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;&amp;lt;!-- end popup --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;the code behind in default.vb for link button who popups would be like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Timer1.Enabled = False&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; log1.Visible = True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModalPopupExtender1.Show()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;- Vinod Kotiya&lt;/div&gt;&lt;div&gt;www.vinodkotiya.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-2105346403031110418?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0CBrr2NhdocwaGkTf3x1T2N0tJc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0CBrr2NhdocwaGkTf3x1T2N0tJc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0CBrr2NhdocwaGkTf3x1T2N0tJc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0CBrr2NhdocwaGkTf3x1T2N0tJc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/F7X5xuyxu2U" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/2105346403031110418/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=2105346403031110418" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/2105346403031110418?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/2105346403031110418?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/F7X5xuyxu2U/aspnet-how-to-close-modalpopup-and.html" title="ASP.Net: How To Close Modalpopup And Refresh Parent Page" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/aspnet-how-to-close-modalpopup-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIBQXY_fyp7ImA9WhRSGUg.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-4928921061446211891</id><published>2011-11-22T02:09:00.000-08:00</published><updated>2011-11-22T02:09:10.847-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-22T02:09:10.847-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IE z-index bug" /><title>IE z-index bug with CSS dropdown menu</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;h1 class="entry-title" style="text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;IE z-index bug with CSS dropdown menu&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class="entry-title" style="text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;Standards-aware web designers generally know of the&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://verens.com/archives/2005/07/15/ie-z-index-bug/" style="font-size: medium; font-weight: normal;"&gt;z-index bug&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;in all versions of Internet Explorer (though, version 8 is rumored to fix it).&lt;/span&gt;&lt;/h1&gt;&lt;div style="text-align: -webkit-auto;"&gt;In the W3C’s specs, z-index is designed to affect the stacking order of positioned elements on a web page. So, an element with a z-index of 2 should always appear above an element with a z-index of 1.&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;In Internet Explorer, this doesn’t work like it should. Internet Explorer resets the stack when the positioned elements are separated from each other.&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;I&lt;span class="Apple-style-span" style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px;"&gt;t works fine with IE8, FF etc. However IE7 has a problem to show submenus. It shows the submenu but when I try to navigate in the submenu, it fades out.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;/div&gt;&lt;h2&gt;The Fix&lt;/h2&gt;The fix for this is very simple, but there are incredibly large websites that use jumbled masses of iframes, extra divs, and other horrors to get Internet Explorer to display the dropdowns above the offending elements.&lt;br /&gt;
For a fix, we use the following CSS for the header div. See the screenshot for an example of this (again, in IE7). Click it to see a larger version.&lt;br /&gt;
&lt;ol class="code css"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;div#menu {&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; height: 42px;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; padding-left: 24px;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; background: url(images/left.png) no-repeat;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; _background: url(images/left.gif) no-repeat;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; width:auto;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; border-top: 1px solid #D0D0D0;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; border-bottom : 1px solid #D0D0D0;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp; margin-left:330px;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;position:relative;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;top:25px;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;z-index:4;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;Now, you will also need to make sure that your container div, whatever it is called, is styled correctly. In my example:&lt;br /&gt;
&lt;ol class="code css"&gt;&lt;li&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;#wrapper #container {&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li class="tab1"&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;position: relative;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;This ensures that the&amp;nbsp;&lt;code&gt;header&lt;/code&gt;&amp;nbsp;and the&amp;nbsp;&lt;code&gt;container&lt;/code&gt;, whatever you call them, understand their relationship to each other for the z-index fix to work.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-4928921061446211891?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KnkLWBKnpO7UXlBnD0eieVnFikw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KnkLWBKnpO7UXlBnD0eieVnFikw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KnkLWBKnpO7UXlBnD0eieVnFikw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KnkLWBKnpO7UXlBnD0eieVnFikw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/Q9zipHjTK3Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/4928921061446211891/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=4928921061446211891" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/4928921061446211891?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/4928921061446211891?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/Q9zipHjTK3Y/ie-z-index-bug-with-css-dropdown-menu.html" title="IE z-index bug with CSS dropdown menu" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/ie-z-index-bug-with-css-dropdown-menu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EAQnk_eyp7ImA9WhRSGEs.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-43029601712767801</id><published>2011-11-20T23:47:00.000-08:00</published><updated>2011-11-20T23:47:23.743-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-20T23:47:23.743-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="LAST_INSERT_ID()" /><category scheme="http://www.blogger.com/atom/ns#" term="Scope_Identity ()  equivalent for mysql" /><title>ASP.net Scope_Identity () equivalent for mysql, LAST_INSERT_ID()</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;I've looked all over for this answer and had to resort to several resources. &amp;nbsp;I wanted to post this here because it was so hard for me to find a simple example. &amp;nbsp;If it exist other places then please excuse my post and put references to it on a reply.&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;So, How do I return the Primary Key Identity when I click the control with the 'Insert' command on a FormView? (With very least minimal code) &amp;nbsp;get the ID - the primary key -&amp;nbsp;of the newly inserted row when adding a&lt;/div&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; text-align: -webkit-auto;"&gt;new record to the database using a FormView Control on a web page&lt;/span&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;b&gt;With SQL Server we do it like this : (Add new insertparameter ID with direction output)&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;lt;asp:SqlDataSource ID="SqlDataSource1" runat="server"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ConnectionString="&amp;lt;%$ ConnectionStrings:entertrackConnectionString %&amp;gt;"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProviderName="&amp;lt;%$ ConnectionStrings:entertrackConnectionString.ProviderName %&amp;gt;"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;InsertCommand="INSERT INTO training_ppm ( descr, organizer, dt_st, dt_end, venue, residential, fee , detail, dt_last, uploadby, file, approver ) values ( @descr, @organizer , @dt_st, @dt_end, @venue, @residential, @fee , @detail, @dt_last, @uploadby, @file, @approver) ;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;b&gt;SELECT @ID = Scope_Identity()&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;InsertParameters&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="pid" Type="Int32" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="descr" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="organizer" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="dt_st" Type="DateTime" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="dt_end" Type="DateTime" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="venue" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="residential" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="fee" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="detail" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="dt_last" Type="DateTime" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Parameter Name="uploadby" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Parameter Name="file" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Parameter Name="approver" Type="String" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;nbsp;&amp;lt;asp:Parameter Name="ID" Direction="Output" Type="Int32" /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/InsertParameters&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:SqlDataSource&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #313c46; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;b&gt;Code Behind:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Protected Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Inserted&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim cmd As System.Data.Common.DbCommand = e.Command&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim strID As String&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SqlDataSource1.InsertParameters("ID").DefaultValue = cmd.Parameters("@ID").Value.ToString()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strID = SqlDataSource1.InsertParameters("ID").DefaultValue&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;ifdisplay.Attributes("src") = "http://191.254.1.42/cmg/upload.php?folder=training&amp;amp;fileid=" &amp;amp; strID&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifdisplay.Visible = True&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModalPopupExtender1.Show()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Su&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;b&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;&lt;b&gt;The Mysql equivalent would be like this (using LAST_INSERT_ID()) : No need to add new insertparameter instead use executescalar in code behind:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;asp:SqlDataSource ID="SqlDataSource1" runat="server"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ConnectionString="&amp;lt;%$ ConnectionStrings:entertrackConnectionString %&amp;gt;"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProviderName="&amp;lt;%$ ConnectionStrings:entertrackConnectionString.ProviderName %&amp;gt;"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InsertCommand="INSERT INTO training_ppm ( descr, organizer, dt_st, dt_end, venue, residential, fee , detail, dt_last, uploadby, file, approver ) values ( @descr, @organizer , @dt_st, @dt_end, @venue, @residential, @fee , @detail, @dt_last, @uploadby, @file, @approver) ; &lt;b&gt;SELECT LAST_INSERT_ID()&lt;/b&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Code Behind:&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Protected Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Inserted&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim cmd As System.Data.Common.DbCommand = e.Command&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Dim strID As String&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;strID = cmd.ExecuteScalar&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifdisplay.Attributes("src") = "http://191.254.1.42/cmg/upload.php?folder=training&amp;amp;fileid=" &amp;amp; strID&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifdisplay.Visible = True&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ModalPopupExtender1.Show()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;Vinod Kotiya&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-43029601712767801?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QuSNrnOBCr-hN25NEE310qUVG48/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QuSNrnOBCr-hN25NEE310qUVG48/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QuSNrnOBCr-hN25NEE310qUVG48/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QuSNrnOBCr-hN25NEE310qUVG48/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/rzOXCTnttgg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/43029601712767801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=43029601712767801" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/43029601712767801?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/43029601712767801?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/rzOXCTnttgg/aspnet-scopeidentity-equivalent-for.html" title="ASP.net Scope_Identity () equivalent for mysql, LAST_INSERT_ID()" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/aspnet-scopeidentity-equivalent-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4NQHg5fip7ImA9WhRSFUQ.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-6262581237177922162</id><published>2011-11-17T22:16:00.000-08:00</published><updated>2011-11-17T22:16:31.626-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-17T22:16:31.626-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Crystal Report" /><category scheme="http://www.blogger.com/atom/ns#" term="Passing url parameter" /><title>Crystal Report: Passing url parameter value to Report</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I want to pass parameter value to crystal report through url like&lt;br /&gt;
reports.aspx?pid=55&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim theReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; theReport.FileName = "C:\inetpub\wwwroot\prims\reports\training.rpt"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; &amp;nbsp; 'theReport.SetDatabaseLogon(PCON.APP.UserName, PCON.APP.Pass, PCON.APP.db_Server, PCON.APP.dbName)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; 'Set the required parameter for Crystal Report&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; theReport.SetParameterValue("pid", Request.Params("pid"))&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; 'Now, present report in PDF format&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' theReport.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, "ExportedReport")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CrystalReportViewer1.ReportSource = theReport&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
rpt file is having a parameter value pid . If you dont pass pid in url then it will prompt for value as usual...&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-6262581237177922162?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TAJ6Gwv761QdjiHExheSh7ARVcs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TAJ6Gwv761QdjiHExheSh7ARVcs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TAJ6Gwv761QdjiHExheSh7ARVcs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TAJ6Gwv761QdjiHExheSh7ARVcs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/rkLHHc93II0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/6262581237177922162/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=6262581237177922162" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6262581237177922162?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6262581237177922162?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/rkLHHc93II0/crystal-report-passing-url-parameter.html" title="Crystal Report: Passing url parameter value to Report" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/crystal-report-passing-url-parameter.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08DR3s4cCp7ImA9WhRTEkQ.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-7219765536926805881</id><published>2011-11-02T22:57:00.000-07:00</published><updated>2011-11-02T22:57:56.538-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-02T22:57:56.538-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Crystal Report" /><category scheme="http://www.blogger.com/atom/ns#" term="Combining rows" /><title>Crystal report; Combining rows of data into a single value</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Crystal report; Combining rows of data into a single value or&lt;br /&gt;
&lt;br /&gt;
Concatenate Column Values from Multiple Rows into a Single Column&lt;br /&gt;
&lt;br /&gt;
I have two field like this&lt;br /&gt;
&lt;br /&gt;
field1 &amp;nbsp;field2&lt;br /&gt;
1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a@xyz.com&lt;br /&gt;
2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b@xyz.com&lt;br /&gt;
3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c@xyz.com&lt;br /&gt;
4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d@xyz.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I wanted output like:&lt;br /&gt;
a@xyz.com , b@xyz.com, c@xyz.com, d@xyz.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
In Report header put a formula @&lt;b&gt;initializeVar&lt;/b&gt; which will work as global variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;WhilePrintingRecords;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;StringVar Conc_emailID := "";&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In Group Header or Detail Section (Wherever u want) put a formula @&lt;b&gt;updateVar&lt;/b&gt; to concatenate the cell value of each row:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;WhilePrintingRecords;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;StringVar Conc_emailID := Conc_emailID + {tablename.field2}+ ',' ;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In Report Footer finally access the concatenated value from variable by putting a formula field @&lt;b&gt;showVar&lt;/b&gt; :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;WhilePrintingRecords;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;StringVar Conc_emailID;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will give you the desired output.&lt;br /&gt;
- Vinod Kotiya&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-7219765536926805881?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/b9-PdLRQCytoHWIEd-VvGZ3-oTo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b9-PdLRQCytoHWIEd-VvGZ3-oTo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/b9-PdLRQCytoHWIEd-VvGZ3-oTo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/b9-PdLRQCytoHWIEd-VvGZ3-oTo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/3Dyl9fJCuV8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/7219765536926805881/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=7219765536926805881" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/7219765536926805881?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/7219765536926805881?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/3Dyl9fJCuV8/crystal-report-combining-rows-of-data.html" title="Crystal report; Combining rows of data into a single value" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/crystal-report-combining-rows-of-data.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MHSHY_cSp7ImA9WhRTEk4.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-8242581886192381672</id><published>2011-11-02T05:03:00.000-07:00</published><updated>2011-11-02T05:03:59.849-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-02T05:03:59.849-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="file upload" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="max size" /><title>ASP.Net Gmail like multiple/single file upload with defined limit size</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Create upload.aspx. Here is the aspx page and scripts;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;%@ Page Language="VB" AutoEventWireup="false" CodeFile="upload.aspx.vb" Inherits="upload" %&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;head runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Uploader&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script language='Javascript' type="text/javascript"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; function addFile() {&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var ni = document.getElementById("fileDiv");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var objFileCount = document.getElementById("fileCount");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var num = (document.getElementById("fileCount").value - 1) + 2;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objFileCount.value = num;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var newdiv = document.createElement("div");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var divIdName = "file" + num + "Div";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newdiv.setAttribute("id", divIdName);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newdiv.innerHTML = '&amp;lt;input type="file" name="attachment" id="attachment"/&amp;gt;&amp;lt;a href="#" onclick="javascript:removeFile(' + divIdName + ');"&amp;gt;Remove &amp;lt;/a&amp;gt;';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ni.appendChild(newdiv);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; function removeFile(divName) {&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var d = document.getElementById("fileDiv");&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; d.removeChild(divName);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;form id="form1" runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type="file" name="attachment" runat="server" id="attachment" onchange="document.getElementById('moreUploadsLink').style.display = 'block';" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type="hidden" value="0" id="fileCount" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id="fileDiv"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div id="moreUploadsLink" &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;a href="javascript:addFile();"&amp;gt;Attach another File&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="lblStatus" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for single file upload set div id="moreUploadsLink" style="display: none"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here is the vb code behind upload.vb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Partial Class upload&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; Inherits System.Web.UI.Page&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblStatus.Text = "Uploading..."&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Threading.Thread.Sleep(2000)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim temp As String = ""&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim uploadFiles As HttpFileCollection = Request.Files&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For i As Integer = 0 To uploadFiles.Count - 1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim uploadFile As HttpPostedFile = uploadFiles(i)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim fileName As String = System.IO.Path.GetFileName(uploadFile.FileName)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If fileName.Trim().Length &amp;gt; 0 Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'uploadFile.SaveAs(Server.MapPath("./Others/") + fileName)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uploadFile.SaveAs(Server.MapPath("./") + fileName)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp = temp &amp;amp; fileName &amp;amp; " Successfully Uploaded &amp;lt;br/&amp;gt;"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblStatus.Text = temp&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;End Class&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Note:&amp;nbsp;for single file upload set div id="moreUploadsLink" style="display: none"&lt;br /&gt;
To set the maximum upload size please see :&lt;br /&gt;
&lt;a href="http://vinodkotiya.blogspot.com/2011/11/aspnet-file-upload-control-with-large.html"&gt;http://vinodkotiya.blogspot.com/2011/11/aspnet-file-upload-control-with-large.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
- Vinod Kotiya&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-8242581886192381672?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HYV2zSJ_8_7_eCahcrQMiFk6Yvk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HYV2zSJ_8_7_eCahcrQMiFk6Yvk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HYV2zSJ_8_7_eCahcrQMiFk6Yvk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HYV2zSJ_8_7_eCahcrQMiFk6Yvk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/9CCjkwmBYDU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/8242581886192381672/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=8242581886192381672" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/8242581886192381672?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/8242581886192381672?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/9CCjkwmBYDU/aspnet-gmail-like-multiplesingle-file.html" title="ASP.Net Gmail like multiple/single file upload with defined limit size" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/aspnet-gmail-like-multiplesingle-file.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMAQXs8cCp7ImA9WhRTEk4.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-1011671390087411770</id><published>2011-11-02T04:47:00.000-07:00</published><updated>2011-11-02T04:47:20.578-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-02T04:47:20.578-07:00</app:edited><title>asp.net file upload control  with large data file</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;asp.net file upload control while uploading the file with large data&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; line-height: 18px;"&gt;By default, IIS7 limits file upload to 30MB.&amp;nbsp; Oddly, it returns a 404 error if someone uploads something larger than 30MB.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;SERVER ERROR&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;404-FILE OR DIRECTORY NOT FOUND THE RESOURCE YOU ARE LOOKING FOR MIGHT HAVE BEEN REMOVED, HAS ITS NAME CHANGE, OR IS TEMPORARILY UNAVAILABLE.&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;you can override machine.config file size and time out by doing this entry in your app web.config file&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;lt;system.web&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;lt;httpRuntime&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;executionTimeout="3600"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;maxRequestLength="1024000"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;requestLengthDiskThreshold="80"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;useFullyQualifiedRedirectUrl="false"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;minFreeThreads="8"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;minLocalRequestFreeThreads="4"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;appRequestQueueLimit="5000"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;enableKernelOutputCache="true"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;enableVersionHeader="true"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;requireRootedSaveAsPath="true"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;enable="true"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;shutdownTimeout="3600"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;delayNotificationTimeout="3600"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;waitChangeNotification="0"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;maxWaitChangeNotification="0"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;enableHeaderChecking="true"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;sendCacheControlHeader="true"&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp;apartmentThreading="false" /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;b&gt;&amp;lt;/system.web&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: #fafafa; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"&gt;&lt;span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; font-weight: normal; line-height: 18px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Here&amp;nbsp;&lt;b style="background-color: #fafafa; color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 16px;"&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: inline !important; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b style="background-color: #fafafa; color: #cc0000; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: 16px;"&gt;maxRequestLength&amp;nbsp;&lt;/b&gt;&lt;/div&gt;is in KB&lt;br /&gt;
&lt;div style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; font-weight: normal; line-height: 18px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;there is an alternate solution that can be enabled at the site level rather than server-wide.&lt;/div&gt;&lt;div style="background-color: white; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;security&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;requestFiltering&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;requestLimits maxAllowedContentLength="1024000000"/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/requestFiltering&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/security&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: 'Trebuchet MS', Tahoma, Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"&gt;&amp;lt;/system.webServer&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; font-weight: normal; line-height: 18px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;If you add the above code to the web.config file for your site, you can control the maximum upload size for your site.&amp;nbsp; In many cases, the system.webServer node will already be in the file, so just add the security node within that.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; font-weight: normal; line-height: 18px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Note that the maxAllowedContentLength is in BYTES not kilobytes.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; font-weight: normal; line-height: 18px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;You may also need to restart your Web site (not the whole server) to enable the setting.&lt;/div&gt;&lt;div style="background-color: white; color: #333333; font-family: 'Trebuchet MS', Tahoma, Arial; font-size: 12px; font-weight: normal; line-height: 18px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;It allow upload upto 1 GB now ...&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-1011671390087411770?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JB_7GMEIADrqLH_59-HJr7ZnyRo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JB_7GMEIADrqLH_59-HJr7ZnyRo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JB_7GMEIADrqLH_59-HJr7ZnyRo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JB_7GMEIADrqLH_59-HJr7ZnyRo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/bFXDhRJ2GtU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/1011671390087411770/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=1011671390087411770" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/1011671390087411770?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/1011671390087411770?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/bFXDhRJ2GtU/aspnet-file-upload-control-with-large.html" title="asp.net file upload control  with large data file" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/11/aspnet-file-upload-control-with-large.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcBQ3w7fip7ImA9WhdbFU0.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-6803444491679634835</id><published>2011-10-13T04:44:00.000-07:00</published><updated>2011-10-13T04:57:32.206-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-13T04:57:32.206-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="common html code" /><title>ASP.Net Having common menu without using master pages</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.Net Having common menu without using master pages : I want to have common html code snippest which can be shared by all pages without using the master page concept.&lt;br /&gt;
Many of u have asked&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #363636; font-size: 13px; font: normal normal bold 1em/normal Arial, Helvetica, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 3px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;is there an equivalent to PHP include files in ASP.net?&lt;/span&gt;&lt;/h3&gt;This method is similar to include tag of php which fetch common html tag stored in a text file to any web page.&lt;br /&gt;
&lt;br /&gt;
My common html code portion will be put on a class file in App_Code folder which is accessible to all. Changing here will reflect everywhere...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Now put a label on ur all aspx page where u wanna have common html code like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;!-- menu --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="lblMenu" runat="server" Text="Label"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;div id="copyright"&amp;gt;Copyright © 2011 &amp;lt;a href="http://apycom.com/"&amp;gt;NTPC Limited&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="color: #cc0000; white-space: pre;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;&amp;lt;!-- end #menu --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: lime;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
2. Change the Labels Text&amp;nbsp;programmatic-ally&amp;nbsp;in page load event of every page&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Imports common &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;'Where makemenu public function is defined&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; If Not Page.IsPostBack Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lblMenu.Text = makemenu()&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;End Sub&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. My common class contain a public function like this to create menu:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Public Class common&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;Public Shared Function makemenu() As String&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim temp = "&amp;lt;div id=menu&amp;gt; &amp;lt;ul class=menu&amp;gt; " &amp;amp; _&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"&amp;lt;li class=last&amp;gt;&amp;lt;a href=Default.aspx&amp;gt;&amp;lt;span&amp;gt;Home&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; " &amp;amp; _&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"&amp;lt;li&amp;gt;&amp;lt;a href=# class=parent&amp;gt;&amp;lt;span&amp;gt;Data Updation&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;" &amp;amp; _&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; "&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;" &amp;amp; _&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"&amp;lt;/li&amp;gt;" &amp;amp; _&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"&amp;lt;li class=last&amp;gt;&amp;lt;a href=login.aspx?logout=1&amp;gt;&amp;lt;span&amp;gt;Logout&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;" &amp;amp; _&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"&amp;lt;/ul&amp;gt; &amp;lt;/div&amp;gt;"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return temp&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;End Class&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Vinod Kotiya&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-6803444491679634835?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/w5RgMtDf_v4Jv-VjfrV7TLqR-bk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/w5RgMtDf_v4Jv-VjfrV7TLqR-bk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/w5RgMtDf_v4Jv-VjfrV7TLqR-bk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/w5RgMtDf_v4Jv-VjfrV7TLqR-bk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/Th_FpdUoKCg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/6803444491679634835/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=6803444491679634835" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6803444491679634835?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6803444491679634835?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/Th_FpdUoKCg/aspnet-having-common-menu-without-using.html" title="ASP.Net Having common menu without using master pages" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/10/aspnet-having-common-menu-without-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YNQXcyeyp7ImA9WhdUGUU.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-6891290842320708390</id><published>2011-10-07T03:59:00.000-07:00</published><updated>2011-10-07T03:59:50.993-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-07T03:59:50.993-07:00</app:edited><title>way to override a CSS style of: table td{}</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;way to override a CSS style of: table td{}&lt;br /&gt;
&lt;br /&gt;
I have a table rendered through css stylesheet.&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;table id="table-3"&amp;gt;....&lt;br /&gt;
/table&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;This applies it to all tables in my project. Somewhere my user want a different td. So to override default table td css i used this in my td tag:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;td style='background-color: lime'&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;It can also be override by using inline span tag&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;span style='background-color: lime'&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: verdana, geneva, lucida, &amp;quot;lucida grande&amp;quot;, arial, helvetica, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; line-height: 16px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #fafafa; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: 13px; margin-bottom: 15px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;You can overide css by specifying !Impartent like below&lt;/div&gt;&lt;span class="Apple-style-span" style="background-clip: initial; background-color: transparent; background-origin: initial;"&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: red; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;background-color&lt;/span&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #313c46;"&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;lime&lt;/span&gt;&lt;/span&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: blue; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;!important&lt;/span&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #313c46; font-size: x-small; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;- Vinod K&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-6891290842320708390?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Pny3ygR-m_a4-6Xz84nKmof8mI4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Pny3ygR-m_a4-6Xz84nKmof8mI4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Pny3ygR-m_a4-6Xz84nKmof8mI4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Pny3ygR-m_a4-6Xz84nKmof8mI4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/GOc4LVHxato" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/6891290842320708390/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=6891290842320708390" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6891290842320708390?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/6891290842320708390?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/GOc4LVHxato/way-to-override-css-style-of-table-td.html" title="way to override a CSS style of: table td{}" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/10/way-to-override-css-style-of-table-td.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMEQ3s9eSp7ImA9WhdUE0U.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-5273365408708128298</id><published>2011-09-30T04:46:00.000-07:00</published><updated>2011-09-30T04:50:02.561-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-30T04:50:02.561-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="update parameter List View" /><category scheme="http://www.blogger.com/atom/ns#" term="DateTime in asp.net and my sql server" /><title>Best practice for working with DateTime in asp.net and my sql server</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Best practice for working with DateTime in asp.net and my sql server&lt;br /&gt;
Or&lt;br /&gt;
Format the update parameter value at time of updating List View&lt;br /&gt;
&lt;br /&gt;
my sql store data in &amp;nbsp;yyyy-mm-dd format...&lt;br /&gt;
but it can execute update command if date is in mm/dd/yyyy fromat.&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;My web app displays controls in uk , indian format ie dd/mm/yyyy&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;You can retrive date in dd/mm/yyyy format from mysql by folowing query&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;SELECT &amp;nbsp;DATE_FORMAT(sch_dt,'%d/%m/%Y') as sch_dt, &amp;nbsp;FROM comm_prog&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;So finally here is the&amp;nbsp;Best practice for working with DateTime in asp.net and my sql server.&lt;br /&gt;
&lt;br /&gt;
Make an entry in your web.config file like this inside system.web&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: red;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #cc0000; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small; line-height: 18px;"&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;!-- To let the default date as en-US style mm/dd/yyyy in backgrount and let controls have en-GB dd/mm/yyyy format / &amp;nbsp;Culture fr-CH, Date: 30.11.2007 00:00:00--&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: red;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #cc0000; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small; line-height: 18px;"&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;globalization &amp;nbsp; requestEncoding="utf-8" &amp;nbsp; responseEncoding="utf-8" &amp;nbsp; culture = "en-US" &amp;nbsp; uiCulture = "en-US" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let the user see dates in dd/mm/yyyy format&lt;br /&gt;
like:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID="sch_dtTextBox" runat="server" Text='&amp;lt;%# Bind("sch_dt") %&amp;gt;' /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="sch_dtTextBox" Format="dd/MM/yyyy"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:CalendarExtender&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;But you workaround in MM/dd/yyyy format in your code and change my sql update query &amp;nbsp;parameter in list view itemupdating event as&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;Protected Sub ListView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewUpdateEventArgs) Handles ListView1.ItemUpdating&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim ukProvider As IFormatProvider = New System.Globalization.CultureInfo("en-GB") &amp;nbsp;' uk style date dd/MM/yyyy&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim txt As TextBox = TryCast(ListView1.EditItem.FindControl("sch_dtTextBox"), TextBox)&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If txt IsNot Nothing Then&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim temp As String = DateTime.Parse(txt.Text, ukProvider, System.Globalization.DateTimeStyles.NoCurrentDateDefault)&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'SqlDataSource1.UpdateParameters("sch_d").DefaultValue = temp 'Strings.Mid(temp, 1, temp.length - 1)&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.NewValues("sch_dt") = temp&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; End Sub&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: blue; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;Dont forgot to Envoke this from Listview1 onitemupdating event:&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp;&amp;lt;asp:ListView ID="ListView1" runat="server" DataKeyNames="uid"&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataSourceID="SqlDataSource1" InsertItemPosition="LastItem" OnItemUpdating ="ListView1_ItemUpdating"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Vinod Kotiya&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-5273365408708128298?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-hWEYwUDWmdBJSGx_1HN08ggdxU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-hWEYwUDWmdBJSGx_1HN08ggdxU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-hWEYwUDWmdBJSGx_1HN08ggdxU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-hWEYwUDWmdBJSGx_1HN08ggdxU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/JQUYsfiGJRo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/5273365408708128298/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=5273365408708128298" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/5273365408708128298?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/5273365408708128298?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/JQUYsfiGJRo/best-practice-for-working-with-datetime.html" title="Best practice for working with DateTime in asp.net and my sql server" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/best-practice-for-working-with-datetime.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkQDRX05eSp7ImA9WhdUEkw.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-1580924088658276872</id><published>2011-09-28T04:46:00.000-07:00</published><updated>2011-09-28T04:46:14.321-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-28T04:46:14.321-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="pure css menu" /><category scheme="http://www.blogger.com/atom/ns#" term="IE7 hover problem fix" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>ASP.NET pure css menu with IE7 hover problem fix</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASP.NET pure css menu with IE7 hover problem fix:&lt;span class="Apple-style-span" style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px;"&gt;What happens in IE7 is, that the submenu appears just as long as the mouse hovers over the parent menu item. So once you move the cursor downwards over the submenu, the submenu simply disappears.&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: verdana, arial, sans-serif; font-size: 13px;"&gt;The drop down menu works in Firefox, but randomly disappears in IE.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px;"&gt;drop down menus using Javascript to begin with, however, I always recommend using CSS over javascript, unless you need some animation effects (because CSS renders faster then JS and it does not require the browser to have javascript turned on).&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #67727b; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px;"&gt;&lt;div style="margin-bottom: 20px;"&gt;The classic CSS :hover syntax for drop down menus looks like this:&lt;/div&gt;&lt;div&gt;&lt;div class="syntaxhighlighter  css" id="highlighter_878213" style="background-color: white !important; font-size: 1em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; overflow-x: auto !important; overflow-y: auto !important; position: relative !important; width: 530px;"&gt;&lt;table border="0" cellpadding="0" cellspacing="0" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 755px;"&gt;&lt;tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;
&lt;tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;&lt;td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;&lt;div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;"&gt;1&lt;/div&gt;&lt;div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;"&gt;2&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 726px;"&gt;&lt;div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;&lt;div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: rgb(248, 248, 248) !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;"&gt;&lt;code class="css plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;#menu li ul{&lt;/code&gt;&lt;code class="css keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;display&lt;/code&gt;&lt;code class="css plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;:&lt;/code&gt;&lt;code class="css value" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;none&lt;/code&gt;&lt;code class="css plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;}&lt;/code&gt;&lt;code class="css comments" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 130, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;/*all submenus are hidden*/&lt;/code&gt;&lt;/div&gt;&lt;div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;"&gt;&lt;code class="css plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;#menu li:hover ul{&lt;/code&gt;&lt;code class="css keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;display&lt;/code&gt;&lt;code class="css plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;:&lt;/code&gt;&lt;code class="css value" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;block&lt;/code&gt;&lt;code class="css plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;}&lt;/code&gt;&lt;code class="css comments" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px 0px !important; border-bottom-right-radius: 0px 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px 0px !important; border-top-right-radius: 0px 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 130, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"&gt;/*a submenu appears once the user hovers o&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;in my case i have changed&amp;nbsp;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;ul&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;a:hover&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
1. CSS code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;ul&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*background:url(images/menu3-bg.gif) top left repeat-x;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt; height:43px;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;list-style&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;none&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;margin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;padding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;color&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Blue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-family&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Gill&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Sans&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;MT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;!important&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-size&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;medium&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;float&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;left&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*level1 menu */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt; { &lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;color&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Blue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-family&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Gill&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Sans&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;MT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;!important&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-size&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;medium&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;margin-right&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;1px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;padding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;13px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;20px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;10px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;20px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*color:#666666;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  display:block;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  font-weight:bold;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  line-height:43px;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  padding:0px 25px;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  text-align:center;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  text-decoration:none;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;a:hover&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*color:#000000;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;   text-decoration:none;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;   color: Blue;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;    &lt;span style="font-size: x-small;"&gt;font-family: Gill Sans MT !important;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;    &lt;span style="font-size: x-small;"&gt;font-size: medium;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;    &lt;span style="font-size: x-small;"&gt;padding: 0px 3px 2px 2px;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;   }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;ul&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*level2 Menu*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;padding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;background-color&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#E0FFFF&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;color&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#333333&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-family&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Gill&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;Sans&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;MT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;!important&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-size&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;medium&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*background:#e0e0e0;*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;border-top&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;1px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;solid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#0079b2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;border-left&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;2px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;solid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#0079b2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;border-right&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;2px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;solid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#0079b2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;border-bottom&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;2px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;solid&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#0079b2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;display&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;none&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*height:auto;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  filter:alpha(opacity=95);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  opacity:0.95;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  position:absolute;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*width:150px;*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*z-index:200;*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*top:1em;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;  /*left:0;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li:hover&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;ul&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;display&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;block&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;display&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;block&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;float&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;none&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*width:150px;*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;ul&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;display&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;block&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-size&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;12px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-style&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;normal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;padding&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;10px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;0px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;15px&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;text-align&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;left&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;ul&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;a:hover&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;background&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#ffffff&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;background-image&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;url("images/transparent1pix.png")&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;repeat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*color:#000000;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;   opacity:1.0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;   filter:alpha(opacity=100);*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;   }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;clear&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;left&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;  } &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;.menu3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#current&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;/*background:url(images/current-bg.gif) top left repeat-x;*/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;font-weight&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;bold&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt; ;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;color&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;#000000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;2. Code in aspx file&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang=""&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span lang=""&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;lt;asp:Panel ID="Panel1" runat="server"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;div class="menu3"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="Default.aspx" &amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="#" id="current"&amp;gt;Material Diversion&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_all"&amp;gt;Material Diversions&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_from"&amp;gt;Mat Div : From Proj&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_to"&amp;gt;Mat Div : To Proj&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Civil Fronts&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=fronts"&amp;gt;Reports&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Comm.Prog.2011-12&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=fronts"&amp;gt;Reports&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;&amp;lt;a href="#" id="A1"&amp;gt;Update&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_all"&amp;gt;Material Diversions&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_from"&amp;gt;Mat Div : From Proj&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_to"&amp;gt;Mat Div : To Proj&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt; &amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&amp;lt;li&amp;gt;&amp;lt;a href="/contact/contact.php"&amp;gt;Logout&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/asp:Panel&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;- Vinod Kotiya&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-size: x-small;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-1580924088658276872?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KMd-4Wc-xDFQ3EoqkZZT-QyyvSY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KMd-4Wc-xDFQ3EoqkZZT-QyyvSY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KMd-4Wc-xDFQ3EoqkZZT-QyyvSY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KMd-4Wc-xDFQ3EoqkZZT-QyyvSY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/gLV2BtOa4Sk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/1580924088658276872/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=1580924088658276872" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/1580924088658276872?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/1580924088658276872?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/gLV2BtOa4Sk/aspnet-pure-css-menu-with-ie7-hover.html" title="ASP.NET pure css menu with IE7 hover problem fix" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/aspnet-pure-css-menu-with-ie7-hover.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMDSX4-eyp7ImA9WhdUEkw.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-7958969881166531421</id><published>2011-09-28T03:59:00.000-07:00</published><updated>2011-09-28T04:47:58.053-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-28T04:47:58.053-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Menu Control" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="XML Data source" /><title>ASP.NET Menu Control with XML Data source</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;ASP.NET Menu Control with XML Data source&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;With the help of this link of all pages of website can be configured through single xml file.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Known issue: it was not working properly with ie7 on hover event. Also in chrome gives wierd menu type with one level up , expand. Recommended to go for pure css menu.&amp;nbsp;&lt;a href="http://vinodkotiya.blogspot.com/2011/09/aspnet-pure-css-menu-with-ie7-hover.html"&gt;http://vinodkotiya.blogspot.com/2011/09/aspnet-pure-css-menu-with-ie7-hover.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-size: 13px; line-height: 22px;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;you may prefer to build drop down menus using Javascript to begin with, however, I always recommend using CSS over javascript, unless you need some animation effects (because CSS renders faster then JS and it does not require the browser to have javascript turned on).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;1. Put the menu control as follow&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;lt;div id="menu1"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&amp;lt;asp:Menu ID="Menu1" runat="server" MaximumDynamicDisplayLevels="4" StaticDisplayLevels="2"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DynamicHorizontalOffset="2" DynamicVerticalOffset="2" StaticEnableDefaultPopOutImage="false"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Orientation="Horizontal" &amp;nbsp;DisappearAfter="-1"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;DataBindings&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:MenuItemBinding DataMember="Menu" TextField="text" ValueField="text" NavigateUrlField="url" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:MenuItemBinding DataMember="SubMenu" NavigateUrlField="url" TextField="text"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ValueField="text" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/DataBindings&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LevelMenuItemStyles&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:MenuItemStyle CssClass="level1"/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:MenuItemStyle CssClass="level2"/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:MenuItemStyle CssClass="level3" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:MenuItemStyle CssClass="level4" /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/LevelMenuItemStyles&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:Menu&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;2. Here is the vb code to load the menu with xml file&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;Public Shared Function bindmenu(ByVal menu As Menu) As Boolean&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim xds As XmlDataSource = New XmlDataSource&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xds.DataFile = HttpContext.Current.Server.MapPath("menu.xml")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xds.XPath = "Home/Role[@id='1']"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; menu.DataSource = xds&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; menu.DataBind()&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; menu.Items(0).Text = ""&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; menu.Items(0).Value = ""&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; menu.Items(0).Selectable = False&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;3. thee css code in stylesheet&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;#menu1 {&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;width: 960px;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;height: 40px;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;margin: 0 auto;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;padding: 5px,2px,2px,2px;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;border-top: 1px solid #D0D0D0;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;.level1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; color: White;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; background-color: Black;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-variant: small-caps;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-size: large;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-weight: bold;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;.level2&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; color: Blue;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-family: Gill Sans MT !important;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-size: medium;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;.level3&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; background-color: #E0FFFF;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; color: #333333;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-family: Gill Sans MT !important;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-size: medium;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;.hoverstyle&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-weight: bold;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;.level4&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp;background-color:#CCFFFF ;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; color: #333333;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-size: small;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; font-family: Gill Sans MT !important;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;} &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;4. Write the xml files with link as follows&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;lt;Home&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Role id="1"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="Home" url="Default.aspx"&amp;gt;&amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="Material Diversion" url="mdm.aspx"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Material Diversion" url="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_all"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Mat Div : From Proj" url="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_from"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Mat Div : To Proj" url="http://10.0.0.165/prims/default.aspx?loadreport=material_diversion_to"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="Civil Fronts" &amp;nbsp;url="#"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Reports" url="http://10.0.0.165/prims/default.aspx?loadreport=fronts"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="Comm.Prog.2011-12" &amp;nbsp;url="#"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Reports" url="#"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;Menu text="Update" url="#"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &amp;nbsp;&amp;lt;SubMenu text="Update: Mat Div" url="mdm.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;SubMenu text="Civil Fronts" url="fronts.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;SubMenu text="Comm. Prog. 2011-12" url="comm_prog.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="LogOut" url="login.aspx?logout=1"&amp;gt;&amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/Role&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Role id="2"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="Books" url="MenuFromXml.aspx"&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Asp.Net" url="MenuFromXml.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="Ajax" url="MenuFromXml.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="MS SQL Server 2005" url="MenuFromXml.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SubMenu text="JavaScript" url="MenuFromXml.aspx"&amp;gt;&amp;lt;/SubMenu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Menu text="Contact Us" url="MenuFromXml.aspx"&amp;gt;&amp;lt;/Menu&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/Role&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000; font-family: Times, 'Times New Roman', serif;"&gt;&amp;lt;/Home&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;- Vinod Kotiya&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-7958969881166531421?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fGW3PMC3SjvsSuRTAZBeBj8CCt4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fGW3PMC3SjvsSuRTAZBeBj8CCt4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fGW3PMC3SjvsSuRTAZBeBj8CCt4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fGW3PMC3SjvsSuRTAZBeBj8CCt4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/kZTDt_3Kzns" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/7958969881166531421/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=7958969881166531421" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/7958969881166531421?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/7958969881166531421?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/kZTDt_3Kzns/aspnet-menu-control-with-xml-data.html" title="ASP.NET Menu Control with XML Data source" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/aspnet-menu-control-with-xml-data.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEABRnY4cSp7ImA9WhdUEU0.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-8337096783413727250</id><published>2011-09-26T23:03:00.000-07:00</published><updated>2011-09-26T23:59:17.839-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-26T23:59:17.839-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Listview" /><category scheme="http://www.blogger.com/atom/ns#" term="DropDown List" /><category scheme="http://www.blogger.com/atom/ns#" term="Insert Item Template" /><category scheme="http://www.blogger.com/atom/ns#" term="datasource" /><title>ASP.NET Listview with a DropDown List having own datasource in Insert Item Template</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Here is the procees for&amp;nbsp;ASP.NET Listview with a DropDown List having own datasource in Insert Item Template.&lt;br /&gt;
&lt;br /&gt;
I have a ListView1 with SqlDataSource1&lt;br /&gt;
I wanna place DropDownList in InsertItem Template with SqlDataSource2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:DropDownList ID="ddlProject" runat="server" datatextfield="v" DataValueField="v" &amp;nbsp;DataSourceID="SqlDataSource2"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/asp:DropDownList&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID="unitTextBox" runat="server" Text='&amp;lt;%# Bind("unit") %&amp;gt;' /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You can have other controls databind to list view if required accept DropDown&lt;br /&gt;
&lt;br /&gt;
Now you need to assign the dropdownvalue to insert parameter . It can be done at&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;ListView1_ItemInserting Event&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Protected Sub ListView1_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewInsertEventArgs) Handles ListView1.ItemInserting&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim ddl As DropDownList = TryCast(e.Item.FindControl("ddlProject"), DropDownList)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If ddl IsNot Nothing Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.Values("project") = ddl.SelectedValue&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
May be this event dosent trigger so call it from listview tag as&amp;nbsp;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;OnItemInserting event&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;lt;asp:ListView ID="ListView1" runat="server" DataKeyNames="uid"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataSourceID="SqlDataSource1" InsertItemPosition="FirstItem" OnItemInserting="ListView1_ItemInserting"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
###########&lt;br /&gt;
In Same Manner we can hav an uneditable label or textbox whose value cant be edited by user...&lt;br /&gt;
declare ur label in insertitem template without binding to datasource parameter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID="lblProject" runat="server" Text=""&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now use listview databound event&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Protected Sub ListView1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewItemEventArgs) Handles ListView1.ItemDataBound&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim lbl As Label = TryCast(ListView1.InsertItem.FindControl("lblProject"), Label)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If lbl IsNot Nothing Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lbl.Text = ddlProject.SelectedValue&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
envoke this event from listview&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;lt;asp:ListView ID="ListView1" runat="server" DataKeyNames="uid"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataSourceID="SqlDataSource1" InsertItemPosition="FirstItem" &amp;nbsp;OnItemDataBound = "ListView1_ItemDataBound"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Update the insert parameter value&amp;nbsp;programmatic-ally at page load or whenever required:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;SqlDataSource1.InsertParameters("project").DefaultValue = ddlProject.SelectedValue&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;- Vinod Kotiya&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;a href="http://www.vinodkotiya.com/"&gt;www.vinodkotiya.com&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-8337096783413727250?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5nuuxJqyCd8P9aCmPgg6KMQm2Ew/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5nuuxJqyCd8P9aCmPgg6KMQm2Ew/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5nuuxJqyCd8P9aCmPgg6KMQm2Ew/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5nuuxJqyCd8P9aCmPgg6KMQm2Ew/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/3DvK44Adcns" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/8337096783413727250/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=8337096783413727250" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/8337096783413727250?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/8337096783413727250?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/3DvK44Adcns/aspnet-listview-with-dropdown-list.html" title="ASP.NET Listview with a DropDown List having own datasource in Insert Item Template" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/aspnet-listview-with-dropdown-list.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIDQHk7cSp7ImA9WhdVFUQ.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-5747490133048638064</id><published>2011-09-19T21:43:00.000-07:00</published><updated>2011-09-21T02:16:11.709-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-21T02:16:11.709-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ODBC." /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="MySQL." /><category scheme="http://www.blogger.com/atom/ns#" term="sqldatasource" /><title>ASP.Net with MySQL Problems.</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Problem1. SQL datasource wizard having [] in tablename like [table1] getting error. To resolve this either remove [] manually or set sqlservermode =True in connection string&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #555555; font-family: helvetica, arial, sans-serif; font-size: 12px; line-height: 23px;"&gt;When set to&amp;nbsp;&lt;code class="literal" style="background-clip: initial; background-color: white; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #026789; font-family: &amp;quot;courier new&amp;quot;, courier, fixed, monospace; font-size: 12px; font-weight: bold; margin: 0px; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;true&lt;/code&gt;&amp;nbsp;enables Connector/Net to support square brackets around symbols instead of backticks. This enables Visual Studio wizards that bracket symbols with [] to work with Connector/Net. This option incurs a performance hit, so should only be used if necessary. This option was added in version 6.3.1.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #555555; font-family: helvetica, arial, sans-serif; font-size: 12px; line-height: 23px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #555555; font-family: helvetica, arial, sans-serif; font-size: 12px; line-height: 23px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;Problem2. SQL datasource wizard generating insert, update command with ? instead of @parametername in values.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; color: #555555; font-family: helvetica, arial, sans-serif; font-size: 12px; line-height: 23px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;Solution: It's a bug. No solution found except to create command manually..&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: monospace; font-size: 12px; line-height: 19px; white-space: pre;"&gt;Avoid using wizards in case of mySQLConnector. Make a program to create and complete the command. As i have created one&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: monospace; font-size: 12px; line-height: 19px; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: monospace; font-size: 12px; line-height: 19px; white-space: pre;"&gt;- Vinod Kotiya&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: white; font-family: monospace; font-size: 12px; line-height: 19px; white-space: pre;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim insertcmd As String = TextBox1.Text&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If insertcmd = Nothing Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;insertcmd = "INSERT INTO [material_diversion] ([sno], [system], [item], [package], [approve_dt], [duno], [qty], [unit], [qty_desc], [from_proj], [from_unit], [to_proj], [to_unit], [reason], [remark], [time_req_replenishment], [ant_dt_repl], [act_dt_repl], [wheather_repl], [closure], [isreplaceable], [uid]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: lime;"&gt;' insertcmd = "UPDATE [material_diversion] SET [sno] = ?, [system] = ?, [item] = ?, [package] = ?, [approve_dt] = ?, [duno] = ?, [qty] = ?, [unit] = ?, [qty_desc] = ?, [from_proj] = ?, [from_unit] = ?, [to_proj] = ?, [to_unit] = ?, [reason] = ?, [remark] = ?, [time_req_replenishment] = ?, [ant_dt_repl] = ?, [act_dt_repl] = ?, [wheather_repl] = ?, [closure] = ?, [isreplaceable] = ? WHERE [uid] = ?"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: lime;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If Strings.InStr(insertcmd, "INSERT") &amp;gt; 0 Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim startbracket = Strings.InStr(insertcmd, "(")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim endbracket = Strings.InStr(insertcmd, ")")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim insertcmd1 As String = Strings.Left(insertcmd, startbracket - 1)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Label1.Text = insertcmd1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim insertcmd2 As String = Strings.Mid(insertcmd, startbracket, endbracket - startbracket - 1)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Label1.Text = Label1.Text &amp;amp; vbCrLf &amp;amp; insertcmd2&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim parameter As String() = Split(insertcmd2, ",")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim p As String&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim atParameter As String = "" ''contains @eid,@name&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;For Each p In parameter&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Label1.Text = Label1.Text &amp;amp; vbCrLf &amp;amp; p&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;atParameter = atParameter &amp;amp; "@" &amp;amp; Strings.Mid(p, 3, p.Length - 3) &amp;amp; ", "&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Next&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;TextBox1.Text = insertcmd1 &amp;amp; insertcmd2 &amp;amp; "]) values ( " &amp;amp; atParameter &amp;amp; ")"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;ElseIf Strings.InStr(insertcmd, "UPDATE") &amp;gt; 0 Then&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;TextBox1.Text = "update query"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim startbracket = Strings.InStr(insertcmd, "SET")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim endbracket = Strings.InStr(insertcmd, "WHERE")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim insertcmd1 As String = Strings.Left(insertcmd, startbracket + 3)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Label1.Text = insertcmd1&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim insertcmd2 As String = Strings.Mid(insertcmd, startbracket + 3, endbracket - startbracket - 3)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Label1.Text = Label1.Text &amp;amp; vbCrLf &amp;amp; insertcmd2&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim parameter As String() = Split(insertcmd2, ",")&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim p As String&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Dim atParameter As String = "" ''contains @eid,@name&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;For Each p In parameter&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;p = Strings.Mid(p, 3, p.Length - 7)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Label1.Text = Label1.Text &amp;amp; vbCrLf &amp;amp; p&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;atParameter = atParameter &amp;amp; "[" &amp;amp; p &amp;amp; "]= @" &amp;amp; p &amp;amp; ", "&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Next&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;'replace ]] with ]&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;atParameter = Strings.Replace(atParameter, "]]", "]")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;TextBox1.Text = insertcmd1 &amp;amp; " " &amp;amp; Strings.Left(atParameter, atParameter.Length - 3) &amp;amp; " " &amp;amp; Strings.Right(insertcmd, insertcmd.Length - endbracket + 1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="background-color: #f5f4f4; color: #6f5e4e; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Problem 3: &amp;nbsp;have been getting this error: Unable to convert MySQL date/time value to System.DateTime.&lt;/div&gt;&lt;div style="margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;This is when a DATETIME or DATE field contains an invalid value. It turns out that 0000-00-00 which I have used as default value in a DATE column is considered an invalid date. Instead NULL should be used when date/time is not set.&lt;/strong&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="background-color: #f5f4f4; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;add Allow Zero Datetime=True to the connection string, this allows for 0000-00-00 00:00:00 in a DATETIME column. Just add it at the end of your connection string so it looks something like this:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Solution :&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: red; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;b&gt;connectionString="server=191.254.1.42;User Id=admin;password=***;database=entertrack;Persist Security Info=True; SQLServerMode = true;Allow Zero Datetime=True;"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-5747490133048638064?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UGQwkOF_I-PTymlbGwUgTbgAhIA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UGQwkOF_I-PTymlbGwUgTbgAhIA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UGQwkOF_I-PTymlbGwUgTbgAhIA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UGQwkOF_I-PTymlbGwUgTbgAhIA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/OhRpvqrwow0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/5747490133048638064/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=5747490133048638064" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/5747490133048638064?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/5747490133048638064?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/OhRpvqrwow0/aspnet-with-mysql-problems.html" title="ASP.Net with MySQL Problems." /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/aspnet-with-mysql-problems.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUAMSXw7fip7ImA9WhdVEkk.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-3246059752723727120</id><published>2011-09-17T01:18:00.000-07:00</published><updated>2011-09-17T01:23:08.206-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-17T01:23:08.206-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="shimla uttarkashi sortcut" /><category scheme="http://www.blogger.com/atom/ns#" term="manali" /><category scheme="http://www.blogger.com/atom/ns#" term="rohtang pass" /><title>Raid De Himalaya season 2</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 11px;"&gt;31 May 2011-6jun2011&lt;br /&gt;
2030 km&lt;br /&gt;
Uttarkashi &amp;gt; Rishikesh &amp;gt; Dehradun &amp;gt; Nahan &amp;gt; Shimla &amp;gt; Bilaspur &amp;gt; Kullu &amp;gt; Manali &amp;gt; Rohtang Pass &amp;gt; Shimla &amp;gt; Rohru &amp;gt; Tuni &amp;gt; Mori &amp;gt; Purola &amp;gt; Naugaon &amp;gt; Uttarkashi.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 11px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 11px;"&gt;Route includes the 305 km Shimla Uttarkashi Shortcut with Majestic Himalayan view.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 11px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;iframe allowfullscreen="" frameborder="0" height="360" src="http://www.youtube.com/embed/wFCutNgdHfM" width="640"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;- Vinod Kotiya&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 11px; line-height: 11px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-3246059752723727120?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_T7GHtH8wHuxQ2eKJ8UBn5zKJSo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_T7GHtH8wHuxQ2eKJ8UBn5zKJSo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_T7GHtH8wHuxQ2eKJ8UBn5zKJSo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_T7GHtH8wHuxQ2eKJ8UBn5zKJSo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/TbMckuMjDjs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/3246059752723727120/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=3246059752723727120" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/3246059752723727120?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/3246059752723727120?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/TbMckuMjDjs/raid-de-himalaya-season-2.html" title="Raid De Himalaya season 2" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://img.youtube.com/vi/wFCutNgdHfM/default.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/raid-de-himalaya-season-2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4GQHg7eSp7ImA9WhdWGUw.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-2395106216349796994</id><published>2011-09-13T05:24:00.000-07:00</published><updated>2011-09-13T05:28:41.601-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-13T05:28:41.601-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><category scheme="http://www.blogger.com/atom/ns#" term="PHP" /><category scheme="http://www.blogger.com/atom/ns#" term="sort 2d array" /><category scheme="http://www.blogger.com/atom/ns#" term="pivot logic" /><title>PHP : Pivot Logic Make Columns from Row without crosstab query</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;PHP : Pivot Logic Make Columns from Row without crosstab query&lt;br /&gt;
I have Table like this&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/-7LrRzca1UE8/Tm9IlmzmELI/AAAAAAAAIcs/YQ1upoWo-a8/s1600/cap1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-7LrRzca1UE8/Tm9IlmzmELI/AAAAAAAAIcs/YQ1upoWo-a8/s400/cap1.png" width="392" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I Want to get data like this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/-aQ8V0-IHeb8/Tm9MZTSofPI/AAAAAAAAIc0/ilUyGCRaPwc/s1600/cap2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://4.bp.blogspot.com/-aQ8V0-IHeb8/Tm9MZTSofPI/AAAAAAAAIc0/ilUyGCRaPwc/s400/cap2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Here Is the code for doing this...&lt;br /&gt;
&lt;br /&gt;
1. Get Table in to Two Dimension Array&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = mysql_query($sql);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;if (mysql_num_rows($result)==0)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;echo 'no rows found ' . $sql;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$i=0;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;while ($rows = mysql_fetch_array($result))&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; //echo $rows[0]. $rows[1] .$rows[2].$rows[3]. "&amp;lt;br/&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; $row[] = $rows;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp;$i++;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//print_r($row);&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
2. Now apply the pivot logic in this 2 dimensional array to get desired columns:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//scope of local variables&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$j=0;//row of $view&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$k=0; //row of $row&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$lastrowprojectname;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$projectname;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;while ($k&amp;lt;$i)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$projectname = $row[$k]['project'] . ' U#'. $row[$k]['unit'];&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;if(strcmp($lastrowprojectname, $projectname) !=0)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp;$j++; // get new row in array if project changed&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$view[$j]['c1'] = $projectname;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$view[$j]['c2'] = $row[$k][capacity];&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$milestone = $row[$k]['milestone'];&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$a_date = $row[$k]['month'];&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//echo '[' . $a_date .$milestone . ']';&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//Pivot logic . Projects shall be missing if milestone case &amp;nbsp;dosent match&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; if (strcasecmp($milestone, "Full Load") == 0)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$view[$j]['c4'] = $a_date;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; if (strcasecmp($milestone, "COD") == 0)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$view[$j]['c3'] = $a_date;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (strcasecmp($milestone, "Sync. with Coal")== 0)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$view[$j]['c5'] = $a_date;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$lastrowprojectname = $projectname;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;$k++;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//echo $view[$j]['c1'] . $view[$j]['c2'] . $view[$j]['c4'] . "&amp;lt;br/&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
3. For my case i wanna fill something in empty fields:&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;// refill empty fields&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;for($i=0;$i&amp;lt;=$j;$i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//if(!isset($view[$i]['c3']))$view[$i]['c3']="na3"; //cod &amp;nbsp;na3&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;if(!isset($view[$i]['c4']))$view[$i]['c4']="na4"; //full load .. it will help to sort out projects not having any full load later during display and cap calculation&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//if(!isset($view[$i]['c5']))$view[$i]['c5']="na5"; //sync with coal&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//if sync with coal empty then copy full load in it.. uncomment with above line to use empty...&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;if(!isset($view[$i]['c5']))$view[$i]['c5']=$view[$i]['c4']; //sync with coal&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//echo $view[$i]['c1'] . $view[$i]['c1'] . $view[$i]['c4'] . "&amp;lt;br/&amp;gt;";&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
4. Now want to sort 2d array as per date&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//this function sorts the array according to full load column ie c4 dates&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;function cmp($a,$b) {&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;if ($a['c4'] == $b['c4']) return 0;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;return ($a['c4'] &amp;lt; $b['c4'])? -1 : 1;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;usort($view,'cmp');&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//$view = array_reverse($view); //to sort descending uncomment this&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;//print_r($view);&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
5. Go through For loop to get desired result.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;for($i=0;$i&amp;lt;$j;$i++)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&amp;nbsp; &amp;nbsp;$temp.= "&amp;lt;tr&amp;gt;&amp;lt;td/&amp;gt;". &amp;nbsp;$view[$i]['c1'] ."&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; " . &amp;nbsp; $view[$i]['c2']. "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; " . &amp;nbsp;cmdate($view[$i]['c5'])."&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; " . &amp;nbsp;cmdate($view[$i]['c4'])."&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; " . &amp;nbsp;cmdate($view[$i]['c3']). &amp;nbsp;"&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;- Vinod Kotiya&lt;/div&gt;&lt;div&gt;www.vinodkotiya.com&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-2395106216349796994?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sguGfoVA4EjYD-l37CBWPTX-zJk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sguGfoVA4EjYD-l37CBWPTX-zJk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sguGfoVA4EjYD-l37CBWPTX-zJk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sguGfoVA4EjYD-l37CBWPTX-zJk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/hWNtafFQ7ok" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/2395106216349796994/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=2395106216349796994" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/2395106216349796994?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/2395106216349796994?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/hWNtafFQ7ok/php-pivot-logic-make-columns-from-row.html" title="PHP : Pivot Logic Make Columns from Row without crosstab query" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-7LrRzca1UE8/Tm9IlmzmELI/AAAAAAAAIcs/YQ1upoWo-a8/s72-c/cap1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/php-pivot-logic-make-columns-from-row.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQNRXsyfyp7ImA9WhdWGE8.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-7724256012578109985</id><published>2011-09-12T04:53:00.000-07:00</published><updated>2011-09-12T04:53:14.597-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-12T04:53:14.597-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Crystal Reports" /><category scheme="http://www.blogger.com/atom/ns#" term="columns to rows" /><title>Crystal Report : Show data horizontally (Left to right) i.e. columns as rows</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Crystal Report : Show data horizontally (Left to right) i.e. columns as rows&lt;br /&gt;
If you wanna show records unconventionally as left to right by putting columns as rows.&lt;br /&gt;
eg.&lt;br /&gt;
Table&lt;br /&gt;
&lt;br /&gt;
fields &amp;gt; date cam1 cam2 cam3 cam4&lt;br /&gt;
data &amp;gt; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;89 &amp;nbsp; &amp;nbsp; 34 &amp;nbsp; &amp;nbsp; 23 &amp;nbsp; &amp;nbsp; 56&lt;br /&gt;
data&amp;gt; &amp;nbsp; &amp;nbsp; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp;53 &amp;nbsp; &amp;nbsp; &amp;nbsp;34 &amp;nbsp; &amp;nbsp; 43 &amp;nbsp; &amp;nbsp; 22&lt;br /&gt;
&lt;br /&gt;
Wanna show it like this&lt;br /&gt;
&lt;br /&gt;
date &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; 6&lt;br /&gt;
cam1 &amp;nbsp; 89 &amp;nbsp;53&lt;br /&gt;
cam2 &amp;nbsp; 34 &amp;nbsp; 34&lt;br /&gt;
cam3 &amp;nbsp; 23 &amp;nbsp; 43&lt;br /&gt;
cam4 &amp;nbsp; 56 &amp;nbsp;22&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
1 connect to your datasource&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="background-color: #fafafa; color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 16px;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;2) After successfull loading then when you run you may see the normal behaviour of&amp;nbsp;Report&amp;nbsp;which will print Vertically.&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;To print the details in Horizontal manner do the following,&lt;/strong&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a) Right click on top of "Section3 (Details)" on the report, select "Section Expert..."&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b) On "Section Expert" window (the "Details" section is already highlighted) untik all the checkboxes on "Common" tab&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; c) Tick the "Keep Together" checkbox and "Format with Multiple Columns",&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; once you tick the "Format with Multiple Columns", a new tab as "Layout" is displayed&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; d) Click on the "Layout" tab and set the "Width" for "Detail Size:" (in my case 0.500) and&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set the "Vertical" for "Gap Between Details:" (in my case 0.100)&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; e) select the "Accross then Down" radio button from "Printing Direction:" and click on the "OK" button....&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;f) you can delete fieleds from pageheader section.&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;b&gt;&lt;a href="http://1.bp.blogspot.com/-sOM5O-YbQdE/Tm3yc4lff5I/AAAAAAAAIco/rzYUOv_QFsA/s1600/pivot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="178" src="http://1.bp.blogspot.com/-sOM5O-YbQdE/Tm3yc4lff5I/AAAAAAAAIco/rzYUOv_QFsA/s640/pivot.png" width="640" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-7724256012578109985?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ee4-JauKvQ1s8izIv1GltwoMuiI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ee4-JauKvQ1s8izIv1GltwoMuiI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ee4-JauKvQ1s8izIv1GltwoMuiI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ee4-JauKvQ1s8izIv1GltwoMuiI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/thb4PFakz9c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/7724256012578109985/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=7724256012578109985" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/7724256012578109985?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/7724256012578109985?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/thb4PFakz9c/crystal-report-show-data-horizontally.html" title="Crystal Report : Show data horizontally (Left to right) i.e. columns as rows" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-sOM5O-YbQdE/Tm3yc4lff5I/AAAAAAAAIco/rzYUOv_QFsA/s72-c/pivot.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/09/crystal-report-show-data-horizontally.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUBQnw9fSp7ImA9WhdVEkk.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-3946326130524687049</id><published>2011-08-30T00:11:00.000-07:00</published><updated>2011-09-17T01:30:53.265-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-17T01:30:53.265-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ucertify prepkit" /><category scheme="http://www.blogger.com/atom/ns#" term="Product Review" /><title>Product Review : uCertify prepkit ASP.NET</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;So i tried the uCertify prepkit for web application development with framework 4.0 (M70-515-VB)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The gui is very cool... as shown in pics...&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;You can choose from variety of tests like diagnostic, Fixed time, adaptive test etc..These all are&amp;nbsp;descriptive multiple choice questions.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;It has small multiple choice quiz questions and flashcards where you have to type answers.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Anytime During the test you can make notes, a very nice feature.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The quality of the test is very good. The question belongs to the core of the subject. I have seen many other online test kits which do touch only the common things about the topic. But uCertify prepkit is very enrich in the content. Therefore if you score well in this prepkit then i am sure that you will succesfully clear the actual test. I am saying so because i do&amp;nbsp;amateur&amp;nbsp;programming in ASP.net and i took the test and got failed :). It's a best exam simulator i have ever seen and my criteria for saying so is:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1. Lovely GUI.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;2. Simplicity.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;3. Association of Notes/Article.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;4. Keep Track of your progress for&amp;nbsp;Comparison&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;5. It will feel like Real Test..&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The kit is not only about the test but it also update ur learning by giving descriptive solutions of questions, notes, articles and How To's. Even graphics and step by step guide is also used when required. These are very much&amp;nbsp;helpful, i would suggest u may try demo version from www.ucertify.com . Later u would get&amp;nbsp;benefited&amp;nbsp;by all the functionality after purchasing it. It's worthy by enhancing your knowledge base.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;You can judge your performance&amp;nbsp;regularly&amp;nbsp;by various reports.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Cons: &lt;/span&gt;I have not found the regular updates of same prepkit in 3-4 days trial. So would like to suggest that if it has some feature to get contribution from users then it would be good to update the prepkit frequently.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I would personally recommend following prepkit links for microsoft .NET framework aspirants:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://www.ucertify.com/download/mcts-web-application.html"&gt;http://www.ucertify.com/download/mcts-web-application.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://www.ucertify.com/download/mcts-windows-application.html"&gt;http://www.ucertify.com/download/mcts-windows-application.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.ucertify.com/download/mcts-sql-server.html"&gt;http://www.ucertify.com/download/mcts-sql-server.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.ucertify.com/download/mcts-microsoft-visual-studio-2008.html"&gt;http://www.ucertify.com/download/mcts-microsoft-visual-studio-2008.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Lets see a screenshot walkthrough of prepkit:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This is How the prepkit screen look like for individual tests (Click Images to enlarge)&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-olY7zetoMqI/TlyIxSjqYwI/AAAAAAAAIaM/b8kMhGUv4Fs/s1600/v0.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="571" src="http://3.bp.blogspot.com/-olY7zetoMqI/TlyIxSjqYwI/AAAAAAAAIaM/b8kMhGUv4Fs/s640/v0.png" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/-olY7zetoMqI/TlyIxSjqYwI/AAAAAAAAIaM/b8kMhGUv4Fs/s1600/v0.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;a href="http://3.bp.blogspot.com/-olY7zetoMqI/TlyIxSjqYwI/AAAAAAAAIaM/b8kMhGUv4Fs/s1600/v0.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xxpBPyLpaoM/TlyIx2jx_DI/AAAAAAAAIaQ/6m1483-mWWo/s1600/v1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/-xxpBPyLpaoM/TlyIx2jx_DI/AAAAAAAAIaQ/6m1483-mWWo/s1600/v1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/-xxpBPyLpaoM/TlyIx2jx_DI/AAAAAAAAIaQ/6m1483-mWWo/s1600/v1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="250" src="http://1.bp.blogspot.com/-xxpBPyLpaoM/TlyIx2jx_DI/AAAAAAAAIaQ/6m1483-mWWo/s400/v1.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;A Question from the asp.net topic&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Some question needs More than one answers&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;a href="http://2.bp.blogspot.com/-aozfs7atMlM/TlyIyrnGw4I/AAAAAAAAIaU/dn7Ip4RxtFo/s1600/v2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="250" src="http://2.bp.blogspot.com/-aozfs7atMlM/TlyIyrnGw4I/AAAAAAAAIaU/dn7Ip4RxtFo/s400/v2.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A Summary will be shown at end of test to crosscheck the answers&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;a href="http://4.bp.blogspot.com/-ChenUCLtfnI/TlyIzKWsyBI/AAAAAAAAIaY/hj7aWAlncUk/s1600/v3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="237" src="http://4.bp.blogspot.com/-ChenUCLtfnI/TlyIzKWsyBI/AAAAAAAAIaY/hj7aWAlncUk/s400/v3.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;At the end of test result shall be shown like this&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-HLW_ymo6zjw/TlyIzhjru2I/AAAAAAAAIac/AvLTWYitYv0/s1600/v4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="242" src="http://2.bp.blogspot.com/-HLW_ymo6zjw/TlyIzhjru2I/AAAAAAAAIac/AvLTWYitYv0/s400/v4.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;After the test you can check your answers with detail explaination. a very nice feature.&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-jclu5Aar3v0/TlyI0EHyTYI/AAAAAAAAIag/rlEh05LTB0I/s1600/v5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="237" src="http://2.bp.blogspot.com/-jclu5Aar3v0/TlyI0EHyTYI/AAAAAAAAIag/rlEh05LTB0I/s400/v5.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A simple quiz question&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-jwNAeGG67BI/TlyI0jWCswI/AAAAAAAAIak/Tr5zFWQNzKk/s1600/v6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="173" src="http://1.bp.blogspot.com/-jwNAeGG67BI/TlyI0jWCswI/AAAAAAAAIak/Tr5zFWQNzKk/s400/v6.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The knowledge base of prepkit&amp;nbsp;(Click Images to enlarge)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-BHLIKMkKXDc/TlyI1A0YjnI/AAAAAAAAIao/W5DJUac5FKg/s1600/v7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="241" src="http://1.bp.blogspot.com/-BHLIKMkKXDc/TlyI1A0YjnI/AAAAAAAAIao/W5DJUac5FKg/s400/v7.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Its an independent personal product review. Happy Learning :)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;- Vinod Kotiya&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://www.vinodkotiya.com/"&gt;www.vinodkotiya.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-3946326130524687049?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/piE1CUEU_wlhgXSvXmR-cEbzhoA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/piE1CUEU_wlhgXSvXmR-cEbzhoA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/piE1CUEU_wlhgXSvXmR-cEbzhoA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/piE1CUEU_wlhgXSvXmR-cEbzhoA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/DJQ4reP77cE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/3946326130524687049/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=3946326130524687049" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/3946326130524687049?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/3946326130524687049?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/DJQ4reP77cE/product-review-ucertify-prepkit-aspnet.html" title="Product Review : uCertify prepkit ASP.NET" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-olY7zetoMqI/TlyIxSjqYwI/AAAAAAAAIaM/b8kMhGUv4Fs/s72-c/v0.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/08/product-review-ucertify-prepkit-aspnet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYMQ3cycSp7ImA9WhdQFkk.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-2744634339595109426</id><published>2011-08-17T22:43:00.000-07:00</published><updated>2011-08-17T22:43:02.999-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-17T22:43:02.999-07:00</app:edited><title>VB.NET Application Crystal Report to PDF converter with ftp uploader</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_3qjlkw="182"&gt;&amp;nbsp;&lt;span style="color: blue; font-size: large;"&gt;&lt;strong&gt;Crystal Report to PDF converter with ftp uploader&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;span style="color: black; font-size: x-small;"&gt;This Application converts crystal report with mysql database in to pdf and upload pdf to ftp server running on linux.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;span closure_uid_3qjlkw="218" style="font-size: x-small;"&gt;1. Create the ODBC connection for mysql from control panel&amp;gt;admin tools&amp;gt; odbc manager. detail &lt;a href="http://vinodkotiya.blogspot.com/2011/08/vbnet-with-crystal-report-and-mysql.html"&gt;http://vinodkotiya.blogspot.com/2011/08/vbnet-with-crystal-report-and-mysql.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;span style="font-size: x-small;"&gt;2. in all of crystal report u should have the above connection in rpt files while creating them in crystal designer.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;span style="font-size: x-small;"&gt;3. put all rpt files in some report folder. Do not have any direct reference to these rpt file in ur vb.net application. The application will scan the report folder and convert all rpt file in to pdf file and put them in pdf folder while uploading via ftp. It will also make a log.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;span style="font-size: x-small;"&gt;4. open a new web application and use following code.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_3qjlkw="182"&gt;&lt;span style="color: blue;"&gt;Imports CrystalDecisions.CrystalReports.Engine&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3qjlkw="216"&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Imports CrystalDecisions.Shared&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Imports System.IO&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Imports System.Net&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Public Class Form1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'CRtoPDF("mou_summary")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'FtpUploadFileToServer("191.254.1.42", Application.StartupPath &amp;amp; "\" &amp;amp; "mou_summary" &amp;amp; ".pdf", "/home/admin", , "admin", "admin&amp;amp;123", , True)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'CRtoPDF("WebMilesIssues")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'FtpUploadFileToServer("191.254.1.42", Application.StartupPath &amp;amp; "\" &amp;amp; "WebMilesIssues" &amp;amp; ".pdf", "/home/admin", , "admin", "admin&amp;amp;123", , True)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'makeLog()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Me.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;startjob()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;makeLog()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Me.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Private Function startjob() As Boolean&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Dim cr As New ReportDocument&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim cr As ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim di As New IO.DirectoryInfo(Application.StartupPath &amp;amp; "\reports")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim aryFi As IO.FileInfo() = di.GetFiles("*.rpt")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim fi As IO.FileInfo&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;For Each fi In aryFi&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'' lblStatus.Text = lblStatus.Text &amp;amp; fi.Name &amp;amp; vbCrLf&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; " &amp;lt;-Converting " &amp;amp; fi.FullName&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Console.WriteLine("File Size (KB): {0}", strFileSize)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Console.WriteLine("File Extension: {0}", fi.Extension)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Console.WriteLine("Last Accessed: {0}", fi.LastAccessTime)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Console.WriteLine("Read Only: {0}", (fi.Attributes.ReadOnly = True).ToString)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim thefile As String = fi.FullName ''Application.StartupPath &amp;amp; "\reports\CrystalReport2.rpt"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;cr.Load(thefile)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'CrystalReportViewer1.ReportSource = cr&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'CrystalReportViewer1.Refresh()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;''code for export&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim x_opt As ExportOptions = cr.ExportOptions&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;x_opt.ExportFormatType = ExportFormatType.PortableDocFormat&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;x_opt.ExportDestinationType = ExportDestinationType.DiskFile&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;x_opt.DestinationOptions = New DiskFileDestinationOptions()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim hdd_opt As New DiskFileDestinationOptions()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;CType(cr.ExportOptions.DestinationOptions, DiskFileDestinationOptions).DiskFileName = (Application.StartupPath &amp;amp; "\pdf\" &amp;amp; Strings.Left(fi.Name, Len(fi.Name) - 4) &amp;amp; ".pdf")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;cr.Export()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; " Created " &amp;amp; Strings.Left(fi.Name, Len(fi.Name) - 4) &amp;amp; ".pdf "&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'start upload&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span closure_uid_3qjlkw="217" style="color: blue;"&gt;FtpUploadFileToServer("191.254.1.42", Application.StartupPath &amp;amp; "\pdf\" &amp;amp; Strings.Left(fi.Name, Len(fi.Name) - 4) &amp;amp; ".pdf", "/home/admin", , "admin", "pwd", , True)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Catch e As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; " Error: " &amp;amp; e.Message &amp;amp; " for " &amp;amp; Strings.Left(fi.Name, Len(fi.Name) - 4) &amp;amp; ".pdf -&amp;gt;"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Next&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End Function&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Private Function FtpUploadFileToServer(ByVal pServer As String, _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;ByVal pUploadPathAndFileName As String, _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Optional ByVal pTargetPath As String = "", _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Optional ByVal pTargetFileName As String = "", _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Optional ByVal pUserName As String = "", _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Optional ByVal pPassword As String = "", _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Optional ByVal pPort As Integer = 21, _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Optional ByVal pUsePassive As Boolean = False) As Boolean&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim objUploadStream As FileStream = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim objRequest As FtpWebRequest = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim objResponse As FtpWebResponse = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim objRequestStream As Stream = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; " initiating upload " &amp;amp; pUploadPathAndFileName&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objUploadStream = File.OpenRead(pUploadPathAndFileName)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim bytBuffer(CType(objUploadStream.Length, Integer)) As Byte&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objUploadStream.Read(bytBuffer, 0, bytBuffer.Length)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If pTargetFileName.Length = 0 Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;pTargetFileName = IO.Path.GetFileName(objUploadStream.Name)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim strUrl As String = String.Format("ftp://{0}:{1}/{2}/{3}", _&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;pServer, pPort, pTargetPath, pTargetFileName)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest = CType(FtpWebRequest.Create(strUrl), FtpWebRequest)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If pUserName.Length &amp;gt; 0 And pPassword.Length &amp;gt; 0 Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest.Credentials = New NetworkCredential(pUserName, pPassword)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest.Method = WebRequestMethods.Ftp.UploadFile&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest.Proxy = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest.KeepAlive = False&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest.UsePassive = pUsePassive&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequestStream = objRequest.GetRequestStream()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequestStream.Write(bytBuffer, 0, bytBuffer.Length)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequestStream.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objResponse = CType(objRequest.GetResponse, FtpWebResponse)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'MsgBox(objResponse.StatusDescription)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; " - " &amp;amp; objResponse.StatusDescription &amp;amp; " at " &amp;amp; Now.TimeOfDay.ToString &amp;amp; " -&amp;gt;"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Catch ex As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'MsgBox(ex.Message)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; ex.Message &amp;amp; "-&amp;gt;"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Finally&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If Not objRequestStream Is Nothing Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequestStream.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If Not objUploadStream Is Nothing Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objUploadStream.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objUploadStream.Dispose()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If Not objRequest Is Nothing Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;objRequest = Nothing&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Catch ex As Exception&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'MsgBox(ex.Message)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;lblStatus.Text = lblStatus.Text &amp;amp; vbCrLf &amp;amp; ex.Message&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End Try&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End Function&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Private Function makeLog() As Boolean&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim path As String = "log.txt"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim sw As StreamWriter&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' This text is added only once to the file.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If File.Exists(path) = False Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' Create a file to write to.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw = File.CreateText(path)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Flush()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' This text is always added, making the file longer over time&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' if it is not deleted.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw = File.AppendText(path)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.WriteLine("&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.WriteLine(lblStatus.Text)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.WriteLine("&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Flush()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'' Open the file to read from.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Dim sr As StreamReader = File.OpenText(path)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Dim s As String&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Do While sr.Peek() &amp;gt;= 0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' s = sr.ReadLine()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' Console.WriteLine(s)&lt;/span&gt;&lt;br /&gt;
&lt;div closure_uid_3qjlkw="219"&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style="color: blue;"&gt;'Loop&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'sr.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div closure_uid_3qjlkw="214"&gt;&lt;span style="color: blue;"&gt;End Function&lt;/span&gt; &lt;/div&gt;&lt;div closure_uid_3qjlkw="214"&gt;&amp;nbsp; &lt;/div&gt;&lt;div closure_uid_3qjlkw="214"&gt;&lt;span style="color: black;"&gt;- Vinod Kotiya&lt;/span&gt; &lt;/div&gt;&lt;div closure_uid_3qjlkw="214"&gt;&lt;a href="http://www.vinodkotiya.com/"&gt;&lt;span style="color: black;"&gt;www.vinodkotiya.com&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;&lt;div closure_uid_3qjlkw="214"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-2744634339595109426?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/L6Yv0e8i2r6p7S11VPEIw8L4txs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/L6Yv0e8i2r6p7S11VPEIw8L4txs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/L6Yv0e8i2r6p7S11VPEIw8L4txs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/L6Yv0e8i2r6p7S11VPEIw8L4txs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/l_HoD3HpIAg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/2744634339595109426/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=2744634339595109426" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/2744634339595109426?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/2744634339595109426?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/l_HoD3HpIAg/vbnet-application-crystal-report-to-pdf.html" title="VB.NET Application Crystal Report to PDF converter with ftp uploader" /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/08/vbnet-application-crystal-report-to-pdf.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IERXg4fip7ImA9WhdQFkk.&quot;"><id>tag:blogger.com,1999:blog-19327040.post-3410449285053449272</id><published>2011-08-17T22:31:00.000-07:00</published><updated>2011-08-17T22:31:44.636-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-17T22:31:44.636-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VB.net" /><category scheme="http://www.blogger.com/atom/ns#" term="append text to file" /><title>vb.net Appending a text file to create log..</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_s3nixj="184"&gt;Here is the procedure to Appending a text file to create log in vb.net &lt;/div&gt;&lt;div closure_uid_s3nixj="184"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div closure_uid_s3nixj="184"&gt;&lt;span style="color: blue;"&gt;Private Function makeLog() As Boolean&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_s3nixj="198"&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim path As String = "log.txt"&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;Dim sw As StreamWriter&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' This text is added only once to the file.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;If File.Exists(path) = False Then&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' Create a file to write to.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw = File.CreateText(path)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Flush()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;End If&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' This text is always added, making the file longer over time&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' if it is not deleted.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw = File.AppendText(path)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.WriteLine("&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.WriteLine(lblStatus.Text)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.WriteLine("&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;")&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Flush()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;sw.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'' Open the file to read from.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Dim sr As StreamReader = File.OpenText(path)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Dim s As String&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Do While sr.Peek() &amp;gt;= 0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' s = sr.ReadLine()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;' Console.WriteLine(s)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'Loop&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;'sr.Close()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div closure_uid_s3nixj="186"&gt;&lt;span style="color: blue;"&gt;End Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19327040-3410449285053449272?l=vinodkotiya.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yQgQrc1ewj8IxMgxgCYMkQgAS_4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yQgQrc1ewj8IxMgxgCYMkQgAS_4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yQgQrc1ewj8IxMgxgCYMkQgAS_4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yQgQrc1ewj8IxMgxgCYMkQgAS_4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/VinodKotiya/~4/mA2NJhPEOAU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://vinodkotiya.blogspot.com/feeds/3410449285053449272/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=19327040&amp;postID=3410449285053449272" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/3410449285053449272?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/19327040/posts/default/3410449285053449272?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/VinodKotiya/~3/mA2NJhPEOAU/vbnet-appending-text-file-to-create-log.html" title="vb.net Appending a text file to create log.." /><author><name>THE ONE</name><uri>http://www.blogger.com/profile/14752199566025586347</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://3.bp.blogspot.com/_1_8fR6erLl0/SmQSWmTuuLI/AAAAAAAAH5I/N62I-M746JY/S220/vinod.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://vinodkotiya.blogspot.com/2011/08/vbnet-appending-text-file-to-create-log.html</feedburner:origLink></entry></feed>

