<?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/"
	>

<channel>
	<title>Joggee</title>
	<atom:link href="http://www.joggee.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joggee.com</link>
	<description>Blog.Joggee.Com</description>
	<lastBuildDate>Mon, 16 Jan 2012 13:31:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>ASP.NET MVC Multiple models binding to a single view.</title>
		<link>http://www.joggee.com/asp-net-mvc-multiple-models-binding-to-a-single-view/</link>
		<comments>http://www.joggee.com/asp-net-mvc-multiple-models-binding-to-a-single-view/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 13:28:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[Multiple Models binding]]></category>
		<category><![CDATA[MVC ASP.NET]]></category>
		<category><![CDATA[Razor]]></category>
		<category><![CDATA[ViewBag]]></category>
		<category><![CDATA[Views]]></category>

		<guid isPermaLink="false">http://www.joggee.com/?p=190</guid>
		<description><![CDATA[I came to know that there is a very hot topic that how to bind multiple models to a single view. I saw developers approached very touch way [..]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: small;">I came to know that there is a very hot topic that how to bind multiple models to a single view.</span></p>
<p>I saw developers approached very touch way to acheived this tiny task.Mostly following Implementing IEnumerator Interface. If a developer doesn&#8217;t know the complete knowledge about the GetEnumertor function or how to implement and how further bound, It will stuck at some place. I will cut it short.</p>
<p>I suppose you have two classes.</p>
<p>Class 1 named : GetPackages which returns credit card list.</p>
<pre> public class GetPackages
    {
        private List&lt;SelectListItem&gt; _creditCardType =
new List&lt;SelectListItem&gt;();
        public List&lt;SelectListItem&gt; CreditCardTypeList
        {
            get
            {
                _creditCardType.Add(new SelectListItem()
{ Text = "Visa", Value = "Visa" });
                _creditCardType.Add(new SelectListItem()
{ Text = "MasterCard", Value = "MasterCard" });
                _creditCardType.Add(new SelectListItem()
{ Text = "AmericanExpress", Value = "AmericanExpress" });
                _creditCardType.Add(new SelectListItem()
 { Text = "Discover", Value = "Discover" });
                return _creditCardType;
            }
        }
    }</pre>
<p>Class2: Month list</p>
<pre>public class Month
{
        public List&lt;SelectListItem&gt; MonthList
        {
            get
            {
                _monthList.Add(new SelectListItem()
{ Text = "Jan", Value = "01" });
                _monthList.Add(new SelectListItem()
 { Text = "Feb", Value = "02" });
                _monthList.Add(new SelectListItem()
{ Text = "Mar", Value = "03" });
                _monthList.Add(new SelectListItem()
{ Text = "Apr", Value = "04" });
                _monthList.Add(new SelectListItem()
{ Text = "May", Value = "05" });
                _monthList.Add(new SelectListItem()
{ Text = "Jun", Value = "06" });
                return _monthList;
            }
        }
}</pre>
<p>At Controller side:</p>
<pre>public class HomeController : Controller
    {
        public ActionResult Index()
        {
            GetPackages getPackage = new GetPackages();
            Month monthlist = new Month();
            ViewBag.GetPackages = getPackage;
            ViewBag.month = monthlist;
            return View();
        }
    }</pre>
<p>At View using Razor</p>
<pre> @foreach (var type in ViewBag.GetPackages.CreditCardTypeList)   �
       {     �
           &lt;a href="@type.Text"&gt;@type.Text&lt;/a&gt;     �
       }  </pre>
<pre> @foreach (var month in ViewBag.month.Monthlist)   �
       {     �
           &lt;a href="@month.Text"&gt;@month.Text&lt;/a&gt;     �
       }</pre>
<p>Its a very easy way to bind through Viewbag.<br />
<strong>ViewBag</strong> which can be used to pass data from Controllers to Views same as you use ViewData[] dictionary.<br />
I am running out of time, I will explain in detail about Viewbag and Viewdata.</p>
<p>Regards,<br />
Joggee.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/asp-net-mvc-multiple-models-binding-to-a-single-view/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Steps to implement Elmah with your website.</title>
		<link>http://www.joggee.com/steps-to-imeplemts-elmah-with-your-website/</link>
		<comments>http://www.joggee.com/steps-to-imeplemts-elmah-with-your-website/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 14:39:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Visual Studio ASP.NET]]></category>
		<category><![CDATA[Elmah]]></category>
		<category><![CDATA[Error Log]]></category>

		<guid isPermaLink="false">http://www.joggee.com/?p=186</guid>
		<description><![CDATA[ELMAH is an application &#8211; wide exception logging system that logs unhandled exceptions. you can add ELMAH assembly in your developing project or you can configure it and [..]]]></description>
			<content:encoded><![CDATA[<p>ELMAH is an application &#8211; wide exception logging system that logs unhandled exceptions. you can add ELMAH assembly in your developing project or you can configure it and add dynamically in you running Asp.net application<br />
Background</p>
<p>1.Logs all the unhandled exceptions<br />
2.Gives custome exceptions even thought the custome exception mode is off<br />
3.An RSS feed of the exception.<br />
4.Email the exceptions</p>
<p><strong> Implementation</strong><br />
<span style="color: #ff6600;">1.Add ELMAH assembly in your project.</span></p>
<p>To download elmah assembly:<br />
<a href="http://code.google.com/p/elmah/wiki/Downloads?tm=2">http://code.google.com/p/elmah/wiki/Downloads?tm=2</a></p>
<p>Also, ELMAH is available <a href="http://download.microsoft.com/download/E/9/7/E97DB6A9-3418-46DF-99CA-840357FE4D72/MSDNElmah.msi">here</a><br />
<span style="color: #ff6600;">2.Configur your web.config </span></p>
<p><span style="color: #000000;">For latest web.config configuration:<br />
<a href="http://elmah.googlecode.com/svn-history/r761/tags/REL-1.2-BETA/samples/web.config">http://elmah.googlecode.com/svn-history/r761/tags/REL-1.2-BETA/samples/web.config</a></span></p>
<p>Here is a sample web config setting</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;configuration&gt;<br />
  &lt;configSections&gt;<br />
    &lt;sectionGroup name=&#8221;elmah&#8221;&gt;<br />
      &lt;section name=&#8221;errorLog&#8221; requirePermission=&#8221;false&#8221; type=&#8221;Elmah.ErrorLogSectionHandler, Elmah&#8221; /&gt;<br />
      &lt;section name=&#8221;errorMail&#8221; requirePermission=&#8221;false&#8221; type=&#8221;Elmah.ErrorMailSectionHandler, Elmah&#8221; /&gt;<br />
      &lt;section name=&#8221;errorFilter&#8221; requirePermission=&#8221;false&#8221; type=&#8221;Elmah.ErrorFilterSectionHandler, Elmah&#8221;/&gt;<br />
    &lt;/sectionGroup&gt;<br />
  &lt;/configSections&gt;<br />
  &lt;connectionStrings &gt;<br />
    &lt;add name=&#8221;elmah-sql&#8221; connectionString=&#8221;Data Source=xxx;Initial Catalog=ELMAH;Trusted_Connection=True&#8221; /&gt;<br />
  &lt;/connectionStrings&gt;<br />
  &lt;elmah&gt;<br />
    &lt;errorLog type=&#8221;Elmah.SqlErrorLog, Elmah&#8221; connectionStringName=&#8221;elmah-sql&#8221;   &gt;<br />
    &lt;/errorLog&gt;<br />
  &lt;/elmah&gt;<br />
  &lt;system.web&gt;<br />
    &lt;httpModules&gt;<br />
      &lt;add name=&#8221;ErrorLog&#8221; type=&#8221;Elmah.ErrorLogModule, Elmah&#8221;/&gt;<br />
    &lt;/httpModules&gt;<br />
    &lt;httpHandlers&gt;<br />
      &lt;add verb=&#8221;POST,GET,HEAD&#8221; path=&#8221;elmah.axd&#8221; type=&#8221;Elmah.ErrorLogPageFactory, Elmah&#8221; /&gt;<br />
    &lt;/httpHandlers&gt;<br />
    &lt;customErrors mode=&#8221;On&#8221; defaultRedirect=&#8221;CustomeErrorPage.htm&#8221; /&gt;<br />
  &lt;/system.web&gt;<br />
&lt;/configuration&gt;</p>
<p><span style="color: #ff6600;">3.Script to create required tables and stored procedure<br />
</span><br />
CREATE TABLE dbo.ELMAH_Error<br />
(<br />
    ErrorId     UNIQUEIDENTIFIER NOT NULL,<br />
    Application NVARCHAR(60)  NOT NULL,<br />
    Host        NVARCHAR(50)  NOT NULL,<br />
    Type        NVARCHAR(100) NOT NULL,<br />
    Source      NVARCHAR(60)  NOT NULL,<br />
    Message     NVARCHAR(500) NOT NULL,<br />
    [User]      NVARCHAR(50)  NOT NULL,<br />
    StatusCode  INT NOT NULL,<br />
    TimeUtc     DATETIME NOT NULL,<br />
    Sequence    INT IDENTITY (1, 1) NOT NULL,<br />
    AllXml      NTEXT  NOT NULL<br />
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]<br />
GO</p>
<p>ALTER TABLE dbo.ELMAH_Error WITH NOCHECK ADD<br />
    CONSTRAINT PK_ELMAH_Error PRIMARY KEY<br />
    (<br />
        ErrorId<br />
    )  ON [PRIMARY]<br />
GO</p>
<p>ALTER TABLE dbo.ELMAH_Error ADD<br />
    CONSTRAINT DF_ELMAH_Error_ErrorId DEFAULT (newid()) FOR [ErrorId]<br />
GO</p>
<p>SET QUOTED_IDENTIFIER ON<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>CREATE PROCEDURE dbo.ELMAH_GetErrorXml<br />
(<br />
    @Application NVARCHAR(60),<br />
    @ErrorId UNIQUEIDENTIFIER<br />
)<br />
AS</p>
<p>SET NOCOUNT ON</p>
<p>SELECT<br />
    AllXml<br />
FROM<br />
    ELMAH_Error<br />
WHERE<br />
    ErrorId = @ErrorId<br />
AND<br />
    Application = @Application</p>
<p>&nbsp;</p>
<p>GO<br />
SET QUOTED_IDENTIFIER OFF<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>SET QUOTED_IDENTIFIER ON<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>CREATE PROCEDURE dbo.ELMAH_GetErrorsXml<br />
(<br />
    @Application NVARCHAR(60),<br />
    @PageIndex INT = 0,<br />
    @PageSize INT = 15,<br />
    @TotalCount INT OUTPUT<br />
)<br />
AS</p>
<p>SET NOCOUNT ON</p>
<p>DECLARE @Page TABLE<br />
(<br />
    Position INT IDENTITY(1, 1) NOT NULL,<br />
    ErrorId UNIQUEIDENTIFIER NOT NULL,<br />
    Application NVARCHAR(60) NOT NULL,<br />
    Host NVARCHAR(30) NOT NULL,<br />
    Type NVARCHAR(100) NOT NULL,<br />
    Source NVARCHAR(60) NOT NULL,<br />
    Message NVARCHAR(500) NOT NULL,<br />
    [User] NVARCHAR(50) NOT NULL,<br />
    StatusCode INT NOT NULL,<br />
    TimeUtc DATETIME NOT NULL<br />
)</p>
<p>INSERT<br />
INTO<br />
    @Page<br />
    (<br />
        ErrorId,<br />
        Application,<br />
        Host,<br />
        Type,<br />
        Source,<br />
        Message,<br />
        [User],<br />
        StatusCode,<br />
        TimeUtc<br />
    )<br />
SELECT<br />
    ErrorId,<br />
    Application,<br />
    Host,<br />
    Type,<br />
    Source,<br />
    Message,<br />
    [User],<br />
    StatusCode,<br />
    TimeUtc<br />
FROM<br />
    ELMAH_Error<br />
WHERE<br />
    Application = @Application  �<br />
ORDER BY<br />
    TimeUtc DESC,<br />
    Sequence DESC</p>
<p>SELECT<br />
    @TotalCount = COUNT(*)<br />
FROM<br />
    @Page</p>
<p>DECLARE @FirstPosition INT<br />
SET @FirstPosition = @PageIndex * @PageSize + 1</p>
<p>DECLARE @LastPosition INT<br />
SET @LastPosition  = @FirstPosition + @PageSize &#8211; 1</p>
<p>SELECT<br />
    errorId,<br />
    application,<br />
    host,<br />
    type,<br />
    source,<br />
    message,<br />
    [user],<br />
    statusCode,<br />
    CONVERT(VARCHAR(50), TimeUtc, 126) + &#8216;Z&#8217; time<br />
FROM<br />
    @Page error<br />
WHERE<br />
    Position &gt;= @FirstPosition<br />
AND<br />
    Position &lt;= @LastPosition<br />
ORDER BY<br />
    Position<br />
FOR<br />
    XML AUTO</p>
<p>GO<br />
SET QUOTED_IDENTIFIER OFF<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>SET QUOTED_IDENTIFIER ON<br />
GO<br />
SET ANSI_NULLS ON<br />
GO</p>
<p>CREATE PROCEDURE dbo.ELMAH_LogError<br />
(<br />
    @ErrorId UNIQUEIDENTIFIER,<br />
    @Application NVARCHAR(60),<br />
    @Host NVARCHAR(30),<br />
    @Type NVARCHAR(100),<br />
    @Source NVARCHAR(60),<br />
    @Message NVARCHAR(500),<br />
    @User NVARCHAR(50),<br />
    @AllXml NTEXT,<br />
    @StatusCode INT,<br />
    @TimeUtc DATETIME<br />
)<br />
AS</p>
<p>SET NOCOUNT ON</p>
<p>INSERT<br />
INTO<br />
    ELMAH_Error<br />
    (<br />
        ErrorId,<br />
        Application,<br />
        Host,<br />
        Type,<br />
        Source,<br />
        Message,<br />
        [User],<br />
        AllXml,<br />
        StatusCode,<br />
        TimeUtc<br />
    )<br />
VALUES<br />
    (<br />
        @ErrorId,<br />
        @Application,<br />
        @Host,<br />
        @Type,<br />
        @Source,<br />
        @Message,<br />
        @User,<br />
        @AllXml,<br />
        @StatusCode,<br />
        @TimeUtc<br />
    )</p>
<p>GO<br />
SET QUOTED_IDENTIFIER OFF<br />
GO<br />
SET ANSI_NULLS ON<br />
GO<br />
In order to get the details just append &#8220;/elmah.axd to you browser to the default page.</p>
<p>e.g. <a href="http://localhost/sitename/elmah.axd">http://localhost/sitename/elmah.axd</a></p>
<p>Thank to Mr. Gautam Sharma</p>
<p><a href="http://www.codeproject.com/KB/aspnet/ELMAHDemo.aspx">http://www.codeproject.com/KB/aspnet/ELMAHDemo.aspx</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/steps-to-imeplemts-elmah-with-your-website/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bill Gates’ last day at Microsoft (video)</title>
		<link>http://www.joggee.com/bill-gates-last-day-at-microsoft-video/</link>
		<comments>http://www.joggee.com/bill-gates-last-day-at-microsoft-video/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:08:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Bill Gate]]></category>
		<category><![CDATA[Comedy]]></category>
		<category><![CDATA[Last Date Microsoft]]></category>
		<category><![CDATA[Spoof]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=181</guid>
		<description><![CDATA[A video spoof shown during the CES 2008 keynote by Bill Gates about his last full day at Microsoft in July starring himself, Brian Williams, Steve Ballmer, Matthew [..]]]></description>
			<content:encoded><![CDATA[<p>A video spoof shown during the <a href="http://www.microsoft.com/ces/"><span style="color: #bb444d;">CES 2008 keynote by Bill Gates</span></a> about his last full day at Microsoft in July starring himself, Brian Williams, Steve Ballmer, Matthew McConaugheyr, Robbie Bach, Jay-Z, Bono, Steven Spielberg, George Clooney, Jon Stewart, Kevin Turner, Hillary Clinton, Barack Obama, Al Gore, Ray Ozzie and Craig Mundie.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/Xr5w3X4R8b4&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/Xr5w3X4R8b4&amp;hl=en"></embed></object></p>
<p>Can check out a wide screen version with high quality</p>
<p><a href="http://www.istartedsomething.com/20080107/bill-gates-last-day-microsoft-video/">http://www.istartedsomething.com/20080107/bill-gates-last-day-microsoft-video/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/bill-gates-last-day-at-microsoft-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mouse over effect</title>
		<link>http://www.joggee.com/mouse-over-effect/</link>
		<comments>http://www.joggee.com/mouse-over-effect/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 06:46:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET Tips]]></category>
		<category><![CDATA[Anchor]]></category>
		<category><![CDATA[Mouse Over]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=180</guid>
		<description><![CDATA[This is so simple and can found thousand places but I tried to make it more easier who doesnt know the different between &#60;asp:linked button&#62; or anchor. Copy [..]]]></description>
			<content:encoded><![CDATA[<p>This is so simple and can found thousand places but I tried to make it more easier who doesnt know the different between &lt;asp:linked button&gt; or anchor.</p>
<p>Copy below code in your ASPX page.<br />
 </p>
<p> <span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">&lt;</span></span><span style="font-size: x-small; color: #a31515;">table</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">width</span><span style="font-size: x-small; color: #0000ff;">=&#8221;50%&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">border</span><span style="font-size: x-small; color: #0000ff;">=&#8221;1&#8243;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">cellspacing</span><span style="font-size: x-small; color: #0000ff;">=&#8221;0&#8243;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">cellpadding</span><span style="font-size: x-small; color: #0000ff;">=&#8221;0&#8243;&gt;</span></p>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">tr</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">align</span><span style="font-size: x-small; color: #0000ff;">=&#8221;center&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">href</span><span style="font-size: x-small; color: #0000ff;">=&#8221;</span><span style="font-size: x-small;">&lt;%=ResolveURL(&#8220;~/Default.aspx&#8221;) %&gt;</span><span style="font-size: x-small; color: #0000ff;">&#8220;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span><span style="font-size: x-small;">Home</span><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small; color: #0000ff;">&gt;&lt;/</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">align</span><span style="font-size: x-small; color: #0000ff;">=&#8221;center&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">href</span><span style="font-size: x-small; color: #0000ff;">=&#8221;http://blog.joggee.com/?page_id=11&#8243;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span><span style="font-size: x-small;">About Us</span><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small; color: #0000ff;">&gt;&lt;/</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">align</span><span style="font-size: x-small; color: #0000ff;">=&#8221;center&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">href</span><span style="font-size: x-small; color: #0000ff;">=&#8221;http://blog.joggee.com&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span><span style="font-size: x-small;">Blog</span><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small; color: #0000ff;">&gt;&lt;/</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">align</span><span style="font-size: x-small; color: #0000ff;">=&#8221;center&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">href</span><span style="font-size: x-small; color: #0000ff;">=&#8221;http://www.joggee.com&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span><span style="font-size: x-small;">Contact Us</span><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small; color: #0000ff;">&gt;&lt;/</span><span style="font-size: x-small; color: #a31515;">td</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">tr</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">table</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div>create a CSS (Style sheet)</div>
</div>
<p> copy below code in your CSS</p>
<p><span style="font-size: x-small; color: #a31515;">.topmenulink</span></p>
<p><span style="font-size: x-small;">{<br />
</span><span style="font-size: x-small; color: #ff0000;">font-family</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">tahoma</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">font-size</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">13px</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">font-weight</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">normal;<br />
</span><span style="font-size: x-small; color: #ff0000;">color</span><span style="font-size: x-small;">:</span><span style="font-size: x-small; color: #0000ff;">Blue</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">text-decoration</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">none</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small;">}<br />
</span><span style="font-size: x-small; color: #a31515;">.topmenulink:hover<br />
</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small;">{<br />
</span></span><span style="font-size: x-small; color: #ff0000;">font-family</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">tahoma</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">font-size</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">13px</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">font-weight</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">normal</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">color</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">Blue</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">text-decoration</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">none</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small; color: #ff0000;">background-color</span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #0000ff;">Khaki</span><span style="font-size: x-small;">;<br />
</span><span style="font-size: x-small;"><span style="font-size: x-small;">}</span></span></p>
<div>
<div>
<p><span style="font-size: x-small;"><span style="font-size: x-small;">Note: you can change color scheme as per your site theme.</span></span></p>
<p><span style="font-size: x-small;"><span style="font-size: x-small;">YOU CAN DOWNLOAD SAMPLE PROJECT <a title="Sample Project" href="http://blog.joggee.com/wp-content/uploads/AJAXEnabledWebSite.rar">HERE</a> </span></span></p>
<p><span style="font-size: x-small;">I have used above ResolveURL Method,Just to give hint if you are using MASTER Page, then its recommendable to use ResolveURL to avoid any Warning or Problem.<br />
</span><span style="font-size: x-small;"><br />
If you want to how the hyperlink on the complete Button instead of TEXT then bring anchor link tag outside &lt;TD&gt; tag</span></p>
<p><span style="font-size: x-small;"><span style="color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">table</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">width</span><span style="font-size: x-small; color: #0000ff;">=&#8221;50%&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">border</span><span style="font-size: x-small; color: #0000ff;">=&#8221;1&#8243;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">cellspacing</span><span style="font-size: x-small; color: #0000ff;">=&#8221;0&#8243;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">cellpadding</span><span style="font-size: x-small; color: #0000ff;">=&#8221;0&#8243;&gt;</span></p>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">tr</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;</span><span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">href</span><span style="font-size: x-small; color: #0000ff;">=&#8221;</span><span style="font-size: x-small;">&lt;%=ResolveURL(&#8220;~/Default.aspx&#8221;) %&gt;</span><span style="font-size: x-small; color: #0000ff;">&#8220;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small; color: #ff0000;">class</span><span style="font-size: x-small; color: #0000ff;">=&#8221;topmenulink&#8221;&gt;</span><span style="font-size: x-small;">Home</p>
<div><span style="color: #888888;"><span style="font-size: x-small;">&lt;</span><span style="font-size: x-small;">td</span><span style="font-size: x-small;"> </span><span style="font-size: x-small;">align</span><span style="font-size: x-small;">=&#8221;center&#8221;</span><span style="font-size: x-small;"> </span><span style="font-size: x-small;">class</span><span style="font-size: x-small;">=&#8221;topmenulink&#8221;&gt;</span></span></div>
<p></span><span style="color: #888888;"><span style="font-size: x-small;">&lt;/</span><span style="font-size: x-small;">td</span></span><span style="font-size: x-small; color: #0000ff;"><span style="color: #888888;">&gt;</span>&lt;/<span style="font-size: x-small; color: #a31515;">a</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></span></div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">tr</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><span style="font-size: x-small; color: #0000ff;">&lt;/</span><span style="font-size: x-small; color: #a31515;">table</span><span style="font-size: x-small; color: #0000ff;">&gt;</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p></span></p>
<p><span style="font-size: x-small;">Enjoy </span></p>
<p><span style="font-size: x-small;">Joggee</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/mouse-over-effect/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to remove recent project history from Visual Studio Start Page</title>
		<link>http://www.joggee.com/how-to-remove-recent-project-history-from-visual-studio/</link>
		<comments>http://www.joggee.com/how-to-remove-recent-project-history-from-visual-studio/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 09:10:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET Tips]]></category>
		<category><![CDATA[RegEdit]]></category>
		<category><![CDATA[Removing Recent Project]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=174</guid>
		<description><![CDATA[Time comes when recent project list over crowded and its hard to find particular project which doesnt display in the list. Question arises how to delete the recent project history [..]]]></description>
			<content:encoded><![CDATA[<p>Time comes when recent project list over crowded and its hard to find particular project which doesnt display in the list.</p>
<p>Question arises how to delete the recent project history or the list from the main dashboard of the visual studio.</p>
<p>Follow these steps to remove unused project shown in the list.</p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.25in; text-indent: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1;"><span style="font-size: 9pt; color: #00b050; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.</span><span style="font-family: ">        </span></span></span><span style="font-size: 9pt; line-height: 115%;"><span style="font-family: Calibri;">HKEY_CLASSES_ROOT</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.55in; text-indent: -0.3in; mso-add-space: auto; mso-list: l0 level2 lfo1;"><span style="font-size: 9pt; color: #00b050; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.1.</span><span style="font-family: ">      </span></span></span><span style="font-size: 9pt; line-height: 115%;"><span style="font-family: Calibri;">Software</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.85in; text-indent: -0.35in; mso-add-space: auto; mso-list: l0 level3 lfo1;"><span style="font-size: 9pt; color: #00b050; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.1.1.</span><span style="font-family: ">    </span></span></span><span style="font-size: 9pt; line-height: 115%;"><span style="font-family: Calibri;">Microsoft</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1.2in; text-indent: -0.45in; mso-add-space: auto; mso-list: l0 level4 lfo1;"><span style="font-size: 9pt; color: #00b050; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.1.1.1.</span><span style="font-family: ">    </span></span></span><span style="font-size: 9pt; line-height: 115%;"><span style="font-family: Calibri;">VisualStudio</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1.55in; text-indent: -0.55in; mso-add-space: auto; mso-list: l0 level5 lfo1;"><span style="font-size: 9pt; color: #00b050; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.1.1.1.1.</span><span style="font-family: ">    </span></span></span><span style="font-size: 9pt; line-height: 115%;"><span style="font-family: Calibri;">8.0<span style="mso-spacerun: yes;">  </span><span style="color: #948a54; mso-themecolor: background2; mso-themeshade: 128;">(Version which you are currently working)</span></span></span></p>
<p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 1.9in; text-indent: -0.65in; mso-add-space: auto; mso-list: l0 level6 lfo1;"><span style="font-size: 9pt; color: #00b050; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">1.1.1.1.1.1.</span><span style="font-family: ">    </span></span></span><span style="font-size: 9pt; line-height: 115%;"><span style="font-family: Calibri;">ProjectMRUList</span></span></p>
<p>Graphicial Steps :</p>
<p><a href="http://blog.joggee.com/wp-content/uploads/2008/06/step0-recentproject.jpg"><img class="alignnone size-medium wp-image-176" title="step0-recentproject" src="http://blog.joggee.com/wp-content/uploads/2008/06/step0-recentproject-179x300.jpg" alt="step0-recentproject" width="179" height="300" /></a></p>
<p><a href="http://blog.joggee.com/wp-content/uploads/2008/06/steps1registry.jpg"><img class="alignnone size-medium title=" src="http://blog.joggee.com/wp-content/uploads/2008/06/steps1registry.jpg" alt="step1-recentproject" /></a></p>
<p> Finally check the hierarchy of the steps.</p>
<p><a href="http://blog.joggee.com/wp-content/uploads/2008/06/stepsregistry.gif"><img class="alignnone size-medium wp-image-178" title="stepsregistry" src="http://blog.joggee.com/wp-content/uploads/2008/06/stepsregistry-300x70.gif" alt="stepsregistry" width="300" height="70" /></a></p>
<p> </p>
<p>Joggee</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/how-to-remove-recent-project-history-from-visual-studio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google NoteBook</title>
		<link>http://www.joggee.com/google-notebook/</link>
		<comments>http://www.joggee.com/google-notebook/#comments</comments>
		<pubDate>Wed, 28 May 2008 07:30:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Google NoteBook]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=172</guid>
		<description><![CDATA[Once again Google shock me with new idea. You can access your favorites links anywhere in the world and they are just on one click , no more complication. Clip [..]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.joggee.com/wp-content/uploads/2008/05/googlenotebook.jpg"></a>Once again Google shock me with new idea. You can access your favorites links anywhere in the world and they are just on one click , no more complication.</p>
<p><strong>Clip information with a single click.<br />
</strong>Quickly add clippings of web content (images, text and links) straight to your notebook by highlighting the content you want and clicking the &#8220;Clip&#8221; button in the mini Google Notebook</p>
<p><a href="http://blog.joggee.com/wp-content/uploads/2008/05/googlenotebook.jpg"><img class="alignnone size-medium wp-image-173" title="googlenotebook" src="http://blog.joggee.com/wp-content/uploads/2008/05/googlenotebook-300x120.jpg" alt="Google NoteBook" width="300" height="120" /></a></p>
<p>Take a tour<br />
<a href="http://www.google.com/googlenotebook/tour1.html">http://www.google.com/googlenotebook/tour1.html</a></p>
<div class="snap_noshots">
<script type="text/javascript"><!--</p>
<p>lqm_channel=1;
lqm_publisher=216;
lqm_zone=1;
lqm_format=7;
//-->// --&gt;</script><br />
<script src="http://a.lakequincy.com/s.js" type="text/javascript"></script></div>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/google-notebook/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Recall or Recover Deleted Items from MailBox, Outlook</title>
		<link>http://www.joggee.com/recall-or-recover-deleted-items-from-mailbox-outlook/</link>
		<comments>http://www.joggee.com/recall-or-recover-deleted-items-from-mailbox-outlook/#comments</comments>
		<pubDate>Wed, 28 May 2008 06:04:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OutLook]]></category>
		<category><![CDATA[Recall]]></category>
		<category><![CDATA[Recover Message]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=169</guid>
		<description><![CDATA[RECALL MESSAGES FROM MAILBOX There are times when we send an e-mail and immediately realize that it contains an error or is missing important information. You wish you could go [..]]]></description>
			<content:encoded><![CDATA[<p><strong>RECALL MESSAGES FROM MAILBOX</strong></p>
<p>There are times when we send an e-mail and immediately realize that it contains an error or is missing important information. You wish you could go back in time and fix it, but it&#8217;s too late; the message has been sent. Fortunately, Outlook includes a recall feature that allows for a &#8220;do over&#8221; in the real world.</p>
<p>1. To recall a sent message, begin by locating the message in your sent items folder. 4. Open the e-mail message.<br />
2. From the &#8220;Actions&#8221; dropdown list in the main menu, select &#8220;Recall This Message&#8230;&#8221;<br />
3. Once selected, the Recall This Message dialog box will appear. It contains three options.</p>
<p>I. Delete unread copies of this message &#8211; This option will delete all sent copies of the message that have not been opened.<br />
II. Delete unread copies and replace with a new message &#8211; In cases where only an error needs to be corrected, or slight information added, this option will first delete the original sent message, and then it will send a replacement message.<br />
III. Tell me if recall succeeds or fails for each recipient &#8211; If checked, the user will receive e-mail confirmation if each individual message was successfully recalled or not.</p>
<p><strong>Note: A read message cannot be recalled.</strong></p>
<p>4. Press &#8220;OK&#8221; to initiate the recall.</p>
<p><img src="http://blog.joggee.com/wp-content/uploads/2008/05/recall.jpg" alt="Recall" /><br />
 </p>
<p><strong>RECOVER DELETED ITEMS FROM MAILBOX</strong></p>
<p>How many times have we deleted an e-mail message and then wished we hadn&#8217;t or needed it later? Now it&#8217;s okay, because deleted items aren&#8217;t really gone forever; they can be recovered.</p>
<p>1. To recover deleted items, begin with the Deleted Items folder open.<br />
2. With the folder open, select &#8220;Tools&#8221; from the main menu and then &#8220;Recover Deleted Items&#8230;&#8221;<br />
3. A new dialog box will appear.<br />
4. Use the tool buttons in the upper left to perform actions:</p>
<p>&#8220;Select All&#8221; &#8211; This button selects all of the deleted items in the list.</p>
<p>&#8220;Recover Selected Items&#8221; &#8211; To Recover Selected Items press this button.</p>
<p>The delete button will Purge Selected Items, meaning that they will be deleted permanently and will not be recoverable.</p>
<p><img src="http://blog.joggee.com/wp-content/uploads/2008/05/recover-deleted.jpg" alt="Recover Deleted" /></p>
<p>Hint : Use Ctrl+Left-Click to select multiple items that are not next to each other.</p>
<div class="snap_noshots">
<script type="text/javascript">
<!--
lqm_channel=1;
lqm_publisher=216;
lqm_zone=1;
lqm_format=7;
//-->
</script><br />
<script type="text/javascript" src="http://a.lakequincy.com/s.js"></script></div>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/recall-or-recover-deleted-items-from-mailbox-outlook/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Use Medium Trust in ASP.NET 2.0</title>
		<link>http://www.joggee.com/how-to-use-medium-trust-in-aspnet-20/</link>
		<comments>http://www.joggee.com/how-to-use-medium-trust-in-aspnet-20/#comments</comments>
		<pubDate>Mon, 26 May 2008 05:10:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASp.NET 2005]]></category>
		<category><![CDATA[ASP.NET Tips]]></category>
		<category><![CDATA[DataReader]]></category>
		<category><![CDATA[Hosting Problem]]></category>
		<category><![CDATA[Medium Trust Level]]></category>
		<category><![CDATA[Security Problem]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=168</guid>
		<description><![CDATA[Its hard to explain why this is happening to every 2nd developer and he is complaining about medium trust level problem with hosting company. Microsoft explain step by [..]]]></description>
			<content:encoded><![CDATA[<p>Its hard to explain why this is happening to every 2nd developer and he is complaining about medium trust level problem with hosting company.</p>
<p>Microsoft explain step by step but still this problem doenst resolve WHY?</p>
<p><span style="color: #000000;">These steps are enough for developer. Why they are still complaining.</span></p>
<p>SOLUTION:</p>
<p>DONT USE <strong><span style="text-decoration: underline;">DATAREADER</span></strong> WHEN YOU ARE BINDING YOUR DATA WITH DATAGRID, GRIDVIEW OR ANY CONTROL.</p>
<p>USE <strong><span style="text-decoration: underline;">DATASET</span></strong></p>
<p><span style="color: #000000;"><strong>NO</strong> need to follow below steps<br />
</span><span style="color: #000000;"><strong>NO</strong> need to do settings locally for your Application for <span style="text-decoration: underline;">Medium Trust Level.<br />
Once you will deployed at hosted server, it will automatically inherit as medium trust level.</span></span></p>
<p>Microsoft said :</p>
<p><span style="color: #99ccff;">Summary of Steps<br />
To use medium trust in your ASP.NET applications: </span></p>
<p><span style="color: #99ccff;">Step 1. Configure medium trust.<br />
Step 2. Lock the trust level.<br />
Step 3. Optionally create a custom policy based on medium trust.<br />
Step 1. Configure Medium Trust<br />
To configure an application to run with medium trust, add the following element to either the application&#8217;s specific Web.config file in the application&#8217;s virtual root directory or to the machine-level Web.config file.</span></p>
<p><span style="color: #99ccff;"> Copy Code<br />
&lt;trust level=&#8221;Medium&#8221; originUrl=&#8221;" /&gt;<br />
  Note   If present, the originUrl attribute can be used by some permissions, such as WebPermission, to restrict connectivity to a defined set of addresses.<br />
To configure all Web applications on a server to run with medium trust, add this element to the machine-level Web.config file located in the following folder: %windir%\Microsoft.NET\Framework\{version}\CONFIG.</span></p>
<p><span style="color: #99ccff;">By default, Web applications are configured to run with full trust as shown in the following default configuration from the machine-level Web.config file.</span></p>
<p><span style="color: #99ccff;"> Copy Code<br />
&lt;location allowOverride=&#8221;true&#8221;&gt;<br />
 &lt;system.web&gt;<br />
   &lt;securityPolicy&gt;<br />
     &lt;trustLevel name=&#8221;Full&#8221; policyFile=&#8221;internal&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;High&#8221; policyFile=&#8221;web_hightrust.config&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;Medium&#8221;<br />
                 policyFile=&#8221;web_mediumtrust.config&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;Low&#8221;  policyFile=&#8221;web_lowtrust.config&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;Minimal&#8221;<br />
                 policyFile=&#8221;web_minimaltrust.config&#8221; /&gt;�<br />
   &lt;/securityPolicy&gt;<br />
   &lt;trust level=&#8221;Full&#8221; originUrl=&#8221;" /&gt;<br />
 &lt;/system.web&gt;<br />
&lt;/location&gt;<br />
  To review the full set of permissions available to medium trust applications, view the Web_mediumtrust.config file.</span></p>
<p><span style="color: #99ccff;">Step 2. Lock the Trust Level<br />
Application service providers or anyone responsible for running multiple Web applications on the same server should apply the medium trust policy setting in the machine-level Web.config file and then lock the trust level for all Web applications.</span></p>
<p><span style="color: #99ccff;">To do this, set the allowOverride attribute to false in the machine-level Web.config file, as shown in the following code example.</span></p>
<p><span style="color: #99ccff;"> Copy Code<br />
&lt;location allowOverride=&#8221;false&#8221;&gt;<br />
 &lt;system.web&gt;<br />
   &lt;securityPolicy&gt;<br />
     &lt;trustLevel name=&#8221;Full&#8221; policyFile=&#8221;internal&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;High&#8221; policyFile=&#8221;web_hightrust.config&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;Medium&#8221;<br />
                 policyFile=&#8221;web_mediumtrust.config&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;Low&#8221;�<br />
                 policyFile=&#8221;web_lowtrust.config&#8221; /&gt;<br />
     &lt;trustLevel name=&#8221;Minimal&#8221;<br />
                 policyFile=&#8221;web_minimaltrust.config&#8221; /&gt;�<br />
   &lt;/securityPolicy&gt;<br />
   &lt;trust level=&#8221;Medium&#8221; originUrl=&#8221;" /&gt;<br />
 &lt;/system.web&gt;<br />
&lt;/location&gt;<br />
  By setting allowOverride=&#8221;false&#8221;, an individual developer is unable to override the medium trust policy setting in their application&#8217;s Web.config file.</span></p>
<p><span style="color: #000000;"><span style="text-decoration: underline;">Yours comments are valuable for me</span></span></p>
<p>Joggee</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/how-to-use-medium-trust-in-aspnet-20/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s latest ideas</title>
		<link>http://www.joggee.com/googles-latest-ideas/</link>
		<comments>http://www.joggee.com/googles-latest-ideas/#comments</comments>
		<pubDate>Tue, 20 May 2008 05:57:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Latest Hi-Tech Updates]]></category>
		<category><![CDATA[Google Experimental]]></category>
		<category><![CDATA[Google Latest Idea]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=167</guid>
		<description><![CDATA[Google is always experimenting with new features aimed at improving the search experience. I dont know what to say its a latest or copied from YAHOO. But I [..]]]></description>
			<content:encoded><![CDATA[<p>Google is always experimenting with new features aimed at improving the search experience.</p>
<p>I dont know what to say its a latest or copied from YAHOO. But I one good thing is, Google take this idea and make it more freindly and give statistic,Keyword suggestions,Keyboard shortcuts,Alternate views for search results. I would say GOOGLE ALWAYS A HEAD than any search engine.</p>
<p>for more information <a href="http://www.google.com/experimental/index.html">http://www.google.com/experimental/index.html</a></p>
<p>what you say ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/googles-latest-ideas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Incremental Years Value</title>
		<link>http://www.joggee.com/sql-server-incremental-years-value/</link>
		<comments>http://www.joggee.com/sql-server-incremental-years-value/#comments</comments>
		<pubDate>Fri, 16 May 2008 09:36:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[Incremental Year]]></category>
		<category><![CDATA[SQL SERVER Years]]></category>

		<guid isPermaLink="false">http://blog.joggee.com/?p=165</guid>
		<description><![CDATA[I am unable to find something good and fast where without involving master database years value in the sql server. I found below query but I dont wanted [..]]]></description>
			<content:encoded><![CDATA[<p>I am unable to find something good and fast where without involving master database years value in the sql server. I found below query but I dont wanted to involve master database.</p>
<p><span style="font-size: x-small; color: #008000; font-family: Courier New;">SELECT TOP 11000 &#8211;equates to more than 30 years of dates<br />
        IDENTITY(INT,1,1) AS N<br />
   INTO dbo.Tally<br />
   FROM Master.dbo.SysColumns sc1,<br />
        Master.dbo.SysColumns sc2</span></p>
<p>Here is something i made simple and fast.</p>
<p>DECLARE @TILL INT &#8212; define your end year value I am taking till 2008 + 2 = 2010</p>
<p>SET @TILL = YEAR(GETDATE())+2</p>
<p>DECLARE @FIRSTVALUE INT</p>
<p>SET @FIRSTVALUE=2001 &#8211; declaring first value</p>
<p>CREATE TABLE #TEMP<br />
(<br />
YEARID INT<br />
)</p>
<p>WHILE  @FIRSTVALUE&lt;=@TILL<br />
BEGIN<br />
INSERT INTO #TEMP SELECT @FIRSTVALUE<br />
SET @FIRSTVALUE=@FIRSTVALUE+1<br />
END</p>
<p>SELECT * FROM #TEMP</p>
<p>DROP TABLE #TEMP</p>
<p>RESULT:</p>
<p><img src="http://blog.joggee.com/WP-content/uploads/2008/05/year.gif" alt="Year" /></p>
<p> <a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fblog.joggee.com%2f%3fp%3d165"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fblog.joggee.com%2f%3fp%3d165" border="0" alt="kick it on DotNetKicks.com" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joggee.com/sql-server-incremental-years-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

