<?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-2121239465550539592</id><updated>2011-12-26T02:00:50.935-08:00</updated><category term='Create CSV File in Asp.Net'/><title type='text'>.Net</title><subtitle type='html'>Myself Jignesh D. Patel. I have 4+ years of experience in .Net 2005/2008/2010, Sql Server 2000/2005, WCF, Dotnetnuke, Javascript,Telerik Control/ XML,AJAX,HTML technology.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-3222396078429830814</id><published>2011-12-26T01:54:00.000-08:00</published><updated>2011-12-26T02:00:50.955-08:00</updated><title type='text'>Get Stored Procedure name by using table name in Sql Server</title><content type='html'>&lt;strong&gt;Hello Friends,&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Find the below two query for get Stored Procedure list by using table name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT ROUTINE_NAME, ROUTINE_DEFINITION &lt;br /&gt;    FROM INFORMATION_SCHEMA.ROUTINES &lt;br /&gt;    WHERE ROUTINE_DEFINITION LIKE '%&lt;strong&gt;Nameoftable&lt;/strong&gt;%' &lt;br /&gt;    AND ROUTINE_TYPE='PROCEDURE'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT DISTINCT o.name, o.xtype&lt;br /&gt;FROM syscomments c&lt;br /&gt;INNER JOIN sysobjects o ON c.id=o.id&lt;br /&gt;WHERE xtype = 'P' and c.TEXT LIKE '%&lt;strong&gt;Nameoftable&lt;/strong&gt;%'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-3222396078429830814?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/3222396078429830814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/12/get-stored-procedure-name-by-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/3222396078429830814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/3222396078429830814'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/12/get-stored-procedure-name-by-using.html' title='Get Stored Procedure name by using table name in Sql Server'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-8452752152255709481</id><published>2011-08-05T04:39:00.000-07:00</published><updated>2011-08-05T04:43:54.306-07:00</updated><title type='text'>WCF hosting types</title><content type='html'>&lt;strong&gt;Hello Friends,&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Find the below link for different ways to host the WCF Service.&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/hostingwcfservice07132009075002AM/hostingwcfservice.aspx"&gt;Click here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;follow the all the step u will get it done.....&lt;br /&gt;&lt;br /&gt;Enjoy wih WCF.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-8452752152255709481?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/8452752152255709481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/08/wcf-hosting-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8452752152255709481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8452752152255709481'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/08/wcf-hosting-types.html' title='WCF hosting types'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-5273185213623274947</id><published>2011-07-08T06:18:00.000-07:00</published><updated>2011-07-08T06:20:38.113-07:00</updated><title type='text'>Create Windows Service</title><content type='html'>&lt;em&gt;Hello Friends,&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Find the below link for create the windows service by using simple step.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx"&gt; Click here &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;happy coding...&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-5273185213623274947?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/5273185213623274947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/07/create-windows-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5273185213623274947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5273185213623274947'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/07/create-windows-service.html' title='Create Windows Service'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-7972479431047140685</id><published>2011-06-16T06:22:00.000-07:00</published><updated>2011-06-16T06:25:53.537-07:00</updated><title type='text'>Scheduling and Event Logging Windows Service</title><content type='html'>&lt;strong&gt;Hello Guys,&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now u can create windows service with some easy step.&lt;br /&gt;Also u create can "Scheduling Windows Service with Timer Control".&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.aspnetajaxtutorials.com/2008/01/create-windows-service-with-cnet-part-2.html"&gt;http://www.aspnetajaxtutorials.com/2008/01/create-windows-service-with-cnet-part-2.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-7972479431047140685?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/7972479431047140685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/06/scheduling-and-event-logging-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/7972479431047140685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/7972479431047140685'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/06/scheduling-and-event-logging-windows.html' title='Scheduling and Event Logging Windows Service'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-2305495181337357849</id><published>2011-06-16T06:09:00.000-07:00</published><updated>2011-06-16T06:17:23.541-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Create CSV File in Asp.Net'/><title type='text'>Create CSV file in Asp.Net</title><content type='html'>&lt;strong&gt;Hello Friends,&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;U can create CSV file using below code.&lt;br /&gt;Call below GetRecord() function in your button click event or wherver u need.&lt;br /&gt;Folder name and file name will be get from .config file.&lt;br /&gt;&lt;br /&gt;Sub GetRecord()&lt;br /&gt;        Dim dt As DataTable&lt;br /&gt;        Dim Id As Integer&lt;br /&gt;        Id = Convert.ToInt32(ConfigurationSettings.AppSettings("Id").ToString())&lt;br /&gt;        Dim ds As DataSet = SqlHelper.ExecuteDataset(sConnString, "Get_Record", Id)&lt;br /&gt;        Dim headers(ds.Tables(0).Columns.Count) As String&lt;br /&gt;        Dim cnt As Integer = 0&lt;br /&gt;        For Each column As DataColumn In ds.Tables(0).Columns&lt;br /&gt;            headers(cnt) = column.ColumnName&lt;br /&gt;            cnt = cnt + 1&lt;br /&gt;        Next&lt;br /&gt;        ExportCSV(ds, 0, headers)&lt;br /&gt;      End Sub&lt;br /&gt;&lt;br /&gt;Sub ExportCSV(ByRef ds As DataSet, ByVal tableIndex As Int32, ByRef headers As String())&lt;br /&gt;        'Write out column headers&lt;br /&gt;        Dim headerOut As String = ""&lt;br /&gt;        If Not headers Is Nothing Then&lt;br /&gt;&lt;br /&gt;            For i As Integer = 0 To headers.Length - 2  'Don't do the last item yet&lt;br /&gt;                headerOut += headers(i)&lt;br /&gt;                headerOut += ","&lt;br /&gt;            Next&lt;br /&gt;            headerOut += headers(headers.Length - 1)    'Now do the last item, so you don't have a trailing comma.&lt;br /&gt;            'CSVWriter.WriteLine(headerOut)&lt;br /&gt;        End If&lt;br /&gt;        headerOut += Environment.NewLine&lt;br /&gt;&lt;br /&gt;        'Write out data&lt;br /&gt;        Dim CSVOut As String = ""&lt;br /&gt;        For Each r As DataRow In ds.Tables(tableIndex).Rows&lt;br /&gt;            For i As Integer = 0 To (ds.Tables(tableIndex).Columns.Count - 2)  'Don't do the last item yet&lt;br /&gt;                If Not IsDBNull(r(i)) Then&lt;br /&gt;                    CSVOut += Chr(34)&lt;br /&gt;                    CSVOut += CStr(r(i))&lt;br /&gt;                    CSVOut += Chr(34)&lt;br /&gt;                End If&lt;br /&gt;                CSVOut += ","&lt;br /&gt;            Next&lt;br /&gt;            If Not IsDBNull(r(ds.Tables(tableIndex).Columns.Count - 1)) Then&lt;br /&gt;                CSVOut += CStr(r(ds.Tables(tableIndex).Columns.Count - 1)) 'Now do the last item, so you don't have a trailing comma.&lt;br /&gt;            End If&lt;br /&gt;            CSVOut += Environment.NewLine&lt;br /&gt;            'CSVWriter.WriteLine(CSVOut)&lt;br /&gt;        Next&lt;br /&gt;       &lt;br /&gt;        Dim sFileName As String = ConfigurationSettings.AppSettings("FileName").ToString()&lt;br /&gt;        Dim dtTime As DateTime&lt;br /&gt;        dtTime = DateTime.Now()&lt;br /&gt;        Dim swOut As New StreamWriter(sADPOut + "\" + sFileName &amp; "_" &amp; dtTime.ToString.Replace("/", "").Replace(":", "") + ".csv")&lt;br /&gt;        swOut.Write(headerOut.ToString())&lt;br /&gt;        swOut.Write(CSVOut.ToString())&lt;br /&gt;        swOut.Flush()&lt;br /&gt;        swOut.Close()&lt;br /&gt;     &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;.CSV file will be save in specified folder.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-2305495181337357849?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/2305495181337357849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/06/create-csv-file-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2305495181337357849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2305495181337357849'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2011/06/create-csv-file-in-aspnet.html' title='Create CSV file in Asp.Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-4761181202721164560</id><published>2009-12-06T23:12:00.000-08:00</published><updated>2009-12-06T23:15:25.840-08:00</updated><title type='text'>Open div tag layer in Javascript</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please find the below javascript script for open the div base layer on the screen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*function showBox()&lt;br /&gt;{&lt;br /&gt;  var width =  document.documentElement.clientWidth + document.documentElement.scrollLeft;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  var layer = document.createElement('div');&lt;br /&gt;  layer.style.zIndex = 2;&lt;br /&gt;  layer.id = 'layer';&lt;br /&gt;  layer.style.position = 'absolute';&lt;br /&gt;  layer.style.top = '0px';&lt;br /&gt;  layer.style.left = '0px';&lt;br /&gt;  if(document.documentElement.scrollHeight &lt; 800 )&lt;br /&gt;  {&lt;br /&gt;     layer.style.height = 835  + 'px';&lt;br /&gt;  }&lt;br /&gt;  else&lt;br /&gt;  {&lt;br /&gt;    layer.style.height = document.documentElement.scrollHeight + 'px';&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  layer.style.width = width + 'px';&lt;br /&gt;  layer.style.backgroundColor = 'black';&lt;br /&gt;  layer.style.opacity = '.6';&lt;br /&gt;  layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");&lt;br /&gt;  document.body.appendChild(layer);&lt;br /&gt;&lt;br /&gt;  var div = document.createElement('div');&lt;br /&gt;  div.style.zIndex = 3;&lt;br /&gt;  div.id = 'box';&lt;br /&gt;  div.style.position = (navigator.userAgent.indexOf('MSIE 6') &gt; -1) ? 'absolute' : 'fixed';&lt;br /&gt;  div.style.top = '200px';&lt;br /&gt;  div.style.left = (width / 2) - (400 / 2) + 'px';&lt;br /&gt;  div.style.height = '150px';&lt;br /&gt;  div.style.width = '500px';&lt;br /&gt;  div.style.backgroundColor = 'white';&lt;br /&gt;  div.style.border = '2px solid silver';&lt;br /&gt;  div.style.padding = '20px';&lt;br /&gt;  document.body.appendChild(div);&lt;br /&gt;&lt;br /&gt;  var a = document.createElement('div');&lt;br /&gt;  a.innerHTML = '&lt;a onclick="removelayer();" style="text-align:right" href="javascript:void(0)"&gt;&lt;asp:image tooltip="Close" id="imgClosePo" runat="server" imageurl="~/close.jpg"&gt;&lt;/a&gt;&lt;/div&gt;';&lt;br /&gt;&lt;br /&gt;  div.appendChild(a);&lt;br /&gt;  var divSub = document.createElement('div');&lt;br /&gt;  divSub.innerHTML = '&lt;h1&gt;Under Construction&lt;/h1&gt;';&lt;br /&gt;  div.appendChild(divSub);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;function removelayer()&lt;br /&gt;  {&lt;br /&gt;    document.body.removeChild(document.getElementById('layer'));&lt;br /&gt;    document.body.removeChild(document.getElementById('box'));&lt;br /&gt;  };&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Call the above script using&lt;br /&gt; &lt;a href="#" onclick="javascript:void(showBox());"&gt;opendivlayer&lt;/a&gt; */&lt;br /&gt;&lt;br /&gt;Add close.jpg image in your root directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-4761181202721164560?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/4761181202721164560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/12/open-div-tag-layer-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4761181202721164560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4761181202721164560'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/12/open-div-tag-layer-in-javascript.html' title='Open div tag layer in Javascript'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-5531248476464082485</id><published>2009-12-02T01:37:00.000-08:00</published><updated>2009-12-02T01:39:31.427-08:00</updated><title type='text'>Application folder in Asp.Net</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go through the below link for get good knowledge of application folder in Asp.Net.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/AspNetAppFolder.aspx"&gt;http://www.codeproject.com/KB/aspnet/AspNetAppFolder.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-5531248476464082485?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/5531248476464082485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/12/application-folder-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5531248476464082485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5531248476464082485'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/12/application-folder-in-aspnet.html' title='Application folder in Asp.Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-7776633729441609521</id><published>2009-10-13T04:57:00.000-07:00</published><updated>2009-10-13T04:59:47.035-07:00</updated><title type='text'>User Creation and Role Assignment in Dotnetnuke</title><content type='html'>Hello Friends&lt;br /&gt;&lt;br /&gt;Go through the below link for create user and role assignment in Dotnetnuke(DNN)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/DNNRolesnUser.aspx"&gt;http://www.codeproject.com/KB/aspnet/DNNRolesnUser.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-7776633729441609521?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/7776633729441609521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/10/user-creation-and-role-assignment-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/7776633729441609521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/7776633729441609521'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/10/user-creation-and-role-assignment-in.html' title='User Creation and Role Assignment in Dotnetnuke'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-2791786757436332303</id><published>2009-10-08T04:35:00.000-07:00</published><updated>2009-10-08T04:39:32.712-07:00</updated><title type='text'>Login in dotnetnuke</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You r in trouble with login in dotnetnuke web site.&lt;br /&gt;&lt;br /&gt;So login in your DNN web site just add the "?ctl=login" in any page.&lt;br /&gt;&lt;br /&gt;suppose your web site name is "http://www.test.com"&lt;br /&gt;&lt;br /&gt;than u can login in that using "http://www.test.com/Default.aspx?ctl=login"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-2791786757436332303?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/2791786757436332303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/10/login-in-dotnetnuke.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2791786757436332303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2791786757436332303'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/10/login-in-dotnetnuke.html' title='Login in dotnetnuke'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-2896157064907760621</id><published>2009-10-01T06:03:00.000-07:00</published><updated>2009-10-01T06:04:51.715-07:00</updated><title type='text'>Increase dotnetnuke website performance</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello Guys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go through below way for increase dotnetnuke web site performance&lt;br /&gt;&lt;br /&gt;(1)If your DotnetNuke  website is running slow. You can increase it’s performance by deleting it’s logs. To do that, please login to your dotnetnuke site as HOST. Then go to "Admin" --&gt; "Log Viewer". Then in the log viewer page , "Delete all selected exceptions" and "Clear log" link at the bottom of page Clear all your logs will increase your dotnetnuke performance. Another faster way would be connecting to your Dotnetnuke db directly and run the following SQL command:&lt;br /&gt;&lt;br /&gt;delete from eventlog;&lt;br /&gt;&lt;br /&gt;(2)Extra caching (Not in the menu)&lt;br /&gt;&lt;br /&gt;Although the above caching options let you decide if you want Dotnetnuke to offer caching there is something extra you can do. This will require you to edit your ascx skin files. Open your skinfile and add the following script:&lt;br /&gt;&lt;br /&gt;&lt;script runat="server"&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;&lt;br /&gt;Page.Response.Cache.SetCacheability(HttpCacheability.Public)&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-2896157064907760621?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/2896157064907760621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/10/increase-dotnetnuke-website-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2896157064907760621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2896157064907760621'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/10/increase-dotnetnuke-website-performance.html' title='Increase dotnetnuke website performance'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-4127689486504820780</id><published>2009-09-22T20:35:00.000-07:00</published><updated>2009-09-22T20:36:27.376-07:00</updated><title type='text'>Open popup in button click event</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello guys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add below C# code in button click event.&lt;br /&gt;&lt;br /&gt; StringBuilder sb = new StringBuilder();&lt;br /&gt;                        sb.Append("&lt;script&gt;");&lt;br /&gt;                        sb.Append("window.showModalDialog('Test.aspx', '', 'dialogHeight:700px;dialogWidth:950px;scrollbars=Yes');");&lt;br /&gt;                        sb.Append("&lt;/script&gt;");&lt;br /&gt;                        System.Web.UI.ScriptManager.RegisterStartupScript(this.upnlStd, this.GetType(), "sb", sb.ToString(), false);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-4127689486504820780?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/4127689486504820780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/09/open-popup-in-button-click-event_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4127689486504820780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4127689486504820780'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/09/open-popup-in-button-click-event_22.html' title='Open popup in button click event'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-4262408953160209524</id><published>2009-09-07T04:42:00.000-07:00</published><updated>2009-09-07T04:45:15.438-07:00</updated><title type='text'>Add thumbnail in skin</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Follow the below step for add thumbnail to skin and container in DNN.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;Step 1:&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; Suppose your project name is TestThumbnail.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;Step 2:&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; You have create skin in your project at the  location TestThumbnail\Portals\_default\Skins\TitleBlue.ascx.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;Step3 :&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; Your skin name is TitleBlue.ascx. Now you need to add thumbnail at same location with same name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;means  TestThumbnail\Portals\_default\Skins\TitleBlue.jpg.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;After follow the step you can see the thumbnail in manage skin after login.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-4262408953160209524?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/4262408953160209524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/09/add-thumbnail-in-skin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4262408953160209524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4262408953160209524'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/09/add-thumbnail-in-skin.html' title='Add thumbnail in skin'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-5197425365524136203</id><published>2009-08-12T02:39:00.000-07:00</published><updated>2009-08-12T02:42:18.835-07:00</updated><title type='text'>Change FCKeditor Default Font</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If u want to change the default font in fck editory than change in below  .css file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;File Location: &lt;/span&gt;fck\editor\css\fck_editorarea.css&lt;br /&gt;&lt;br /&gt;Open up the fck_editorarea.css and look for:&lt;br /&gt;below is the default setting.&lt;br /&gt;body, td&lt;br /&gt;{&lt;br /&gt;font-family: Arial, Verdana, sans-serif;&lt;br /&gt;font-size: 12px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;change in this and u will get the default setting according to that&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-5197425365524136203?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/5197425365524136203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/08/change-fckeditor-default-font.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5197425365524136203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5197425365524136203'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/08/change-fckeditor-default-font.html' title='Change FCKeditor Default Font'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-8644977602989357618</id><published>2009-08-01T02:15:00.000-07:00</published><updated>2009-08-01T02:19:16.291-07:00</updated><title type='text'>Get Sql Server table structure and Data</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Download Microsoft SQL Server Database Publishing Wizard 1.1 using the below link and install it.&lt;br /&gt;Go through it and u will get the script of Sql Server table and its data.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&amp;amp;displaylang=en&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-8644977602989357618?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/8644977602989357618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/08/get-sql-server-table-structure-and-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8644977602989357618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8644977602989357618'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/08/get-sql-server-table-structure-and-data.html' title='Get Sql Server table structure and Data'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-8267386447810430221</id><published>2009-07-16T23:21:00.000-07:00</published><updated>2009-07-16T23:31:30.532-07:00</updated><title type='text'>Remove default paragraph in FckEditor</title><content type='html'>Hello Friends&lt;br /&gt;&lt;br /&gt;When we work with Editor than it shows default text like "&lt;startparagraph&gt;Here it shows blank space&lt;/startparagraph&gt;" in source...&lt;br /&gt;&lt;br /&gt;Also when we press Enter than it will take Paragraph in place of break..&lt;br /&gt;&lt;br /&gt;So find the solution using below step.&lt;br /&gt;Step 1 :  open the fckeditor/fckconfig.js file&lt;br /&gt;Step 2 : Change in that&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FCKConfig.EnterMode = 'br' ;            // p | div | br&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FCKConfig.ShiftEnterMode = 'p' ;    // p | div | br&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Step 3 : Save it and remove the cache,cookie,history and check...&lt;br /&gt;&lt;br /&gt;Also this solution is work in Dotnetnuke...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-8267386447810430221?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/8267386447810430221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/remove-default-paragraph-in-fckeditor.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8267386447810430221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8267386447810430221'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/remove-default-paragraph-in-fckeditor.html' title='Remove default paragraph in FckEditor'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-2576257413374735896</id><published>2009-07-16T21:50:00.000-07:00</published><updated>2009-07-16T22:14:10.958-07:00</updated><title type='text'>Working with Math Equation Editor</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please download the Editor using below link.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://cid-88a3aba934450b20.skydrive.live.com/browse.aspx/.Public/Working%20with%20FckEditor"&gt;Click here to Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Register fck editor in your page by using&lt;br /&gt;&lt;br /&gt;&lt;%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2"  TagPrefix="FCKeditorV2" %&gt;&lt;br /&gt;&lt;br /&gt;And use it by&lt;br /&gt;&lt;br /&gt;&lt;fckeditorv2:fckeditor id="txtDescription" runat="server" basepath="../FCKeditor/" height="320" width="600px"&gt;&lt;/fckeditorv2:fckeditor&gt;&lt;br /&gt;Add downloded editor dll in Bin folder and paste FckEditor in your application.&lt;br /&gt;&lt;br /&gt;For more detail &lt;a href="http://www.wiris.com/content/view/20/62/lang,en/"&gt;click here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy with math equation editor....&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-2576257413374735896?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/2576257413374735896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/working-with-math-equation-editor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2576257413374735896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2576257413374735896'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/working-with-math-equation-editor.html' title='Working with Math Equation Editor'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-2411343874726831326</id><published>2009-07-13T22:05:00.000-07:00</published><updated>2009-07-13T22:08:47.758-07:00</updated><title type='text'>Backup using Query in Sql Server</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Hello Guys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Execute the below query for create backup file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; EXEC sp_addumpdevice 'disk', 'MyBackupDevice', 'D:\Shared\MyBackup.bak'&lt;br /&gt; BACKUP DATABASE Test TO MyBackupDevice&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here "D:\Shared\MyBackup.bak" is the path of the back up file.&lt;br /&gt;"Test" is the name of database.&lt;br /&gt;&lt;br /&gt;Execute it u will get the back up file at "D:\Shared\MyBackup.bak" location.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-2411343874726831326?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/2411343874726831326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/backup-using-query-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2411343874726831326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/2411343874726831326'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/backup-using-query-in-sql-server.html' title='Backup using Query in Sql Server'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-4252335311317908516</id><published>2009-07-06T03:53:00.000-07:00</published><updated>2009-07-06T03:59:03.634-07:00</updated><title type='text'>HTML Codes - Characters and symbols</title><content type='html'>&lt;strong&gt;Hello Friends&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;       You need a html codes for Characters and symbols.&lt;br /&gt;&lt;br /&gt;       Please go through to below link.&lt;br /&gt;&lt;br /&gt;       &lt;a href="http://www.ascii.cl/htmlcodes.htm"&gt;http://www.ascii.cl/htmlcodes.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-4252335311317908516?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/4252335311317908516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/html-codes-characters-and-symbols.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4252335311317908516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4252335311317908516'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/07/html-codes-characters-and-symbols.html' title='HTML Codes - Characters and symbols'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-8373299770508127065</id><published>2009-06-18T02:26:00.000-07:00</published><updated>2009-06-18T02:29:16.726-07:00</updated><title type='text'>Working with DotNetNuke</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Below link is useful to work with Dotnetnuke.&lt;br /&gt;&lt;br /&gt;Go through it step by step.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/MCMS/DotNetNuke.aspx"&gt;http://www.codeproject.com/KB/MCMS/DotNetNuke.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-8373299770508127065?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/8373299770508127065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/working-with-dotnetnuke.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8373299770508127065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8373299770508127065'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/working-with-dotnetnuke.html' title='Working with DotNetNuke'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-5404273288600084459</id><published>2009-06-18T02:21:00.000-07:00</published><updated>2009-06-18T02:23:00.319-07:00</updated><title type='text'>Create module in Dotnetnuke</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Hello guys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dotnetnuke is useful for CMS application.&lt;br /&gt;&lt;br /&gt;Below link is useful to create module in Dotnetnuke application.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/1410/DotNetNuke-4-5-and-ASP-NET-AJAX.aspx"&gt;http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/1410/DotNetNuke-4-5-and-ASP-NET-AJAX.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-5404273288600084459?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/5404273288600084459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/create-module-in-dotnetnuke.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5404273288600084459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5404273288600084459'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/create-module-in-dotnetnuke.html' title='Create module in Dotnetnuke'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-929046122584721125</id><published>2009-06-02T20:34:00.000-07:00</published><updated>2009-06-02T20:36:45.816-07:00</updated><title type='text'>Control the Page Numbering in word document</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Hello friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; Here is the sample code using that u can set the page number starting from 5.&lt;br /&gt;&lt;br /&gt; Microsoft.Office.Interop.Word._Application oWord oWord = new Microsoft.Office.Interop.Word.Application();    oWord.ActiveWindow.Selection.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].PageNumbers.RestartNumberingAtSection = true;&lt;br /&gt;&lt;br /&gt;oWord.ActiveWindow.Selection.Sections[1].Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].PageNumbers.StartingNumber = 5;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-929046122584721125?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/929046122584721125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/control-page-numbering-in-word-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/929046122584721125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/929046122584721125'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/control-page-numbering-in-word-document.html' title='Control the Page Numbering in word document'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-3332896900326291324</id><published>2009-06-01T00:39:00.000-07:00</published><updated>2009-06-01T00:41:48.775-07:00</updated><title type='text'>Create word document using FileStream</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Hello guys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;U can create word document using FileStrem in C#.Net.&lt;br /&gt;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;br /&gt;      Public void CreateWordDoc()&lt;br /&gt;{&lt;br /&gt;        string strFileName;&lt;br /&gt;        strFileName = Guid.NewGuid().ToString() + ".doc";&lt;br /&gt;        string strFilePath = Server.MapPath("NewFile/") + strFileName;&lt;br /&gt;        FileStream f = new FileStream(strFilePath, FileMode.Create);&lt;br /&gt;        StreamWriter s = new StreamWriter(f);&lt;br /&gt;                &lt;br /&gt;&lt;br /&gt;        HttpContext.Current.Response.Clear();&lt;br /&gt;        HttpContext.Current.Response.Charset = "";&lt;br /&gt;&lt;br /&gt;        HttpContext.Current.Response.ContentType = "application/msword";&lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;        HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);&lt;br /&gt;&lt;br /&gt;        StringBuilder strHTMLContent = new StringBuilder();&lt;br /&gt;&lt;br /&gt;        HttpContext.Current.Response.ContentType = "application/msword";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + strFileName);&lt;br /&gt;        HttpContext.Current.Response.Charset = "";&lt;br /&gt;&lt;br /&gt;        System.IO.StringWriter tw = new System.IO.StringWriter();&lt;br /&gt;        System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);&lt;br /&gt;&lt;br /&gt;        tbmMain.RenderControl(hw); //Where dv is div holding img with run at server&lt;br /&gt;        HttpContext.Current.Response.Write(tw.ToString());&lt;br /&gt;              &lt;br /&gt;        // create a write stream&lt;br /&gt;       &lt;br /&gt;        // write to the stream&lt;br /&gt;        string str=tw.ToString();&lt;br /&gt;        s.WriteLine(str);&lt;br /&gt;        s.Close();&lt;br /&gt;        f.Close();&lt;br /&gt;        &lt;br /&gt;    }&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-3332896900326291324?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/3332896900326291324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/create-word-document-using-filestream.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/3332896900326291324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/3332896900326291324'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/06/create-word-document-using-filestream.html' title='Create word document using FileStream'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-7230901665321223852</id><published>2009-05-22T00:11:00.000-07:00</published><updated>2009-05-22T00:15:37.313-07:00</updated><title type='text'>Add blank page in word document using C#.Net</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;U can add blank page at particular page number in word document using below code.&lt;br /&gt;&lt;br /&gt;object missing = System.Reflection.Missing.Value;&lt;br /&gt;        object fileName = @"D:\TestFile.docx";&lt;br /&gt;        object readOnly = false;&lt;br /&gt;        object isVisible = true;&lt;br /&gt;&lt;br /&gt;        //Start Word and open a document.  &lt;br /&gt;        _Application oWord;&lt;br /&gt;        _Document oDoc;&lt;br /&gt;        oWord = new Application();&lt;br /&gt;        oWord.Visible = true;&lt;br /&gt;&lt;br /&gt;        oDoc = oWord.Documents.Open(ref fileName, ref missing, ref readOnly,&lt;br /&gt;            ref missing, ref missing, ref missing, ref missing, ref missing,&lt;br /&gt;            ref missing, ref missing, ref missing, ref isVisible, ref missing,&lt;br /&gt;            ref missing, ref missing, ref missing);&lt;br /&gt;&lt;br /&gt;        //Goto some specific page and insert a blank page or page break  &lt;br /&gt;        object gotoPage = WdGoToItem.wdGoToPage;&lt;br /&gt;        object gotoNext = WdGoToDirection.wdGoToNext;&lt;br /&gt;        object gotoCount = null;&lt;br /&gt;        //Page Numer&lt;br /&gt;        object gotoName = "4";&lt;br /&gt;&lt;br /&gt;        oWord.Selection.GoTo(ref gotoPage, ref gotoNext, ref gotoCount, ref gotoName);&lt;br /&gt;&lt;br /&gt;        //Insert a blank page  &lt;br /&gt;        oWord.Selection.InsertNewPage();&lt;br /&gt;&lt;br /&gt;        //Insert a page break  &lt;br /&gt;        object breakPage = WdBreakType.wdPageBreak;&lt;br /&gt;        oWord.Selection.InsertBreak(ref breakPage); &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Thanks &amp; Regards&lt;br /&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-7230901665321223852?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/7230901665321223852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/hello-friends-u-can-add-blank-page-at.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/7230901665321223852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/7230901665321223852'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/hello-friends-u-can-add-blank-page-at.html' title='Add blank page in word document using C#.Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-4062908909570623328</id><published>2009-05-19T22:45:00.000-07:00</published><updated>2009-05-19T22:51:23.193-07:00</updated><title type='text'>Create Web Service in .Net</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello Friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here sample code for how to create web service and consume int in C#.Net.&lt;br /&gt;&lt;br /&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CJIGNES%7E1.PAT%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CDOCUME%7E1%5CJIGNES%7E1.PAT%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5CJIGNES%7E1.PAT%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="--"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-weight: bold;"&gt;Step 1 :&lt;/span&gt; Add new Web Service(.asmx) file using add New Item&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2 :&lt;/span&gt; Suppose i have add Operation.asmx file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3 &lt;/span&gt;:Add namespace of web service&lt;br /&gt; /// &lt;summary&gt;&lt;br /&gt;/// Summary description for Operation&lt;br /&gt;/// &lt;/summary&gt;&lt;br /&gt;[WebService(Namespace = "http://localhost:3870/ConnectMySql/Operation.asmx")]&lt;br /&gt;[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]&lt;br /&gt;// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.&lt;br /&gt;// [System.Web.Script.Services.ScriptService]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 4 :&lt;/span&gt; Create Function using [WebMethod]&lt;br /&gt; //[WebMethod]&lt;br /&gt;    public int Addition(int a,int b)&lt;br /&gt;    {&lt;br /&gt;      int c;&lt;br /&gt;      c = a + b;&lt;br /&gt;      return c;&lt;br /&gt;    }&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 5:&lt;/span&gt; Now build the web site and web service is created.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Now for Consume Web Service Step&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 6:&lt;/span&gt; Add web service referance to another site using right click on project and add web referance.&lt;br /&gt;       Enter web service url http://localhost:3870/ConnectMySql/Operation.asmx and add namespace name for exa. "localhost".&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 7 :&lt;/span&gt; Now add Namespace in page by&lt;br /&gt;       using localhost&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 8 :&lt;/span&gt; Create object of Operation Class&lt;br /&gt;        Operation obj = new Operation();&lt;br /&gt;        int a = obj.Addition(5,2)&lt;br /&gt;        Response.Write(a.ToString());&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;color:black;"   &gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-4062908909570623328?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/4062908909570623328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/create-web-service-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4062908909570623328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/4062908909570623328'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/create-web-service-in-net.html' title='Create Web Service in .Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-768206817692911411</id><published>2009-05-15T02:34:00.000-07:00</published><updated>2009-05-15T02:36:44.743-07:00</updated><title type='text'>Create Random number in .Net</title><content type='html'>You guys can create random number using below code up to 6 digit if u want to more than change in for loop.&lt;br /&gt;&lt;br /&gt; public string CreateRandomCode()&lt;br /&gt;    {&lt;br /&gt;        string allChar = "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";&lt;br /&gt;        string[] allCharArray = allChar.Split(',');&lt;br /&gt;        string randomCode = "";&lt;br /&gt;        int temp = -1;&lt;br /&gt;&lt;br /&gt;        Random rand = new Random();&lt;br /&gt;        for (int i = 0; i &lt; 6; i++)&lt;br /&gt;        {&lt;br /&gt;            if (temp != -1)&lt;br /&gt;            {&lt;br /&gt;                rand = new Random(i * temp * ((int)DateTime.Now.Ticks));&lt;br /&gt;            }&lt;br /&gt;            int t = rand.Next(36);&lt;br /&gt;            if (temp != -1 &amp;amp;&amp;amp; temp == t)&lt;br /&gt;            {&lt;br /&gt;                return CreateRandomCode(codeCount);&lt;br /&gt;            }&lt;br /&gt;            temp = t;&lt;br /&gt;            randomCode += allCharArray[t];&lt;br /&gt;        }&lt;br /&gt;        return randomCode;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-768206817692911411?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/768206817692911411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/create-random-number-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/768206817692911411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/768206817692911411'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/create-random-number-in-net.html' title='Create Random number in .Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-5619421972055603803</id><published>2009-05-15T00:39:00.001-07:00</published><updated>2009-05-15T00:48:56.818-07:00</updated><title type='text'>Bind Treeview in .Net</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello friends &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here the code for bind treeview up to four level.In this example i have bind Subject--&gt;SubSubject--&gt;Chapter--&gt;Topic.&lt;br /&gt;&lt;br /&gt; #region BIND TREE VIEW NODE&lt;br /&gt;&lt;br /&gt;        #region BIND Subject&lt;br /&gt;        private void BindMaterial()&lt;br /&gt;        {&lt;br /&gt;        &lt;br /&gt;                strQuery = "SELECT Subject,SubjectId  FROM V_GetStudentMaterial  GROUP BY Subject,SubjectId ";&lt;br /&gt;                 &lt;br /&gt;         &lt;br /&gt;             DataTable dtMaterial;&lt;br /&gt;             dtMaterial = ObjB.SelectMaterial(strQuery);&lt;br /&gt;             if(dtMaterial.Rows.Count&gt;0)&lt;br /&gt;             {&lt;br /&gt;                 tvMaterail.Nodes.Clear();&lt;br /&gt;                 for (int iTreeSubject = 0; iTreeSubject &lt; dtMaterial.Rows.Count; iTreeSubject++)&lt;br /&gt;                {&lt;br /&gt;                    TreeNode  SubjectNode = new TreeNode();&lt;br /&gt;                    SubjectNode.Text = FormatStrDecode(dtMaterial.Rows[iTreeSubject]["Subject"].ToString());&lt;br /&gt;                    SubjectNode.Value =  dtMaterial.Rows[iTreeSubject]["SubjectId"].ToString();&lt;br /&gt;                    SubjectNode.ToolTip = FormatStrDecode(dtMaterial.Rows[iTreeSubject]["Subject"].ToString());&lt;br /&gt;                    SubjectNode.Expand();&lt;br /&gt;                     //Bind Subject&lt;br /&gt;                    tvMaterail.Nodes.Add(SubjectNode);&lt;br /&gt;                    int intTreeSubjectId = int.Parse(SubjectNode.Value.ToString());&lt;br /&gt;                    BindSubSubjectNodes(SubjectNode, intTreeSubjectId);&lt;br /&gt;                }&lt;br /&gt;                trMaterial.Visible = true;&lt;br /&gt;                lblMessage.Text = "";&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                lblMessage.Text = ReadXMLFile_Admin(FormName.Topic, Task.Materialnotfound);&lt;br /&gt;                trMaterial.Visible = false;&lt;br /&gt;            }&lt;br /&gt;          &lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;&lt;br /&gt;        #region BIND SUB SUBJECT NODE&lt;br /&gt;        private void BindSubSubjectNodes(TreeNode ParentSubjectNode, int intTreeSubjectId)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                strQuery = "";&lt;br /&gt;                strQuery = "SELECT Subject,SubjectId,SubSubject,SubSubjectId  FROM V_GetStudentMaterial WHERE SubjectId=" + intTreeSubjectId + " GROUP BY Subject,SubjectId,SubSubject,SubSubjectId";&lt;br /&gt;                DataTable dtSubSubject;&lt;br /&gt;                dtSubSubject = ObjB.SelectMaterial(strQuery);&lt;br /&gt;                if (dtSubSubject.Rows.Count &gt; 0)&lt;br /&gt;                {&lt;br /&gt;                    for (int intiSubSubject = 0; intiSubSubject &lt; dtSubSubject.Rows.Count; intiSubSubject++)&lt;br /&gt;                    {&lt;br /&gt;                        TreeNode SubSubjectNode = new TreeNode();&lt;br /&gt;                        SubSubjectNode.Text = dtSubSubject.Rows[intiSubSubject]["SubSubject"].ToString();&lt;br /&gt;                        SubSubjectNode.Value = dtSubSubject.Rows[intiSubSubject]["SubSubjectId"].ToString();&lt;br /&gt;                        SubSubjectNode.ToolTip = FormatStrDecode(dtSubSubject.Rows[intiSubSubject]["SubSubject"].ToString());&lt;br /&gt;                        //Bind Sub Subject&lt;br /&gt;                        ParentSubjectNode.ChildNodes.Add(SubSubjectNode);&lt;br /&gt;                        int intSubSubjectId = int.Parse(SubSubjectNode.Value.ToString());&lt;br /&gt;                        BindChildChapter(SubSubjectNode, intSubSubjectId);&lt;br /&gt;                        ParentSubjectNode.Collapse();&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                throw ex;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;&lt;br /&gt;        #region BIND SUB SUBJECT CHAPTER NODE&lt;br /&gt;        private void BindChildChapter(TreeNode ParentSubSubjectNode, int intTreeSubSubjectId)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                strQuery = "";&lt;br /&gt;                strQuery = "SELECT Subject,SubjectId,SubSubject,SubSubjectId,ChapterId,ChapterName  FROM V_GetStudentMaterial WHERE SubSubjectId=" + intTreeSubSubjectId + " GROUP BY Subject,SubjectId,SubSubject,SubSubjectId,ChapterId,ChapterName";&lt;br /&gt;                DataTable dtChapter;&lt;br /&gt;                dtChapter = ObjB.SelectMaterial(strQuery);&lt;br /&gt;                if (dtChapter.Rows.Count &gt; 0)&lt;br /&gt;                {&lt;br /&gt;                    for (int intiChapter = 0; intiChapter &lt; dtChapter.Rows.Count; intiChapter++)&lt;br /&gt;                    {&lt;br /&gt;                        TreeNode ChapterNode = new TreeNode();&lt;br /&gt;                        ChapterNode.Text = dtChapter.Rows[intiChapter]["ChapterName"].ToString();&lt;br /&gt;                        ChapterNode.Value = dtChapter.Rows[intiChapter]["ChapterId"].ToString();&lt;br /&gt;                        ChapterNode.ToolTip = FormatStrDecode(dtChapter.Rows[intiChapter]["ChapterName"].ToString());&lt;br /&gt;                        //Bind Chapter&lt;br /&gt;                        ParentSubSubjectNode.ChildNodes.Add(ChapterNode);&lt;br /&gt;                        int intChapterId = int.Parse(ChapterNode.Value.ToString());&lt;br /&gt;                        BindChildChapterTopic(ChapterNode, intChapterId);&lt;br /&gt;                        ParentSubSubjectNode.Collapse();&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                throw ex;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;       &lt;br /&gt;        #region BIND  CHAPTER TOPIC  NODE&lt;br /&gt;        private void BindChildChapterTopic(TreeNode ParentChapterNode, int intTreeChapterId)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                strQuery = "";&lt;br /&gt;                strQuery = "SELECT Subject,SubjectId,SubSubject,SubSubjectId,ChapterId,ChapterName,TopicId,Topic  FROM V_GetStudentMaterial WHERE ChapterId=" + intTreeChapterId + " GROUP BY Subject,SubjectId,SubSubject,SubSubjectId,ChapterId,ChapterName,TopicId,Topic";&lt;br /&gt;                DataTable dtTopic;&lt;br /&gt;                dtTopic = ObjB.SelectMaterial(strQuery);&lt;br /&gt;                if (dtTopic.Rows.Count &gt; 0)&lt;br /&gt;                {&lt;br /&gt;                    for (int intiTopic = 0; intiTopic &lt; dtTopic.Rows.Count; intiTopic++)&lt;br /&gt;                    {&lt;br /&gt;                        TreeNode ChapterNode = new TreeNode();&lt;br /&gt;                        ChapterNode.Text = dtTopic.Rows[intiTopic]["Topic"].ToString();&lt;br /&gt;                        ChapterNode.Value = dtTopic.Rows[intiTopic]["TopicId"].ToString();&lt;br /&gt;                        ChapterNode.ToolTip = "Click here to view " + FormatStrDecode(dtTopic.Rows[intiTopic]["Topic"].ToString());&lt;br /&gt;                        ChapterNode.NavigateUrl = "ContentDetail.aspx?TopicId=" + dtTopic.Rows[intiTopic]["TopicId"].ToString();&lt;br /&gt;                        //Bind Topic&lt;br /&gt;                        ParentChapterNode.ChildNodes.Add(ChapterNode);&lt;br /&gt;                        ParentChapterNode.Collapse();&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                throw ex;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        #endregion&lt;br /&gt;&lt;br /&gt;      &lt;br /&gt;        #endregion&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-5619421972055603803?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/5619421972055603803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/bind-treeview-up-to-four-level-in-cnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5619421972055603803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/5619421972055603803'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/bind-treeview-up-to-four-level-in-cnet.html' title='Bind Treeview in .Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-6360085627195605303</id><published>2009-05-14T05:03:00.000-07:00</published><updated>2009-05-22T03:57:11.420-07:00</updated><title type='text'>Add an Image in Word Document using .Net</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello friends&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using the sample code u can add image in word document.&lt;br /&gt;&lt;br /&gt;//Insert Image&lt;br /&gt;   string strSiteURL ="www.url.com"&lt;br /&gt;           object oRngHeader;&lt;br /&gt;           Microsoft.Office.Interop.Word.Paragraph oParaHeader;&lt;br /&gt;&lt;br /&gt;           oRngHeader = oDoc.Bookmarks.get_Item(ref oEndOfDoc).Range;&lt;br /&gt;           oParaHeader = oDoc.Content.Paragraphs.Add(ref oRngHeader);&lt;br /&gt;&lt;br /&gt;           wrdSelection = oWord.Selection;&lt;br /&gt;           wrdSelection.TypeText(oParaHeader.Range.Text);&lt;br /&gt;&lt;br /&gt;           string strObjHeaderFile = strSiteURL + "images/Logo.jpg";&lt;br /&gt;           Object oAnsHeader = oParaHeader.Range;&lt;br /&gt;&lt;br /&gt;           //oParaHeader.Format.SpaceAfter = 1;&lt;br /&gt;                     &lt;br /&gt;           oParaHeader.Format.Alignment = WdParagraphAlignment.wdAlignParagraphLeft;&lt;br /&gt;           oParaHeader.Application.Selection.InlineShapes.AddPicture(strObjHeaderFile, ref o_missvalue, ref o_missvalue, ref oRngHeader);&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-6360085627195605303?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/6360085627195605303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/add-image-in-word-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/6360085627195605303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/6360085627195605303'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/add-image-in-word-document.html' title='Add an Image in Word Document using .Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2121239465550539592.post-8079277891287188708</id><published>2009-05-14T04:51:00.000-07:00</published><updated>2009-05-14T04:55:35.898-07:00</updated><title type='text'>Create Word Document in .Net</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Hello &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can create word document with page number in footer &lt;br /&gt;using  below code.&lt;br /&gt;&lt;br /&gt;using System.Reflection;&lt;br /&gt;using Microsoft.Office.Interop.Word;&lt;br /&gt; private void CreateDocument()&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        object oMissing = System.Reflection.Missing.Value;&lt;br /&gt;        object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */&lt;br /&gt;&lt;br /&gt;        //Start Word and create a new document.&lt;br /&gt;        Microsoft.Office.Interop.Word._Application oWord;&lt;br /&gt;       &lt;br /&gt;        Microsoft.Office.Interop.Word._Document oDoc;&lt;br /&gt;              &lt;br /&gt;       &lt;br /&gt;        oWord = new Microsoft.Office.Interop.Word.Application();&lt;br /&gt;&lt;br /&gt;        oWord.Visible = false;&lt;br /&gt;       &lt;br /&gt;        oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);&lt;br /&gt;&lt;br /&gt;        //Add Border&lt;br /&gt;        oDoc.ActiveWindow.Selection.Borders[WdBorderType.wdBorderBottom].LineStyle = WdLineStyle.wdLineStyleDot;&lt;br /&gt;        oDoc.ActiveWindow.Selection.Borders[WdBorderType.wdBorderLeft].LineStyle = WdLineStyle.wdLineStyleDot;&lt;br /&gt;        oDoc.ActiveWindow.Selection.Borders[WdBorderType.wdBorderRight].LineStyle = WdLineStyle.wdLineStyleDot;&lt;br /&gt;        oDoc.ActiveWindow.Selection.Borders[WdBorderType.wdBorderTop].LineStyle = WdLineStyle.wdLineStyleDot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        oDoc.PageSetup.PaperSize = Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA4;&lt;br /&gt;        oDoc.PageSetup.LayoutMode = WdLayoutMode.wdLayoutModeLineGrid;&lt;br /&gt;        oDoc.PageSetup.PageWidth = oWord.InchesToPoints(7F);&lt;br /&gt;        oDoc.PageSetup.PageHeight = oWord.InchesToPoints(14F);&lt;br /&gt;&lt;br /&gt;        //Insert a paragraph at the beginning of the document.&lt;br /&gt;        Microsoft.Office.Interop.Word.Paragraph oPara1;&lt;br /&gt;        object oRngHed;&lt;br /&gt;        oRngHed = oDoc.Bookmarks.get_Item(ref oEndOfDoc).Range;&lt;br /&gt;        oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing);&lt;br /&gt;        //Assign text&lt;br /&gt;        oPara1.Range.Text = "This is test for  create word document";&lt;br /&gt;        oPara1.Format.Alignment = WdParagraphAlignment.wdAlignParagraphLeft;&lt;br /&gt;        oPara1.Range.Font.Bold = 10;&lt;br /&gt;        oPara1.Range.Font.Size = 18;&lt;br /&gt;        //oPara1.Format.SpaceAfter = 2;    //24 pt spacing after paragraph.&lt;br /&gt;        oPara1.Range.InsertParagraphAfter();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        &lt;br /&gt;       &lt;br /&gt;        string strFileName;&lt;br /&gt;        strFileName = Guid.NewGuid().ToString() + ".doc";&lt;br /&gt;        object o_filename = Server.MapPath("NewFile/") + strFileName;&lt;br /&gt;        object o_format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatEncodedText;&lt;br /&gt;        object o_endings = Microsoft.Office.Interop.Word.WdLineEndingType.wdCRLF;&lt;br /&gt;        object o_null = Missing.Value;&lt;br /&gt;&lt;br /&gt;        oDoc.PageSetup.TopMargin = oWord.MillimetersToPoints(14.17F);&lt;br /&gt;        oDoc.PageSetup.BottomMargin = oWord.MillimetersToPoints(14.17F);&lt;br /&gt;        oDoc.PageSetup.RightMargin = oWord.MillimetersToPoints(14.17F);&lt;br /&gt;        oDoc.PageSetup.LeftMargin = oWord.MillimetersToPoints(14.17F);&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;       oWord.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekCurrentPageFooter;&lt;br /&gt;&lt;br /&gt;        //ENTERING A PARAGRAPH BREAK "ENTER"&lt;br /&gt;&lt;br /&gt;        oWord.Selection.TypeParagraph();&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;        //INSERTING THE PAGE NUMBERS CENTRALLY ALIGNED IN THE PAGE FOOTER&lt;br /&gt;&lt;br /&gt;        //string docNumber = "1";&lt;br /&gt;&lt;br /&gt;        //string revisionNumber = "0";&lt;br /&gt;&lt;br /&gt;        oWord.Selection.Paragraphs.Alignment = WdParagraphAlignment.wdAlignParagraphLeft;&lt;br /&gt;&lt;br /&gt;        oWord.ActiveWindow.Selection.Font.Name = "Arial";&lt;br /&gt;&lt;br /&gt;        oWord.ActiveWindow.Selection.Font.Size = 8;&lt;br /&gt;&lt;br /&gt;       // oWord.ActiveWindow.Selection.TypeText("Document #: " + docNumber + " " + revisionNumber);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //INSERTING TAB CHARACTERS&lt;br /&gt;&lt;br /&gt;      &lt;br /&gt;        oWord.ActiveWindow.Selection.TypeText("");&lt;br /&gt;&lt;br /&gt;        oWord.ActiveWindow.Selection.TypeText("");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        oWord.ActiveWindow.Selection.TypeText("Page ");&lt;br /&gt;&lt;br /&gt;        object CurrentPage = WdFieldType.wdFieldPage;&lt;br /&gt;&lt;br /&gt;        string str;&lt;br /&gt;        str = oWord.Selection.HeaderFooter.PageNumbers.Count.ToString();&lt;br /&gt;        oWord.ActiveWindow.Selection.Fields.Add(oWord.Selection.Range, ref CurrentPage, ref oMissing, ref oMissing);&lt;br /&gt;&lt;br /&gt;        oWord.ActiveWindow.Selection.TypeText(" of ");&lt;br /&gt;&lt;br /&gt;        object TotalPages = WdFieldType.wdFieldNumPages;&lt;br /&gt;&lt;br /&gt;       // oWord.ActiveWindow.Selection.Fields.Add(oWord.Selection.Range, ref TotalPages, ref oMissing, ref oMissing);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //SETTING FOCUES BACK TO DOCUMENT&lt;br /&gt;&lt;br /&gt;        oWord.ActiveWindow.ActivePane.View.SeekView = WdSeekView.wdSeekMainDocument;&lt;br /&gt;        oWord.Selection.TypeParagraph();&lt;br /&gt;&lt;br /&gt;        oWord.Selection.Font.Bold = 1;&lt;br /&gt;&lt;br /&gt;        oWord.Selection.Font.Color = WdColor.wdColorAqua;&lt;br /&gt;&lt;br /&gt;        oWord.Selection.Font.Italic = 1;&lt;br /&gt;&lt;br /&gt;        oWord.Selection.Font.Underline = WdUnderline.wdUnderlineDashHeavy;&lt;br /&gt;        oWord.Selection.ClearFormatting();&lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;        oDoc.SaveAs(ref o_filename, ref o_format, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_null, ref o_endings, ref o_null);&lt;br /&gt;&lt;br /&gt;        //Assign null value to created object&lt;br /&gt;        oDoc = null;&lt;br /&gt;        oWord.Quit(ref o_null, ref o_null, ref o_null);&lt;br /&gt;//For Open file&lt;br /&gt;        Response.Redirect("NewFile/" + strFileName);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if u have any query than send it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thanks &amp;amp; Regards&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Jignesh Patel&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2121239465550539592-8079277891287188708?l=dotnet-jignesh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnet-jignesh.blogspot.com/feeds/8079277891287188708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/create-word-document-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8079277891287188708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2121239465550539592/posts/default/8079277891287188708'/><link rel='alternate' type='text/html' href='http://dotnet-jignesh.blogspot.com/2009/05/create-word-document-in-net.html' title='Create Word Document in .Net'/><author><name>Jignesh Patel</name><uri>http://www.blogger.com/profile/12081436068185453313</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/_MSvYvFI9V58/SmAcs4LMHjI/AAAAAAAAAB8/XKyJBff8bgc/S220/MyPhoto.jpg'/></author><thr:total>0</thr:total></entry></feed>
