<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>ASP.NET Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'ASP.NET' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Fri, 20 Nov 2009 20:52:27 -0700</pubDate>
    <lastBuildDate>Fri, 20 Nov 2009 20:52:27 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Image capturing in ASP.NET 3.5 using Webcam</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409618/409618/image-capturing-in-aspnet-35-using-webcam/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I would like to capture the image using WebCam and store it in database. I am using ASP.NET 3.5, C#, Visual Studio 2008, SQL Server 2008, Windows Vista Business (O.S), IIS 7.0 and IE 7.0. I want to integrate WebCam functionality in my Web Application. My requirement is, the end user can view the image (i.e., preview from the WebCam)  in the Web page using ActiveX Control (in my case videocapx.ocx is the ActiveX Control). And on clik of "Capture" button, the image has to be capture and stored in database. For this I have installed "VideoCapX" software. I am using "ZEBRONICS" WebCam to capture images. Its model number is "Eagle's eye ZEB-480WC". How can I integrate "videocapx.ocx ActiveX Control" in my web page, so that end user can preview the image. &lt;br /&gt;
&lt;br /&gt;
Please help me out. It is very urgent. Thanks inadvnce.&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
Is there any way to capture image using webcam @ client side.&lt;br /&gt;
In my case both Client &amp;amp; Server are same.&lt;br /&gt;
How can I acheive this.&lt;br /&gt;
If it is possible using some other way, please give your suggestions.&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; Regards,&lt;br /&gt;
VKK Reddy. &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409618/409618/image-capturing-in-aspnet-35-using-webcam/</guid>
      <pubDate>Thu, 19 Nov 2009 23:01:43 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Plz help multilingual application development through ASP.NET 2.0</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/391029/409427/re-plz-help-multilingual-application-development-through-aspnet-20/#409427</link>
      <description>I have also same problem plzzzzzzzz help me ....................&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/391029/409427/re-plz-help-multilingual-application-development-through-aspnet-20/#409427</guid>
      <pubDate>Tue, 17 Nov 2009 02:27:17 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Automatic generation of textboxes during text changed event</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409325/409399/re-automatic-generation-of-textboxes-during-text-changed-event/#409399</link>
      <description>Inside For loop add &lt;br /&gt;
&lt;br /&gt;
t As New TextBox&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409325/409399/re-automatic-generation-of-textboxes-during-text-changed-event/#409399</guid>
      <pubDate>Mon, 16 Nov 2009 16:05:36 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: URGENT   Login Page-</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409344/409398/re-urgent---login-page-/#409398</link>
      <description>Looks like in your database table Admin value is having space. Trim it and compare.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409344/409398/re-urgent---login-page-/#409398</guid>
      <pubDate>Mon, 16 Nov 2009 16:01:25 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: URGENT   Login Page-</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409344/409397/re-urgent---login-page-/#409397</link>
      <description>Looks like in your database table Admin value is having space. Trim it and compare.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409344/409397/re-urgent---login-page-/#409397</guid>
      <pubDate>Mon, 16 Nov 2009 15:58:58 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Creating menu for a ASP.Net application</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409391/409391/creating-menu-for-a-aspnet-application/</link>
      <description>Hi, &lt;br /&gt;
&lt;br /&gt;
I am creating an ASP.Net application in VS2008. I would like to create a horizontal menu bar at the top. The values of this menu bar should be dynamic. By dynamic i mean that we should be able to add new values or remove the existing values from the menu bar.&lt;br /&gt;
&lt;br /&gt;
Any suggestions as to how can we implement this? Any small code snippet is welcome.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance. &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409391/409391/creating-menu-for-a-aspnet-application/</guid>
      <pubDate>Mon, 16 Nov 2009 11:21:11 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: save .aspx page as .html file</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408979/409385/re-save-aspx-page-as-html-file/#409385</link>
      <description>sorry, it's a aspx .Net control.&lt;br /&gt;
basically,&lt;br /&gt;
&amp;lt;asp:Panel ID="pnMyPanel"  Width="800" BorderColor="Black" BorderWidth="3px" runat="server"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
thanks &lt;br /&gt;
rik</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408979/409385/re-save-aspx-page-as-html-file/#409385</guid>
      <pubDate>Mon, 16 Nov 2009 09:54:03 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: save .aspx page as .html file</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408979/409381/re-save-aspx-page-as-html-file/#409381</link>
      <description>hi,&lt;br /&gt;
