<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mvijayreddy's Weblog</title>
	<atom:link href="http://mvijayreddy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mvijayreddy.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 03 Jul 2009 05:22:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mvijayreddy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ac42ee20eb4035aae56ae58aa7ba5a62?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Mvijayreddy's Weblog</title>
		<link>http://mvijayreddy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mvijayreddy.wordpress.com/osd.xml" title="Mvijayreddy&#8217;s Weblog" />
		<item>
		<title>Convert HTML string to PDF using iTextSharp</title>
		<link>http://mvijayreddy.wordpress.com/2009/07/03/convert-html-string-to-pdf-using-itextsharp/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/07/03/convert-html-string-to-pdf-using-itextsharp/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 05:22:03 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=173</guid>
		<description><![CDATA[This code is very useful for generating PDF page.
Actually I have a HTML string .In side that  string there are  some tokens available.
For example :
&#60;p&#62;&#60;strong&#62;Introduction&#60;/strong&#62;&#60;/p&#62;&#60;p&#62;Hi Good morning &#60;/p&#62;&#60;p&#62;Employee Details&#60;/p&#62;&#60;p&#62;{EMPLOYEETABLE}&#60;/p&#62;&#60;p&#62;Thanks&#8230;&#60;/p&#62;
Assume that above string is  being fetched from database.
In this string i am using one token (  {EMPLOYEETABLE}  ).
I am replacing this token by employee table , [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=173&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This code is very useful for generating PDF page.<br />
Actually I have a HTML string .In side that  string there are  some tokens available.<br />
For example :<br />
&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Hi Good morning &lt;/p&gt;&lt;p&gt;Employee Details&lt;/p&gt;&lt;p&gt;{EMPLOYEETABLE}&lt;/p&gt;&lt;p&gt;Thanks&#8230;&lt;/p&gt;<br />
Assume that above string is  being fetched from database.<br />
In this string i am using one token (  {EMPLOYEETABLE}  ).<br />
I am replacing this token by employee table , there after I generate a PDF page.</p>
<p>In my  next article I will give more information as how to generate PDF.<br />
1) Pdf paging<br />
2) Water Mark<br />
This article Only generating pdf page from HTML string.</p>
<p>First create dynamic temporary Datatable<br />
  public DataTable GetFirstTable()<br />
        {<br />
            DataTable FirstTable = new DataTable();<br />
            // Declare DataColumn and DataRow variables.   <br />
            DataColumn column;<br />
            DataRow row;<br />
            // Create new DataColumn, set DataType, ColumnName and add to DataTable.   <br />
            column = new DataColumn();<br />
            column.DataType = System.Type.GetType(&#8220;System.Int32&#8243;);<br />
            column.ColumnName = &#8220;id&#8221;;<br />
            FirstTable.Columns.Add(column);<br />
            // Create second column.          <br />
            column = new DataColumn();<br />
            column.DataType = Type.GetType(&#8220;System.Int32&#8243;);<br />
            column.ColumnName = &#8220;Amount1&#8243;;<br />
            FirstTable.Columns.Add(column);<br />
            column = new DataColumn();<br />
            column.DataType = Type.GetType(&#8220;System.Int32&#8243;);<br />
            column.ColumnName = &#8220;Amount2&#8243;;<br />
            FirstTable.Columns.Add(column);<br />
            // Create new DataRow objects and add to DataTable. <br />
            for (int i = 0; i &lt; 15; i++)<br />
            {<br />
                row = FirstTable.NewRow();<br />
                row["id"] = i;<br />
                row["Amount1"] = i.ToString();<br />
                row["Amount2"] = &#8220;100&#8243; + i.ToString();<br />
                FirstTable.Rows.Add(row);<br />
            }<br />
            return FirstTable;<br />
        }<br />
    }<br />
 public void ConvertHtmlStringToPDF()<br />
        {<br />
            GridView grdTemp = new GridView();<br />
            grdTemp.DataSource = GetFirstTable();<br />
            grdTemp.DataBind();<br />
            HtmlForm form = new HtmlForm();<br />
            form.Controls.Add(grdTemp);<br />
            StringWriter sw = new StringWriter();<br />
            HtmlTextWriter hTextWriter = new HtmlTextWriter(sw);<br />
            form.Controls[0].RenderControl(hTextWriter);<br />
            string html = sw.ToString();<br />
            string htmlDisplayText = @&#8221;&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Hi Good morning &lt;/p&gt;&lt;p&gt;Employee Details&lt;/p&gt;&lt;p&gt;{EMPLOYEETABLE}&lt;/p&gt;&lt;p&gt;Thanks&#8230;&lt;/p&gt;&#8221;;<br />
            htmlDisplayText = htmlDisplayText.Replace(&#8220;{EMPLOYEETABLE}&#8221;, html);         <br />
            Document document = new Document();          <br />
            MemoryStream ms = new MemoryStream();<br />
            PdfWriter writer = PdfWriter.GetInstance(document, ms);        <br />
            StringReader se = new StringReader(htmlDisplayText);<br />
            HTMLWorker obj = new HTMLWorker(document);<br />
            document.Open();<br />
            obj.Parse(se);<br />
            // step 5: we close the document<br />
            document.Close();      <br />
            Response.Clear();<br />
            Response.AddHeader(&#8220;content-disposition&#8221;, &#8220;attachment; filename=report.pdf&#8221;);<br />
            Response.ContentType = &#8220;application/pdf&#8221;;                    <br />
            Response.Buffer = true;        <br />
            Response.OutputStream.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length);<br />
            Response.OutputStream.Flush();<br />
            Response.End();</p>
<p>        }</p>
<p>See the Pdf image</p>
<p> </p>
<p><img class="aligncenter size-medium wp-image-177" title="PDFImage" src="http://mvijayreddy.files.wordpress.com/2009/07/pdfimage3.jpg?w=300&#038;h=225" alt="PDFImage" width="300" height="225" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=173&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/07/03/convert-html-string-to-pdf-using-itextsharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>

		<media:content url="http://mvijayreddy.files.wordpress.com/2009/07/pdfimage3.jpg?w=300" medium="image">
			<media:title type="html">PDFImage</media:title>
		</media:content>
	</item>
		<item>
		<title>Delete records in GridView using Check boxes</title>
		<link>http://mvijayreddy.wordpress.com/2009/05/11/delete-records-in-gridview-using-check-boxes/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/05/11/delete-records-in-gridview-using-check-boxes/#comments</comments>
		<pubDate>Mon, 11 May 2009 07:41:07 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Ado.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=170</guid>
		<description><![CDATA[STEP 1:
&#8212;&#8212;&#8212;&#8212;&#8211;
First we will  create table in databse
/****** Object:  Table [dbo].[emp]    Script Date: 05/11/2009 12:46:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[emp](
 [eno] [int] NULL,
 [ename] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
 [sal] [varchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
 [status] [bit] NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
STEP 2:
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#60;asp:GridView ID=&#8221;grdView1&#8243; runat=&#8221;server&#8221; AutoGenerateColumns=&#8221;false&#8221; &#62;
&#60;Columns&#62;
&#60;asp:TemplateField &#62;
&#60;ItemTemplate&#62;
&#60;asp:CheckBox ID=&#8221;chkSelect&#8221; runat=&#8221;server&#8221; /&#62;
&#60;/ItemTemplate&#62;
&#60;/asp:TemplateField&#62;
&#60;asp:BoundField DataField=&#8221;eno&#8221; HeaderText=&#8221;Eno&#8221; /&#62;
&#60;asp:BoundField DataField=&#8221;ename&#8221; HeaderText=&#8221;Ename&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=170&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>STEP 1:<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
First we will  create table in databse</p>
<p>/****** Object:  Table [dbo].[emp]    Script Date: 05/11/2009 12:46:43 ******/<br />
SET ANSI_NULLS ON<br />
GO<br />
SET QUOTED_IDENTIFIER ON<br />
GO<br />
SET ANSI_PADDING ON<br />
GO<br />
CREATE TABLE [dbo].[emp](<br />
 [eno] [int] NULL,<br />
 [ename] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,<br />
 [sal] [varchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,<br />
 [status] [bit] NULL<br />
) ON [PRIMARY]</p>
<p>GO<br />
SET ANSI_PADDING OFF</p>
<p>STEP 2:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&lt;asp:GridView ID=&#8221;grdView1&#8243; runat=&#8221;server&#8221; AutoGenerateColumns=&#8221;false&#8221; &gt;<br />
&lt;Columns&gt;<br />
&lt;asp:TemplateField &gt;<br />
&lt;ItemTemplate&gt;<br />
&lt;asp:CheckBox ID=&#8221;chkSelect&#8221; runat=&#8221;server&#8221; /&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;/asp:TemplateField&gt;<br />
&lt;asp:BoundField DataField=&#8221;eno&#8221; HeaderText=&#8221;Eno&#8221; /&gt;<br />
&lt;asp:BoundField DataField=&#8221;ename&#8221; HeaderText=&#8221;Ename&#8221; /&gt;<br />
&lt;/Columns&gt;<br />
&lt;/asp:GridView&gt;<br />
&lt;br /&gt;<br />
&lt;asp:Button ID=&#8221;btnDelete&#8221; runat=&#8221;server&#8221; Text=&#8221;Delete&#8221; onclick=&#8221;btnDelete_Click&#8221; /&gt;<br />
STEP 3:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>using System;<br />
using System.Collections;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.HtmlControls;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Data.SqlClient;<br />
using System.Text;<br />
using System.Collections.Specialized;</p>
<p>    public partial class _Default : System.Web.UI.Page<br />
    {<br />
        protected void Page_Load(object sender, EventArgs e)<br />
        {<br />
            if (!IsPostBack)<br />
                BindData();<br />
        }<br />
      <br />
        public void BindData()<br />
        {<br />
                SqlConnection con = new SqlConnection(&#8220;server=(local);user id=;password=;database=;&#8221;);<br />
                SqlCommand cmd = new SqlCommand(&#8220;SELECT eno,ename FROM Emp&#8221;, con);<br />
                SqlDataAdapter da = new SqlDataAdapter(cmd);<br />
                DataSet ds = new DataSet();<br />
                da.Fill(ds);<br />
                con.Close();             <br />
                grdView1.DataSource = ds.Tables[0];<br />
                Page.DataBind();          <br />
        }</p>
<p>        protected void btnDelete_Click(object sender, EventArgs e)<br />
        {<br />
            //Create a string collection to store ids of records to be deleted.<br />
            StringCollection idCollection = new StringCollection();<br />
            string iDs = string.Empty;<br />
            //Loop through gridview rows to find checked rows<br />
            foreach (GridViewRow row in grdView1.Rows)<br />
            {<br />
                CheckBox chkDelete = (CheckBox)row.Cells[0].FindControl(&#8220;chkSelect&#8221;);<br />
                if (chkDelete != null)<br />
                {</p>
<p>                    if (chkDelete.Checked)<br />
                    {<br />
                        iDs = row.Cells[1].Text;<br />
                        idCollection.Add(iDs);<br />
                    }<br />
                }<br />
            }<br />
            //Call the method to delete records<br />
            DeleteMultipleRecords(idCollection);<br />
            //Rebind the gridview<br />
            BindData();<br />
        }</p>
<p>        private void DeleteMultipleRecords(StringCollection idCollection)<br />
        {<br />
           //Create a sql connection and sql command<br />
            SqlConnection con = new SqlConnection(&#8220;server=(local);user id=;password=;database=;&#8221;);<br />
            SqlCommand cmd = new SqlCommand();<br />
            string iDs = &#8220;&#8221;;<br />
            foreach (string id in idCollection)<br />
                iDs += id.ToString() + &#8220;,&#8221;;<br />
            string strIDs = iDs.Substring(0,iDs.LastIndexOf(&#8220;,&#8221;));<br />
            string query = &#8220;DELETE FROM EMP WHERE ENO IN (&#8221; + strIDs + &#8220;)&#8221;;<br />
            cmd.CommandType = CommandType.Text;<br />
            cmd.CommandText = query;<br />
            cmd.Connection = con;<br />
            con.Open();<br />
            cmd.ExecuteNonQuery();<br />
            con.Close();</p>
<p>        }<br />
    }</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=170&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/05/11/delete-records-in-gridview-using-check-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Removing Duplicate Records using SQL Server 2005</title>
		<link>http://mvijayreddy.wordpress.com/2009/05/11/removing-duplicate-records-using-sql-server-2005/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/05/11/removing-duplicate-records-using-sql-server-2005/#comments</comments>
		<pubDate>Mon, 11 May 2009 06:48:53 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Sql]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=167</guid>
		<description><![CDATA[First i have created Employee table.
CREATE TABLE Employee
(
ENo INT,
ENAME VARCHAR(30),
SALARY INT
)
INSERT INTO Employee(Eno,Ename,Sal)
VALUES(1,&#8217;ABC&#8217;,2000)
UNION ALL
SELECT 2,&#8217;DEF&#8217;,3000
UNION ALL
SELECT 3,&#8217;GHI&#8217;,4000
UNION ALL
SELECT 1,&#8217;JKL&#8217;,5000
 
Now, We will run the following query ,we will remove all of my duplicate records.
;WITH TempEmployeeTbl(Eno,Ename,Ranking)
AS
(
SELECT Eno,Ename,Ranking = DENSE_RANK() OVER(PARTITION BY  Eno ORDER BY NEWID() ASC)
)
DELETE FROM TempEmployeeTbl
WHERE Ranking &#62; 1
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=167&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First i have created Employee table.</p>
<p>CREATE TABLE Employee</p>
<p>(</p>
<p>ENo INT,</p>
<p>ENAME VARCHAR(30),</p>
<p>SALARY INT</p>
<p>)</p>
<p>INSERT INTO Employee(Eno,Ename,Sal)</p>
<p>VALUES(1,&#8217;ABC&#8217;,2000)</p>
<p>UNION ALL</p>
<p>SELECT 2,&#8217;DEF&#8217;,3000</p>
<p>UNION ALL</p>
<p>SELECT 3,&#8217;GHI&#8217;,4000</p>
<p>UNION ALL</p>
<p>SELECT 1,&#8217;JKL&#8217;,5000</p>
<p> </p>
<p>Now, We will run the following query ,we will remove all of my duplicate records.</p>
<p>;WITH TempEmployeeTbl(Eno,Ename,Ranking)</p>
<p>AS</p>
<p>(</p>
<p>SELECT Eno,Ename,Ranking = DENSE_RANK() OVER(PARTITION BY  Eno ORDER BY NEWID() ASC)</p>
<p>)</p>
<p>DELETE FROM TempEmployeeTbl</p>
<p>WHERE Ranking &gt; 1</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=167&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/05/11/removing-duplicate-records-using-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Find Last Date Time Updated for Any Table</title>
		<link>http://mvijayreddy.wordpress.com/2009/05/11/find-last-date-time-updated-for-any-table/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/05/11/find-last-date-time-updated-for-any-table/#comments</comments>
		<pubDate>Mon, 11 May 2009 06:32:00 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Sql]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=165</guid>
		<description><![CDATA[Now we have created a table and populated it with data. Next, we will run the following query to find out when it was last updated.
SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, last_user_update,*
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID( &#8216;AdventureWorks&#8217;)
AND OBJECT_ID=OBJECT_ID(&#8216;test&#8217;)
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=165&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Now we have created a table and populated it with data. Next, we will run the following query to find out when it was last updated.</p>
<p>SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, last_user_update,*<br />
FROM sys.dm_db_index_usage_stats<br />
WHERE database_id = DB_ID( &#8216;AdventureWorks&#8217;)<br />
AND OBJECT_ID=OBJECT_ID(&#8216;test&#8217;)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=165&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/05/11/find-last-date-time-updated-for-any-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Delete projects from VS.Net 2005 Start Page</title>
		<link>http://mvijayreddy.wordpress.com/2009/05/04/delete-projects-from-vsnet-2005-start-page/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/05/04/delete-projects-from-vsnet-2005-start-page/#comments</comments>
		<pubDate>Mon, 04 May 2009 06:31:40 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/2009/05/04/delete-projects-from-vsnet-2005-start-page/</guid>
		<description><![CDATA[Use regedit and go to: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=160&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Use regedit and go to: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=160&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/05/04/delete-projects-from-vsnet-2005-start-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Pass Multiple Values from a GridView to Another Page  using ASP.NET</title>
		<link>http://mvijayreddy.wordpress.com/2009/04/24/pass-multiple-values-from-a-gridview-to-another-page-using-aspnet/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/04/24/pass-multiple-values-from-a-gridview-to-another-page-using-aspnet/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:35:43 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=158</guid>
		<description><![CDATA[Single Value:
add the following hyperlink control after the &#60;Columns&#62; tag in the GridView as shown below:
&#60;Columns&#62;
&#60;asp:HyperLinkField DataNavigateUrlFields=&#8221;CustomerID&#8221; DataNavigateUrlFormatString=&#8221;CustomerDetails.aspx?CID={0}&#8221; Text=&#8221;Pass Single Value&#8221; /&#62;
Multiple Values:
Just below the first hyperlink field, add another hyperlink field as shown below:
&#60;asp:HyperLinkField DataNavigateUrlFields=&#8221;CustomerID, CompanyName, ContactName, Address, City&#8221; DataNavigateUrlFormatString=&#8221;CustomerDetails.aspx?CID={0}&#38;CName={1}&#38;ContactName={2}&#38;Addr={3}&#38;City={4}&#8221; Text=&#8221;Pass Multiple Values&#8221; /&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=158&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Single Value:<br />
add the following hyperlink control after the &lt;Columns&gt; tag in the GridView as shown below:<br />
&lt;Columns&gt;<br />
&lt;asp:HyperLinkField DataNavigateUrlFields=&#8221;CustomerID&#8221; DataNavigateUrlFormatString=&#8221;CustomerDetails.aspx?CID={0}&#8221; Text=&#8221;Pass Single Value&#8221; /&gt;<br />
Multiple Values:<br />
Just below the first hyperlink field, add another hyperlink field as shown below:<br />
&lt;asp:HyperLinkField DataNavigateUrlFields=&#8221;CustomerID, CompanyName, ContactName, Address, City&#8221; DataNavigateUrlFormatString=&#8221;CustomerDetails.aspx?CID={0}&amp;CName={1}&amp;ContactName={2}&amp;Addr={3}&amp;City={4}&#8221; Text=&#8221;Pass Multiple Values&#8221; /&gt;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=158&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/04/24/pass-multiple-values-from-a-gridview-to-another-page-using-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamically Create a DIV tag using Server-Side code</title>
		<link>http://mvijayreddy.wordpress.com/2009/04/24/dynamically-create-a-div-tag-using-server-side-code/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/04/24/dynamically-create-a-div-tag-using-server-side-code/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:21:23 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=155</guid>
		<description><![CDATA[This sample shows how to create a &#60;Div&#62; dynamically using C#.
In .aspx page
 &#60;asp:Button ID=&#8221;Botton1&#8243; runat=&#8221;server&#8221;
        onclick=&#8221;Button1_Click&#8221; style=&#8221;height:
 26px&#8221;
        Text=&#8221;Code BehindPage&#8221; /&#62;
In .aspx.cs page (CodeBehind)
 
 
 
 
 
 
 
System.Web.UI.HtmlControls.
 
HtmlGenericControl dynDiv = new System.Web.UI.HtmlControls.HtmlGenericControl(&#8220;DIV&#8221;);dynDiv.ID =

&#8220;dynDivCode&#8221;;dynDiv.Style.Add(

HtmlTextWriterStyle.BackgroundColor,&#8220;Gray&#8221;);dynDiv.Style.Add(

HtmlTextWriterStyle.Height, &#8220;20px&#8221;);dynDiv.Style.Add(

HtmlTextWriterStyle.Width, &#8220;300px&#8221;);dynDiv.InnerHtml =

&#8220;I was created using Code Behind&#8221;; 

this.Controls.Add(dynDiv);
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=155&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This sample shows how to create a &lt;Div&gt; dynamically using C#.</p>
<p>In .aspx page</p>
<p> &lt;asp:Button ID=&#8221;Botton1&#8243; runat=&#8221;server&#8221;</p>
<p>        onclick=&#8221;Button1_Click&#8221; style=&#8221;height:<br />
 26px&#8221;</p>
<p>        Text=&#8221;Code BehindPage&#8221; /&gt;</p>
<p>In .aspx.cs page (CodeBehind)</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><span style="font-size:x-small;"><font size="2">System.Web.UI.HtmlControls.</p>
<p></font></span> </p>
<p><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">HtmlGenericControl</span></span><span style="font-size:x-small;"> dynDiv = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> System.Web.UI.HtmlControls.</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">HtmlGenericControl</span></span><span style="font-size:x-small;">(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;DIV&#8221;</span></span><span style="font-size:x-small;">);<font size="2">dynDiv.ID =</p>
<p></font></span></p>
<p><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;dynDivCode&#8221;</span></span><span style="font-size:x-small;">;<font size="2">dynDiv.Style.Add(</p>
<p></font></span></p>
<p><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">HtmlTextWriterStyle</span></span><span style="font-size:x-small;">.BackgroundColor,</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;Gray&#8221;</span></span><span style="font-size:x-small;">);<font size="2">dynDiv.Style.Add(</p>
<p></font></span></p>
<p><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">HtmlTextWriterStyle</span></span><span style="font-size:x-small;">.Height, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;20px&#8221;</span></span><span style="font-size:x-small;">);<font size="2">dynDiv.Style.Add(</p>
<p></font></span></p>
<p><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">HtmlTextWriterStyle</span></span><span style="font-size:x-small;">.Width, </span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;300px&#8221;</span></span><span style="font-size:x-small;">);<font size="2">dynDiv.InnerHtml =</p>
<p></font></span></p>
<p><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&#8220;I was created using Code Behind&#8221;</span></span><span style="font-size:x-small;">;<font size="2"> </p>
<p></font></span></p>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">this</span></span><span style="font-size:x-small;">.Controls.Add(dynDiv);</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=155&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/04/24/dynamically-create-a-div-tag-using-server-side-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>How to globally register user and custom controls in ASP.NET 2.0</title>
		<link>http://mvijayreddy.wordpress.com/2009/04/24/how-to-globally-register-user-and-custom-controls-in-aspnet-20/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/04/24/how-to-globally-register-user-and-custom-controls-in-aspnet-20/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:14:47 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=153</guid>
		<description><![CDATA[In previous versions of ASP.NET, if you wanted to import and use any user or custom control, you needed to add a page directive &#60;%@ Register %&#62; in that .aspx page. Shown below is an example of the register directive for a user control.
&#60;%@ Register  TagPrefix=&#8221;uc&#8221;  TagName=&#8221;table&#8221;  Src=&#8221;table.ascx&#8221; %&#62;
&#60;body&#62;
    &#60;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&#62;
    &#60;div&#62;
        &#60;uc:table ID=&#8221;Table1&#8243; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=153&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In previous versions of ASP.NET, if you wanted to import and use any user or custom control, you needed to add a page directive &lt;%@ Register %&gt; in that .aspx page. Shown below is an example of the register directive for a user control.<br />
&lt;%@ Register  TagPrefix=&#8221;uc&#8221;  TagName=&#8221;table&#8221;  Src=&#8221;table.ascx&#8221; %&gt;<br />
&lt;body&gt;<br />
    &lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&gt;<br />
    &lt;div&gt;<br />
        &lt;uc:table ID=&#8221;Table1&#8243; runat=&#8221;server&#8221; /&gt;<br />
    &lt;/div&gt;<br />
    &lt;/form&gt;<br />
&lt;/body&gt;<br />
In ASP.NET 2.0, managing controls has become easier. Instead of declaring them on every page, you can declare them only once in your web.config file and use them in your entire project.<br />
&lt;configuration&gt;<br />
    &lt;system.web&gt;       <br />
      &lt;pages&gt;<br />
            &lt;controls&gt;<br />
                  &lt;add tagPrefix=&#8221;uc&#8221; tagName=&#8221;table&#8221; src=&#8221;table.ascx&#8221; /&gt;<br />
            &lt;/controls &gt;<br />
      &lt;/pages &gt;  <br />
    &lt;/system.web&gt;<br />
&lt;/configuration&gt;<br />
Once you have registered this control in your web.config, you can use this control on any page without explicitly adding a register directive on the page.<br />
&lt;body&gt;<br />
    &lt;form id=&#8221;form1&#8243; runat=&#8221;server&#8221;&gt;<br />
    &lt;div&gt;<br />
        &lt;uc:table ID=&#8221;Table1&#8243; runat=&#8221;server&#8221; /&gt;<br />
    &lt;/div&gt;<br />
    &lt;/form&gt;<br />
&lt;/body&gt;<br />
While using this control, you will also notice the intellisense support which saves us from remembering the syntax for using the control.<br />
Well that’s it. It’s that easy. Thanks to the book MVP: Hacks and Tips book from Wrox which mentioned this tip.</p>
<p>One thing to note above is the use of the &#8220;~&#8221; syntax with the user-controls.  For those of you not familiar with this notation, the &#8220;~&#8221; keyword in ASP.NET means &#8220;resolve from the application root path&#8221;, and provides a good way to avoid adding &#8220;..\&#8221; syntax all over your code.  You will always want/need to use it when declaring user controls within web.config files since pages might be using the controls in different sub-directories &#8211; and so you always need to resolve paths from the application root to find the controls consistently.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=153&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/04/24/how-to-globally-register-user-and-custom-controls-in-aspnet-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a Dynamic Hyperlink in ASP.NET using the Web.Config</title>
		<link>http://mvijayreddy.wordpress.com/2009/04/24/creating-a-dynamic-hyperlink-in-aspnet-using-the-webconfig/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/04/24/creating-a-dynamic-hyperlink-in-aspnet-using-the-webconfig/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:12:12 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=151</guid>
		<description><![CDATA[&#60;appSettings&#62;
    &#60;add key=&#8221;someurl&#8221; value=&#8221;http://mvijayreddy.wordpress.com /&#62;
  &#60;/appSettings&#62;
 
  &#60;asp:HyperLink ID=&#8221;HyperLink1&#8243; runat=&#8221;server&#8221;
    NavigateUrl=&#8221;&#60;%$ Appsettings:someurl %&#62;&#8221;  Text=&#8221;Click Here&#8221;&#62;
    &#60;/asp:HyperLink&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=151&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&lt;appSettings&gt;</p>
<p>    &lt;add key=&#8221;someurl&#8221; value=&#8221;<a href="http://mvijayreddy.wordpress.com">http://mvijayreddy.wordpress.com</a> /&gt;</p>
<p>  &lt;/appSettings&gt;</p>
<p> </p>
<p>  &lt;asp:HyperLink ID=&#8221;HyperLink1&#8243; runat=&#8221;server&#8221;</p>
<p>    NavigateUrl=&#8221;&lt;%$ Appsettings:someurl %&gt;&#8221;  Text=&#8221;Click Here&#8221;&gt;<br />
    &lt;/asp:HyperLink&gt;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=151&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/04/24/creating-a-dynamic-hyperlink-in-aspnet-using-the-webconfig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Rules apply to variable scope in lambda expressions</title>
		<link>http://mvijayreddy.wordpress.com/2009/04/15/rules-apply-to-variable-scope-in-lambda-expressions/</link>
		<comments>http://mvijayreddy.wordpress.com/2009/04/15/rules-apply-to-variable-scope-in-lambda-expressions/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 09:52:17 +0000</pubDate>
		<dc:creator>mvijayreddy</dc:creator>
				<category><![CDATA[.Net 3.5]]></category>

		<guid isPermaLink="false">http://mvijayreddy.wordpress.com/?p=148</guid>
		<description><![CDATA[If you want more information use this Url
    http://msdn.microsoft.com/en-us/library/bb397687.aspx

A variable that is captured will not be garbage-collected until the delegate that references it goes out of scope.
Variables introduced within a lambda expression are not visible in the outer method.
A lambda expression cannot directly capture a ref or out parameter from an enclosing method.
A return statement [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=148&subd=mvijayreddy&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you want more information use this Url</p>
<p>    <a class="aligncenter" title="http://msdn.microsoft.com/en-us/library/bb397687.aspx" href="http://msdn.microsoft.com/en-us/library/bb397687.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb397687.aspx</a></p>
<ul>
<li>A variable that is captured will not be garbage-collected until the delegate that references it goes out of scope.</li>
<li>Variables introduced within a lambda expression are not visible in the outer method.</li>
<li>A lambda expression cannot directly capture a ref or out parameter from an enclosing method.</li>
<li>A return statement in a lambda expression does not cause the enclosing method to return.</li>
<li>A lambda expression cannot contain a goto statement, break statement, or continue statement whose target is outside the body or in the body of a contained anonymous function.</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mvijayreddy.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mvijayreddy.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mvijayreddy.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mvijayreddy.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mvijayreddy.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mvijayreddy.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mvijayreddy.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mvijayreddy.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mvijayreddy.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mvijayreddy.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mvijayreddy.wordpress.com&blog=4946871&post=148&subd=mvijayreddy&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mvijayreddy.wordpress.com/2009/04/15/rules-apply-to-variable-scope-in-lambda-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb3e6000c866e7a1f9b0a88f537c7c03?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mvijayreddy</media:title>
		</media:content>
	</item>
	</channel>
</rss>