<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7865258452562866241</id><updated>2012-02-16T11:04:07.317-08:00</updated><category term='JQuery'/><category term='Knowledge'/><category term='Guruji'/><category term='SQL'/><category term='MSP'/><category term='Sharepoint'/><category term='ASP.NET'/><title type='text'>Parth Rawal</title><subtitle type='html'>Blog for Life &amp;amp; Technology...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-6881957308005194645</id><published>2011-05-05T23:36:00.000-07:00</published><updated>2011-05-05T23:37:32.704-07:00</updated><title type='text'>How to Roll-up the cost at the summary task level</title><content type='html'>Sub Test()&lt;br /&gt;Dim cst1 As Integer&lt;br /&gt;Dim cst As Integer&lt;br /&gt;Dim t, t1 As Task&lt;br /&gt;Dim OutlineLevel As Integer&lt;br /&gt;cst1 = 0&lt;br /&gt;OutlineLevel = 1&lt;br /&gt;&lt;br /&gt;    While OutlineLevel &lt; 15&lt;br /&gt;        For Each t In ActiveProject.Tasks&lt;br /&gt;            If Not (t Is Nothing) Then&lt;br /&gt;                If (t.OutlineLevel = OutlineLevel And t.Summary = True) Then&lt;br /&gt;                    For Each t1 In t.OutlineChildren&lt;br /&gt;                         cst = t1.Cost1&lt;br /&gt;                         cst1 = cst + cst1&lt;br /&gt;                    Next t1&lt;br /&gt;                    t.Cost1 = cst1&lt;br /&gt;                    cst1 = 0&lt;br /&gt;                End If&lt;br /&gt;            End If&lt;br /&gt;        Next t&lt;br /&gt;        OutlineLevel = OutlineLevel + 1&lt;br /&gt;    Wend&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-6881957308005194645?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/6881957308005194645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=6881957308005194645&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6881957308005194645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6881957308005194645'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2011/05/how-to-roll-up-cost-at-summary-task.html' title='How to Roll-up the cost at the summary task level'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-8945225763809282997</id><published>2010-10-11T06:17:00.000-07:00</published><updated>2010-10-11T06:48:54.001-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><title type='text'>Apply Validation using Javascript in Sharepoint</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;br /&gt;1. Add the CEWP on the EditForm or Newform.aspx&lt;br /&gt;2. Paste Below script in that and change the types and respective Control names&lt;br /&gt;3. To pass correct parameter in the "TagName" function follow&lt;br /&gt;TAGNAME: HTML element that is being rendered ("SELECT", "INPUT"...)&lt;br /&gt;IDENTIFIER: SharePoint field type identifier ("TextField", "DropDownChoice"...)&lt;br /&gt;FIELD NAME: Display name of the field (e.g. "Status", "Customer Name"...)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;function PreSaveAction() &lt;br /&gt;{ &lt;br /&gt;  var Email = TagName("INPUT","TextField","Customer Email Id");&lt;br /&gt;   var result=checkEmail(Email.value); &lt;br /&gt; if(result== "0") &lt;br /&gt;    { &lt;br /&gt;        alert("Please enter proper Email address"); &lt;br /&gt;        return false; // Cancel the item save process &lt;br /&gt;    } &lt;br /&gt;   return true;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;function TagName(tagName, identifier, title) {&lt;br /&gt;var len = identifier.length;&lt;br /&gt;var tags = document.getElementsByTagName(tagName);&lt;br /&gt;for (var i=0; i &lt; tags.length; i++) {&lt;br /&gt;var tempString = tags[i].id;&lt;br /&gt;if (tags[i].title == title &amp;&amp; (identifier == "" || tempString.indexOf(identifier) == tempString.length - len)) {&lt;br /&gt;return tags[i];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return null;&lt;br /&gt;}&lt;br /&gt;function checkEmail(inputvalue){ &lt;br /&gt;    var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;&lt;br /&gt;    if(pattern.test(inputvalue)){         &lt;br /&gt;  return 1;   &lt;br /&gt;    }else{   &lt;br /&gt;         return 0; &lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-8945225763809282997?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/8945225763809282997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=8945225763809282997&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/8945225763809282997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/8945225763809282997'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2010/10/apply-validation-using-javascript-in.html' title='Apply Validation using Javascript in Sharepoint'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-6325594353533502648</id><published>2010-10-10T09:08:00.001-07:00</published><updated>2010-10-11T06:54:41.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSP'/><title type='text'>Create Full WBS Structure in MSP 2007</title><content type='html'>&lt;span xmlns=""&gt; &lt;p&gt;Recently got a requirement to create the Full WBS structure with the Task Names in the MSP 2007.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Following is the Macro to achieve the same:&lt;/p&gt;&lt;p&gt;&lt;code&gt;Sub Test()&lt;br /&gt;Dim str As String&lt;br /&gt;Dim t As Task&lt;br /&gt;Dim OutlineLevel As Integer&lt;br /&gt;OutlineLevel = 1&lt;br /&gt;While OutlineLevel &amp;lt; 15&lt;br /&gt;For Each t In ActiveProject.Tasks&lt;br /&gt;If Not (t Is Nothing) Then&lt;br /&gt;If t.OutlineLevel = OutlineLevel Then&lt;br /&gt;t.Text10 = t.OutlineParent.Text10 &amp;amp; "." &amp;amp; t.Name&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;Next t&lt;br /&gt;OutlineLevel = OutlineLevel + 1&lt;br /&gt;Wend&lt;br /&gt;End Sub&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;/code&gt;And we are done, It has helped when i was suppose to give data back to my client where they needed the Full path so they can map it with their actual data.&lt;br /&gt;Hope this will help someone.. &lt;span style="font-family:Wingdings;"&gt;J&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-6325594353533502648?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/6325594353533502648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=6325594353533502648&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6325594353533502648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6325594353533502648'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2010/10/create-full-wbs-structure-in-msp-2007.html' title='Create Full WBS Structure in MSP 2007'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-1865206270365726205</id><published>2010-10-07T11:55:00.000-07:00</published><updated>2010-10-07T11:59:51.236-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guruji'/><title type='text'>And Navratri is starting...</title><content type='html'>&lt;p&gt;Cant wait to see guruji @ Ashram....&lt;/p&gt;&lt;p&gt;&lt;object style="BACKGROUND-IMAGE: url(http://i3.ytimg.com/vi/rEh2IUGFRZ8/hqdefault.jpg)" width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/rEh2IUGFRZ8?fs=1&amp;amp;hl=en_US"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/rEh2IUGFRZ8?fs=1&amp;amp;hl=en_US" width="425" height="344" allowscriptaccess="never" allowfullscreen="true" wmode="transparent" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-1865206270365726205?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/1865206270365726205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=1865206270365726205&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/1865206270365726205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/1865206270365726205'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2010/10/navratri.html' title='And Navratri is starting...'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-6314421483745307424</id><published>2010-10-07T08:54:00.001-07:00</published><updated>2010-10-11T06:49:04.594-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><title type='text'>Reading List Items using JQuery</title><content type='html'>&lt;span xmlns=""&gt;&lt;span style="font-family:Georgia;"&gt;Recently got an Requirement where i was suppose to send a request to customer to fill the Questionnaire for the feedback...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span xmlns=""&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span xmlns=""&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;Below form will be initiated by the Project Manager to have the customer feedback.&lt;br /&gt;&lt;/span&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/TK30QNsbBVI/AAAAAAAAAQI/v6J68VMBZ0w/s1600/1.png"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 322px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5525340877244532050" border="0" alt="" src="http://3.bp.blogspot.com/_MlnhK1o21nU/TK30QNsbBVI/AAAAAAAAAQI/v6J68VMBZ0w/s400/1.png" /&gt;&lt;/a&gt; &lt;span style="font-family:Georgia;"&gt;Mail will reach to the Client with the hyper link of the List's Edit item, &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;An Item will be added to the Customer Feedback form and also &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;Mail will be Shoot the client &lt;/span&gt;&lt;br /&gt;&lt;span style="TEXT-DECORATION: underline;font-family:Georgia;" &gt;&lt;strong&gt;&lt;em&gt;Then Client will see the below shown form &lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_MlnhK1o21nU/TK34B1PZYHI/AAAAAAAAAQY/4W4QE7aZJk0/s1600/2.png"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 263px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5525345028208681074" border="0" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/TK34B1PZYHI/AAAAAAAAAQY/4W4QE7aZJk0/s400/2.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;And He will fill the Questionnaire and later on the CFB Score will get sync to the Project Server. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;So how can we achieve such scenario, here we go open the list's EditForm.aspx and place the content editor webpart and place them above the form control.&lt;/li&gt;&lt;li&gt;And here we Go &gt;&gt;&lt;br /&gt;First Give the reference to the JQuery Folder as usual..&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;script language="javascript" type="text/javascript" src="/_layouts/jquery/jquery-1.3.2.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;font-size:12;color:#0070c0;"&gt;&lt;strong&gt;To Fetch the ID's Value from the Query String....&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;function queryString(parameter) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;var loc = location.search.substring(1, location.search.length);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;var param_value = false; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;var params = loc.split("&amp;amp;");&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;for (i=0; i&amp;lt;params.length;i++) {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;param_name = params[i].substring(0,params[i].indexOf('='));&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;if (param_name == parameter) {&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;param_value = params[i].substring(params[i].indexOf('=')+1)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;if (param_value) { &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;return param_value; &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;else { &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;return false; //Here determine return if no parameter is found &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;var param=queryString('ID');&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;font-size:12;color:#0070c0;"&gt;&lt;strong&gt;This will Fetch the data from Web Services&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Now based on the Id fetched from the query string we have to traverse through the data which we have got using webservices used in below code&lt;br /&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;script language="javascript"&amp;gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;$(document).ready(function(){&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;var soapEnv_CFF =&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;"&amp;lt;soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;soapenv:Body&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;listName&amp;gt;Customer Feedback Form&amp;lt;/listName&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;viewFields&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;ViewFields&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;FieldRef Name='Id' /&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;FieldRef Name='Title' /&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/ViewFields&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/viewFields&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/GetListItems&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/soapenv:Body&amp;gt; \&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/soapenv:Envelope&amp;gt;";&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;$.ajax({&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;url: "../../_vti_bin/lists.asmx",&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;type: "POST",&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;dataType: "xml",&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;data: soapEnv_CFF,&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;complete: processResult_CFF,&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;contentType: "text/xml; charset=\"utf-8\""&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;});&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}); &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;This Function will fetch data which we require to populate based on the IDs and append their values in the variable which we are going to use in the html representation &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family:Georgia;"&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;function processResult_CFF(xData, status) &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;$(xData.responseXML).find("z\\:row").each(function() &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;if($(this).attr("ows_ID")==param) &lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;param=$(this).attr("ows_Title");&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;var liHtml = "&amp;lt;td&amp;gt;Sow No./Workorder No :&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + $(this).attr("ows_ID") + "&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;" ;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;$("#tasksUL").append(liHtml);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;});&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/script&amp;gt; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;This is the HTML tags where we can use the appended html content&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;table style="background-color:Silver" border="0" cellspacing="2" cellpadding="1" width="100%"&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;tr style="background-color:#d6ebff" id="tasksUL"&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So without using the sharepoint designer we can actually show the data from other list using jQuery and content editor webpart. really easy, isnt it..!!? :)&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-6314421483745307424?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/6314421483745307424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=6314421483745307424&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6314421483745307424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6314421483745307424'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2010/10/reading-list-items-using-jquery.html' title='Reading List Items using JQuery'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MlnhK1o21nU/TK30QNsbBVI/AAAAAAAAAQI/v6J68VMBZ0w/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-8835477398445172627</id><published>2010-10-06T10:35:00.001-07:00</published><updated>2010-10-11T06:49:04.594-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><title type='text'>Hide SharePoint List Items from New Form or Edit Form without SP Designer</title><content type='html'>&lt;span xmlns=""&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Georgia;"&gt;So, what if you want to hide fields from the SharePoint list without tempering the list in SP Designer. Here is the Script.... &lt;/span&gt;&lt;span style="font-family:Wingdings;"&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;Open the NewForm.aspx or EditForm.aspx&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;"&amp;amp;PageView=Shared&amp;amp;ToolPaneView=2" Add this text in the url and you can open the page in edit mode&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;Add the CEWP and Click on the source Editor&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;And put the below script in it...&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;&lt;br /&gt;_spBodyOnLoadFunctionNames.push("hideFields");&lt;br /&gt;function findacontrol(FieldName)&lt;br /&gt;{&lt;br /&gt;var arr = document.getElementsByTagName("!");&lt;br /&gt;// get all comments&lt;br /&gt;for (var i=0;i &amp;lt; arr.length; i++ )&lt;br /&gt;{&lt;br /&gt;// now match the field name&lt;br /&gt;if (arr[i].innerHTML.indexOf(FieldName) &amp;gt; 0)&lt;br /&gt;{ return arr[i]; }&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;function hideFields()&lt;br /&gt;{&lt;br /&gt;var control = findacontrol("CustomerID");&lt;br /&gt;control.parentNode.parentNode.style.display="none";&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;See, the script is pretty simple, you can push your own Function on the page load and then it will call &lt;em&gt;hideFields() &lt;/em&gt;Function which will find out the Control name from the page's HTML and set that display to "none", its done.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-8835477398445172627?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/8835477398445172627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=8835477398445172627&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/8835477398445172627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/8835477398445172627'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2010/10/hide-sharepoint-list-items-from-new.html' title='Hide SharePoint List Items from New Form or Edit Form without SP Designer'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-7069951029677213802</id><published>2010-10-06T09:06:00.001-07:00</published><updated>2010-10-11T06:52:17.749-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JQuery'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><title type='text'>Add list Items using JQuery</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;Recently i got an requirement where i was suppose to add list items using JavaScript as we did not have access to the server side code, and we were not able to write code on the server.&lt;br /&gt;So Here we go...&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Georgia;"&gt;Add JQuery to your Layouts Folder and give reference to the CEWP&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;color:#1f497d;"&gt;&lt;strong&gt;&amp;lt;script type="text/javascript" src="/_layouts/jquery/jquery-1.3.2.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;Add the Script which will initialize the Web Service and Create the XML&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;$(document).ready(function() {&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;$("#newTaskButton").click(function() {&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;CreateNewItem($("#newTaskTitle").val());&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;});&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;});&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br /&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;function CreateNewItem(title) {&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;// The CAML to create a new item and set the Title field.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;var batch ="&amp;lt;Batch OnError=\"Continue\"&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;Method ID=\"1\" Cmd=\"New\"&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;Field Name=\"Title\"&amp;gt;" + title + "&amp;lt;/Field&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;/Method&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;/Batch&amp;gt;";&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;// The SOAP Envelope&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;var soapEnv =&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;"&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;soap:Body&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;UpdateListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;listName&amp;gt;Tasks&amp;lt;/listName&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;updates&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;" + batch + "&amp;lt;/updates&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;/UpdateListItems&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;/soap:Body&amp;gt; \&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;/soap:Envelope&amp;gt;";&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;// Build the URL of the Lists.asmx web service.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;// This is done by stripping the last two parts (/doclib/page) of the URL.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;var hrefParts = window.location.href.split('/');&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;var wsURL = "";&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;for (i = 0; i &amp;lt; (hrefParts.length - 2); i++) {&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;if (i &amp;gt; 0)&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;wsURL += "/";&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;wsURL += hrefParts[i];&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;}&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;wsURL += "/Pilot/_vti_bin/lists.asmx";&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;// Make the call by posting the SOAP Envelope.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;$.ajax({&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;url: wsURL,&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;beforeSend: function(xhr) {&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;xhr.setRequestHeader("SOAPAction",&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems");&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;},&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;type: "POST",&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;dataType: "xml",&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;data: soapEnv,&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;complete: processResult,&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;contentType: "text/xml; charset=utf-8"&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;});&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;}&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;function processResult(xData, status) {&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;// Process the result.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;$("#responseStatus").text(status);&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;$("#responseXML").text(xData.responseXML.xml);&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;}&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;Create an HTML Control&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;input id="newTaskTitle" type="text" /&amp;gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;input id="newTaskButton" type="button" value="Create Task" /&amp;gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;h5&amp;gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;Response:&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;label id="responseStatus" visibility="false"&amp;gt;N/A &amp;lt;/label&amp;gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;&lt;strong&gt;&amp;lt;/h5&amp;gt; &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style="font-family:Georgia;font-size:85%;"&gt;Now All put together and you are done.....!!!!&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-7069951029677213802?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/7069951029677213802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=7069951029677213802&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/7069951029677213802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/7069951029677213802'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2010/10/recently-i-got-requirement-where-i-was.html' title='Add list Items using JQuery'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-509618800939512917</id><published>2009-07-24T03:17:00.001-07:00</published><updated>2009-07-24T04:40:10.900-07:00</updated><title type='text'>Project server data on MAP</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;The project server data can be come here on the map using Bing services of the Windows live map.&lt;br /&gt;&lt;/p&gt;&lt;p/&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-509618800939512917?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/509618800939512917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=509618800939512917&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/509618800939512917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/509618800939512917'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2009/07/project-server-data-on-map.html' title='Project server data on MAP'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-2780224278220682519</id><published>2009-06-24T22:24:00.000-07:00</published><updated>2009-06-25T00:16:28.563-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Add Rows dynamically to Gridview</title><content type='html'>First of all how is the Result will look a like :&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_MlnhK1o21nU/SkMQnY4zhBI/AAAAAAAAAIU/9_nss2SmhoY/s1600-h/image002.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5351139051127931922" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 86px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_MlnhK1o21nU/SkMQnY4zhBI/AAAAAAAAAIU/9_nss2SmhoY/s400/image002.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Ok, let's start with the page Design:&lt;/div&gt;&lt;div&gt;Drop a Grid and in the design page &amp;amp; then put the control inside the Template Fields Column.&lt;/div&gt;&lt;div&gt;Like&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;&lt;p&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;GridView&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="grvForm"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;AutoGenerateColumns&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="False"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ShowFooter&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="True"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;runat&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="server"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;CellPadding&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="4"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#333333"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;GridLines&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="None"&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;RowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#F7F6F3"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#333333"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;Columns&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;BoundField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;DataField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="RowNumber"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;HeaderText&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Row Number"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;HeaderText&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Product"&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;DropDownList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="drp"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;runat&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="server"&amp;gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ListItem&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Text&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Value&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="1"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ListItem&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ListItem&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Text&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="2"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Value&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="2"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ListItem&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;DropDownList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;HeaderText&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Qty"&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="txtQty"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;runat&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="server"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;HeaderText&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Amount"&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="txtAmount"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;runat&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="server"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;ItemTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;FooterText&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Add Row"&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;FooterTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;Button&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="btnAddRow"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;runat&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="server"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Text&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Add Row"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;onclick&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="btnAddRow_Click"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;FooterTemplate&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;TemplateField&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;Columns&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/p&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;FooterStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#5D7B9D"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Font-Bold&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="True"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="White"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;PagerStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#284775"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="White"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;HorizontalAlign&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="Center"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;SelectedRowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#E2DED6"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Font-Bold&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="True"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#333333"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;HeaderStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#5D7B9D"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;Font-Bold&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="True"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="White"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;EditRowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#999999"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;AlternatingRowStyle&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;BackColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="White"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:85%;color:#ff0000;"&gt;ForeColor&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;="#284775"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;/&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;asp&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;GridView&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&amp;gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;then on the page Load we have to bind the Grid and that Grid should show 1 Blank Row as shown below:&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5351138971953461954" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 64px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SkMQix8I-sI/AAAAAAAAAIM/ia9P2yx-HOE/s400/image001.png" border="0" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;After that we will write code for the AddRow Button..&lt;/p&gt;&lt;p&gt;Now in the Page_Load Event Write following code.&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;br /&gt;&lt;p&gt;DataTable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; dt = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataTable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;();&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataRow&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; dr = dr = dt.NewRow();&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dt.Columns.Add(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"RowNumber"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;, &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)));&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dt.Columns.Add(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;, &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)));&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dt.Columns.Add(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column2"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;, &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)));&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dt.Columns.Add(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column3"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;, &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;(&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)));&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dr = dt.NewRow();&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dr[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"RowNumber"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = 1;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dr[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.Empty;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dr[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column2"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.Empty;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dr[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column3"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.Empty;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;dt.Rows.Add(dr);&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;&lt;span style="font-size:85%;color:#008000;"&gt;//Store the DataTable in ViewState&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;ViewState[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"CurrentTable"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = dt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;grvForm.DataSource = dt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;grvForm.DataBind();&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Verdana;color:#3366ff;"&gt;&lt;span style="color:#000000;"&gt;after that we need to write code for the AddRow Function, and also we have to store the previous data(which has been put by the user) in the ViewState or session.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;"&gt;Now, code for that is as shown below:&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;&lt;p&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; AddNewRowToGrid()&lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; rowIndex = 0;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (ViewState[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"CurrentTable"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] != &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;) &lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataTable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; dtCurrentTable = (&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataTable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)ViewState[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"CurrentTable"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;];&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataRow&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; drCurrentRow = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (dtCurrentTable.Rows.Count &amp;gt; 0) &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;{&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; i = 1; i &amp;lt;= dtCurrentTable.Rows.Count; i++)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;&lt;span style="font-size:85%;color:#008000;"&gt;////extract the TextBox values&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DropDownList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; drp = (&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DropDownList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)grvForm.Rows[rowIndex].Cells[1].FindControl(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"drp"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;);&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; txtQty = (&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)grvForm.Rows[rowIndex].Cells[2].FindControl(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"txtQty"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;);&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; txtAmount = (&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)grvForm.Rows[rowIndex].Cells[3].FindControl(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"txtAmount"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;);&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;drCurrentRow = dtCurrentTable.NewRow();&lt;/p&gt;&lt;br /&gt;&lt;p&gt;drCurrentRow[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"RowNumber"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = i + 1; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;drCurrentRow[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = drp.SelectedItem.Text;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;drCurrentRow[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column2"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = txtQty.Text;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;drCurrentRow[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column3"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = txtAmount.Text;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;rowIndex++;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;} &lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;dtCurrentTable.Rows.Add(drCurrentRow);&lt;/p&gt;&lt;br /&gt;&lt;p&gt;ViewState[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"CurrentTable"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] = dtCurrentTable;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;grvForm.DataSource = dtCurrentTable;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;grvForm.DataBind();&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;else&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;{ &lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;Response.Write(&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"ViewState is null"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;); &lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;} &lt;/p&gt;&lt;br /&gt;&lt;blockquote style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;br /&gt;&lt;p&gt;PreviousGridData();&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;"&gt;&lt;p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Now we will write the code for the &lt;strong&gt;PreviousGridData();&lt;/strong&gt; the code for this function is as shown below:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; PreviousGridData()&lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; rowIndex = 0;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (ViewState[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"CurrentTable"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;] != &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataTable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; dt = (&lt;/span&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;&lt;span style="font-size:85%;color:#2b91af;"&gt;DataTable&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)ViewState[&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"CurrentTable"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;];&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (dt.Rows.Count &amp;gt; 0)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;for&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; (&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt; i = 1; i &amp;lt; dt.Rows.Count; i++)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;{&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color:#2b91af;"&gt;&lt;span style="color:#2b91af;"&gt;DropDownList&lt;/span&gt;&lt;/span&gt; drp = (&lt;span style="color:#2b91af;"&gt;&lt;span style="color:#2b91af;"&gt;DropDownList&lt;/span&gt;&lt;/span&gt;)grvForm.Rows[rowIndex].Cells[1].FindControl(&lt;span style="color:#a31515;"&gt;&lt;span style="color:#a31515;"&gt;"drp"&lt;/span&gt;&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color:#2b91af;"&gt;&lt;span style="color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt; txtQty = (&lt;span style="color:#2b91af;"&gt;&lt;span style="color:#2b91af;"&gt;T extBox&lt;/span&gt;&lt;/span&gt;)grvForm.Rows[rowIndex].Cells[2].FindControl(&lt;span style="color:#a31515;"&gt;&lt;span style="color:#a31515;"&gt;"txtQty"&lt;/span&gt;&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="color:#2b91af;"&gt;&lt;span style="color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt; txtAmount = (&lt;span style="color:#2b91af;"&gt;&lt;span style="color:#2b91af;"&gt;TextBox&lt;/span&gt;&lt;/span&gt;)grvForm.Rows[rowIndex].Cells[3].FindControl(&lt;span style="color:#a31515;"&gt;&lt;span style="color:#a31515;"&gt;"txtAmount"&lt;/span&gt;&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;p&gt;drp.Text = dt.Rows[i][&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column1"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;].ToString();&lt;/p&gt;&lt;br /&gt;&lt;p&gt;txtQty.Text = dt.Rows[i][&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column2"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;].ToString();&lt;/p&gt;&lt;br /&gt;&lt;p dir="ltr" style="MARGIN-RIGHT: 0px"&gt;txtAmount.Text = dt.Rows[i][&lt;/span&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;&lt;span style="font-size:85%;color:#a31515;"&gt;"Column3"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;].ToString();&lt;/p&gt;&lt;br /&gt;&lt;p&gt;rowIndex++;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;br /&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;and you are done...!!  Build the solution and hit Play....&lt;/p&gt;&lt;p&gt;Hope this helps some one.&lt;/p&gt;&lt;p&gt;P.s if you feel that this post has helped you, please do write your comments.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&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/7865258452562866241-2780224278220682519?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/2780224278220682519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=2780224278220682519&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2780224278220682519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2780224278220682519'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2009/06/add-rows-dynamically-to-gridview.html' title='Add Rows dynamically to Gridview'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MlnhK1o21nU/SkMQnY4zhBI/AAAAAAAAAIU/9_nss2SmhoY/s72-c/image002.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-2999722609016555474</id><published>2009-06-15T00:06:00.000-07:00</published><updated>2009-06-15T00:27:56.428-07:00</updated><title type='text'>Black berry Vs Apple</title><content type='html'>some time back i got these videos:&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-9a954eb3e45efc28" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v18.nonxt8.googlevideo.com/videoplayback?id%3D9a954eb3e45efc28%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D48A3E629CDD5F26EC77672C267057F7E549CB112.6D7883E283D6166610FA8AE6AE4967D8B7F151C%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D9a954eb3e45efc28%26offsetms%3D5000%26itag%3Dw160%26sigh%3DF30KYW0AWp5gEBNAs3VGSiq15uc&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v18.nonxt8.googlevideo.com/videoplayback?id%3D9a954eb3e45efc28%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D48A3E629CDD5F26EC77672C267057F7E549CB112.6D7883E283D6166610FA8AE6AE4967D8B7F151C%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D9a954eb3e45efc28%26offsetms%3D5000%26itag%3Dw160%26sigh%3DF30KYW0AWp5gEBNAs3VGSiq15uc&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-ac68efced768cb43" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v20.nonxt3.googlevideo.com/videoplayback?id%3Dac68efced768cb43%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D634FB8A0174372E2CD072BE715DDF45E8B012892.5CD208ED4AE4C737135E2C4A4809009D4E6B4E72%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dac68efced768cb43%26offsetms%3D5000%26itag%3Dw160%26sigh%3D9tiNTELCBdlve0ci4ZXgCcUOt3U&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v20.nonxt3.googlevideo.com/videoplayback?id%3Dac68efced768cb43%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D634FB8A0174372E2CD072BE715DDF45E8B012892.5CD208ED4AE4C737135E2C4A4809009D4E6B4E72%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dac68efced768cb43%26offsetms%3D5000%26itag%3Dw160%26sigh%3D9tiNTELCBdlve0ci4ZXgCcUOt3U&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-2999722609016555474?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=9a954eb3e45efc28&amp;type=video%2Fmp4' length='0'/><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=ac68efced768cb43&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/2999722609016555474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=2999722609016555474&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2999722609016555474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2999722609016555474'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2009/06/black-berry-vs-apple.html' title='Black berry Vs Apple'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-8209719748462190255</id><published>2009-04-28T01:34:00.000-07:00</published><updated>2009-06-15T01:27:33.599-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Simple Gridview Webpart for Sharepoint</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Open Visual Studio.....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Click on New &gt;&gt; Project &gt;&gt; and following screen will appear there select "Server controll" give any name you want to give :&lt;/span&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_MlnhK1o21nU/SjX8D7ONJNI/AAAAAAAAAG4/vEC7QY0fwo0/s1600-h/1.JPG"&gt;&lt;span style="font-family:verdana;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5347457276939412690" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 287px" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/SjX8D7ONJNI/AAAAAAAAAG4/vEC7QY0fwo0/s400/1.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;then in the solution explorer 1 class file will be created give any suitable name to the class file ; &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;here create a public class for the &lt;strong&gt;WebPart &lt;/strong&gt;and then write following code to create a TextBox inside a Webpart where we will write our Queries to populate the Grid:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;The pseudocode for that is as follows:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color:#3333ff;"&gt;private string sqlquery;&lt;br /&gt;[Personalizable(), WebBrowsable(true),WebDisplayName("SQLQuery"),Category("Data Properties")]&lt;br /&gt;public string SQLQuery&lt;br /&gt;{&lt;br /&gt;get { return sqlquery; }&lt;br /&gt;set { sqlquery = value; }&lt;br /&gt;}&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;"&gt;Here in the code above you can see the Text called as "Data Properties" that is the section for the name ; you can give what ever name you want for that section.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;"&gt;&lt;strong&gt;Now will create a childcontrol for this.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;protected override void CreateChildControls()&lt;br /&gt;{&lt;br /&gt;base.CreateChildControls();&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;GridView grv = new GridView();&lt;br /&gt;DataSet ds = new DataSet();&lt;br /&gt;SqlDataAdapter da = new SqlDataAdapter();&lt;br /&gt;string strConnection = System.Configuration.ConfigurationSettings.AppSettings.Get("connection");&lt;br /&gt;string sql = sqlquery;&lt;br /&gt;//DataTable dt = new DataTable();&lt;br /&gt;//dt = objDB.GetSQlResult(sql);&lt;br /&gt;da = new SqlDataAdapter(sql, strConnection);&lt;br /&gt;ds.Clear();&lt;br /&gt;da.Fill(ds, "data");&lt;br /&gt;Controls.Add(grv);&lt;br /&gt;grv.DataSource = ds.Tables[0].DefaultView;&lt;br /&gt;grv.GridLines = GridLines.Horizontal;&lt;br /&gt;grv.CellPadding = 6;&lt;br /&gt;grv.DataBind();&lt;br /&gt;grv.HeaderStyle.BackColor = System.Drawing.Color.LightGray;&lt;br /&gt;}&lt;br /&gt;catch (Exception ex)&lt;br /&gt;{}&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;this code will create the Gridview webpart now you can build the solution and you can give the output path of you build to the Bin folder of the sharepoint site or you create a dll with the strogn name.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;1. double click on the properties &gt;&gt; signing and it will allow you to give the string name for that.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;2. &lt;/span&gt;After that deploy that dll to the Windows &gt;&gt; Assembly and then right-click the dll and have a look at the properties there you will find PublicKeyToken.&lt;br /&gt;3. Then go to the Sharepoint's Web.Config file and register this control as Safecontrol it will look something like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;safecontrol assembly="PrjMapImagesWithPS,Version=1.0.0.0, Culture=neutral, PublicKeyToken=c7e2705130d4b161" namespace="PrjMapImagesWithPS" typename="*" safe="true"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;Here Assembly name basically name of the dll , then version and PublicKeyToken all the information you will find while you will right-click the dll , namespace is the detail you will see inside the .CS file. other are the default values.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Now open the sharepoint site and go to the Site settings &gt;&gt; Web parts &gt;&gt; New &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;There you will find your web part with the extension (webpart) and checked it and click on the &lt;strong&gt;populate gallery.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To check the webpart you create a&lt;strong&gt; new web part page&lt;/strong&gt; and then click on the &lt;strong&gt;add web part&lt;/strong&gt; , it will &lt;strong&gt;open a box&lt;/strong&gt; there you will see&lt;strong&gt; your web part&lt;/strong&gt;. add it to your page it will look something like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SjYBEl4o-QI/AAAAAAAAAHI/bycN-IaxQ7w/s1600-h/2.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5347462785949825282" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 520px; CURSOR: hand; HEIGHT: 55px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SjYBEl4o-QI/AAAAAAAAAHI/bycN-IaxQ7w/s400/2.JPG" border="0" /&gt;&lt;/a&gt; Here you will have an option of Edit the web part click on that and you will a contex menu on side there you will be able to see the "Data Propertie" under that you will find textbox ; there you can write your Query. and accordingly Data will get populated.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_MlnhK1o21nU/SjYDQIVfplI/AAAAAAAAAHQ/CUbLltAQopw/s1600-h/3.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5347465183199471186" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 234px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/SjYDQIVfplI/AAAAAAAAAHQ/CUbLltAQopw/s400/3.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;P.s : here i have assumed that you will have a connection string inside the Web.Config you can write the connection string dynamically also, by assigning some more Properties for the web part as we have created "data properties." , you can create some more..!!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-8209719748462190255?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/8209719748462190255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=8209719748462190255&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/8209719748462190255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/8209719748462190255'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2009/04/simepl-webpart-for-sharepoint.html' title='Simple Gridview Webpart for Sharepoint'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MlnhK1o21nU/SjX8D7ONJNI/AAAAAAAAAG4/vEC7QY0fwo0/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-5891270680098764532</id><published>2008-12-09T02:47:00.000-08:00</published><updated>2008-12-09T02:57:27.130-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Knowledge'/><title type='text'>Cup of Coffee</title><content type='html'>&lt;div&gt;A group of alumni, highly established in their careers, got together to visit their old university professor.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Conversation soon turned into complaints about stress in work and life.&lt;br /&gt;Offering his guests coffee, the professor went to the kitchen and returned with a large pot of coffee and an assortment of cups porcelain, plastic, glass, crystal, some plain looking, some expensive, some exquisite - telling them to help themselves to hot coffee .&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;When all the students had a cup of coffee in hand, the professor said: "If you noticed, all the nice looking expensive cups were taken up, leaving behind the plain and cheap ones. While it is but normal for you to wantonly the best for yourselves, that is the source of your problems and stress. What all of you really wanted was coffee, not the cup, but you consciously went for the best cups and were eyeing each other's cups.&lt;/div&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_MlnhK1o21nU/ST5Oag1b7ZI/AAAAAAAAAFY/vOjXtoG8quQ/s1600-h/coffee_morning.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5277742030722428306" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 350px; CURSOR: hand; HEIGHT: 350px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_MlnhK1o21nU/ST5Oag1b7ZI/AAAAAAAAAFY/vOjXtoG8quQ/s400/coffee_morning.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Now if life is coffee, then the jobs, money and position in society are the cups. They are just tools to hold and contain Life, but the quality of Life doesn't change. Sometimes, by concentrating only on the cup, we fail to enjoy the coffee in it."&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Don't let the cups drive you... Enjoy the coffee instead. &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/7865258452562866241-5891270680098764532?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/5891270680098764532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=5891270680098764532&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/5891270680098764532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/5891270680098764532'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/12/cup-of-coffee.html' title='Cup of Coffee'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MlnhK1o21nU/ST5Oag1b7ZI/AAAAAAAAAFY/vOjXtoG8quQ/s72-c/coffee_morning.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-3690360859890934058</id><published>2008-08-11T04:09:00.000-07:00</published><updated>2008-08-11T04:25:11.833-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Knowledge'/><title type='text'>unconditional Love</title><content type='html'>&lt;strong&gt;Real Nice Story:&lt;/strong&gt;&lt;br /&gt;My wife called, 'How long will you be with that newspaper? Will you  come here and make your darling daughter eat her food?&lt;br /&gt;I tossed the paper away and rushed to the scene. My only daughter, Sindu, looked frightened; tears were welling up in her eyes. In front of  her was a bowl filled to its brim with curd rice. Sindu is a nice child, quite  intelligent for her age.&lt;br /&gt;&lt;br /&gt;I cleared my throat and picked up the bowl. 'Sindu, darling, why don't , you take a few mouthful of this curd rice? Just for Dad's sake, dear'. Sindu softened a bit and wiped her tears with the back of her hands. 'Ok, Dad. I will eat - not just a few mouthfuls, but the whole lot of this.&lt;br /&gt;But, you should...' Sindu hesitated. 'Dad, if I eat this entire curd Rice,  will you give me whatever I ask for?'&lt;br /&gt;&lt;br /&gt;'Promise'. I covered the pink soft hand extended by my daughter with mine, and clinched the deal. Now I became a bit anxious. 'Sindu, dear, you shouldn't insist on getting a computer or any such expensive items. Dad does not have that kind of money right now. Ok?'&lt;br /&gt;&lt;br /&gt;'No, Dad. I do not want anything expensive'. Slowly and painfully, she finished eating the whole quantity. I was silently angry with my wife and my mother for forcing my child to eat something that she detested. After the ordeal was through, Sindu came to me with her eyes wide with&lt;br /&gt;expectation. All our attention was on her.&lt;br /&gt;&lt;br /&gt;'Dad, I want to have my head shaved off, this Sunday!' was her demand.&lt;br /&gt;&lt;br /&gt;'Atrocious!' shouted my wife, 'A girl child having her head shaved off? Impossible!'&lt;br /&gt;&lt;br /&gt;'Never in our family!' My mother rasped. 'She has been watching too much of television. Our culture is getting totally spoiled with these TV programs!'&lt;br /&gt;&lt;br /&gt;'Sindu, darling, why don't you ask for something else? We will be sad seeing you with a clean-shaven head.'&lt;br /&gt;&lt;br /&gt;'Please, Sindu, why don't you try to understand our feelings?' I tried to plead with her.&lt;br /&gt;&lt;br /&gt;'Dad, you saw how difficult it was for me to eat that Curd Rice'. Sindu was in tears. 'And you promised to grant me whatever I ask for. Now, you are going back on your words. Was it not you who told me the story of* *King Harishchandra, and its moral that we should honor our promises no matter what?'&lt;br /&gt;&lt;br /&gt;It was time for me to call the shots. 'Our promise must be kept.'&lt;br /&gt;&lt;br /&gt;'Are you out of your mind?' chorused my mother and wife.&lt;br /&gt;&lt;br /&gt;'No. If we go back on ourpromises, she will never learn to honour her own. Sindu, your wish will be fulfilled.'&lt;br /&gt;&lt;br /&gt;With her head clean-shaven, Sindu had a round-face, and her eyes looked big and beautiful.&lt;br /&gt;&lt;br /&gt;On Monday morning, I dropped her at her school. It was a sight to watch my hairless Sindu walking towards her classroom. She turned around and waved. I waved back with a smile. Just then, a boy alighted from a car, and shouted, 'Sinduja, please wait for me!' What struck me was the hairless head of that boy. 'May be, that is the in-stuff', I thought.&lt;br /&gt;&lt;br /&gt;'Sir, your daughter Sinduja is great indeed!' Without introducing herself, a lady got out of the car, and continued, 'that boy who is walking along with your daughter is my son Harish. He is suffering from... leukemia'. She paused to muffle her sobs. 'Harish could not attend the&lt;br /&gt;school for the whole of the last month. He lost all his hair due to the side effects of the chemotherapy. He refused to come back to school fearing the unintentional but cruel teasing of the schoolmates. Sinduja visited him last  week, and promised him that she will take care of the teasing issue. But, I never imagined she would sacrifice her lovely hair for the sake of my son!&lt;br /&gt;Sir, you and your wife are blessed to have such a noble soul as your daughter.'&lt;br /&gt;&lt;br /&gt;I stood transfixed and then, I wept. 'My little Angel, you are teaching me how selfless real love is!'&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff99ff;"&gt;The happiest people on this planet are not those who live on their own terms but are those who change their terms for the ones whom they love !!*&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-3690360859890934058?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/3690360859890934058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=3690360859890934058&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/3690360859890934058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/3690360859890934058'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/08/unconditional-love.html' title='unconditional Love'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-1105906030740788260</id><published>2008-07-17T02:36:00.000-07:00</published><updated>2008-07-17T03:01:08.443-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guruji'/><title type='text'>Drinking Coffee A Pattern....</title><content type='html'>Jai Gurudev&lt;br /&gt;Now days we have started AHTAVAKRA GITA.&lt;br /&gt;We start our day with Group Sadhan and after that we listen to the GITA, now on the 2nd day of the Ashtavakra Gita (15th July 08),&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SH8XJQdK0yI/AAAAAAAAADg/vPlkP0hqHKU/s1600-h/ravishankar-5.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5223919540576637730" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SH8XJQdK0yI/AAAAAAAAADg/vPlkP0hqHKU/s400/ravishankar-5.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I woke up early at 4:30 am and had my bath after that i reached to center for Group sadhna but do i really missing something........!? i asked to my self and LOL, i found the answer that i didnt drink my tea...;) i immediately realized my problem and directly head towards a Shop for early morning TEA.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When i reached to shop, ordered a tea...........whille drinking my tea. i came to know Ahhhh......I just LOST my vollate Now I immediatly went to the road and went to the center the same way i had gone to the Tea Shop.......and after reaching to the center i realized that i didn’t brought my vollate, i just worrying for nothing. I was happy at that time,after i went and paid to the Shopekeeper and come back to the Center and done my Kria.&lt;br /&gt;&lt;br /&gt;After Kriya we started the knowledge session, and 1st thing speak is about Patterns,Habits and he gives the examples of Coffee only.&lt;br /&gt;He said that we have our own pattern i.e Drinking Coffee and several other examples.&lt;br /&gt;Which is really cause of misery and it really pinches in my heart, after that i make a point to drink tea atleast not in the early morning and strictly not when some knowledge session is going on.........Guru is great&lt;br /&gt;&lt;br /&gt;Hope in the upcoming days of Ashtavakra Gita, nothing that sort of thing will happen&lt;br /&gt;Jai gurdev&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-1105906030740788260?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/1105906030740788260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=1105906030740788260&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/1105906030740788260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/1105906030740788260'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/drinking-coffee-pattern.html' title='Drinking Coffee A Pattern....'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MlnhK1o21nU/SH8XJQdK0yI/AAAAAAAAADg/vPlkP0hqHKU/s72-c/ravishankar-5.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-2464657300078664892</id><published>2008-07-07T22:36:00.000-07:00</published><updated>2008-10-30T00:05:05.636-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guruji'/><title type='text'>How I learnt the RudraBhishek.......</title><content type='html'>Actually I was waiting for the inner call to write something about rudrabhishek, I guess today is the day.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SQlbV6cyvhI/AAAAAAAAAE4/6LpTdHl55Xw/s1600-h/puja.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5262838071584538130" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 295px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SQlbV6cyvhI/AAAAAAAAAE4/6LpTdHl55Xw/s400/puja.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It all started during Feb-04 when we heard that guruji is coming to ahmedabad for shivratri before that we had done some seva to gather people and also sold some kria passes as always and the day had come when 50+ people went to ahmedabad early morning 5 o’clock for Long kria which was taken by guruji himself and afterwards seva and then rudrapuja started in the evening.&lt;br /&gt;&lt;br /&gt;We were bit of thrilled as explained by Guruji, then he took the meditation and it was amazing as always afterwards, truly speaking not much interested in rudrabhishek when it started but as soon as PANCHA GAVYA SNANAM STARTED i was literally amazed by seeing that imagine 1 egg shaped transparent object fully covered by the yellowish brown white kind of something (which is Milk, curd, ghee, honey and sugar), looks so nice.&lt;br /&gt;&lt;br /&gt;Then started Namakam- chamankam as per Guruji namakam means salt which is present every where like wise seeing Shiv Tatva in everything for example it says I am seeing Shiv in Fisherman and I am bowing to that shiv in that person etc, like wise it consists plenty of other things, then started Chamakam which is asking everything to Lord shiv saying I need good sleep, iron, gold, food almost everything which is available in this universe.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_MlnhK1o21nU/SQlbV9NN0tI/AAAAAAAAAEw/GEMBI1HLm0k/s1600-h/puja2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5262838072324510418" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 302px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/SQlbV9NN0tI/AAAAAAAAAEw/GEMBI1HLm0k/s400/puja2.jpg" border="0" /&gt;&lt;/a&gt; &lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;Afterwards when puja was over Gurji dance, I am in AOL since 1999 I have never ever seen guruji dancing like that before. And that was the time where almost everybody started crying and that was the turning point I decided to learn Rudrabhishek.&lt;br /&gt;&lt;br /&gt;My father is very much co-operative to me, and then Grace part starts when I started learning naturally my father arranged teacher me who comes on every sat-sun to our place and teaches me Rudrabhishek in Gujarat it is consists of 10 adhyay .8 of Rudrabhieshek + 2 shanti adhyay and it is of 70 pages long but see the grace I had learnt it within 3 months time which is continuous 24 Days only, my teacher was so impressed with me that he said he had taught plenty of students but I was student who learnt it very quickly and what we chant here in ashram is even more simple as it consist of only 2 Adhyay (NaMaKaM-ChMaKam).&lt;br /&gt;&lt;br /&gt;Till today I am performing rudrabhishek everyday and those 2 hours of my day is always amazing no matter how I feel that time during the puja is simply amazing.&lt;br /&gt;&lt;br /&gt;Thanks to Guruji by whose grace I learnt it..!&lt;br /&gt;&lt;br /&gt;Here the best part is everything arranged for me automatically and the learning period was so reduced that till today I am amazed that how did I learnt it…!? It was so without any effort&lt;br /&gt;&lt;br /&gt;And during my learning period of it I encounter plenty of concepts attached to rudrabhishek which we will take in some other posts.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Jai Gurudev&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Parth&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SQlVFQIsMZI/AAAAAAAAAEg/M0qTvySWZYg/s1600-h/puja2.jpg"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&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/7865258452562866241-2464657300078664892?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/2464657300078664892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=2464657300078664892&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2464657300078664892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2464657300078664892'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/how-i-learnt-rudrabhishek.html' title='How I learnt the RudraBhishek.......'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MlnhK1o21nU/SQlbV6cyvhI/AAAAAAAAAE4/6LpTdHl55Xw/s72-c/puja.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-7192182399794806328</id><published>2008-07-07T22:15:00.000-07:00</published><updated>2008-07-07T22:39:15.499-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Batch Insert from GridView</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SHL7F7APMbI/AAAAAAAAADQ/xG2zz1WnQNc/s1600-h/GridInsert.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5220510997232431538" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SHL7F7APMbI/AAAAAAAAADQ/xG2zz1WnQNc/s400/GridInsert.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Some time back i have done simple timesheet with no extra thing doing just insert my data from Gridview which will come as forms to user and User will Fill the form and and click on the BUTTON and his data for that day will get Saved for that Day.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SHL8GTP7bvI/AAAAAAAAADY/6y1_dEaQ0xg/s1600-h/untitled.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5220512103252324082" style="CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SHL8GTP7bvI/AAAAAAAAADY/6y1_dEaQ0xg/s400/untitled.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here in above image where button event is there so that using this we can insert the data into the database.&lt;br /&gt;&lt;br /&gt;Here, Logic is very simple we are looping through the Grid and inserting the data by finding control within the &lt;strong&gt;Asp:TemplateField&lt;/strong&gt; and we are done doing it.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Hope this will be helpful to someone.&lt;br /&gt;&lt;br /&gt;Parth &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-7192182399794806328?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/7192182399794806328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=7192182399794806328&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/7192182399794806328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/7192182399794806328'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/batch-insert-from-gridview.html' title='Batch Insert from GridView'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MlnhK1o21nU/SHL7F7APMbI/AAAAAAAAADQ/xG2zz1WnQNc/s72-c/GridInsert.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-6122584771601435744</id><published>2008-07-04T04:35:00.000-07:00</published><updated>2008-07-04T05:37:36.368-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Row to Column Conversion with help of ReportViewer</title><content type='html'>&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-7a7b2f50f9f7637f" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v17.nonxt4.googlevideo.com/videoplayback?id%3D7a7b2f50f9f7637f%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D49DDD0AF5DEA5626BFB86AEE4066324CA1E6ECC7.B4ADB94CE9AF9C8DF995190225D02DE10CEB3DE%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D7a7b2f50f9f7637f%26offsetms%3D5000%26itag%3Dw160%26sigh%3DiNnXoIVnO9ouXNMfymdI82uedxg&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v17.nonxt4.googlevideo.com/videoplayback?id%3D7a7b2f50f9f7637f%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D49DDD0AF5DEA5626BFB86AEE4066324CA1E6ECC7.B4ADB94CE9AF9C8DF995190225D02DE10CEB3DE%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D7a7b2f50f9f7637f%26offsetms%3D5000%26itag%3Dw160%26sigh%3DiNnXoIVnO9ouXNMfymdI82uedxg&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;some time back i was in need for converting row of my data to column as my rows were of Project names of an Organization and Columns where of TaskNames...so being a Database person i tried doing it using SQL but after that thought it may increase my server's CPU cycle, so better to handle this scenario with report viewer..... and some how i was able to d it successfully..... &lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;STRONG&gt;1. Add .rdlc file in your project solution &lt;br/&gt;&lt;br/&gt;&lt;br /&gt;2. Add .xsd in your App_code folders &lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;A href="http://4.bp.blogspot.com/_MlnhK1o21nU/SG4OvkPZu2I/AAAAAAAAADI/UCJt6VraGnY/s1600-h/xsd.JPG"&gt;&lt;IMG id=BLOGGER_PHOTO_ID_5219125228513901410 style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/SG4OvkPZu2I/AAAAAAAAADI/UCJt6VraGnY/s400/xsd.JPG" border=0&gt;&lt;/A&gt; &lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;3. Drag and drop Matrix report then put your required field into the Matrix Report's column and part and datapart &lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;A href="http://2.bp.blogspot.com/_MlnhK1o21nU/SG4NceQMRNI/AAAAAAAAAC4/xzGDyM7cKzY/s1600-h/rdlc.JPG"&gt;&lt;IMG id=BLOGGER_PHOTO_ID_5219123800977458386 style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_MlnhK1o21nU/SG4NceQMRNI/AAAAAAAAAC4/xzGDyM7cKzY/s400/rdlc.JPG" border=0&gt;&lt;/A&gt; &lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;4. then bind your reportviewer into code behind, this is the tricky part as this will help you having total control of report ...if in future you want to add Dropdown and On DropDown selection you want to show Report, it is easily possible.&lt;/STRONG&gt; &lt;A href="http://4.bp.blogspot.com/_MlnhK1o21nU/SG4OQUHebPI/AAAAAAAAADA/sEraglqcQ90/s1600-h/codebehind.JPG"&gt;&lt;IMG id=BLOGGER_PHOTO_ID_5219124691609742578 style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/SG4OQUHebPI/AAAAAAAAADA/sEraglqcQ90/s400/codebehind.JPG" border=0&gt;&lt;/A&gt; &lt;BR&gt;&lt;BR&gt;Tell me if any clarification is req. cause here you can do many things like, chnage the back color of cell of your report by just providing VB code (of course conditionally and dynamic.......) you can also change Textsize,Italic,Underline etc..conditionaly.... All of the above is possible in the design view of.rdlc file. &lt;br /&gt;&lt;br/&gt;Thanks &amp;amp; Regards &lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;STRONG&gt;Parth&lt;/STRONG&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-6122584771601435744?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=7a7b2f50f9f7637f&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/6122584771601435744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=6122584771601435744&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6122584771601435744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6122584771601435744'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/row-to-column-conversion-with-help-of.html' title='Row to Column Conversion with help of ReportViewer'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_MlnhK1o21nU/SG4OvkPZu2I/AAAAAAAAADI/UCJt6VraGnY/s72-c/xsd.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-5278125652978642034</id><published>2008-07-04T02:39:00.000-07:00</published><updated>2008-07-04T03:32:20.792-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Heirarchical Grid or Parent childgridView using javascript</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_MlnhK1o21nU/SG31WuGwjvI/AAAAAAAAACQ/YeT-RJ8qoqg/s1600-h/1.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219097313874579186" style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_MlnhK1o21nU/SG31WuGwjvI/AAAAAAAAACQ/YeT-RJ8qoqg/s400/1.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SG31W8mqtRI/AAAAAAAAACY/aECPo9Hn53k/s1600-h/2.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219097317766509842" style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SG31W8mqtRI/AAAAAAAAACY/aECPo9Hn53k/s400/2.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A very simple thing which is most often required by the developers is creating the Hierarchical grid view or in other words Parent-Child Grid....&lt;br /&gt;&lt;br /&gt;Some of the Organizations where they maintain Parent-Child relationships in their process required such kind of data representation....&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Scenario:&lt;/strong&gt;&lt;br /&gt;In a certain organization you need to have a Project Under particular project you must have tasks,this will create your Hierarchical Grid&lt;br /&gt;&lt;br /&gt;1.We have to create 1 grid and then add TemplateField Column,after put 2nd Grid inside the TemplateField Column put DataKeyName of Key Column which common in both Grid'd data like &lt;strong&gt;ProejctGroup&lt;/strong&gt; then bind the Grid&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2.Put + sign in First Column and put that inside Div tab in your grid view column&lt;/strong&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SG32c2-CzXI/AAAAAAAAACg/U2DnzTHlcDg/s1600-h/code.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219098518844788082" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SG32c2-CzXI/AAAAAAAAACg/U2DnzTHlcDg/s400/code.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;3.then Bind the 2nd grid on rowdataboundevent&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SG34ALpR23I/AAAAAAAAACw/LhtRXoxXEDw/s1600-h/codebehind.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219100225201888114" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SG34ALpR23I/AAAAAAAAACw/LhtRXoxXEDw/s400/codebehind.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;strong&gt;4.put the javascript code as shown below&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_MlnhK1o21nU/SG33DKQwlhI/AAAAAAAAACo/fgkevglFVs8/s1600-h/javascript.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219099176858588690" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_MlnhK1o21nU/SG33DKQwlhI/AAAAAAAAACo/fgkevglFVs8/s400/javascript.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;Now simple you parent grid will bind your child grid and it will go on and on doind Hierarchi of data and you are done doing it...!&lt;br /&gt;cheers&lt;br /&gt;Hope this will be helpful to some one.&lt;br /&gt;Thanks&lt;br /&gt;&lt;strong&gt;Parth&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-5278125652978642034?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/5278125652978642034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=5278125652978642034&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/5278125652978642034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/5278125652978642034'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/heirarchical-grid-or-parent.html' title='Heirarchical Grid or Parent childgridView using javascript'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MlnhK1o21nU/SG31WuGwjvI/AAAAAAAAACQ/YeT-RJ8qoqg/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-5805079994593232226</id><published>2008-07-04T01:40:00.000-07:00</published><updated>2008-07-04T08:37:51.537-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guruji'/><title type='text'>Present moment</title><content type='html'>Some time back when i was in Ashram, we were with the course participants......and satsang was just about to begin at that time we told course participants ( of Part-I) and we were just talking to eachother experience at that time one of us just spoke that rain usualy never comes at the time of satsang and now we just dont even bother about it also as it is tasken for granted...;) &amp;....&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SG3sGnWtWSI/AAAAAAAAACI/NcgcwpFGcSs/s1600-h/thou_art_that.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SG3sGnWtWSI/AAAAAAAAACI/NcgcwpFGcSs/s400/thou_art_that.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5219087141579872546" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;suddenly rain started and we all have to rush to the VM andVM was jam packed....after some time guruji came and we were just alone with him .....me and vinod has wave hand to them he done the same with us......after 1 second or so , he turned around and looked at me and ask me to be careful as i was about to touch a live wire...and i was certainly not aware of it.....;)&lt;br /&gt;It shows guruji remains in present moment always as he takes care for every one like child to him&lt;br /&gt;&lt;br /&gt;Now, the day come, it was 29th June&lt;br /&gt;again we went for satsang on Sunday...again the same situation it was about to rain and it rained also but at this time satsang was  going on....&lt;br /&gt;&lt;br /&gt;Guruji came at the place of satsang usually in some car but now he came in small car .just running to the amphitheater and it was raining ...even though it was raining  when guruji comes  everybody forgets everything and keep indulge them selves in satsang ....after some moments guruji looks up at the sky where he just glance for moment or 2, rain stops like some one had switched off the TAP,&lt;br /&gt;&lt;br /&gt;It was amazing scene....!&lt;br /&gt;&lt;br /&gt;I have always seen that Rain Never Comes at the time of satsang, but i have seen first time that even if rain comes, if guruji wants it to stop.Rain doesn't have anyother option but to STOP.&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Jai Gurdev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Parth&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-5805079994593232226?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/5805079994593232226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=5805079994593232226&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/5805079994593232226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/5805079994593232226'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/present-momnet.html' title='Present moment'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MlnhK1o21nU/SG3sGnWtWSI/AAAAAAAAACI/NcgcwpFGcSs/s72-c/thou_art_that.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-1770806414306027919</id><published>2008-07-03T21:57:00.000-07:00</published><updated>2008-07-04T00:42:02.713-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Textbox's Value to Gridview's Textbox without PostBack</title><content type='html'>Have you thought of having such a Textbox which will insert values into Gridview's Textbox without performing Postback...it may seems childish , but thought some might need it.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-703811c5a7079fb2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v5.nonxt3.googlevideo.com/videoplayback?id%3D703811c5a7079fb2%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D1C503416D145E81218E0E19FEBAA3709E82FFBB2.322397DB67C0938483CCF41CCFE932DC261BF69F%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D703811c5a7079fb2%26offsetms%3D5000%26itag%3Dw160%26sigh%3DOMeB5el4RrTwezMO-8ovZXILTq0&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v5.nonxt3.googlevideo.com/videoplayback?id%3D703811c5a7079fb2%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D1C503416D145E81218E0E19FEBAA3709E82FFBB2.322397DB67C0938483CCF41CCFE932DC261BF69F%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D703811c5a7079fb2%26offsetms%3D5000%26itag%3Dw160%26sigh%3DOMeB5el4RrTwezMO-8ovZXILTq0&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now,Lets Hit it&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1. Here you have to register an array of Tetxbox from which you want to take the value as well Textbox in grid where you want to put value.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;put this code in Page_Load Event or rowdatabound event.....&lt;br /&gt;&lt;/p&gt;&lt;a href="http://1.bp.blogspot.com/_MlnhK1o21nU/SG2v3iuv59I/AAAAAAAAABg/Om0KEgvKLvA/s1600-h/registerarray.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219020911942821842" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_MlnhK1o21nU/SG2v3iuv59I/AAAAAAAAABg/Om0KEgvKLvA/s400/registerarray.JPG" border="0" /&gt;&lt;/a&gt;after adding above code now turn for javascript:&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SG2whb6aBwI/AAAAAAAAABo/_R_48XNGqR8/s1600-h/javascript.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5219021631667177218" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SG2whb6aBwI/AAAAAAAAABo/_R_48XNGqR8/s400/javascript.JPG" border="0" /&gt;&lt;/a&gt; 2. Now comes the design part where you have to just assign a Tetxboxes from above code one must easily understand that which textbox is which ( ok ok dont confuse yourself...........)&lt;br /&gt;this values of the texboxes for example. in javascript code &lt;span style="color:#ff0000;"&gt;txtnotes&lt;/span&gt; is from Gridview (which is shown into VB code) and as &lt;span style="color:#ff0000;"&gt;txtboxIds&lt;/span&gt; shown in javascript code is the textbox which is going to populate in the Modalpopup from AjaxcontrolToolkit.&lt;br /&gt;&lt;br /&gt;And above modalpopup is into the gridview's column (templete column)so for each row 1 modalpopup will generate and you are just assigning the value of 1 textbox to other......&lt;br /&gt;&lt;br /&gt;hope this helps some one.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Patrh&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Note: Becareful with the code,cause as it is generating the modalpopup for each row in my case i have data also in my modalpopup, so i am forced to do like that ,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;sometime it happens that you will find some error from browser that &lt;strong&gt;Stop running the script? , &lt;/strong&gt;cause your browser will not able to load whole javascript,for that there is work around like one can simply do the paging for this kind of scenario so browser doesn't have to load fully.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-1770806414306027919?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=703811c5a7079fb2&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/1770806414306027919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=1770806414306027919&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/1770806414306027919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/1770806414306027919'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/textboxs-value-to-gridviews-textbox.html' title='Textbox&apos;s Value to Gridview&apos;s Textbox without PostBack'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_MlnhK1o21nU/SG2v3iuv59I/AAAAAAAAABg/Om0KEgvKLvA/s72-c/registerarray.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-7177679477690551639</id><published>2008-07-03T21:50:00.000-07:00</published><updated>2008-07-03T22:24:41.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Automatic Scheduled database Backup</title><content type='html'>Necessicity is the mother of invention.......thought i am not inventor,&lt;br /&gt; some time back i was requested to give some utility to the clients that they will schedule the backup database and in certains Drive i.e in C:\Dump folder all of my backup should go....&lt;br /&gt;&lt;br /&gt;It is done by creating simple procedure which is shown below:&lt;br /&gt;But before doing so, one must register their devices , by just executing following command&lt;br /&gt;&lt;span style="color:#cc6600;"&gt;1.  EXEC sp_addumpdevice 'disk','mydiskdump','C:\Dump'&lt;/span&gt;&lt;br /&gt;after doing this, one will run the procedure and put it in scheduler, your dump will go to C:\drive&lt;br /&gt;&lt;span style="color:#cc6600;"&gt;USE [master]&lt;br /&gt;GO&lt;br /&gt;/****** Object: StoredProcedure [dbo].[custom_proc_backupdatabase] Script Date: 07/04/2008 10:04:01 ******/&lt;br /&gt;SET ANSI_NULLS ON&lt;br /&gt;GO&lt;br /&gt;SET QUOTED_IDENTIFIER ON&lt;br /&gt;GO&lt;br /&gt;CREATE procedure [dbo].[custom_proc_backupdatabase] as&lt;br /&gt;-- THIS PROCEDURE IS FOR MAINTANANCE PURPOSE FOR DATABASE&lt;br /&gt;--CREATED BY PARTH ON 5TH MAY 2008&lt;br /&gt;declare&lt;br /&gt;@db varchar(300),&lt;br /&gt;@dbname varchar(300),&lt;br /&gt;@sql nvarchar(1000),&lt;br /&gt;@backupdate varchar(50)&lt;br /&gt;declare c1 cursor for&lt;br /&gt;select name from master..sysdatabases where name not in ('master','tempdb','model','msdb','SharePoint_AdminContent_2edfaf57-7f7a-43d9-9171-e63b1d726f91')&lt;br /&gt;order by name&lt;br /&gt;select @backupdate={fn curdate()}&lt;br /&gt;--Before running this procedure please register your type of backup here e.g DISK,TAPE,NETWORKDISK&lt;br /&gt;-- for that you just have to run following command here :&lt;br /&gt;-- USE master&lt;br /&gt;-- EXEC sp_addumpdevice 'disk','mydiskdump','C:\Dump'&lt;br /&gt;begin&lt;br /&gt;open c1&lt;br /&gt;fetch c1 into @db&lt;br /&gt;while (@@fetch_status=0)&lt;br /&gt;begin&lt;br /&gt;-- FOLLOWING IS THE USE OF DYNAMIC SQL WHERE WE ARE GETTING DATABASE_NAME AND LOGFILE NAME&lt;br /&gt;set @sql='select @dbname=name from '+@db+'.dbo.sysfiles where fileid=1'&lt;br /&gt;execute sp_executesql @sql,N'@dbname varchar(300) OUT,@db varchar(300)',@dbname OUT,@db&lt;br /&gt;select * from master.dbo.sysfiles&lt;br /&gt;--######################################################################################################&lt;br /&gt;--NOW BY FOLLOWING CODE WE ARE EXECUTING DATABASE COMMAND DYNAMICALLY&lt;br /&gt;-- BY JUST PROVIDING DB NAME&lt;br /&gt;-- Following command will truncate the Log file as well&lt;br /&gt;set @sql='USE '+@db+';'&lt;br /&gt;set @sql=@sql+'BACKUP DATABASE '+@db+''&lt;br /&gt;set @sql=@sql+' TO DISK=''C:\DUMP\'+@db+'_'+@backupdate+''' WITH FORMAT ;'&lt;br /&gt;PRINT @sql&lt;br /&gt;--######################################################################################################&lt;br /&gt;execute sp_executesql @sql,N'@dbname varchar(300)',@dbname&lt;br /&gt;fetch c1 into @db&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;close c1&lt;br /&gt;deallocate c1&lt;br /&gt; &lt;/span&gt;&lt;br /&gt; now.................lol&lt;br /&gt;you are done doing............Cheers&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Parth&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PS: I am new to SQL, please send me your feedback for better of improvement of this procedures &lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-7177679477690551639?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/7177679477690551639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=7177679477690551639&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/7177679477690551639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/7177679477690551639'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/automatic-scheduled-database-backup.html' title='Automatic Scheduled database Backup'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-4542031328782659332</id><published>2008-07-03T05:49:00.000-07:00</published><updated>2008-07-03T22:24:41.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Truncating logfile Dynamically using SP</title><content type='html'>Hi,&lt;br /&gt;some days back, it happens to 1 of my clients datacenter that suddenly they were unable to insert the data in the database, we tried so many thing like checking for database connectivity, or any other process is going on....etc etc...&lt;br /&gt;&lt;br /&gt;suddenly we found out that there is tremendous amout of data is there in LOG file so, for temporary purpose we have take a back ( of course we first stop the process and instances.....as it is recommended) then we create a new Log file for that database&lt;br /&gt;&lt;br /&gt;Now the problem was the data flow was so much that we have to do something that will automatically delete the log file so we try building a procedure which will run as per the schedule and deletes the log file and getting back to it's normal size.......&lt;br /&gt;&lt;br /&gt;Below is the code for that:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;USE [master]&lt;br /&gt;GO&lt;br /&gt;/****** Object: StoredProcedure [dbo].[proc_trunclogfiles] Script Date: 03/09/2008 13:55:52 ******/&lt;br /&gt;SET ANSI_NULLS ON&lt;br /&gt;GO&lt;br /&gt;SET QUOTED_IDENTIFIER ON&lt;br /&gt;GO&lt;br /&gt;CREATE procedure [dbo].[proc_trunclogfiles] as&lt;br /&gt;-- THIS PROCEDURE IS FOR MAINTANANCE PURPOSE FOR TRUNCATIONG LOG FILES&lt;br /&gt;--CREATED BY PARTH ON 3RD MARCH 2008&lt;br /&gt;declare&lt;br /&gt;@db varchar(300),&lt;br /&gt;@logname varchar(300),&lt;br /&gt;@sql nvarchar(1000)&lt;br /&gt;declare c1 cursor for&lt;br /&gt;select name from master..sysdatabases where name not in ('master','tempdb','model','msdb')&lt;br /&gt;order by name&lt;br /&gt;begin&lt;br /&gt;open c1&lt;br /&gt;fetch c1 into @db&lt;br /&gt;while (@@fetch_status=0)&lt;br /&gt;begin&lt;br /&gt;-- FOLLOWING IS THE USE OF DYNAMIC SQL WHERE WE ARE GETTING DATABASE_NAME AND LOGFILE NAME&lt;br /&gt;set @sql='select @logname=name from '+@db+'.dbo.sysfiles where fileid=2'&lt;br /&gt;execute sp_executesql @sql,N'@logname varchar(300) OUT,@db varchar(300)',@logname OUT,@db&lt;br /&gt;--######################################################################################################&lt;br /&gt;--NOW BY FOLLOWING CODE WE ARE EXECUTING THE TRUNCATE LOG COMMAND DYNAMICALLY&lt;br /&gt;-- BY JUST PROVIDING DB NAME AND LOGNAME&lt;br /&gt;-- Following command will truncate the Log file as well&lt;br /&gt;--set @sql='USE '+@db+';'&lt;br /&gt;--set @sql=@sql+'BACKUP LOG '+@db+' with truncate_only ;'&lt;br /&gt;--set @sql=@sql+' DBCC SHRINKFILE('+@logname+');'&lt;br /&gt;--######################################################################################################&lt;br /&gt;-- FOLLOWING IS THE ANOTHER METHOD TO DO IT...!&lt;br /&gt;set @sql='USE '+@db+';'&lt;br /&gt;set @sql=@sql+' DUMP TRANSACTION '+@db+' WITH NO_LOG;'&lt;br /&gt;&lt;br /&gt;execute sp_executesql @sql,N'@logname varchar(300)',@logname&lt;br /&gt;fetch c1 into @db&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;close c1&lt;br /&gt;deallocate c1&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Hope this will help some one.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Parth&lt;br /&gt;&lt;strong&gt;PS: as i am new to SQL, please let me know if there is any problem with code or i have done something wrong&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-4542031328782659332?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/4542031328782659332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=4542031328782659332&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/4542031328782659332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/4542031328782659332'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/truncating-logfile-dynamically-using-sp.html' title='Truncating logfile Dynamically using SP'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-2378424998830341915</id><published>2008-07-03T05:27:00.001-07:00</published><updated>2008-07-03T22:24:41.620-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Function  for calculating Working hours</title><content type='html'>Hi,&lt;br /&gt;If you want to calculate simple working hours, i think this might help some,&lt;br /&gt;Below function will return the working hour for the days between&lt;br /&gt;&lt;br /&gt;CREATE FUNCTION [dbo].[WorkHours] ( @str_start DATETIME, @str_end DATETIME) RETURNS INT&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;RETURN&lt;br /&gt;(SELECT ((total_days / 7) * 5 + total_days % 7 -&lt;br /&gt;CASE WHEN 6 BETWEEN start_weekday AND end_weekday&lt;br /&gt;THEN 1 ELSE 0 END -&lt;br /&gt;CASE WHEN 7 BETWEEN start_weekday AND end_weekday&lt;br /&gt;THEN 1 ELSE 0 END) * 8 FROM (SELECT total_days, start_weekday,&lt;br /&gt;start_weekday + total_days % 7 - 1&lt;br /&gt;FROM (SELECT DATEDIFF(day, @start_date, @str_end) + 1,&lt;br /&gt;DATEPART(WEEKDAY, @str_start + @@DATEFIRST - 1) ) AS T&lt;br /&gt;(total_days, start_weekday) ) AS D&lt;br /&gt;(total_days, start_weekday, end_weekday) );&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;Thought  this might help someone who is struggling with the calculating the working hours, yes this may not serve the best result in customized situation given by clients but it happens some time that you just need to calculate something very straight.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;strong&gt;Parth&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-2378424998830341915?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/2378424998830341915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=2378424998830341915&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2378424998830341915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/2378424998830341915'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/function-for-calculating-working-hours.html' title='Function  for calculating Working hours'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-6074409349571433504</id><published>2008-07-03T05:14:00.000-07:00</published><updated>2008-07-03T22:24:41.620-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>DB Mails to Lotus Notes</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SGzDM4N5alI/AAAAAAAAABE/-6icXz5uLGI/s1600-h/1.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5218760694232083026" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SGzDM4N5alI/AAAAAAAAABE/-6icXz5uLGI/s400/1.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SGzDNRETZuI/AAAAAAAAABM/H0CBf74VupY/s1600-h/2.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5218760700902729442" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SGzDNRETZuI/AAAAAAAAABM/H0CBf74VupY/s400/2.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;some days back 1 of our client requested us to setup a functionality where in their organization when ever person will assigned to task, he /she will get the task here the twist was they need the functionality in &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Lotus notes&lt;/span&gt;&lt;/strong&gt; and they need it in simple table where each and every details should appear like what is his/her task name ,start date,end date ,% complete etc....&lt;br /&gt;&lt;br /&gt;so we decided to use database for this assignment, as our task is to sent it to lotus notes first we found out that lotus Note is accepting the HTML or not and we found out that it is taking HTML format and hence we were able to do it....that way..............&lt;br /&gt;otherwise we can also use XML and transform it using XSLT but here it is of no need....&lt;br /&gt;&lt;br /&gt;Hope this will help to someone&lt;br /&gt;Thanks&lt;br /&gt;Parth&lt;br /&gt;&lt;strong&gt;PS: I am new to SQL, please let me know if i have done any mistake in it.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-6074409349571433504?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/6074409349571433504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=6074409349571433504&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6074409349571433504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/6074409349571433504'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/some-days-back-1-of-our-client.html' title='DB Mails to Lotus Notes'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MlnhK1o21nU/SGzDM4N5alI/AAAAAAAAABE/-6icXz5uLGI/s72-c/1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7865258452562866241.post-403116462000994733</id><published>2008-07-03T04:54:00.001-07:00</published><updated>2008-07-03T22:24:16.028-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Parent grid Details into child on mouse hover</title><content type='html'>&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-8149bb09c49efc35" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v24.nonxt1.googlevideo.com/videoplayback?id%3D8149bb09c49efc35%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D13E6942AE5F9715863A0EBA082770BAA88A2FFE6.61D973F426603159C6C294CCD1625292B4645ABD%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D8149bb09c49efc35%26offsetms%3D5000%26itag%3Dw160%26sigh%3DN2OgN9InvbYHTVcSpcSeg52z5ok&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v24.nonxt1.googlevideo.com/videoplayback?id%3D8149bb09c49efc35%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331583761%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D13E6942AE5F9715863A0EBA082770BAA88A2FFE6.61D973F426603159C6C294CCD1625292B4645ABD%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D8149bb09c49efc35%26offsetms%3D5000%26itag%3Dw160%26sigh%3DN2OgN9InvbYHTVcSpcSeg52z5ok&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Hi, &lt;br /&gt;some days back i was wondering that how gmail has created detail of the sender where i am able to see his/her Pics and details with other options like sending mails ...etc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Thanks to AjaxToolkit, i was able to achive the same and code snippet is as follows:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_MlnhK1o21nU/SGzBgfaDM1I/AAAAAAAAAA8/yoO9yq9MdME/s1600-h/hovermenu.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_MlnhK1o21nU/SGzBgfaDM1I/AAAAAAAAAA8/yoO9yq9MdME/s400/hovermenu.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5218758832146297682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and then simple "OnRowdatabound" event will do the whole trick for us......&lt;br /&gt;&lt;br /&gt; If e.Row.RowType = DataControlRowType.DataRow Then&lt;br /&gt;  Dim gv As GridView = e.Row.FindControl("GridView2")&lt;br /&gt;                Dim dbSrc As New SqlDataSource&lt;br /&gt;                dbSrc.ConnectionString = ConfigurationManager.ConnectionStrings("ProjectServer_ReportingConnectionString3").ConnectionString&lt;br /&gt;                dbSrc.SelectCommand = "SELECT * FROM  projectserver_reporting.dbo.customdetailsuserview WHERE projectname= '" &amp; _&lt;br /&gt;                     e.Row.DataItem("projectname").ToString &amp; "'"&lt;br /&gt;                gv.DataSource = dbSrc&lt;br /&gt;                gv.DataBind()&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;so using above simple method i have achive the effect like gmail............&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Parth&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7865258452562866241-403116462000994733?l=parthrawal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=8149bb09c49efc35&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://parthrawal.blogspot.com/feeds/403116462000994733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7865258452562866241&amp;postID=403116462000994733&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/403116462000994733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7865258452562866241/posts/default/403116462000994733'/><link rel='alternate' type='text/html' href='http://parthrawal.blogspot.com/2008/07/parent-grid-details-into-child-on-mouse.html' title='Parent grid Details into child on mouse hover'/><author><name>parth</name><uri>http://www.blogger.com/profile/02901295259866272396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_MlnhK1o21nU/SQldqetgseI/AAAAAAAAAFA/rjXziCcUke8/S220/DSC08798.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_MlnhK1o21nU/SGzBgfaDM1I/AAAAAAAAAA8/yoO9yq9MdME/s72-c/hovermenu.bmp' height='72' width='72'/><thr:total>1</thr:total></entry></feed>