&lt;br /&gt;
i'm trying to do this but i need the definition type of tthe pnMyPanel variable.&lt;br /&gt;
&lt;br /&gt;
thks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408979/409381/re-save-aspx-page-as-html-file/#409381</guid>
      <pubDate>Mon, 16 Nov 2009 08:49:59 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Login as different user</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409347/409349/re-login-as-different-user/#409349</link>
      <description>I found the following code working partially&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
                this.hiddenCurrentUser.Value = Request.LogonUserIdentity.Name;
	_User = User.Identity.Name.Replace("Domain\\", "");
                Label1.Text = _User;
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
       
             if (this.hiddenCurrentUser.Value != Request.LogonUserIdentity.Name)
             {
		 Response.Redirect("Default.aspx");       
              }
else
{
            Response.StatusCode = 401;
            Response.StatusDescription = "Unauthorized";
            Response.End();
}
           
    }
&lt;/pre&gt;&lt;br /&gt;
and HTML is&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;p&amp;gt;Hello &amp;lt;asp:Label ID="Label1" runat="server" Text="Label"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/p&amp;gt;
        &amp;lt;asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click"&amp;gt;Sign in as Different user&amp;lt;/asp:LinkButton&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;input type="hidden" id="hiddenCurrentUser" name="hiddenCurrentUser" runat="server" value="0" visible="false" /&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
now the problem is &lt;br /&gt;
&lt;br /&gt;
what happen if i enter the same credential again?&lt;br /&gt;
&lt;br /&gt;
i am using the above given code and when i am entering different credentials then its working fine.&lt;br /&gt;
&lt;br /&gt;
but when i am using same credentials then it again ask for credentials for 2 more times.&lt;br /&gt;
&lt;br /&gt;
and after clicking 3 times the page get washout.&lt;br /&gt;
&lt;br /&gt;
and when i click on back button and again refresh the page then it accepts the credentials...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
plz suggest me some way to overcome this problem&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409347/409349/re-login-as-different-user/#409349</guid>
      <pubDate>Mon, 16 Nov 2009 00:52:52 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Login as different user</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409347/409348/re-login-as-different-user/#409348</link>
      <description>I have also tried&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
document.execCommand("ClearAuthenticationCache")
&lt;/pre&gt;&lt;br /&gt;
but it only works on IE and on the server machine only , on clients machine it won't work&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409347/409348/re-login-as-different-user/#409348</guid>
      <pubDate>Mon, 16 Nov 2009 00:50:39 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Login as different user</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409347/409347/login-as-different-user/</link>
      <description>Hi everybody,&lt;br /&gt;
&lt;br /&gt;
My request out here is Urgent, though i have passed through what I could access in this forum and others also, but cannot finding a working solution.&lt;br /&gt;
&lt;br /&gt;
I have designed an ASP.NET application, at our organizational intranet, I have used Windows Authentication and it worked very efficiently. My problem is, I want my application to ask for re-entering of employee's credential when he clicked on a log out control ( it could be anything - i didn't decided what will trigger log out yet ). I want it to be like Sharepoint page where you can log as another user in the same machine.&lt;br /&gt;
&lt;br /&gt;
I m using following code but not working properly.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            _User = User.Identity.Name.Replace("Domain\\", "");
            Label1.Text = _User;
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
       
            Response.StatusCode = 401;
            Response.StatusDescription = "Unauthorized";
            Response.End();
            Response.Redirect("Default.aspx");       
    }
&lt;/pre&gt;&lt;br /&gt;
and my HTML or aspx CODE IS&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;p&amp;gt;Hello &amp;lt;asp:Label ID="Label1" runat="server" Text="Label"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/p&amp;gt;
        &amp;lt;asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click"&amp;gt;Sign in as Different user&amp;lt;/asp:LinkButton&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
I am waiting ...&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409347/409347/login-as-different-user/</guid>
      <pubDate>Mon, 16 Nov 2009 00:48:58 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>URGENT   Login Page-</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409344/409344/urgent---login-page-/</link>
      <description>&lt;br /&gt;
I HAVE TWO FIELDS IN THE DATABASE TABLE USERNAME AND PASSWORD .&amp;amp; AND THE TWO FIELDS CONTAINING TWO VALUES&lt;br /&gt;
. NAME,123&lt;br /&gt;
.ADMIN ,123&lt;br /&gt;
BUT DURING THE EXECUTION  FOR(NAME,123)IT IS GIVING CORRECT RESULT.&lt;br /&gt;
FOR(ADMIN,123)IT IS GIVING LOGIN FAILURE.WHY???&lt;br /&gt;
&lt;br /&gt;
Sub validate_click(ByVal s As Object, ByVal e As EventArgs)&lt;br /&gt;
            Dim con1 As SqlConnection&lt;br /&gt;
            Dim cmd As SqlCommand&lt;br /&gt;
            con1 = New SqlConnection("Data Source=YOUR-41B8D18EDE;Initial Catalog=employee;Integrated Security=True")&lt;br /&gt;
            con1.Open()&lt;br /&gt;
            cmd = New SqlCommand("select  * from logintable ", con1)&lt;br /&gt;
            Dim dr As SqlDataReader&lt;br /&gt;
            dr = cmd.ExecuteReader()&lt;br /&gt;
            If dr.Read() Then&lt;br /&gt;
                If (txtUserName.Text = dr("username") And txtPassword.Text = dr("password")).ToString Then&lt;br /&gt;
                    Label1.Text = "login success"&lt;br /&gt;
                    &lt;br /&gt;
                Else&lt;br /&gt;
                    &lt;br /&gt;
                    Label1.Text = "login failure"&lt;br /&gt;
                End If&lt;br /&gt;
            &lt;br /&gt;
            End If&lt;br /&gt;
                  &lt;br /&gt;
                &lt;br /&gt;
           &lt;br /&gt;
        End Sub&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409344/409344/urgent---login-page-/</guid>
      <pubDate>Mon, 16 Nov 2009 00:04:28 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Automatic generation of textboxes during text changed event</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/409325/409325/automatic-generation-of-textboxes-during-text-changed-event/</link>
      <description>i already have one textbox.During the text changed event i want to generate three more textboxes.for me it is not working.only textbox4 is creating.why??                &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Sub textbox1_textchanged(ByVal sender As Object, ByVal e As System.EventArgs)&lt;br /&gt;
           &lt;br /&gt;
            Dim count As Integer&lt;br /&gt;
            Dim t As New TextBox&lt;br /&gt;
            For count = 2 To 4&lt;br /&gt;
                              t.Text = "TextBox" &amp;amp; count.ToString()&lt;br /&gt;
                t.ID = "TextBox" &amp;amp; count.ToString()&lt;br /&gt;
                &lt;br /&gt;
            &lt;br /&gt;
                Panel1.Controls.Add(t)&lt;br /&gt;
                &lt;br /&gt;
                Panel1.Controls.Add(New LiteralControl("&amp;lt;br&amp;gt;"))&lt;br /&gt;
            &lt;br /&gt;
                MsgBox("vbbvbnv")&lt;br /&gt;
            Next count&lt;br /&gt;
endsub&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/409325/409325/automatic-generation-of-textboxes-during-text-changed-event/</guid>
      <pubDate>Sun, 15 Nov 2009 12:36:28 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Converting an int into a string in ASP.net (VB.net)</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/279304/408995/re-converting-an-int-into-a-string-in-aspnet-vbnet/#408995</link>
      <description>I am new in ASP.net, is there a way to assign value to different labels using your function? How do I go about representing it in the &lt;br /&gt;
GetNumberofEntries() function?&lt;br /&gt;
&lt;br /&gt;
thanks in advance.&lt;br /&gt;
&lt;br /&gt;
Noel&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/279304/408995/re-converting-an-int-into-a-string-in-aspnet-vbnet/#408995</guid>
      <pubDate>Mon, 09 Nov 2009 21:14:18 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>save .aspx page as .html file</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408979/408979/save-aspx-page-as-html-file/</link>
      <description>i have looked and looked for this and so far all the code i've downloaded simply doesnt work.&lt;br /&gt;
this code (below) works fine - however it opens up the "save file Dialog" and  requires that the user select the path to save the .html file.&lt;br /&gt;
how can i by-pass that and save the file myself to say - a virtual directory?&lt;br /&gt;
any help is greatly appreciated&lt;br /&gt;
thanks&lt;br /&gt;
rik&lt;br /&gt;
&lt;br /&gt;
Response.Clear()&lt;br /&gt;
            Response.Buffer = True&lt;br /&gt;
            Response.ContentType = "application/html"&lt;br /&gt;
            Response.ContentEncoding = System.Text.Encoding.UTF8&lt;br /&gt;
            Response.AddHeader("Content-Disposition", "attachment;filename=Test.html")&lt;br /&gt;
            Response.Charset = ""&lt;br /&gt;
            EnableViewState = False&lt;br /&gt;
            Dim oStringWriter As System.IO.StringWriter = New System.IO.StringWriter&lt;br /&gt;
            Dim oHtmlTextWriter As System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(oStringWriter)&lt;br /&gt;
            pnMyPanel.RenderControl(oHtmlTextWriter)&lt;br /&gt;
            Response.Write(oHtmlTextWriter.ToString())&lt;br /&gt;
            Response.Close()</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408979/408979/save-aspx-page-as-html-file/</guid>
      <pubDate>Mon, 09 Nov 2009 10:26:18 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>test asp.net for cross browser compatibility</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408910/408910/test-aspnet-for-cross-browser-compatibility/</link>
      <description>Hi experts....&lt;br /&gt;
i want to know .. is there any tool that allows me to test my website on IE,firefox,safari,opera&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408910/408910/test-aspnet-for-cross-browser-compatibility/</guid>
      <pubDate>Fri, 06 Nov 2009 02:55:34 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: How to include System.Core.dll (.net 3.5)</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408335/408859/re-how-to-include-systemcoredll-net-35/#408859</link>
      <description>error u r getting is bcoz u r using class as type.&lt;br /&gt;
for ur requirement visit this page&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/system.timezone(VS.71).aspx"&gt;http://msdn.microsoft.com/en-us/library/system.timezone(VS.71).aspx&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408335/408859/re-how-to-include-systemcoredll-net-35/#408859</guid>
      <pubDate>Thu, 05 Nov 2009 00:39:08 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Automatic Email Notifications</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408657/408832/re-automatic-email-notifications/#408832</link>
      <description>in this case,for triggering procedures we can schedule jobs using either DTS,SQL jobs,windows services.&lt;br /&gt;
&lt;br /&gt;
I think web services will not suit this.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408657/408832/re-automatic-email-notifications/#408832</guid>
      <pubDate>Wed, 04 Nov 2009 09:48:41 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: Need help in Login Page</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408733/408830/re-need-help-in-login-page/#408830</link>
      <description>pls paste error&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408733/408830/re-need-help-in-login-page/#408830</guid>
      <pubDate>Wed, 04 Nov 2009 08:08:31 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Need help in Login Page</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408733/408733/need-help-in-login-page/</link>
      <description>There are errors which kept appearing which I cannot debug:&lt;br /&gt;
&lt;br /&gt;
All my textboxes and buttons does not exist in the current context:	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Configuration;&lt;br /&gt;
using System.Web;&lt;br /&gt;
using System.Web.Security;&lt;br /&gt;
using System.Web.UI;&lt;br /&gt;
using System.Web.UI.WebControls;&lt;br /&gt;
using System.Web.UI.WebControls.WebParts;&lt;br /&gt;
using System.Web.UI.HtmlControls;&lt;br /&gt;
using System.Data.OleDb;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public partial class _Default : System.Web.UI.Page&lt;br /&gt;
{&lt;br /&gt;
    DBConnect Connect = new DBConnect();&lt;br /&gt;
    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        &lt;br /&gt;
        if ((string)Session["sFlag"] == "T")&lt;br /&gt;
            &lt;br /&gt;
        {&lt;br /&gt;
              &lt;br /&gt;
            LoggedIn();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            Session["sName"] = null;&lt;br /&gt;
            Session["sUserName"] = null;&lt;br /&gt;
            Session["sAddress"] = null;&lt;br /&gt;
            Session["sCoContact"] = null;&lt;br /&gt;
            Session["sPIC"] = null;&lt;br /&gt;
            Session["sPICContact"] = null;&lt;br /&gt;
            Session["sFlag"] = "F";&lt;br /&gt;
            passwordTB.Visible = true;&lt;br /&gt;
            passwordTB.Text = "";&lt;br /&gt;
            usernameTB.Visible = true;&lt;br /&gt;
            usernameTB.Text = "";&lt;br /&gt;
            usernameTB.Text = "UserID:";&lt;br /&gt;
            LogoutBT.Visible = false;&lt;br /&gt;
            LoginBT.Visible = true;&lt;br /&gt;
           &lt;br /&gt;
       &lt;br /&gt;
}&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    protected void LoginBT_Click(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        if (usernameTB.Text != "")&lt;br /&gt;
        {&lt;br /&gt;
            if (passwordTB.Text != "")&lt;br /&gt;
            {&lt;br /&gt;
                OleDbConnection mdb = new OleDbConnection();&lt;br /&gt;
                OleDbCommand cmd;&lt;br /&gt;
                OleDbDataReader rdr;&lt;br /&gt;
                Connect.DBConnection(mdb);&lt;br /&gt;
                mdb.Open();&lt;br /&gt;
                string SQLinfo = "SELECT * FROM Customers WHERE cUserName = '" +&lt;br /&gt;
                    usernameTB.Text.ToUpper() + "'";&lt;br /&gt;
                string SQLlog = "INSERT INTO Log (lName,lLogIn) " +&lt;br /&gt;
                "VALUES (@UserName, @Date)";&lt;br /&gt;
                cmd = new OleDbCommand(SQLinfo, mdb);&lt;br /&gt;
                rdr = cmd.ExecuteReader();&lt;br /&gt;
                while (rdr.Read())&lt;br /&gt;
                {&lt;br /&gt;
                    if (passwordTB.Text == (string)rdr["cPassword"])&lt;br /&gt;
                    {&lt;br /&gt;
                        Session["sName"] = rdr["cName"];&lt;br /&gt;
                        Session["sUserName"] = rdr["cUserName"];&lt;br /&gt;
                        Session["sAddress"] = rdr["cCoAddress"];&lt;br /&gt;
                        Session["sCoContact"] = rdr["cCoContact"];&lt;br /&gt;
                        Session["sPIC"] = rdr["cPersonInCharge"];&lt;br /&gt;
                        Session["sPICContact"] = rdr["cPICContact"];&lt;br /&gt;
                        Session["sEmail"] = rdr["cEmail"];&lt;br /&gt;
                        Session["sStatus"] = rdr["cStatus"];&lt;br /&gt;
                        Session["sFlag"] = "T";&lt;br /&gt;
                        rdr.Close();&lt;br /&gt;
                        cmd = new OleDbCommand(SQLlog, mdb);&lt;br /&gt;
                        cmd.Parameters.Add("@UserName", OleDbType.Char).Value = (string)Session["sCoName"];&lt;br /&gt;
                        cmd.Parameters.Add("@Date", OleDbType.Date).Value = DateTime.Now;&lt;br /&gt;
                        cmd.ExecuteNonQuery();&lt;br /&gt;
                        mdb.Close();&lt;br /&gt;
                        LoggedIn();&lt;br /&gt;
                        break;&lt;br /&gt;
                    }&lt;br /&gt;
                    else&lt;br /&gt;
                    {&lt;br /&gt;
                        rdr.Close();&lt;br /&gt;
                        mdb.Close();&lt;br /&gt;
                        usernameTB.Text = "";&lt;br /&gt;
                        passwordTB.Text = "";&lt;br /&gt;
                        Response.Write("&amp;lt;script&amp;gt;alert('Error signing in')&amp;lt;/script&amp;gt;");&lt;br /&gt;
                        break;&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
                mdb.Close();&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                passwordTB.Focus();&lt;br /&gt;
                Response.Write("&amp;lt;script&amp;gt;alert('Please enter your password')&amp;lt;/script&amp;gt;");&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            usernameTB.Focus();&lt;br /&gt;
            Response.Write("&amp;lt;script&amp;gt;alert('Please enter your UserID')&amp;lt;/script&amp;gt;");&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    protected void LogoutBT_Click(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        OleDbConnection mdb = new OleDbConnection();&lt;br /&gt;
        OleDbCommand cmd;&lt;br /&gt;
        Connect.DBConnection(mdb);&lt;br /&gt;
        string SQLlog = "UPDATE Log SET lLogOut = @Date WHERE lCoName = @Name";&lt;br /&gt;
        cmd = new OleDbCommand(SQLlog, mdb);&lt;br /&gt;
        cmd.Parameters.Add("@Date", OleDbType.Date).Value = DateTime.Now;&lt;br /&gt;
        cmd.Parameters.Add("@Name", OleDbType.Char).Value = (string)Session["sUserName"];&lt;br /&gt;
        mdb.Open();&lt;br /&gt;
        cmd.ExecuteNonQuery();&lt;br /&gt;
        mdb.Close();&lt;br /&gt;
        LoggedOut();&lt;br /&gt;
    }&lt;br /&gt;
    protected void LoggedOut()&lt;br /&gt;
    {&lt;br /&gt;
        Session["sName"] = null;&lt;br /&gt;
        Session["sUserName"] = null;&lt;br /&gt;
        Session["sAddress"] = null;&lt;br /&gt;
        Session["sCoContact"] = null;&lt;br /&gt;
        Session["sPIC"] = null;&lt;br /&gt;
        Session["sPICContact"] = null;&lt;br /&gt;
        Session["sFlag"] = "F";&lt;br /&gt;
        passwordTB.Visible = true;&lt;br /&gt;
        passwordTB.Text = "";&lt;br /&gt;
        usernameTB.Visible = true;&lt;br /&gt;
        usernameTB.Text = "";&lt;br /&gt;
        usernameTB.Text = "UserID:";&lt;br /&gt;
        LogoutBT.Visible = false;&lt;br /&gt;
        LoginBT.Visible = true;&lt;br /&gt;
        Response.Redirect("OnlineRVform.aspx");&lt;br /&gt;
    }&lt;br /&gt;
    protected void LoggedIn()&lt;br /&gt;
    {&lt;br /&gt;
        passwordTB.Visible = false;&lt;br /&gt;
        passwordTB.Text = "";&lt;br /&gt;
        usernameTB.Visible = false;&lt;br /&gt;
        usernameTB.Text = "";&lt;br /&gt;
        usernameTB.Text = (string)Session["sPIC"];&lt;br /&gt;
        LogoutBT.Visible = true;&lt;br /&gt;
        LoginBT.Visible = false;&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please help me. Thank you so much.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408733/408733/need-help-in-login-page/</guid>
      <pubDate>Mon, 02 Nov 2009 21:02:32 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Automatic Email Notifications</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408657/408657/automatic-email-notifications/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I wrote an asp.net program that is designed to retrieve user data. The process, in which the user can log in to the system and input his data, has a Start Date and an End Date where the user is not allowed to log in before the start date or after the end date.&lt;br /&gt;
&lt;br /&gt;
I want to send an email notification to the users to log in to the system and input their data. This email notification has to be sent on the Start Date of the process (which is stored in an a database table). Additionally, two reminder emails must be sent to the users of the system. The time of sending the email reminder will be calculated automatically by generating two dates between the Start Date and End Date of the process.&lt;br /&gt;
&lt;br /&gt;
The problem I am facing at the moment is how to send the email notification automatically. I wrote the procedure for sending the email notification and I stored it in an asp.net web service. But how can I trigger this procedure on Start Date and on each Reminder Date?&lt;br /&gt;
&lt;br /&gt;
I tried several methods and thought of using timers but to no avail.&lt;br /&gt;
&lt;br /&gt;
Appreciate your help,&lt;br /&gt;
shaknon&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408657/408657/automatic-email-notifications/</guid>
      <pubDate>Sun, 01 Nov 2009 00:54:55 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Can't Recompile My Website</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408615/408615/cant-recompile-my-website/</link>
      <description>I'm a first time hoster (seekdotnet), so I apologize for the novice question. When I'm working on my local computer, everything is fine, but I'm just having a problem on the hosting server.  &lt;br /&gt;
&lt;br /&gt;
I use FileZilla to edit my website. When I edit the main page (.aspx), the system automatically recompiles the changes and everything works fine. However, when I make changes to the CodeBehind page (.aspx.vb), the website doesn't recongize the changes...&lt;br /&gt;
&lt;br /&gt;
I've tried making the changes on my local computer, Build Solution, and everything works.  I then delete the web page off the server and upload the new page... but still no changes...  I've tried deleting all the files off the sever and uploading everything again, but then I run into a problem where the website is looking for files off the localhost, instead of the server... I had to pay someone $150 originally because I couldn't figure out why the website kept looking for localhost instead of the server.   I'm hoping I can learn the cause of this instead of hiring someone again.  &lt;br /&gt;
&lt;br /&gt;
I just need to know the easiest way to recompile the changes I make to the codebehind page.  Do i need to recompile/reupload the whole site? just the one page that I made changes to?  is it something in the global.asax/assembly/web.config that i need to recompile???&lt;br /&gt;
&lt;br /&gt;
Thank you so much to all who answers!!!&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408615/408615/cant-recompile-my-website/</guid>
      <pubDate>Fri, 30 Oct 2009 23:48:09 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Re: How to include System.Core.dll (.net 3.5)</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408335/408578/re-how-to-include-systemcoredll-net-35/#408578</link>
      <description>You can add the following reference:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;System.Globalization;&lt;/strong&gt;&lt;span style="color: Purple;"&gt;&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408335/408578/re-how-to-include-systemcoredll-net-35/#408578</guid>
      <pubDate>Fri, 30 Oct 2009 02:57:31 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Processing power</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408514/408514/processing-power/</link>
      <description>Hi there&lt;br /&gt;
&lt;br /&gt;
There are three functional requirements that we have put forward to our developers, to check when a windows service is running. &lt;br /&gt;
There was one, that involved file swapping.. and re-naming of files.. which sounded obscure from the start.&lt;br /&gt;
 &lt;br /&gt;
Could anyone tell me the complications, based on cpu processing power.. with file swapping/renaming files? Like the service would have been checked to see if it's running everytime, how much processing power would this take on a ASP.net application? Also file-integrity issues?&lt;br /&gt;
&lt;br /&gt;
There is a better solution, which developers are more interested in whereby a flag is set in the database when the service is running and on Page_load, it will check to see if this flag has been set. If set, then user will be redirected to 'downtime page', else it will continue onto logon page.&lt;br /&gt;
&lt;br /&gt;
Any resources to help me on this would be great. Or if I could get chatting briefly about this, that would be even better.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance. &lt;br /&gt;
Laura&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408514/408514/processing-power/</guid>
      <pubDate>Wed, 28 Oct 2009 22:19:17 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>Performance metric tools</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/408512/408512/performance-metric-tools/</link>
      <description>&lt;br /&gt;
&lt;br /&gt;
Hi everyone, &lt;br /&gt;
&lt;br /&gt;
I've posted this same message in the 'Getting started' forum, but I think it's a little more advanced than that so I'm placing it here in C#.&lt;br /&gt;
&lt;br /&gt;
I'm looking for some assistance on Performance metric tools for an ASP.NET application, written in C#. &lt;br /&gt;
&lt;br /&gt;
Also, these stats must be displayed on the Administration section of the site. &lt;br /&gt;
&lt;br /&gt;
I'm looking for information on how to capture aswell as output the following information:&lt;br /&gt;
&lt;br /&gt;
– How many users on the system when the measures were taken, what pages were the measures taken against. In addition, there should be a break down by page type, for example, how long to login.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Baseline to put the stats into context:&lt;br /&gt;
&lt;br /&gt;
How many users on the system:&lt;br /&gt;
&lt;br /&gt;
Time of day&lt;br /&gt;
&lt;br /&gt;
Date&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Then specific stats on:&lt;br /&gt;
&lt;br /&gt;
Page types (does not mean each page, but section of activity like logging on, submission of questionnaire, help retrieval etc)&lt;br /&gt;
&lt;br /&gt;
Speed of request fulfilment, + average + long + wait time&lt;br /&gt;
&lt;br /&gt;
Would Google Analytics could be used here? &lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any help you can offer.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ASPNET/408512/408512/performance-metric-tools/</guid>
      <pubDate>Wed, 28 Oct 2009 22:11:36 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
  </channel>
</rss>