<?xml version="1.0" encoding="utf-8" ?><?xml-stylesheet type="text/xsl" href="http://www.daniweb.com/js/rss.xsl"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community
			 - ASP.NET					</title>
		<link>http://www.daniweb.com/web-development/aspnet/18</link>
		<description>Our ASP.NET forum is the place for Q&A-style discussions related to the Microsoft Visual Studio.NET development framework.  Note we have a separate ASP forum. We also have dedicated C# and VB.NET forums within the Software Development category. There is an MS SQL forum within the Databases sub-category to use in tandem to .NET.</description>
		<language>en-US</language>
		<ttl>60</ttl>
		<!-- PubSubHubbub Discovery -->
		<link rel="hub" href="http://daniweb.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="hub" href="http://pubsubhubbub.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="hub" href="http://pubsubhubbub.appspot.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="self" href="http://www.daniweb.com/rss/pull/18" xmlns="http://www.w3.org/2005/Atom" />
		<!-- End Of PubSubHubbub Discovery -->
				<item>
			<title>help calculate the grid view column</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/462542/help-calculate-the-grid-view-column</link>
			<pubDate>Thu, 05 Sep 2013 12:27:24 +0000</pubDate>
			<description> public void kraGridView_RowDataBound(object sender, GridViewRowEventArgs e) int totalPercent = 0; if (e.Row.RowType == DataControlRowType.DataRow) { Label lblWeigh = (Label)e.Row.FindControl(&quot;lblWeigh&quot;); // totalPercent += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, &quot;lblWeigh&quot;)); int total = int.Parse(lblWeigh.Text); totalPercent += total; } else if (e.Row.RowType == DataControlRowType.Footer) { Label lblTotalPercentage = (Label)e.Row.FindControl(&quot;lblTotalPercentage&quot;); // e.Row.Cells[5].Text = totalPercent.ToString(); lblTotalPercentage.Text = totalPercent.ToString(); } ...</description>
			<content:encoded><![CDATA[ <pre><code>public void kraGridView_RowDataBound(object sender, GridViewRowEventArgs e)

        int totalPercent = 0;
      if (e.Row.RowType == DataControlRowType.DataRow)
      {
          Label lblWeigh = (Label)e.Row.FindControl("lblWeigh");
         // totalPercent += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "lblWeigh"));
         int total = int.Parse(lblWeigh.Text);
        totalPercent += total;
       }
      else if (e.Row.RowType == DataControlRowType.Footer)
      {
          Label lblTotalPercentage = (Label)e.Row.FindControl("lblTotalPercentage");
         // e.Row.Cells[5].Text = totalPercent.ToString();
          lblTotalPercentage.Text = totalPercent.ToString(); 
      }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>japhta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/462542/help-calculate-the-grid-view-column</guid>
		</item>
				<item>
			<title>getting true or false to c# back</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/462450/getting-true-or-false-to-c-back</link>
			<pubDate>Wed, 04 Sep 2013 14:09:15 +0000</pubDate>
			<description>Hi all so i have this lauching the javascript to the page: Page.ClientScript.RegisterClientScriptBlock(this.GetType(), &quot;Alert&quot;, &quot;confirm('Are you Sure You Want to Delete User??')&quot;, true); But now i remebered that i need an answer on the codebehinf(C#). So this way i can do the rest of the code, but im stuck with ...</description>
			<content:encoded><![CDATA[ <p>Hi all so i have this lauching the javascript to the page:</p>

<pre><code>Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", "confirm('Are you  Sure You Want to Delete User??')", true);
</code></pre>

<p>But now i remebered that i need an answer on the codebehinf(C#).<br />
So this way i can do the rest of the code, but im stuck with that, does anybody knows how to do that??</p>

<p>Thanks and Regards</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>maxpaine69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/462450/getting-true-or-false-to-c-back</guid>
		</item>
				<item>
			<title>how to filter data using Report viewer expression</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/462403/how-to-filter-data-using-report-viewer-expression</link>
			<pubDate>Wed, 04 Sep 2013 01:25:33 +0000</pubDate>
			<description>Hi I have problem in Report viewer. I am using the expression to filter the value. I explain my scenario. I want sum the amount for particular category. I have student database. I need the sum the paid amount for exam fee only. =SUM(Fields!Amount.Value, &quot;DataSet1&quot;) . It sums all amount. ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I have problem in Report viewer.  I am using the expression to filter the value. I explain my scenario.</p>

<p>I want sum the amount for particular category. I have student database. I need the sum the paid amount for exam fee only.</p>

<p>=SUM(Fields!Amount.Value, "DataSet1") . It sums all amount. But I need to sum EXAM FEE only. Please help me how to do this</p>

<p>Thank  you</p>

<p>Maideen</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Maideen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/462403/how-to-filter-data-using-report-viewer-expression</guid>
		</item>
				<item>
			<title>ReportViewer is ambiguous in the namespace </title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/462263/reportviewer-is-ambiguous-in-the-namespace-</link>
			<pubDate>Sun, 01 Sep 2013 23:42:55 +0000</pubDate>
			<description>Hi I have an issue in asp.net using vb code I am using Visual Studio 2012 with MSSQL 2005. I have problem in adding Report viewer, Version=11.0.0.0. I have an error &quot;'ReportViewer' is ambiguous in the namespace &quot;. Please anybody help me to solve this issue maideen</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I have an issue in asp.net using vb code</p>

<p>I am using Visual Studio 2012 with MSSQL 2005. I have problem in adding Report viewer, Version=11.0.0.0. I have an error "'ReportViewer' is ambiguous in the namespace ".</p>

<p>Please anybody help me to solve this issue</p>

<p>maideen</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Maideen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/462263/reportviewer-is-ambiguous-in-the-namespace-</guid>
		</item>
				<item>
			<title>Acess to path is denied in ffmpeg conversion</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/462133/acess-to-path-is-denied-in-ffmpeg-conversion</link>
			<pubDate>Fri, 30 Aug 2013 22:04:10 +0000</pubDate>
			<description>i have windows 2008 r2 server , and am trying to convert my videos from any type to mp4 format and everything is fine in local when am trying to do the same live webserver , Am able to upload the file and then when i try to convert the ...</description>
			<content:encoded><![CDATA[ <p>i have windows 2008 r2 server , and am trying to convert my videos from any type to mp4 format and everything is fine in local when am trying to do the same live webserver , Am able to upload the file and then when i try to convert the file it says the file access is denied. steps which i tried to sort but no clue pops the same server 1)changed the identity to network service /localhost . 2)gave full permission to the folder 3)created virtual directory. 4)impernation is true. done all these stuffs but no response, but one thing which i found was for eg :c:\inetpub\vhosts\mydomainname\httpdocs\myfolder_to save_uploaded_file which is readonly by default i cudnt change them to all permission please advice how to change them to read/write.btw am trying to save the converted file to c:\inetpub\vhosts\mydomainname\httpdocs\test_folder Thanks for your time</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>kamilacbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/462133/acess-to-path-is-denied-in-ffmpeg-conversion</guid>
		</item>
				<item>
			<title>approve upload file</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461938/approve-upload-file</link>
			<pubDate>Wed, 28 Aug 2013 10:04:38 +0000</pubDate>
			<description>hey all i complete with task upload file that is user upload their files and download it now here i want to ask when user upload file then this file forward to manager for approval .. then when manger login and view the uploaded file, and click an &quot;approve or ...</description>
			<content:encoded><![CDATA[ <p>hey all<br />
 i complete with task upload file that is user upload their files and download it</p>

<p>now here i want to ask</p>

<p>when user upload file then this file forward to manager for approval ..<br />
 then when manger login  and  view the uploaded file, and click an "approve or Deny" button,</p>

<p>how to code it for approval and forward file to manager...</p>

<p>anybody solve thiss???</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>diya45</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461938/approve-upload-file</guid>
		</item>
				<item>
			<title>Entering custom address into embedded Google Maps</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461913/entering-custom-address-into-embedded-google-maps</link>
			<pubDate>Tue, 27 Aug 2013 20:27:48 +0000</pubDate>
			<description>Hi All. I am using Microsoft Visual Web Developer 2010. I have embedded google maps into my webpage. I am using 4 textboxes: Street, City, Province and Postal Code. The user will enter these details then it will get put into a string variable like this `string location = street ...</description>
			<content:encoded><![CDATA[ <p>Hi All. I am using Microsoft Visual Web Developer 2010. I have embedded google maps into my webpage. I am using 4 textboxes: Street, City, Province and Postal Code. The user will enter these details then it will get put into a string variable like this <code>string location = street + "," + "city" + "," + province + "," + postCode;</code></p>

<p>Now the google API code below uses this line for input: <code>var input = document.getElementById('TextBox1');</code><br />
I tried using <code>var input = location;</code> but it picked up syntax error. What can I do to fix this? Thanks.</p>

<p>Here is the source code below:</p>

<pre><code>&lt;script type="text/javascript" src="<a href="http://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places" rel="nofollow">http://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places</a>"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

    function Initialize() {

        var mapOptions = {
            center: new google.maps.LatLng(-33.01, 27.9),
            zoom: 13,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById('GMap1'), mapOptions);

        **var input = document.getElementById('TextBox1');**
        var autocomplete = new google.maps.places.Autocomplete(input);
        autocomplete.bindTo('bounds', map);

        google.maps.event.addListener(autocomplete, 'place_changed', function () {

            var place = autocomplete.getPlace();
            if (place.geometry.viewport) {
                map.fitBounds(place.geometry.viewport);
            } else {
                map.setCenter(place.geometry.location);
                map.setZoom(17);
            }
        });

    }
    google.maps.event.addDomListener(window, 'load', Initialize);

&lt;/script&gt;

&lt;input type="text" id="TextBox1"&gt;
        &lt;div id="GMap1" style="height: 240px; width:570px" &gt;&lt;/div&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Black_Lion</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461913/entering-custom-address-into-embedded-google-maps</guid>
		</item>
				<item>
			<title>file cannot be acessed from windows 2008 r2 server</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461912/file-cannot-be-acessed-from-windows-2008-r2-server</link>
			<pubDate>Tue, 27 Aug 2013 19:48:32 +0000</pubDate>
			<description> I have migrated my website from shared hosting to VPS server and have rehosted the site , now the problem is i cannot access the video files which is present in my server for eg : http://mydomain.com/httpdocs/test.mp4 my previous or old location was like http://mydomain.com/test.mp4 So please advice as where ...</description>
			<content:encoded><![CDATA[ <p>I have migrated my website from shared hosting to VPS server and have rehosted the site , now the problem is i cannot access the video files which is present in my server for eg : <a href="http://mydomain.com/httpdocs/test.mp4" rel="nofollow">http://mydomain.com/httpdocs/test.mp4</a> my previous or old location was like <a href="http://mydomain.com/test.mp4" rel="nofollow">http://mydomain.com/test.mp4</a> So please advice as where am going wrong , should i need to mention the new location with httpdocs folder or as the old one , as i cannot acess the video files it pops the error as cannot find the file 404 error.</p>

<p>thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>kamilacbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461912/file-cannot-be-acessed-from-windows-2008-r2-server</guid>
		</item>
				<item>
			<title>Telerik RadScheduler Add/Edit is not working on Live</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461859/telerik-radscheduler-addedit-is-not-working-on-live</link>
			<pubDate>Tue, 27 Aug 2013 05:18:26 +0000</pubDate>
			<description>I am using a telerik radScheduler into my major project. and it is working fine on Local system. But on live it is not working fine. I can only view my scheduled activity, drag &amp; drop activity, increase or decrease time span only. But when i try to create or ...</description>
			<content:encoded><![CDATA[ <p>I am using a telerik radScheduler into my major project. and it is working fine on Local system.<br />
But on live it is not working fine.<br />
I can only view my scheduled activity, drag &amp; drop activity,  increase or decrease time span only.<br />
But when i try to create or edit an recurrence activity it open the edit mode but nothing work on it.<br />
Even insert and cancel buttons are also not working on edit mode.<br />
I am showing you simple example of my code over here, please have a look.<br />
Remember that it is working fine on local machine but on live it is not working.</p>

<pre><code>//on aspx page

    &lt;div class="clear"&gt;&lt;/div&gt;
        &lt;telerik:RadScheduler ID="RadScheduler1" runat="server"&gt;
            &lt;AppointmentContextMenus&gt;
                &lt;telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu"&gt;
                    &lt;Items&gt;
                        &lt;telerik:RadMenuItem Text="Completed / Re-Initiate" ImageUrl="../Images/right-img.png" Value="complete"/&gt;
                        &lt;telerik:RadMenuItem Text="Notified" ImageUrl="../Images/calender_icon.gif"/&gt;
                    &lt;/Items&gt;
                &lt;/telerik:RadSchedulerContextMenu&gt;
            &lt;/AppointmentContextMenus&gt;
            &lt;TimeSlotContextMenus&gt;
                &lt;telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu"&gt;
                    &lt;Items&gt;
                        &lt;telerik:RadMenuItem Text="New Appointment" ImageUrl="../Images/plus.png" Value="CommandAddAppointment"&gt;&lt;/telerik:RadMenuItem&gt;
                        &lt;telerik:RadMenuItem Text="New Recurring Appointment" ImageUrl="../Images/refresh-icon.gif" Value="CommandAddRecurringAppointment"&gt;&lt;/telerik:RadMenuItem&gt;
                        &lt;telerik:RadMenuItem IsSeparator="true"&gt;&lt;/telerik:RadMenuItem&gt;
                        &lt;telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday"&gt;&lt;/telerik:RadMenuItem&gt;
                    &lt;/Items&gt;
                &lt;/telerik:RadSchedulerContextMenu&gt;
            &lt;/TimeSlotContextMenus&gt;
        &lt;/telerik:RadScheduler&gt;


//on aspx.cs page

    protected void bindCalendar(DataTable dtSchedule)
    {
        RadScheduler1.DataSource = dtSchedule;
        //RadScheduler1.DataSourceID = "schedule_id";
        RadScheduler1.DataKeyField = "schedule_id";
        RadScheduler1.DataStartField = "schedule_from";
        RadScheduler1.DataEndField = "schedule_to";
        RadScheduler1.DataRecurrenceField = "schedule_record_data";
        RadScheduler1.DataDescriptionField = "schedule_description";
        RadScheduler1.DataRecurrenceParentKeyField = "schedule_record_key";
        RadScheduler1.DataSubjectField = "schedule_title";
        RadScheduler1.DataBind();
    }

//datatable structure
ref.tbl_scheduler
    schedule_id (PK, int, not null)
    schedule_title (nvarchar(max), null)
    schedule_from (datetime, null)
    schedule_to (datetime, null)
    schedule_record_key (int, null)
    schedule_record_data (nvarchar(max), null)
    schedule_description (nvarchar(max), null)
    activity_type (nvarchar(max), null)
    schedule_users (nvarchar(max), null)
    schedule_group (nvarchar(max), null)
    schedule_sop (int, null)
    schedule_days (nvarchar(max), null)
    schedule_occurence (nvarchar(max), null)
    schedule_by (int, null)
    schedule_date (datetime, null)
    schedule_modify_by (int, null)
    schedule_modify_date (datetime, null)
    schedule_is_completed (bit, null)
    schedule_completed_users (nvarchar(max), null)
    schedule_completed_group (nvarchar(max), null)
    schedule_is_delete (bit, null)
    schedule_form (int, null)
    schedule_division_fkid (int, null)
    schedule_company_fkid (int, null)
    schedule_sop_for (int, null)
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>prashant9928</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461859/telerik-radscheduler-addedit-is-not-working-on-live</guid>
		</item>
				<item>
			<title>Timer is working offline fine.. but online its not working</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461709/timer-is-working-offline-fine..-but-online-its-not-working</link>
			<pubDate>Sat, 24 Aug 2013 16:11:19 +0000</pubDate>
			<description> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateTime(); } } protected void Timer1_Tick(object sender, EventArgs e) { UpdateTime(); } public void UpdateTime() { try { int hour = 00, min = 00, sec = Int32.Parse(Session[&quot;tleft&quot;].ToString()); // min = Int32.Parse(Session[&quot;tleft&quot;].ToString()) / TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec); ...</description>
			<content:encoded><![CDATA[ <pre><code> protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            UpdateTime();

        }

    }
    protected void Timer1_Tick(object sender, EventArgs e)
    {
        UpdateTime();
    }
    public void UpdateTime()
    {
        try
        {
            int hour = 00, min = 00, sec = Int32.Parse(Session["tleft"].ToString());
            // min = Int32.Parse(Session["tleft"].ToString()) / 
            TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec);
            string str = span.Hours.ToString("00") + ":" + span.Minutes.ToString("00") + ":" + span.Seconds.ToString("00");

            int tleft = Int32.Parse(Session["tleft"].ToString()) - 1;
            if (tleft &lt;= 0)
            {
                Response.Redirect("result.aspx");
            }

            // timeleft.Text = tleft.ToString();
            timeleft.Text = str.ToString();
            Session["tleft"] = tleft.ToString();
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message.ToString());
        }
    }

    -----------------------------------------------------------------------

    &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="TickTock.aspx.cs" Inherits="TickTock" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;

&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;asp:ScriptManager ID="ScriptManager1" runat="server" &gt;
    &lt;/asp:ScriptManager&gt;
    &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
    &lt;ContentTemplate&gt;
    &lt;div&gt;
        &lt;asp:Label ID="timeleft" runat="server" &gt;&lt;/asp:Label&gt;
        &lt;asp:Timer ID="Timer1" Enabled="true"  runat="server" Interval="1000" 
            ontick="Timer1_Tick" &gt;
        &lt;/asp:Timer&gt;
    &lt;/div&gt;

    &lt;/ContentTemplate&gt;
        &lt;Triggers&gt;
            &lt;asp:AsyncPostBackTrigger ControlID="Timer1" /&gt;
        &lt;/Triggers&gt;
    &lt;/asp:UpdatePanel&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>jatinmca</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461709/timer-is-working-offline-fine..-but-online-its-not-working</guid>
		</item>
				<item>
			<title>ClickSave is not a member of ASP.default_aspx</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461629/clicksave-is-not-a-member-of-asp.default_aspx</link>
			<pubDate>Fri, 23 Aug 2013 14:05:44 +0000</pubDate>
			<description>HI All, im working on a project that uses asp.net to send information to a mssql server. The problem im running into is that when i try to debug the page, I get: 'ClickSave' is not a member of 'ASP.default_aspx'. How Do I fix this?? Heres My html code(default.aspx): &lt;html&gt; ...</description>
			<content:encoded><![CDATA[ <p>HI All, im working on a project that uses asp.net to send information to a mssql server. The problem im running into is that when i try to debug the page, I get: 'ClickSave' is not a member of 'ASP.default_aspx'.<br />
How Do I fix this??<br />
Heres My html code(default.aspx):</p>

<pre><code> &lt;html&gt;

    &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;
        &lt;form id="form1" runat="server"&gt;
        &lt;div&gt;
        &lt;table width="300px" &gt;
        &lt;tr&gt;
        &lt;td&gt;First Name&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:TextBox ID="txtFirstName" runat="server"&gt;&lt;/asp:TextBox&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
            &lt;tr&gt;
        &lt;td &gt;Last Name&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:TextBox ID="txtLastName" runat="server"&gt;&lt;/asp:TextBox&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
            &lt;tr&gt;
        &lt;td&gt;User Name&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:TextBox ID="txtUserName" runat="server"&gt;&lt;/asp:TextBox&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
            &lt;tr&gt;
        &lt;td&gt;Password&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:TextBox ID="txtPassword" runat="server"&gt;&lt;/asp:TextBox&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
            &lt;tr&gt;
        &lt;td&gt;Email Address&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:TextBox ID="txtEmail" runat="server"&gt;&lt;/asp:TextBox&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
            &lt;tr&gt;
        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:Button ID="btnSave" runat="server" Text="Save" onclick="ClickSave" /&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
            &lt;tr&gt;
        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;
            &lt;asp:Label ID="lblError" runat="server" Text=""&gt;&lt;/asp:Label&gt;
                &lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
        &lt;/div&gt;
        &lt;/form&gt;
    &lt;/body&gt;
    &lt;/html&gt; 
</code></pre>

<p>ASP code(default.aspx.cs):</p>

<pre><code> using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using MySql.Data.MySqlClient;
    using System.Data;

    namespace Mysqlpart1
    {
        public partial class _Default : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {

            }

            protected void ClickSave(object sender, EventArgs e)
            {
                try
                {

                    string cnnString = "Server=localhost;Port=3306;Database=ci_series;Uid=xxxxx;Pwd=xxxxx";


                    MySqlConnection connection = new MySqlConnection(cnnString);


                    string cmdText = "INSERT INTO membership (first_name ,last_name ,username ,password ,";
                    cmdText += "email_address)VALUES (first_name ,last_name ,username ,password ,email_address);";

                    MySqlCommand cmd = new MySqlCommand(cmdText, connection);


                    cmd.CommandType = CommandType.Text;
                    cmd.Parameters.Add("?first_name", MySqlDbType.VarChar).Value = txtFirstName.Text;
                    cmd.Parameters.Add("?last_name", MySqlDbType.VarChar).Value = txtLastName.Text;
                    cmd.Parameters.Add("?username", MySqlDbType.VarChar).Value = txtUserName.Text;
                    cmd.Parameters.Add("?password", MySqlDbType.VarChar).Value = txtPassword.Text;
                    cmd.Parameters.Add("?email_address", MySqlDbType.VarChar).Value = txtEmail.Text;

                    connection.Open();

                    int result = cmd.ExecuteNonQuery();

                    lblError.Text = "Data Saved";

                }
                catch (Exception ex)
                {
                    lblError.Text = ex.Message;
                }
            }
        }
    }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Malymieczek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461629/clicksave-is-not-a-member-of-asp.default_aspx</guid>
		</item>
				<item>
			<title>Login using WebRequest and WebResponse class in c#</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461600/login-using-webrequest-and-webresponse-class-in-c</link>
			<pubDate>Fri, 23 Aug 2013 10:03:59 +0000</pubDate>
			<description>Hello all I having an issue in logging into a website using webRequest and WebResponse. I thought let me reach out to experts by posting a question. I am trying to login in http://www.mbhatt.in and want to access the page after the login is successfull. I used following code to ...</description>
			<content:encoded><![CDATA[ <p>Hello all</p>

<p>I having an issue in logging into a website using webRequest and WebResponse.<br />
I thought let me reach out to experts by posting a question.</p>

<p>I am trying to login in <a href="http://www.mbhatt.in" rel="nofollow">http://www.mbhatt.in</a> and want to access the page after the login is successfull.<br />
I used following code to do so. But somehow it failed</p>

<pre><code>string poststring = string.Format("Username={0}&amp;Password={1}", Username, Password);
byte[] postdata = Encoding.UTF8.GetBytes(poststring);
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.Method = "POST";
webRequest.ContentType = "application/x-www-form-urlencoded";
webRequest.ContentLength = postdata.Length;
webRequest.Credentials = new NetworkCredential(Username, Password);
Stream writer = webRequest.GetRequestStream();
writer.Write(postdata, 0, postdata.Length);
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
cookies.Add(webResponse.Cookies);
</code></pre>

<p>I dont know what to do when cookie gets added to my browzer. How can i use this cookie to access the other pages of that website after loging in. I want to do this using <strong>WebRequest</strong> and <strong>WebResponse</strong> .</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>MARKAND911</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461600/login-using-webrequest-and-webresponse-class-in-c</guid>
		</item>
				<item>
			<title>After deploy application not working well</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461496/after-deploy-application-not-working-well</link>
			<pubDate>Thu, 22 Aug 2013 07:51:15 +0000</pubDate>
			<description>I developed a web application using ASP.net. It was used AjaxToolkit 3.5. The program is mainly use &lt;asp:ToolkitScriptManger&gt; and &lt;asp:UpdatePanel&gt;. With Visual Studio 2005, It is working well. (I just mean with source code) Then I deploy it and host in wwwroot. But then it is not working well. There ...</description>
			<content:encoded><![CDATA[ <p>I developed a web application using ASP.net. It was used AjaxToolkit 3.5. The program is mainly use &lt;asp:ToolkitScriptManger&gt; and &lt;asp:UpdatePanel&gt;. With Visual Studio 2005, It is working well. (I just mean with source code) Then I deploy it and host in wwwroot. But then it is not working well. There are no any errors. Programe is stuck when go to ajax used pages. Some pages are not used ajax and those are working well. I didn't put my source code to this forum because there are no any errors occurred while I run with source code. Please show me some direction for solving this problem.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>weeraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461496/after-deploy-application-not-working-well</guid>
		</item>
				<item>
			<title>URL Encoding</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461395/url-encoding</link>
			<pubDate>Wed, 21 Aug 2013 03:45:19 +0000</pubDate>
			<description>Friends I have a login form. After successsful login, I have to redirect the user to welcome.aspx. While doing this, the URL will be http://www.mangabooks.com/welcome.aspx but I need the URL to be encoded like http://www.mangabooks.com/sdDFREdsfefrvgrwghWr34r How can i do that? Any help will be appriciated... TIA.</description>
			<content:encoded><![CDATA[ <p>Friends</p>

<p>I have a login form. After successsful login, I have to redirect the user to welcome.aspx.</p>

<p>While doing this, the URL will be <a href="http://www.mangabooks.com/welcome.aspx" rel="nofollow">http://www.mangabooks.com/welcome.aspx</a></p>

<p>but I need the URL to be encoded like <a href="http://www.mangabooks.com/sdDFREdsfefrvgrwghWr34r" rel="nofollow">http://www.mangabooks.com/sdDFREdsfefrvgrwghWr34r</a></p>

<p>How can i do that?</p>

<p>Any help will be appriciated...</p>

<p>TIA.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>ss125</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461395/url-encoding</guid>
		</item>
				<item>
			<title>Support Chat System</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461351/support-chat-system</link>
			<pubDate>Tue, 20 Aug 2013 10:51:25 +0000</pubDate>
			<description>Hi, I'm looking for a support chat system that I could integrate with my own web application. I've searched for a while and just found these two options: * http://cutesoft.net/Live-Support/Purchase/ * http://www.dotnetlivehelp.com/download.aspx As the first one has a developers license, it seems to me that the product is quite old ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm looking for a support chat system that I could integrate with my own web application. I've searched for a while and just found these two options:</p>

<ul><li><a href="http://cutesoft.net/Live-Support/Purchase/" rel="nofollow">http://cutesoft.net/Live-Support/Purchase/</a></li>
<li><a href="http://www.dotnetlivehelp.com/download.aspx" rel="nofollow">http://www.dotnetlivehelp.com/download.aspx</a></li>
</ul>

<p>As the first one has a developers license, it seems to me that the product is quite old and I'm not sure about being updated with new technologies (websockets). The second one doesn't have a dev license :\</p>

<p>The features that I'm looking for are:</p>

<ul><li>Proactive Chat (the operator can start a chat with the client)</li>
<li>Chat Transfer between operators</li>
<li>Chat Logging</li>
<li>Canned messages (if possible)</li>
</ul>

<p>Does anyone knows another option?</p>

<p>Cheers!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>icedome</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461351/support-chat-system</guid>
		</item>
				<item>
			<title>VS 2012 installation not able to locate DbSqlPackageProvider.msi package</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461192/vs-2012-installation-not-able-to-locate-dbsqlpackageprovider.msi-package</link>
			<pubDate>Sun, 18 Aug 2013 09:01:30 +0000</pubDate>
			<description>HI Guys, This might be a wrong place for such a query but I really need your help. I have downloaded the VS_ultimate setup file from Microsoft. I ran this setup and it's kinda stuck at a point where it is not able to locate the Microsoft web deploy dbsqlpackage ...</description>
			<content:encoded><![CDATA[ <p>HI Guys,</p>

<p>This might be a wrong place for such a query but I really need your help.<br />
I have downloaded the VS_ultimate setup file from Microsoft. I ran this setup and it's kinda stuck at a point where it is not able to locate the Microsoft web deploy dbsqlpackage provider -enu.</p>

<p>Earier I got the same thing for Silverlight 5 sdk too but I downloaded it and the setup went ahead.</p>

<p>Somehow I am not able to get this provider on web.</p>

<p>Please help!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>A0110</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461192/vs-2012-installation-not-able-to-locate-dbsqlpackageprovider.msi-package</guid>
		</item>
				<item>
			<title>Help with Session Variable after Longin</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/461173/help-with-session-variable-after-longin</link>
			<pubDate>Sat, 17 Aug 2013 18:15:24 +0000</pubDate>
			<description>Hi! I have building an application that requires a user login. The user name and password are stored in a database table. On login, I call a stored procedure that confirms the user name and password and then directs the user to the MyAccounts page. The problem is, I am ...</description>
			<content:encoded><![CDATA[ <p>Hi!  I have building an application that requires a user login.  The user name and password are stored in a database table.  On login, I call a stored procedure that confirms the user name and password and then directs the user to the MyAccounts page.  The problem is, I am new to session states and passing session variables.  How do I pass the username and information to the my accounts page and keep the session open until the user closes the application or logs out?</p>

<p>Any help is appreciated.  Thanks!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>rdeveloper1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/461173/help-with-session-variable-after-longin</guid>
		</item>
				<item>
			<title>MVC + Resources + Validation Messages + Models Issue</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460879/mvc-resources-validation-messages-models-issue</link>
			<pubDate>Tue, 13 Aug 2013 13:21:04 +0000</pubDate>
			<description>Hello, I am working on a project and I'm having a bit of trouble trying to localize my resources outside my MVC application. I currently have a MVC Application where i've defined my Resources in App_Global_Resources, and I have a C# Project where I've defined my Models with all the ...</description>
			<content:encoded><![CDATA[ <p>Hello,<br />
I am working on a project and I'm having a bit of trouble trying to localize my resources outside my MVC application.<br />
I currently have a MVC Application where i've defined my Resources in App_Global_Resources, and I have a C# Project where I've defined my Models with all the Validation Messages in it.</p>

<p>What I want to do is to localize the Resources in my MVC application and use them in the C# Project for the Validation Messages, otherwise I will only be able to display them in one language.</p>

<p>How can I do this?</p>

<p>Thanks in advanced</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Diogo Martinho</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460879/mvc-resources-validation-messages-models-issue</guid>
		</item>
				<item>
			<title>Passing model data from view back to controller</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460873/passing-model-data-from-view-back-to-controller</link>
			<pubDate>Tue, 13 Aug 2013 10:28:48 +0000</pubDate>
			<description>I want to know if this is possible using the Html.ActionLink(). In conroller: I have queried my database and passed that data to the view. In view: I have used that data to fill inputs, labels, etc... However I want to reduce the number of query hits by passing the ...</description>
			<content:encoded><![CDATA[ <p>I want to know if this is possible using the Html.ActionLink().</p>

<p>In conroller:<br />
I have queried my database and passed that data to the view.</p>

<p>In view:<br />
I have used that data to fill inputs, labels, etc... However I want to reduce the number of query hits by passing the same data back to the controller, so it can be used on another view. Can this be done by passing the Model back to the controller using Html.ActionLink()?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>singularity~</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460873/passing-model-data-from-view-back-to-controller</guid>
		</item>
				<item>
			<title>Digital library system</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460767/digital-library-system</link>
			<pubDate>Sun, 11 Aug 2013 19:52:05 +0000</pubDate>
			<description>Hi! My project is on digital library system and ASP.Net C#. I need ur help in my fine calculation code.I try it to do alot but still that codes r not working yet. Please help me to solve this problem.I really thankful to u.</description>
			<content:encoded><![CDATA[ <p>Hi! My project is on digital library system and ASP.Net C#. I need ur help in my fine calculation code.I try it to do alot but still that codes r not working yet.<br />
Please help me to solve this problem.I really thankful to u.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>princess pinky</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460767/digital-library-system</guid>
		</item>
				<item>
			<title>texbox code </title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460701/texbox-code-</link>
			<pubDate>Sat, 10 Aug 2013 05:13:18 +0000</pubDate>
			<description>hello friends I am new to asp.net. does anyone has any sample code of text box on how to limit inputs into four digits and move to next text box and auto decimal if anyone has a code or knows a good tutorial on how to ,please let me know ...</description>
			<content:encoded><![CDATA[ <p>hello friends<br />
I am new to asp.net. does anyone has any sample code of text box on how to limit inputs  into four digits and move to next text  box and auto decimal<br />
if anyone has a code or knows a good tutorial on how to ,please let me know<br />
id be grateful</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>rony001</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460701/texbox-code-</guid>
		</item>
				<item>
			<title>how to search a gridview using textbox and want to show another table.</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460694/how-to-search-a-gridview-using-textbox-and-want-to-show-another-table</link>
			<pubDate>Fri, 09 Aug 2013 23:34:44 +0000</pubDate>
			<description> &lt;asp:GridView ID=&quot;grdenqsup&quot; runat=&quot;server&quot; Width=&quot;94%&quot; OnPageIndexChanging=&quot;grdenqsup_PageIndexChanging&quot; PageSize=&quot;8&quot; AllowPaging=&quot;true&quot; AutoGenerateColumns=&quot;false&quot;&gt; &lt;RowStyle BackColor=&quot;#EFF3FB&quot; /&gt; &lt;FooterStyle BackColor=&quot;#507CD1&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt; &lt;HeaderStyle BackColor=&quot;#507CD1&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt; &lt;AlternatingRowStyle BackColor=&quot;White&quot; /&gt; &lt;Columns&gt; &lt;asp:BoundField DataField=&quot;TEMP_SUPPCODE&quot; HeaderText=&quot;SUPPLIER CODE&quot; /&gt; &lt;asp:BoundField DataField=&quot;SUPPLIERNAME&quot; HeaderText=&quot;SUPPLIER NAME&quot; /&gt; &lt;%--&lt;asp:BoundField DataField=&quot;SUPPLIERTITLE&quot; HeaderText=&quot;SUPPLIER TITLE&quot; /&gt;--%&gt; &lt;asp:BoundField DataField=&quot;SUPPLIER_ADDRESS1&quot; HeaderText=&quot;SUPPLIER ADDRESS1&quot; /&gt; &lt;%-- &lt;asp:BoundField DataField=&quot;SUPPLIER_ADDRESS2&quot; HeaderText=&quot;SUPPLIER ADDRESS2&quot; ...</description>
			<content:encoded><![CDATA[ <pre><code>   &lt;asp:GridView ID="grdenqsup" runat="server" Width="94%" OnPageIndexChanging="grdenqsup_PageIndexChanging" PageSize="8" AllowPaging="true" AutoGenerateColumns="false"&gt;
           &lt;RowStyle BackColor="#EFF3FB" /&gt;
           &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
           &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
           &lt;AlternatingRowStyle BackColor="White" /&gt;
       &lt;Columns&gt;     


        &lt;asp:BoundField DataField="TEMP_SUPPCODE" HeaderText="SUPPLIER CODE" /&gt;
        &lt;asp:BoundField DataField="SUPPLIERNAME" HeaderText="SUPPLIER NAME" /&gt;
        &lt;%--&lt;asp:BoundField DataField="SUPPLIERTITLE" HeaderText="SUPPLIER TITLE" /&gt;--%&gt;
        &lt;asp:BoundField DataField="SUPPLIER_ADDRESS1" HeaderText="SUPPLIER ADDRESS1" /&gt;
       &lt;%-- &lt;asp:BoundField DataField="SUPPLIER_ADDRESS2" HeaderText="SUPPLIER ADDRESS2" /&gt;
        &lt;asp:BoundField DataField="SUPPLIER_PLACE" HeaderText="SUPPLIER PLACE" /&gt;--%&gt;
         &lt;asp:TemplateField ItemStyle-Width="40" ItemStyle-HorizontalAlign="Right" &gt;
        &lt;ItemTemplate&gt;
            &lt;asp:TextBox ID="txtSupplier" runat="server"&gt;
            &lt;/asp:TextBox&gt;
        &lt;/ItemTemplate&gt; 
        &lt;/asp:TemplateField&gt;        
        &lt;/Columns&gt;
            &lt;/asp:GridView&gt;


            `how to use the textindex change for this txtsupplier`
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>manojsekar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460694/how-to-search-a-gridview-using-textbox-and-want-to-show-another-table</guid>
		</item>
				<item>
			<title>txt  file data save in databse</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460676/txt-file-data-save-in-databse</link>
			<pubDate>Fri, 09 Aug 2013 16:32:42 +0000</pubDate>
			<description>I want that when txt file data save in database that time progress display that &quot;Processing nth of n records …&quot; I trying with following code but not success CurrentFileName = myFile.FileName; string CurrentPath = Server.MapPath(&quot;~/Uploadfile/&quot;); CurrentPath += CurrentFileName; myFile.SaveAs(CurrentPath); fname = CurrentFileName; DataTable dt = new DataTable(); StreamReader sw ...</description>
			<content:encoded><![CDATA[ <p>I want that when txt file data  save in database that time progress display that  "Processing  nth of n records …" I trying with following code but not success</p>

<pre><code> CurrentFileName = myFile.FileName;
            string CurrentPath = Server.MapPath("~/Uploadfile/");   
            CurrentPath += CurrentFileName;
            myFile.SaveAs(CurrentPath);
            fname = CurrentFileName;
            DataTable dt = new DataTable();
            StreamReader sw = new StreamReader(CurrentPath);
            var linecount = File.ReadAllLines(CurrentPath).Length;
            //lblmsg1.Text = linecount.ToString();
            while (!sw.EndOfStream)
            {
                count++;
                lblmsg1forcount.Text = " processing" + count.ToString() + "th  Of" + linecount.ToString() + " Records .......";
                string[] partsOfString = sw.ReadLine().Split('~');
                string str1 = partsOfString[0];
                string str2 = partsOfString[1];
                string str = partsOfString[2];
                string str3 = partsOfString[3];
                string str4 = partsOfString[4];
            }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>bansarisavaliya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460676/txt-file-data-save-in-databse</guid>
		</item>
				<item>
			<title>RadSchedular multiple resource problem</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460650/radschedular-multiple-resource-problem</link>
			<pubDate>Fri, 09 Aug 2013 05:44:52 +0000</pubDate>
			<description>I have an problem in radschedular multiple resource. the multiple resource are not added in my table. is there any way to find those particular values which are selected by user from multiple values. please help me.</description>
			<content:encoded><![CDATA[ <p>I have an problem in radschedular multiple resource. the multiple resource are not added in my table. is there any way to find those particular values which are selected by user from multiple values. please help me.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>kalpnainfoscope</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460650/radschedular-multiple-resource-problem</guid>
		</item>
				<item>
			<title>Develop a custom authentication and authorization system in consistence wit</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460569/develop-a-custom-authentication-and-authorization-system-in-consistence-wit</link>
			<pubDate>Wed, 07 Aug 2013 15:00:59 +0000</pubDate>
			<description>I am creating a new ASP.NET MVC 4 application (actually my first MVC application) that is a part of my previous ASP.NET web forms application. I have never used ASP.NET inbuilt authentication methods in any of my project. This new MVC 4 app will be published on a sub-domain of ...</description>
			<content:encoded><![CDATA[ <p>I am creating a new ASP.NET MVC 4 application (actually my first MVC application) that is a part of my previous ASP.NET web forms application. I have never used ASP.NET inbuilt authentication methods in any of my project. This new MVC 4 app will be published on a sub-domain of previous app. Login will be done from previous app. A return url should be provided from MVC app to return back to current page if not logged in. However, New User Registration, Account Recovery options are already developed in previous web forms application and I don't want to replicate them in my new MVC application.</p>

<p>A cookie <code>token</code> with token number will be issued from web form application on the event of successful login which will be shared to all domain like <code>*.maindomain.com</code>.</p>

<p>Now I want to merge my own token validation method with ASP.NET inbuilt methods so that I can make use of <code>Authorize</code> and other security related options in my new MVC application.</p>

<p>In my previous application I have developed my custom user validation system in following way.</p>

<p>First, I have following related SQL Server tables</p>

<p><a href="http://i.stack.imgur.com/NPcFm.png" rel="nofollow">http://i.stack.imgur.com/NPcFm.png</a></p>

<p>and following classes</p>

<pre><code>public class Token
{
    public static uint GenerateToken(string userEmail, string password, bool isPersistent)
    {
        // this static function generates a uint type unique token number
        // and put this in the cookie "token" using HttpContext.Current.Response object.
        // if isPersistent is set to true then cookie will be persistent otherwise not
        // if there is any problem in creating token then it will throw an Exception with proper message
        // Possible causes of not generating a token are
        // 1. Invalid useremail or password
        // 2. 'State' value in 'Member' table is 'EmailPending' or 'Suspended' (there is an enum for MemberState
    }

    public Token(uint tokenNo, bool validateImmediately = false)
    {
        // simply load token details with a few filed from member table from database
        // Call validate function if validateImmediately is set to true
        // Throws an exception if token does not exists in the database
    }

    public void Validate()
    {
        // Checks for everything like MemberState is Active and Token status is also Active and throws exception if anything wrong
        // and then check (LastAccessedOn.AddSeconds(TokenLife) &lt; AppSettings.Now) is not true
        // Call UpdateStatus function with new token status and current page from HttpContext in comment parameter
    }

    public void UpdateStatus((TokenStatus newStatus, string comment = "")
    {
        // simply write both newStatus and Comment in Token table
        // and remove the token cookie if newStatus is not set to Active
    }

    public uint TokenNumber { get; private set; }
    public uint MemberNumber { get; private set; } // from Member table
    public string Name { get; private set; } // from Member table
    public MemberState MemberState { get; private set; } // from Member table
    public string MemberEmail { get; private set; } // from member table
    public uint BusinsessNo { get; private set; } // from Business table
    public DateTime CreatedOn { get; private set; }
    public DateTime LastAccessedOn { get; private set; }
    public uint TokenLife { get; private set; } // from member
    public string CreatedIP { get; private set; }
    public string LastIP { get; private set; }
    public bool IsPersistent { get; private set; }
    public TokenStatus Status { get; private set; }
    public string Comment { get; private set; }
    public static Token Current
    {
        get
        {
            if (_t == null)
                _t = new Token(uint.Parse(HttpContext.Current.Request.Cookies["token"].Value));
            return _t;
        }
    }
    private static Token _t;
}

public class Member
{
     // all member related operations like new member, send verification email and verify email
}
</code></pre>

<p>For logging out user I simply call UpdateStatus like <code>(TokenSatus.Closed, "User logged out")</code>. This method will take care of cookie removal.</p>

<p>Note: Member class has a property <code>bool IsAdmin</code>. You know why its for.</p>

<p>Please suggest me a best solution to develop authentication system according to my needs in MVC application. I am telling you again that options like <code>New User</code>, <code>Account Recovery</code> and <code>Email Verification</code> will be done in my previous ASP.NET web forms application. All I need to just put my <code>Validate()</code> method of <code>Token</code> class on right place in MVC application. I am really confused with several solution available on internet.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>inheaven</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460569/develop-a-custom-authentication-and-authorization-system-in-consistence-wit</guid>
		</item>
				<item>
			<title>server.transfer is not working</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460472/server.transfer-is-not-working</link>
			<pubDate>Tue, 06 Aug 2013 10:06:07 +0000</pubDate>
			<description>I am trying to create a simple login form on giving correct username and password the form is not tranferring to the next page it just remains in the same page.And my code is &lt;script runat=&quot;server&quot;&gt; sub Page_Load If txtuname.Text=&quot;xxx&quot; AND txtpass.Text=&quot;xxx&quot; Then Response.write(&quot;Welcome user&quot;) Server.Transfer(&quot;login2.aspx&quot;) Else Response.write(&quot;Invalid Username and ...</description>
			<content:encoded><![CDATA[ <p>I am trying to create a simple login form on giving correct username and password the form is not tranferring to the next page it just remains in the same page.And my code is</p>

<pre><code class="language-vb">&lt;script runat="server"&gt;
sub Page_Load
If txtuname.Text="xxx"  AND txtpass.Text="xxx" Then
Response.write("Welcome user")
Server.Transfer("login2.aspx")
Else
Response.write("Invalid Username and Password")
End If
End sub
&lt;/script&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>ammukarthi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460472/server.transfer-is-not-working</guid>
		</item>
				<item>
			<title>Group Repeater Data for each distinct user</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460471/group-repeater-data-for-each-distinct-user</link>
			<pubDate>Tue, 06 Aug 2013 10:06:00 +0000</pubDate>
			<description>I have the following repeater item: &lt;asp:Repeater ID=&quot;RptLeaveRequests&quot; runat=&quot;server&quot; onitemdatabound=&quot;RptLeaveRequests_ItemDataBound&quot;&gt; &lt;ItemTemplate&gt; &lt;table id=&quot;tableItem&quot; runat=&quot;server&quot;&gt; &lt;tr&gt; &lt;td style=&quot;width: 100px;&quot;&gt; &lt;asp:Label ID=&quot;lblDate&quot; runat=&quot;server&quot; Text='&lt;%#Eval(&quot;Date&quot;, &quot;{0:dd/M/yyyy}&quot;) %&gt;'&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td style=&quot;width: 100px;&quot;&gt; &lt;asp:Label ID=&quot;lblHours&quot; runat=&quot;server&quot; Text='&lt;%#Eval(&quot;Hours&quot;) %&gt;'&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td style=&quot;width: 200px;&quot;&gt; &lt;asp:Label ID=&quot;lblPeriod&quot; runat=&quot;server&quot; Text='&lt;%#Eval(&quot;AMorPM&quot;) %&gt;'&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td style=&quot;width: 200px; font-size:10px;&quot;&gt; &lt;asp:Label ID=&quot;lblNote&quot; runat=&quot;server&quot; ...</description>
			<content:encoded><![CDATA[ <p>I have the following repeater item:</p>

<pre><code>&lt;asp:Repeater ID="RptLeaveRequests" runat="server" 
        onitemdatabound="RptLeaveRequests_ItemDataBound"&gt;
&lt;ItemTemplate&gt;
    &lt;table id="tableItem" runat="server"&gt;
        &lt;tr&gt;
                &lt;td style="width: 100px;"&gt;
                    &lt;asp:Label ID="lblDate" runat="server" Text='&lt;%#Eval("Date", "{0:dd/M/yyyy}") %&gt;'&gt;&lt;/asp:Label&gt;
                &lt;/td&gt;
                &lt;td style="width: 100px;"&gt;
                    &lt;asp:Label ID="lblHours" runat="server" Text='&lt;%#Eval("Hours") %&gt;'&gt;&lt;/asp:Label&gt;
                &lt;/td&gt;
                &lt;td style="width: 200px;"&gt;
                    &lt;asp:Label ID="lblPeriod" runat="server" Text='&lt;%#Eval("AMorPM") %&gt;'&gt;&lt;/asp:Label&gt;
                &lt;/td&gt;
                &lt;td style="width: 200px; font-size:10px;"&gt;
                    &lt;asp:Label ID="lblNote" runat="server" Text='&lt;%#Eval("Note") %&gt;'&gt;&lt;/asp:Label&gt;
                &lt;/td&gt;
                &lt;td style="50px"&gt;
                    &lt;asp:RadioButtonList ID="rbtVerified" runat="server" &gt;
                        &lt;asp:ListItem Value="1"&gt;Accept&lt;/asp:ListItem&gt;
                        &lt;asp:ListItem Value="2"&gt;Reject&lt;/asp:ListItem&gt;
                    &lt;/asp:RadioButtonList&gt;
                &lt;/td&gt;
                &lt;td&gt;
                    &lt;asp:TextBox ID="txtNotes" runat="server" &gt;&lt;/asp:TextBox&gt;
                &lt;/td&gt;
            &lt;/tr&gt;
    &lt;/table&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>on page load I am binding the Repeater:</p>

<pre><code>else if(Convert.ToInt32(Session["UserLevel"]) != 0 &amp;&amp; Convert.ToInt32(Session["UserLevel"]) &lt; 151)
{
       RptLeaveRequests.DataSource = newLeaveLogic().GetManagerUnverifiedLeaveRequests(Convert.ToInt32(Context.User.Identity.Name));
       hasRequests = true;
       RptLeaveRequests.DataBind();
}
</code></pre>

<p>The GetManagerUnverifiedLeaveRequests method returns a DataTable with EmployeeId (int) , Date, Hours, AMorPM and Note.<br />
Now I would like to Group the data (Data,Hours,AMorPM and Note) retrieved from the DataTable for each different EmployeeId in the following method, but I am not sure how to proceed:</p>

<pre><code>protected void RptLeaveRequests_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
       if (hasRequests)
       {
             //grouping
       }
}
</code></pre>

<p>I have tried to follow <a href="http://stackoverflow.com/questions/11653190/grouped-gridview-with-expandable-groups/11657327#11657327" rel="nofollow">this example</a> but I could not understand / interpret the code behind for the <code>OnRowDataBound</code> for the data.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>cirbab4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460471/group-repeater-data-for-each-distinct-user</guid>
		</item>
				<item>
			<title>scrolling images populated in datalist</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460180/scrolling-images-populated-in-datalist</link>
			<pubDate>Thu, 01 Aug 2013 11:36:35 +0000</pubDate>
			<description>Hello There, I have a website where i have a small block to show new arrivals in products. The Products are marked in Database as they are New: Yes / No. I am fetching these products in a datalist on my client side page. The display area is for two ...</description>
			<content:encoded><![CDATA[ <p>Hello There,</p>

<p>I have a website where i have a small block to show new arrivals in products. The Products are marked in Database as they are New: Yes / No.<br />
I am fetching these products in a datalist on my client side page. The display area is for two images. Now if there are more products marked as New:Yes, then the images on the client side should slide up to show all the images marked as New from the Database.</p>

<p>ANyone can help me with this.</p>

<p>Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>jain4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460180/scrolling-images-populated-in-datalist</guid>
		</item>
				<item>
			<title>Menu Like Flipkart and amzon in asp.net</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460154/menu-like-flipkart-and-amzon-in-asp.net</link>
			<pubDate>Thu, 01 Aug 2013 05:50:02 +0000</pubDate>
			<description>Hi all i Want To Create menu like Flipkart and Amazon in asp.net So any budy have any idea Please Post answer Thank In Advance</description>
			<content:encoded><![CDATA[ <p>Hi all i Want To Create menu like Flipkart and Amazon in asp.net So any budy have any idea Please Post answer<br />
Thank In Advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>hirenpatel53</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460154/menu-like-flipkart-and-amzon-in-asp.net</guid>
		</item>
				<item>
			<title>ASP.NET Routing Question</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460113/asp.net-routing-question</link>
			<pubDate>Wed, 31 Jul 2013 12:45:02 +0000</pubDate>
			<description>Hello, I'm trying to define the route for my application and so far I've set the following route routes.MapRoute( &quot;Default&quot;, // Route name &quot;{controller}/{action}/{id}&quot;, // URL with parameters new { controller = &quot;Home&quot;, action = &quot;Start&quot;, id = UrlParameter.Optional } // Parameter defaults ); This allows me to do things ...</description>
			<content:encoded><![CDATA[ <p>Hello,<br />
I'm trying to define the route for my application and so far I've set the following route</p>

<pre><code>routes.MapRoute(
                 "Default", // Route name
                 "{controller}/{action}/{id}", // URL with parameters
                 new { controller = "Home", action = "Start", id = UrlParameter.Optional } // Parameter defaults
            );
</code></pre>

<p>This allows me to do things like</p>

<p>myapplication.com/<br />
myapplication.com/en<br />
myapplication.com/pt</p>

<p>I wanted to add new routes that would allow me to access specific methods acording to the language chosen so that</p>

<p>myapplication.com/ -&gt; method A<br />
myapplication.com/en -&gt; method B<br />
myapplication.com/pt -&gt; method C</p>

<p>Is this possible to do? How?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Diogo Martinho</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460113/asp.net-routing-question</guid>
		</item>
				<item>
			<title>dynamically managing Gridview columns based on user input</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460107/dynamically-managing-gridview-columns-based-on-user-input</link>
			<pubDate>Wed, 31 Jul 2013 11:19:15 +0000</pubDate>
			<description>I have developed a page which contains some controls like textboxes, dropdown,etc. I had created the **datatable** using the **sqldataadapter** and that works fine by retriving the table using the select command. I want to place the data in a **gridview** and it also works. Now I want to populate ...</description>
			<content:encoded><![CDATA[ <p>I have developed a page which contains some controls like textboxes, dropdown,etc. I had created the <strong>datatable</strong> using the <strong>sqldataadapter</strong> and that works fine by retriving the table using the select command. I want to place the data in a <strong>gridview</strong> and it also works. Now I want to populate the gridview columns based on my user input controls like hiding or showing selected columns. I don't have the idea how to do this. please help me and advance thanks for your answer</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>misd_bunder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460107/dynamically-managing-gridview-columns-based-on-user-input</guid>
		</item>
				<item>
			<title>AutoCompleteExtender how to seperate data </title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460098/autocompleteextender-how-to-seperate-data-</link>
			<pubDate>Wed, 31 Jul 2013 09:19:58 +0000</pubDate>
			<description>hi , actually i use AutoCompleteExtender to complete the words that's the user write, and he give resultat that i want in my case it's the active and not active point in the data base. but i want separate the active point and the not active point, to show it ...</description>
			<content:encoded><![CDATA[ <p>hi ,</p>

<p>actually i use AutoCompleteExtender to complete the words that's the user write, and he give resultat that i want in my case it's the active and not active  point in the data base.</p>

<p>but i want separate the active point and the not active point, to show it to the user.</p>

<p>someone have any idea i try strike but the AutoCompleteExtender don't accept it.</p>

<p>thank's for your helps</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>nolife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460098/autocompleteextender-how-to-seperate-data-</guid>
		</item>
				<item>
			<title>Direct to Confirmation Page Before Updating DB</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460070/direct-to-confirmation-page-before-updating-db</link>
			<pubDate>Tue, 30 Jul 2013 20:56:03 +0000</pubDate>
			<description>Hi guys, I've looked around and read, I'm not looking for a OnClientClick that can be added to the server side button. I need something that will direct anyone who clicks on submit to another page where they would see what they've filled out. Eventually, this will have their email ...</description>
			<content:encoded><![CDATA[ <p>Hi guys,</p>

<p>I've looked around and read, I'm not looking for a OnClientClick that can be added to the server side button. I need something that will direct anyone who clicks on submit to another page where they would see what they've filled out. Eventually, this will have their email address and etc (it will be a form) I would like to know how to get it to a confirmation page before I begin with adding additional things to the form. Confirmaton page obviously should allow them to view all of fields with the data they've entered.<br />
For ex: we could work with Full Name: w/e they entered here<br />
Confirmation page would display that, with the ability to Cancel or Confirm and Submit. // which updates the database at the point</p>

<p>Here's the code I've developed<br />
NOTE: THE DATE IS HIDDEN TO THE END USER, let's just focus on getting to the next page</p>

<pre><code>&lt;%@ Page Language="VB"  debug="true" %&gt;
&lt;%@ Import Namespace="System.Data.SqlClient" %&gt;
&lt;script runat="server"&gt;
Sub btnSubmit_OnClick(sender As Object, e As EventArgs)
Dim myConn As SqlConnection = New SqlConnection("Integrated Security=false;Data Source=test;Initial Catalog=Test;Persist Security Info=True;User ID=teradad34;Password=dasdada2")

myConn.Open()
Dim sqlstring As String = "INSERT INTO leaveform (Date) VALUES (getdate())"


Dim cmd As SqlCommand = New SqlCommand(sqlstring, myConn)
cmd.ExecuteNonQuery()
myConn.Close()
End Sub
&lt;/script&gt;

&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="expires" content="0"&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;form method="POST" action="leaverequest.aspx" runat="server"&gt;
&lt;asp:Button ID="btnSubmit" runat="server" Text="Submit"  OnClick="btnSubmit_OnClick" /&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>DaniwebOS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460070/direct-to-confirmation-page-before-updating-db</guid>
		</item>
				<item>
			<title>Automate OAuth2 authentication</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460051/automate-oauth2-authentication</link>
			<pubDate>Tue, 30 Jul 2013 13:04:53 +0000</pubDate>
			<description>Good morning, I'm working on a project where I've to connet to a provider server. This server uses OAuth2 techmology for authentication. You can find the sandbox example here http://sandbox.ihealthlabs.com/contentfiles/files/SandboxAPISample.zip and you can use the credentials sandboxuser@ihealthlabs.com with password 111111 . OK, this example allows you to access and view ...</description>
			<content:encoded><![CDATA[ <p>Good morning,</p>

<p>I'm working on a project where I've to connet to a provider server. This server uses OAuth2 techmology for authentication. You can find the sandbox example here <a href="http://sandbox.ihealthlabs.com/contentfiles/files/SandboxAPISample.zip" rel="nofollow">http://sandbox.ihealthlabs.com/contentfiles/files/SandboxAPISample.zip</a> and you can use the credentials sandboxuser@ihealthlabs.com with password 111111 .</p>

<p>OK, this example allows you to access and view the informations with an user but I want to make a log-like page where I will make access and extract the datas of many users and update an our database.</p>

<p>But I don't know where to start.<br />
I found some libraries and examples but always for Facebook, Twitter etc...</p>

<p>The only documentatios that I have is the pdf inside this zip file <a href="http://developer.ihealthlabs.com/contentfiles/files/Open%20API%20Protocol.zip" rel="nofollow">http://developer.ihealthlabs.com/contentfiles/files/Open%20API%20Protocol.zip</a></p>

<p>Please, can you help me?</p>

<p>Thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>y.chen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460051/automate-oauth2-authentication</guid>
		</item>
				<item>
			<title>how to retrive values from sql server using vb.net</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/460040/how-to-retrive-values-from-sql-server-using-vb.net</link>
			<pubDate>Tue, 30 Jul 2013 10:12:41 +0000</pubDate>
			<description>how to retrive values from database into a table using vb.net?????? I tried but i don't have either output?????? How to do this??? and my code is: &lt;%@ Page Language=&quot;VB&quot; ContentType=&quot;text/html&quot; ResponseEncoding=&quot;iso-8859-1&quot; %&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt; &lt;title&gt;Untitled ...</description>
			<content:encoded><![CDATA[ <p>how to retrive values from database into a table using vb.net??????<br />
I tried but i don't have either output??????<br />
How to do this???<br />
and my code is:</p>

<pre><code class="language-vb">&lt;%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;% @Import Namespace="System.Data" %&gt;
&lt;% @Import Namespace="System.Data.SqlClient" %&gt;
&lt;script runat="server"&gt;
sub Page_Load()
       Dim con As New SqlConnection
Dim cmd As New SqlCommand

 con.ConnectionString = "Data Source=IMMANUEL-PC\SQLEXPRESS; Initial Catalog=dbkarthi; UID=test; PWD=test1;" 
 con.Open()
 cmd.Connection = con
 cmd.CommandText = "select * from det"
 Dim lrd As SqlDataReader = cmd.ExecuteReader()
End sub         

&lt;/script&gt;
&lt;form runat="server"&gt;
&lt;asp:Repeater id="customers" runat="server"&gt;

&lt;HeaderTemplate&gt;
&lt;table border="1" width="100%"&gt;
&lt;tr bgcolor="#b0c4de"&gt;
&lt;th&gt;ID&lt;/th&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Address&lt;/th&gt;
&lt;th&gt;Age&lt;/th&gt;
&lt;th&gt;Gender&lt;/th&gt;
&lt;/tr&gt;
&lt;/HeaderTemplate&gt;

&lt;ItemTemplate&gt;
&lt;tr bgcolor="#f0f0f0"&gt;
&lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem, "id")%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem, "name")%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem, "address")%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem, "age")%&gt; &lt;/td&gt;
&lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem, "gender")%&gt; &lt;/td&gt;

&lt;/tr&gt;
&lt;/ItemTemplate&gt;

&lt;FooterTemplate&gt;
&lt;/table&gt;
&lt;/FooterTemplate&gt;

&lt;/asp:Repeater&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>ammukarthi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/460040/how-to-retrive-values-from-sql-server-using-vb.net</guid>
		</item>
				<item>
			<title>Some curious chat</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459936/some-curious-chat</link>
			<pubDate>Sun, 28 Jul 2013 16:12:01 +0000</pubDate>
			<description>What is reasion of popularity of SAP SOFTWARES can we compatite with our asp.net projects.</description>
			<content:encoded><![CDATA[ <p>What is reasion of popularity of SAP SOFTWARES can we compatite with our asp.net projects.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>abhinavashish</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459936/some-curious-chat</guid>
		</item>
				<item>
			<title>Db2bulkcopy</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459931/db2bulkcopy</link>
			<pubDate>Sun, 28 Jul 2013 14:20:37 +0000</pubDate>
			<description>Db2bulkcopy type not defined..what needs to be done</description>
			<content:encoded><![CDATA[ <p>Db2bulkcopy type not defined..what needs to be done</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>D016</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459931/db2bulkcopy</guid>
		</item>
				<item>
			<title>WebSecurity.Login Question</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459840/websecurity.login-question</link>
			<pubDate>Fri, 26 Jul 2013 14:26:01 +0000</pubDate>
			<description>Hello, I'm trying to build an application and I've created a DB Table Users for Membership purposes. What I'd like to do is allow two columns in that table, UserID or Email as the Username for Login. This means an user would be able to login using either his ID ...</description>
			<content:encoded><![CDATA[ <p>Hello,<br />
I'm trying to build an application and I've created a DB Table Users for Membership purposes.<br />
What I'd like to do is allow two columns in that table, UserID or Email as the Username for Login.<br />
This means an user would be able to login using either his ID or his Email.</p>

<p>Is this possible to do with the WebSecurity.Login method?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Diogo Martinho</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459840/websecurity.login-question</guid>
		</item>
				<item>
			<title>Print the contents of a text</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459703/print-the-contents-of-a-text</link>
			<pubDate>Wed, 24 Jul 2013 13:45:02 +0000</pubDate>
			<description>I am using C# in VB 2012 I want to know how to print the contents of a textbox. Example if someone types &quot;John&quot; in a txtFirstName.text I want to print &quot;Thank you , John &quot; on a new page which will get print. A second problem I have is ...</description>
			<content:encoded><![CDATA[ <p>I am using C# in VB 2012 I want to know how to print the contents of a textbox.</p>

<p>Example if someone types "John" in a txtFirstName.text I want to print "Thank you , John "<br />
on a new page which will get print.</p>

<p>A second problem I have is that when I print that new page the URL of the page gets printed also<br />
I would like a way to prevent the URL being printed.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>earlcools</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459703/print-the-contents-of-a-text</guid>
		</item>
				<item>
			<title>Open pdf in new tab using gridview column click</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459695/open-pdf-in-new-tab-using-gridview-column-click</link>
			<pubDate>Wed, 24 Jul 2013 12:19:57 +0000</pubDate>
			<description>Dear Experts, I am new to asp.net c# but proficient in c++. In asp.net c# i have to open a new page in new tab with pdf file on gridview1 column click event. so give me guidelines to do this. Thanks and regards, Pardeep</description>
			<content:encoded><![CDATA[ <p>Dear Experts, I am new to asp.net c# but proficient in c++. In asp.net c# i have to open a new page in new tab with pdf file on gridview1 column click event.</p>

<p>so give me guidelines to do this.<br />
Thanks and regards,</p>

<p>Pardeep</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>pardeep3dec</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459695/open-pdf-in-new-tab-using-gridview-column-click</guid>
		</item>
				<item>
			<title>Issue with SQL Records Not Updating</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459632/issue-with-sql-records-not-updating</link>
			<pubDate>Tue, 23 Jul 2013 13:40:32 +0000</pubDate>
			<description>Hi guys, I added a extra line of code to test for records in the database and if they exist to update them before inserting them instead. For some odd reason it's not working and it simply just inserts the data causing duplicates. Any suggestions? &lt;%@ Import Namespace=&quot;System.Data&quot;%&gt; &lt;%@ Import ...</description>
			<content:encoded><![CDATA[ <p>Hi guys, I added a extra line of code to test for records in the database and if they exist to update them before inserting them instead. For some odd reason it's not working and it simply just inserts the data causing duplicates. Any suggestions?</p>

<pre><code>&lt;%@ Import Namespace="System.Data"%&gt;
&lt;%@ Import Namespace="System.Data.OleDb"%&gt;
&lt;script runat="server"&gt;
    Sub btnUpload_OnClick(sender As Object, e As EventArgs)
        Dim strPath As String = "csv/"
        Dim dt As DataTable
        If Me.fiUpload.HasFile Then

            Me.fiUpload.SaveAs(Server.MapPath(strPath &amp; fiUpload.FileName))

            '*** Read CSV to DataTable ***'
            dt = CsvCreateDataTable(strPath,fiUpload.FileName)

            '*** Insert to Database ***'
            InsertToDatabase(dt)
        End IF  
    End Sub

    '*** Convert CSV to DataTable ***'
    Function CsvCreateDataTable(ByVal strPath,ByVal strFilesName) As DataTable
        Dim objConn As New OleDbConnection
        Dim dtAdapter As OleDbDataAdapter 
        Dim dt As New DataTable


        Dim strConnString As String
        strConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&amp;Server.MapPath(strPath) &amp; _
";Extended Properties='TEXT;HDR=Yes;FMT=Delimited;Format=Delimited(,)'"


        objConn = New OleDbConnection(strConnString)
        objConn.Open()

        Dim strSQL As String        
        strSQL = "SELECT * FROM " &amp; strFilesName

        dtAdapter = New OleDbDataAdapter(strSQL, objConn)
        dtAdapter.Fill(dt)

        dtAdapter = Nothing

        objConn.Close()
        objConn = Nothing

        Return dt '*** Return DataTable ***'

    End Function

    Function InsertToDatabase(ByVal dt)

        Dim objConn As System.Data.OleDb.OleDbConnection
        Dim objCmd As System.Data.OleDb.OleDbCommand
        Dim strConnString,strSQL As String
        Dim i As Integer


        strConnString = "Provider=SQLOLEDB;" &amp; _
                        "Server=test-sql\testing;" &amp; _
                        "Database=Test;"&amp; _
                        "uid=test;" &amp; _
                        "pwd=test!!@3242gfgf8143f5d;"
        objConn = New System.Data.OleDb.OleDbConnection(strConnString)
        objConn.Open()

        '*** Loop Insert ***'
        For i = 0 To dt.Rows.Count - 1  
        Try 
                'EXTRA NEW LINE OF CODE TO UPDATE RECORDS
                Dim updateCmd As String = "UPDATE TESThrtime Set sickTime = @sickTime, @vacationTime WHERE empFullName = '@empFullName'" 

                    strSQL = "INSERT INTO MARRhrtime (empFullName,sickTime,VacationTime) " &amp; _
                     "VALUES ('" &amp; dt.Rows(i)("empFullName") &amp; "','" &amp; dt.Rows(i)("sickTime") &amp; "','" &amp; dt.Rows(i)("vacationTime") &amp; "')"
                     objCmd = New System.Data.OleDb.OleDbCommand() 
                 With objCmd 
                        .Connection = objConn 
                        .CommandType = CommandType.Text 
                        .CommandText = strSQL 
                 End With 
                    objCmd.ExecuteNonQuery() 
                    Me.lblText.Text = Me.lblText.Text &amp; "[" &amp; dt.Rows(i)("empFullName") &amp; "] Inserted &lt;br&gt;"
                Catch err As Exception 
                    Me.lblText.Text = Me.lblText.Text &amp; "[" &amp; dt.Rows(i)("empFullName") &amp; "] Not Insert &lt;br&gt;"
                End Try 

        Next            
        objCmd = Nothing
        objConn.Close()
        objConn = Nothing

    End Function

&lt;/script&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>DaniwebOS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459632/issue-with-sql-records-not-updating</guid>
		</item>
				<item>
			<title>Show Div on button click</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459544/show-div-on-button-click</link>
			<pubDate>Mon, 22 Jul 2013 12:33:22 +0000</pubDate>
			<description>I am trying to show a loading div on button click, but it is not working at the moment. Javascript : &lt;script type=&quot;text/javascript&quot;&gt; $(document).ready(function (e) { $('#BtnSend').click(function () { $('#&lt;%= loading.ClientID %&gt;').toggle(&quot;slow&quot;); }); }); &lt;/script&gt; Div: &lt;div id=&quot;loading&quot; class=&quot;Loading&quot; runat=&quot;server&quot; visible=&quot;false&quot;&gt; &lt;div class=&quot;loadingImg&quot;&gt; &lt;img src=&quot;../Images/loading.gif&quot; alt=&quot;loading&quot; /&gt; &lt;/div&gt; &lt;/div&gt; button: ...</description>
			<content:encoded><![CDATA[ <p>I  am trying to show a loading div on button click, but it is not working at the moment.</p>

<p>Javascript :</p>

<pre><code>&lt;script type="text/javascript"&gt;
        $(document).ready(function (e) {      
            $('#BtnSend').click(function () {
                $('#&lt;%= loading.ClientID %&gt;').toggle("slow");
            });
        });
    &lt;/script&gt;
</code></pre>

<p>Div:</p>

<pre><code>&lt;div id="loading" class="Loading" runat="server" visible="false"&gt;
  &lt;div class="loadingImg"&gt;
    &lt;img src="../Images/loading.gif" alt="loading" /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</code></pre>

<p>button:</p>

<pre><code>&lt;asp:Button ID="BtnSend" runat="server" Text="SEND" 
            onclick="BtnSend_Click" CssClass="pressbutton2" Height="36px" ClientIDMode="Static" /&gt;
</code></pre>

<p>Also how can I call the same javascript code in the jsfiddle above within code (c#)?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>cirbab4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459544/show-div-on-button-click</guid>
		</item>
				<item>
			<title>How to send Newsletter email with images in asp.net?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459512/how-to-send-newsletter-email-with-images-in-asp.net</link>
			<pubDate>Mon, 22 Jul 2013 04:43:45 +0000</pubDate>
			<description> 0 down vote favorite I am trying send Newsletter with images, I am able to send email but not getting images, I tried to search lots of solution but its not working.Please check this link for [Simple Newsletter](http://www.shooters.com.au/newsletter/newsletter.html) When I am trying to email this newsletter, I am getting newsletter ...</description>
			<content:encoded><![CDATA[ <p>0 down vote favorite</p>

<p>I am trying send Newsletter with images, I am able to send email but not getting images, I tried to search lots of solution but its not working.Please check this link for <a href="http://www.shooters.com.au/newsletter/newsletter.html" rel="nofollow">Simple Newsletter</a></p>

<p>When I am trying to email this newsletter, I am getting newsletter without images. I put hard coded images in html file, like &lt;img src=<a href="http://www.abc.com/images/xyz.jpg" rel="nofollow">http://www.abc.com/images/xyz.jpg</a> /&gt; Here my simple code for sending email :</p>

<pre><code>MailMessage myMail;

using (StreamReader reader = File.OpenText(Server.MapPath("Newsletter.html"))) // Path to your 
{                                                         // HTML file
    myMail = new MailMessage();
    myMail.From = new MailAddress("email@domain.com.au");
    myMail.Subject = "Test News Letter";
    myMail.To.Add("se@yahoo.com.au");
    myMail.IsBodyHtml = true;

    myMail.Body = reader.ReadToEnd();  // Load the content from your file...

}
SmtpClient smtp = new SmtpClient("xx.xx.xx.y", 25);
smtp.UseDefaultCredentials = true;

NetworkCredential cred = new NetworkCredential("email@domain.com.au", "hakoo");
smtp.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
smtp.Credentials = cred;
smtp.Send(myMail);
</code></pre>

<p>Can anyone help me to solve this issues?</p>

<p>Thanks,</p>

<p>Hakoo Desai.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Hakoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459512/how-to-send-newsletter-email-with-images-in-asp.net</guid>
		</item>
				<item>
			<title>Asp.net supported ffmpeg in remote system</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459371/asp.net-supported-ffmpeg-in-remote-system</link>
			<pubDate>Fri, 19 Jul 2013 15:13:35 +0000</pubDate>
			<description>i have done my web application using ffmpeg to covert my videos to mp4h264 baseline codec and everything works fine , my questions is how do i host the web application in server as my hosting server doesn't support ffmpeg with windows , Any advice would be helpful as where ...</description>
			<content:encoded><![CDATA[ <p>i have done my web application using ffmpeg to covert my videos to mp4h264 baseline codec and everything works fine , my questions is how do i host the web application in server as my hosting server doesn't support ffmpeg with windows , Any advice would be helpful as where i can find a hosting provider that works ffmpeg windows server. thanks for your time.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>kamilacbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459371/asp.net-supported-ffmpeg-in-remote-system</guid>
		</item>
				<item>
			<title>how to Control a log in</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459355/how-to-control-a-log-in</link>
			<pubDate>Fri, 19 Jul 2013 10:48:35 +0000</pubDate>
			<description>So I created a custom generated file that lets me take the username and password. It is the following: public User GetUserByUserNamePassword(string userName, string Password) { return (_DatabaseContext.Users.FirstOrDefault(user =&gt; user.Username == userName &amp;&amp; user.Password ==Password)); } In my log in page I have a webUserControl that contains two textboxes, one ...</description>
			<content:encoded><![CDATA[ <p>So I created a custom generated file that lets me take the username and password.<br />
It is the following:</p>

<pre><code>public User GetUserByUserNamePassword(string userName, string Password)
{
   return (_DatabaseContext.Users.FirstOrDefault(user =&gt; user.Username == userName &amp;&amp; user.Password ==Password));
}
</code></pre>

<p>In my log in page I have a webUserControl that contains two textboxes, one for the password and the other one for the username. I created an object data source for the webusercontrol to take in parameters Username and password .</p>

<p>Whats the c# code that can let me check if the username and password are valid (I have a table called User btw that has three columns, UserID(pk), Username and Password.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>FaresEid</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459355/how-to-control-a-log-in</guid>
		</item>
				<item>
			<title>text_changed event of textbox inside gridview not firing</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459229/text_changed-event-of-textbox-inside-gridview-not-firing</link>
			<pubDate>Wed, 17 Jul 2013 18:01:36 +0000</pubDate>
			<description>Hi! I am using a Datatable to maintain a shopping cart. In the gridview I have a textbox for quantity and I want that when the user changes the quantity, the subtotal field changes accordingly, and the datatable also gets updated accordingly. But my textChanged event is not firing at ...</description>
			<content:encoded><![CDATA[ <p>Hi! I am using a Datatable to maintain a shopping cart. In the gridview I have a textbox for quantity and I want that when the user changes the quantity, the subtotal field changes accordingly, and the datatable also gets updated accordingly. But my textChanged event is not firing at all. Please help!!!! Here's the code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
            if (Session["Cart"] == null)
            {
                lblDisp.Text = "You Have No Items in Cart Right Now!!!!";
            }
            else
            {
                DataTable mydt = new DataTable();
                mydt = (DataTable)Session["Cart"];
                GVCart.DataSource = mydt;
                GVCart.DataBind();
            }

    }

    protected void GVCart_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        DataTable dt = (DataTable)Session["Cart"];
        GridViewRow row = (GridViewRow)GVCart.Rows[e.RowIndex];
        string PId = GVCart.Rows[e.RowIndex].Cells[0].Text;
        for (int i = dt.Rows.Count - 1; i &gt;= 0; i--)
        {
            DataRow dr = dt.Rows[i];
            if (dr["PrId"] == PId)
            {
                dt.Rows.Remove(dr);
            }
        }
        GVCart.DataSource = dt;
        GVCart.DataBind();
        Session.Add("Cart", dt);
    }
    protected void txtQnty_TextChanged(object sender, EventArgs e)
    {
        TextBox txt = sender as TextBox;
        GridViewRow row = txt.NamingContainer as GridViewRow;
        int index = row.RowIndex;
        DataTable dt = (DataTable)Session["Cart"];
        dt.Rows[index][3] = txt.Text;
        dt.Rows[index][5] = (Double.Parse(txt.Text) * Double.Parse(dt.Rows[index][4].ToString())).ToString();
        Session.Add("Cart", dt);
        GVCart.DataSource = dt;
        GVCart.DataBind();
    }
}
</code></pre>

<p>Please reply!!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>titas.datta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459229/text_changed-event-of-textbox-inside-gridview-not-firing</guid>
		</item>
				<item>
			<title>FFmpeg installation for x264 codec</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459083/ffmpeg-installation-for-x264-codec</link>
			<pubDate>Mon, 15 Jul 2013 16:26:53 +0000</pubDate>
			<description>Hi, can anybody help me out in where can i find ffmpeg download for windows x264 codec , am developing a website which converts any file format to mp4h264 baseline format , everythng was fine with another wrap installer called MooO ffmpeg which i found in this link http://www.moo0.com/?top=http://www.moo0.com/software/FFmpeg/ evrythng ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
can anybody help me out in where can i find ffmpeg download for windows x264 codec , am developing a website which converts any file format to mp4h264 baseline format , everythng was fine with another wrap installer called MooO ffmpeg which i found in this link <a href="http://www.moo0.com/?top=http://www.moo0.com/software/FFmpeg/" rel="nofollow">http://www.moo0.com/?top=http://www.moo0.com/software/FFmpeg/</a> evrythng is fine i can access the exe from my local system as the file is installed rather i could acess the same when its in remote as i knw the batch file location is different , any help related with ffmpeg x264 sourcecode or access batch file would be helpful.</p>

<p>Thanks for your time</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>kamilacbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459083/ffmpeg-installation-for-x264-codec</guid>
		</item>
				<item>
			<title>Anybody know what is this script?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/459068/anybody-know-what-is-this-script</link>
			<pubDate>Mon, 15 Jul 2013 13:29:43 +0000</pubDate>
			<description>Hello, I found a nice exchange script where people post their own offers.I try to contact the lejer of the website but the website is dead, no activity and so I can not find which is this script and if he sell it. I am talking about this : tips.me/exchange ...</description>
			<content:encoded><![CDATA[ <p>Hello, I found a nice exchange script where people post their own offers.I try to contact the lejer of the website but the website is dead, no activity and so I can not find which is this script and if he sell it.</p>

<p>I am talking about this : tips.me/exchange<br />
If everybody know something exactly like this or similar please to tell me.<br />
Or how much can cost to put something to make me a script like this?</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Dontain</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/459068/anybody-know-what-is-this-script</guid>
		</item>
				<item>
			<title>Issues with CultureInfo.GetCultures() - Get Country names in a Country</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458935/issues-with-cultureinfo.getcultures-get-country-names-in-a-country</link>
			<pubDate>Fri, 12 Jul 2013 16:35:32 +0000</pubDate>
			<description>Hello. I'm currently facing an issue with my code related to the way CultureInfo.GetCultures method is sending me the list of countries. I have this in my getCountries method: System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(&quot;en-GB&quot;); System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(&quot;en-GB&quot;); var cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures); Which retrieves me a list of Cultures in associated ...</description>
			<content:encoded><![CDATA[ <p>Hello.<br />
I'm currently facing an issue with my code related to the way CultureInfo.GetCultures method is sending me the list of countries.</p>

<p>I have this in my getCountries method:</p>

<pre><code>System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB"); 
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB"); 
var cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
</code></pre>

<p>Which retrieves me a list of Cultures in associated to English Culture.</p>

<p>I was trying to do something like</p>

<pre><code>public List&lt;String&gt; getCountriesNamesbyCountry(string countrycode){

    System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(countrycode); 
    System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(countrycode); 
    var cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);

    var cultureList = new List&lt;String&gt;();

       foreach (CultureInfo cul in cultures)
        {
            var country = new RegionInfo(cul.LCID);

            if (!cultureList.Contains(country.DisplayName))
            {
                cultureList.Add(country.DisplayName);
            }
        }

        return cultureList;
}
</code></pre>

<p>If I try to do this</p>

<pre><code>List&lt;String&gt; en = getCountriesNamesbyCountry("en");
List&lt;String&gt; es = getCountriesNamesbyCountry("es");
</code></pre>

<p>Both lists will give me a list of country names in english.<br />
What am I doing wrong &gt;.&lt;?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Diogo Martinho</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458935/issues-with-cultureinfo.getcultures-get-country-names-in-a-country</guid>
		</item>
				<item>
			<title>same user  logged in from differenct browser</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458815/same-user-logged-in-from-differenct-browser</link>
			<pubDate>Thu, 11 Jul 2013 14:08:37 +0000</pubDate>
			<description>Hi, User &quot;A&quot; logged in to your web site and he is using Mozilla firefox browser after his logged in , i have stored some value in Session , now user again logged in from Internet explorer. So what will happen , can i get the session value for this ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>User "A" logged in to your web site and he is using Mozilla firefox browser after his logged in , i have stored some value in Session , now user again logged in from Internet explorer. So what will happen , can i get the session value for this user ??<br />
this user is allowed to logged in ???</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>virendra_sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458815/same-user-logged-in-from-differenct-browser</guid>
		</item>
				<item>
			<title>Pagination</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458781/pagination</link>
			<pubDate>Thu, 11 Jul 2013 10:23:25 +0000</pubDate>
			<description>Hello All ! I want to make my gridview pagination look like this First -prev -- 1 -2 -3 -4 -Next -Last How can i do this , by using options of Mode it is not possible. Best Regards</description>
			<content:encoded><![CDATA[ <p>Hello All !</p>

<p>I want to make my gridview pagination look like this</p>

<p>First -prev -- 1 -2 -3 -4 -Next -Last</p>

<p>How can i do this , by using options of Mode it is not possible.</p>

<p>Best Regards</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>M.Waqas Aslam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458781/pagination</guid>
		</item>
				<item>
			<title>Height 100% not working</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458721/height-100-not-working</link>
			<pubDate>Wed, 10 Jul 2013 18:52:32 +0000</pubDate>
			<description>The title says it all. I have looked all over and can't find a solution. &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head runat=&quot;server&quot;&gt; &lt;style type=&quot;text/css&quot;&gt; body, html { width: 100%; height: 100%; margin: 0; padding: 0; overflow:hidden; position:relative } &lt;/style&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body bgcolor=&quot;#000000&quot; text=&quot;#FFFFFF&quot; link=&quot;#9690CC&quot; vlink=&quot;#FFFF0F&quot; style=&quot;width: 100%; height: 100%&quot;&gt; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt; ...</description>
			<content:encoded><![CDATA[ <p>The title says it all. I have looked all over and can't find a solution.</p>

<pre><code>&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head runat="server"&gt;
    &lt;style type="text/css"&gt;
        body, html
        {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow:hidden; 
            position:relative
        }

    &lt;/style&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor="#000000" text="#FFFFFF" link="#9690CC" vlink="#FFFF0F" style="width: 100%;
    height: 100%"&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div style="height: 100%; width: 100%;"&gt;
        &lt;asp:GridView ID="GridView1" runat="server" PageIndex="1" align="center" Font-Size="X-Large"
            BackColor="Black" CellPadding="5" ViewStateMode="Enabled" Width="100%"&gt;
        &lt;/asp:GridView&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The width works just fine. I removed scrolling because I do not want people to scroll down I want this to just sit a screen at 100% because the gridview changes heights a lot. And I want it to adjust to the screen depending on how many rows are on it at the time.</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Kratoswoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458721/height-100-not-working</guid>
		</item>
				<item>
			<title>Upload and Convert Video File to Flash Video &amp; Streaming using ASP.NET</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458700/upload-and-convert-video-file-to-flash-video-streaming-using-asp.net</link>
			<pubDate>Wed, 10 Jul 2013 12:50:27 +0000</pubDate>
			<description>Hi , I want to upload video in any format &amp; video should be converted to flv. It will be played in any browser.My web application is in C# and ASP.NET. I can use jQuery &amp; ajax. Please provide any sample code snippet ..&amp; video conversion tool info. Thanks in ...</description>
			<content:encoded><![CDATA[ <p>Hi ,</p>

<p>I want to upload video in any format &amp; video should be converted to flv. It will be played in  any browser.My web application is in C# and ASP.NET. I can use jQuery &amp; ajax.</p>

<p>Please provide any sample code snippet ..&amp; video conversion tool info.</p>

<p>Thanks in advance</p>

<p>Regards,<br />
Thyagaraj</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>thyagi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458700/upload-and-convert-video-file-to-flash-video-streaming-using-asp.net</guid>
		</item>
				<item>
			<title>Creating an E-exam </title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458694/creating-an-e-exam-</link>
			<pubDate>Wed, 10 Jul 2013 11:21:44 +0000</pubDate>
			<description>Hi , I need to create an e-exam project , and I don,t know where to start it ? Can sonbody give me some suggestion PLZ .</description>
			<content:encoded><![CDATA[ <p>Hi ,<br />
I need to create an e-exam project , and I don,t know where to start it ?<br />
Can sonbody give me some suggestion PLZ .</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>mo.doroodian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458694/creating-an-e-exam-</guid>
		</item>
				<item>
			<title>Having Multiple custom providers</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458585/having-multiple-custom-providers</link>
			<pubDate>Mon, 08 Jul 2013 21:49:11 +0000</pubDate>
			<description>Is it possible to have more than one custom provider in a system. Suppose you have a project that as a blog and a forum rite in the same project. Can we have a Custom Membership provider for the blog. And a Custom Membership provider for the forum. Cos I ...</description>
			<content:encoded><![CDATA[ <p>Is it possible to have more than one custom provider in a system. Suppose you have a project that as a blog and a forum rite in the same project.</p>

<p>Can we have a Custom Membership provider for the blog.</p>

<p>And a Custom Membership provider for the forum.</p>

<p>Cos I have both system in my projects so I created an area to seperate the forum files from the blog files.</p>

<p>If it is possible how do I configure in my web.config that I am using multiple providers</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>skliz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458585/having-multiple-custom-providers</guid>
		</item>
				<item>
			<title>Ajax combo box data fill in ASP.NET application</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458467/ajax-combo-box-data-fill-in-asp.net-application</link>
			<pubDate>Sun, 07 Jul 2013 08:01:41 +0000</pubDate>
			<description>I'm Developing application using ASP.NET and VB.NET. It is used Ajax controls as well. I added dropdownlist (Standard controller) and databind to it. It is working well. But if i added Ajax combo box, it is not working. (It means data not filling to combobox) No any errors showing. This ...</description>
			<content:encoded><![CDATA[ <p>I'm Developing application using ASP.NET and VB.NET. It is used Ajax controls as well. I added dropdownlist (Standard controller) and databind to it. It is working well. But if i added Ajax combo box, it is not working. (It means data not filling to combobox) No any errors showing.</p>

<p>This is my ASP code</p>

<pre><code>    &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
       &lt;ContentTemplate&gt;
           &lt;asp:ComboBox ID="ComboBox1" runat="server" AppendDataBoundItems="True"
       AutoCompleteMode="SuggestAppend" AutoPostBack="True" MaxLength="10"&gt;
           &lt;/asp:ComboBox&gt;
       &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
</code></pre>

<p>This is my VB code in form load event</p>

<pre><code>ComboBox1.DataSource = ds.Tables(0)
ComboBox1.DataValueField = "PT_ID"
ComboBox1.DataTextField = "PT_PartName"
ComboBox1.DataBind()
</code></pre>

<p>In above code, dataset (defined as ds) has values. If i added Dropdownlist controller name instead of combobox1, data fill to the dropdownlist.</p>

<p>What's wrong with my code. no any errors are showing...</p>

<p><strong>Other details.</strong><br />
VS2008<br />
.NET frame work 3.5<br />
AjaxControlToolkit.Binary.NET35</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>weeraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458467/ajax-combo-box-data-fill-in-asp.net-application</guid>
		</item>
				<item>
			<title>Unexpected character &#039;−&#039;</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458451/unexpected-character-</link>
			<pubDate>Sat, 06 Jul 2013 17:56:55 +0000</pubDate>
			<description> using System; using System.Collections.Generic; using System.Linq; using System.Web; /// &lt;summary&gt; /// Summary description for Calculator /// &lt;/summary&gt; /// public class Calculator { public double Add(double a, double b) { return a + b; } public double Subtract(double a, double b) { return a - b; } public double Multiply(double a, ...</description>
			<content:encoded><![CDATA[ <pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// &lt;summary&gt;
/// Summary description for Calculator
/// &lt;/summary&gt;
/// 


public class Calculator
{

    public double Add(double a, double b)
{
       return a + b;
}
    public double Subtract(double a, double b)
    {
        return a - b;
    }
    public double Multiply(double a, double b)
    {
        return a * b;
    }
    public double Divide(double a, double b)
    {
        return a / b;
    }
}
</code></pre>

<p>getting error   'Type or namespace definition, or end-of-file expected'<br />
and<br />
Unexpected character '−'</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>muhammad.ibraheem_1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458451/unexpected-character-</guid>
		</item>
				<item>
			<title>Visual Basic Website Buttons Click</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458436/visual-basic-website-buttons-click</link>
			<pubDate>Sat, 06 Jul 2013 12:18:07 +0000</pubDate>
			<description>i need help about visual basic website click buttons without id. Html Code: &lt;div class=&quot;likeBox&quot;&gt; &lt;span class=&quot;like-active&quot; style=&quot;display:none;&quot;&gt;&lt;/span&gt; &lt;div class=&quot; ghostLink&quot;&gt; &lt;a class=&quot;like hintable&quot; hint=&quot;Like&quot; href=&quot;javascript:void(0)&quot; onclick=&quot;if (!Profile.likesBlocked()) { Profile.quickLike('#like_box_53117043234'); $.ajax({data:'authenticity_token=' + encodeURIComponent('6S2x01Deqy77H5OYvhxaDVyncWWcQavyOsTuw7J52/M='), dataType:'script', type:'post', url:'/likes/qwert1312/question/53117043234/add'}); }; return false;&quot;&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;likeList you-like-block&quot; style=&quot;display:none&quot;&gt;You like this&lt;/div&gt; &lt;div class=&quot;likeList people-like-block&quot;&gt;&lt;/div&gt; ...</description>
			<content:encoded><![CDATA[ <p>i need help about visual basic website click buttons without id.</p>

<p>Html Code:</p>

<pre><code class="language-vb">&lt;div class="likeBox"&gt;
    &lt;span class="like-active" style="display:none;"&gt;&lt;/span&gt;
    &lt;div class=" ghostLink"&gt;

        &lt;a class="like hintable" hint="Like" href="javascript:void(0)" onclick="if (!Profile.likesBlocked()) { Profile.quickLike('#like_box_53117043234'); $.ajax({data:'authenticity_token=' + encodeURIComponent('6S2x01Deqy77H5OYvhxaDVyncWWcQavyOsTuw7J52/M='), dataType:'script', type:'post', url:'/likes/qwert1312/question/53117043234/add'}); }; return false;"&gt;&lt;/a&gt;

    &lt;/div&gt;
  &lt;/div&gt;

    &lt;div class="likeList you-like-block" style="display:none"&gt;You like this&lt;/div&gt;


&lt;div class="likeList people-like-block"&gt;&lt;/div&gt;
</code></pre>

<p>VB Code:</p>

<pre><code class="language-vb">WebBrowser1.GetElementById("?").InvokeMember("click") 
</code></pre>

<p>==&gt; error. Please Help Me! :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>stefanm981</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458436/visual-basic-website-buttons-click</guid>
		</item>
				<item>
			<title>Maximum request length exceeded - no file upload</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458193/maximum-request-length-exceeded-no-file-upload</link>
			<pubDate>Thu, 04 Jul 2013 01:24:42 +0000</pubDate>
			<description>Hi All I have googled this exception extensively, and all the discussions I've found seem to be related to file uploading and exceeding the allowed file size limit. In my case however, I am not uploading anything, it is a simple postback. I have a gridview displaying the results of ...</description>
			<content:encoded><![CDATA[ <p>Hi All</p>

<p>I have googled this exception extensively, and all the discussions I've found seem to be related to file uploading and exceeding the allowed file size limit. In my case however, I am not uploading anything, it is a simple postback.</p>

<p>I have a gridview displaying the results of an SQL query. This works correctly and displays the data as expected. Also, on the page are a couple dropdowns used to filter the data via control parameters on the SQL data source. However, any postback created on the page cause the above exception.</p>

<p>I have tested the query and all the filter parameters work as expected. I have tested removing various controls and cannot determine a single cause or point of failure, as the error occurs regardless of how the postback is triggered.</p>

<p>Any suggestions appreciated.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Hearth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458193/maximum-request-length-exceeded-no-file-upload</guid>
		</item>
				<item>
			<title>Can&#039;t Localized aspx page</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458159/cant-localized-aspx-page</link>
			<pubDate>Wed, 03 Jul 2013 13:16:29 +0000</pubDate>
			<description>Hello Everyone, I am working on website development in asp.net. where i have used Master Page concept and content page. and by using dropdownlist I am changing its language. ![251bcfc8565d3b3a0be6872cadfe4a72](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy80LzI1MWJjZmM4NTY1ZDNiM2EwYmU2ODcyY2FkZmU0YTcyLnBuZw%3D%3D/500 &quot;251bcfc8565d3b3a0be6872cadfe4a72&quot;) As we see in fig no. 2, if I took this file hirarchy then application works perfect. but if ...</description>
			<content:encoded><![CDATA[ <p>Hello Everyone,<br />
I am working on website development in asp.net. where i have used Master Page concept and content page. and by using dropdownlist I am changing its language.<br /><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy80LzI1MWJjZmM4NTY1ZDNiM2EwYmU2ODcyY2FkZmU0YTcyLnBuZw%3D%3D/500" alt="251bcfc8565d3b3a0be6872cadfe4a72" title="251bcfc8565d3b3a0be6872cadfe4a72" /></p>

<p>As we see in fig no. 2, if I took this file hirarchy then application works perfect.<br />
but if I changed something like [refer fig. no. 1 ] added one folder and add actual content file inside it. then website stops localization process.<br />
how to call that App_LocalResource Files.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>rms095</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458159/cant-localized-aspx-page</guid>
		</item>
				<item>
			<title>how to get dynamic checkbox checked value in c#?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458146/how-to-get-dynamic-checkbox-checked-value-in-c</link>
			<pubDate>Wed, 03 Jul 2013 10:56:19 +0000</pubDate>
			<description> hi all, Im working with a asp.net c# application and using sql server, as my database and using stored procedures. And i've to generate dynamic check box and button's.which is users can click the checkbox and when user can submit at the time i have to get checked checkbox values ...</description>
			<content:encoded><![CDATA[ <pre><code>hi all,
     Im working with a asp.net c# application and using sql server, as my database and using stored procedures.
And i've to generate dynamic check box and button's.which is users can click the checkbox and when user can submit at the time i have to get checked checkbox values and store into DB.

My question is: How to get dynamic checkbox checked values? 

I have a code for creating dynamic checkbox and button

This is the code

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    using System.Text;
    using System.Data;
    using System.Data.SqlClient;
    using System.Web.UI.HtmlControls;

    public partial class Check_box_checkbox : System.Web.UI.Page
    {
        #region global var
        AddValuesClass objAddValuesClass;
        DataSet ds;
        DataTable dt;

        CheckBox cbid = new CheckBox();

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            generateckbox();
        }





        #region generate checkbox
        public void generateckbox()
        {
            try
            {
                //creating a table dynamically
                HtmlTable table = new HtmlTable();
                HtmlTableRow tr = null;
                HtmlTableCell tc = null;


                // creating classfile obj
                objAddValuesClass = new AddValuesClass();

                //dataset obj
                dt = new DataTable();

                ds = objAddValuesClass.getmenuvalues1();
                dt=ds.Tables[0];

                //displaying labels for displaying column names in the table
                if (dt.Columns.Count - 1 &gt; 0)
                {
                    tr = new HtmlTableRow();
                    for (int i = 0; i &lt; dt.Columns.Count; i++)
                    {


                        tc = new HtmlTableCell();
                        Label lbl = new Label();
                        lbl.Text = dt.Columns[i].ColumnName;
                        lbl.ID = "lbl" + dt.Columns[i].ColumnName;
                        tc.Height = "50px";
                        tc.Width = "150px";
                        tc.Controls.Add(lbl);
                        tr.Controls.Add(tc);
                        table.Controls.Add(tr);
                    }

                    //creating checkbox for displaying records information

                    for (int j = 0; j &lt; dt.Rows.Count; j++)
                    {
                        tr = new HtmlTableRow();
                        for (int k = 0; k &lt; dt.Columns.Count; k++)
                        {
                            tc = new HtmlTableCell();
                            if (dt.Columns[k].ColumnName == "Name")
                            {
                                Label lbl = new Label();
                                lbl.ID = "lbl" + j + k;
                                lbl.Text = dt.Rows[j][dt.Columns[k].ToString()].ToString();
                                tc.Controls.Add(lbl);
                                tr.Controls.Add(tc);
                            }
                            else
                            {
                                CheckBox cbid = new CheckBox();
                                cbid.ID = "cbid" + j + k;
                                //cb.Text = dt.Rows[j][dt.Columns[k].ToString()].ToString();
                                tc.Controls.Add(cbid);
                                tr.Controls.Add(tc);
                            }

                        }
                        table.Controls.Add(tr);                   
                    }


                    //Creating Button

                    for (int b = 1; b &lt;= 2; b++)
                    {
                        tc = new HtmlTableCell();
                        Button btn = new Button();
                        if (b == 1)
                        {
                            btn.ID = "btnadd" + b;

                            btn.Text = "Add";
                            btn.Click += new EventHandler(btn_Click);
                            tc.Controls.Add(btn);
                            tr.Controls.Add(tc);
                        }
                        else
                        {
                            btn.ID = "btnclear" + b;
                            btn.Text = "clear";
                            tc.Controls.Add(btn);
                            tr.Controls.Add(tc);
                        }
                    }

                    form1.Controls.Add(table);
                }


            }
            catch (Exception exp)
            {
                throw new Exception(exp.Message);
            }
        }
        #endregion


        #region button Event handler
        protected void btn_Click(object sender, EventArgs e)
        {

            try
            {
                // here i have to write that code
            }
            catch
            {
            }
        }

        #endregion
    }

Please anyone help me

Thank u
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>raajsj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458146/how-to-get-dynamic-checkbox-checked-value-in-c</guid>
		</item>
				<item>
			<title>asp.net grid Help  ASAP</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458120/asp.net-grid-help-asap</link>
			<pubDate>Wed, 03 Jul 2013 05:21:02 +0000</pubDate>
			<description>Please find attached File i want to Display data in grid in this format Please help asap its urgent Thanks in Advance Please help ASAp</description>
			<content:encoded><![CDATA[ <p>Please find attached File i want to Display data in grid in this format Please help asap its urgent</p>

<p>Thanks in Advance Please help ASAp</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>hirenpatel53</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458120/asp.net-grid-help-asap</guid>
		</item>
				<item>
			<title>Usefull parameters in session State Sql Server?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458086/usefull-parameters-in-session-state-sql-server</link>
			<pubDate>Tue, 02 Jul 2013 17:37:00 +0000</pubDate>
			<description>Hi, I want to use session state in mode SQL Server I googled some parameters to add in `&lt;sessionState mode=&quot;SQLServer&quot; /&gt;` in web.config file like: * Sql command time out. * State network time out. * Compression enabled. * Max pool size. * Min pool size. So I have some ...</description>
			<content:encoded><![CDATA[ <p>Hi, I want to use session state in mode SQL Server I googled some parameters to add in <code>&lt;sessionState mode="SQLServer" /&gt;</code>  in web.config file like:</p>

<ul><li>Sql command time out.</li>
<li>State network time out.</li>
<li>Compression enabled.</li>
<li>Max pool size.</li>
<li>Min pool size.</li>
</ul>

<p>So I have some questions about these parameters:</p>

<ul><li>These parameters are obligatory to use this session state?</li>
<li>Is usefull Compression enabled to increase web site performance?</li>
<li>Is usefull use Min and Max pool size?</li>
</ul>

<p>Thanks</p>

<p>I use Sql Server 2005 Estándar Ed, Asp.net 2.0 and Visual Basic dot Net.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Javier_3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458086/usefull-parameters-in-session-state-sql-server</guid>
		</item>
				<item>
			<title>Login First or Redirect</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458049/login-first-or-redirect</link>
			<pubDate>Tue, 02 Jul 2013 06:47:19 +0000</pubDate>
			<description>Good Day, I would like to ask regarding on Redirect or need to login first? I have a Link on Homepage that if the user click that it will check if the user is logon or not if not then it will redirect on Login page? Your Response is Highly ...</description>
			<content:encoded><![CDATA[ <p>Good Day,</p>

<pre><code>I would like to ask regarding on Redirect or need to login first?
</code></pre>

<p>I have a Link on Homepage that if the user click that it will check if the user is logon or not if not then it will redirect on Login page?</p>

<p>Your Response is Highly Appreciated.</p>

<p>EOS</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>eos.paks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458049/login-first-or-redirect</guid>
		</item>
				<item>
			<title>No data display other than 1st page</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458038/no-data-display-other-than-1st-page</link>
			<pubDate>Tue, 02 Jul 2013 03:05:04 +0000</pubDate>
			<description>how do i display the data for 1st page onwards? the allowpaging is set to true this is the pageindexchanging code Protected Sub solist_PageIndexChanging(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles solist.PageIndexChanging solist.PageIndex = e.NewPageIndex solist.DataBind() End Sub this is the data code Protected Sub solist_RowCommand(ByVal sender As ...</description>
			<content:encoded><![CDATA[ <p>how do i display the data for 1st page onwards? the allowpaging is set to true</p>

<p>this is the pageindexchanging code</p>

<pre><code>Protected Sub solist_PageIndexChanging(ByVal sender As Object, _
           ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles solist.PageIndexChanging
        solist.PageIndex = e.NewPageIndex
        solist.DataBind()

    End Sub
</code></pre>

<p>this is the data code</p>

<pre><code>Protected Sub solist_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles solist.RowCommand
        If e.CommandName = "SendEmail" Then
            Dim sendMail As New EmailModule
            Dim SO_No As String = e.CommandArgument.ToString()

            Dim dtTemp As New Data.DataTable
            Dim daTemp As New Data.SqlClient.SqlDataAdapter
            Dim cmd As New Data.SqlClient.SqlCommand
            cmd.Connection = New Data.SqlClient.SqlConnection(solist_SqlDataSource.ConnectionString)
            cmd.CommandText = "SELECT DISTINCT Master_Customer_PIC.CustPIC_Email FROM SO_Main, Master_Customer,Master_Customer_PIC WHERE SO_main.so_custid=master_customer.Cust_ID AND Master_Customer.Cust_ID=Master_Customer_Pic.CustPIC_CustID and SO_Main.SO_No=SO_No "
            Dim pic_email As String = ""
            cmd.Parameters.AddWithValue("CustPIC_Email", pic_email)
            daTemp.SelectCommand = cmd
            daTemp.Fill(dtTemp)

            Dim hfEmail As String = ""
            If dtTemp.Rows.Count = 1 Then
                hfEmail = dtTemp.Rows(0)("CustPIC_Email").ToString
            ElseIf dtTemp.Rows.Count &gt; 1 Then
                For i As Integer = 0 To dtTemp.Rows.Count - 2
                    If i = 0 Then
                        hfEmail = dtTemp.Rows(i)("CustPIC_Email").ToString
                    Else
                        hfEmail &amp;= "," &amp; dtTemp.Rows(i)("CustPIC_Email").ToString
                    End If
                Next
                Response.Write("&lt;script type='text/javascript'&gt;alert('Email sent!');location='Outstanding.aspx'&lt;/script&gt;")
            Else
                Response.Write("&lt;script type='text/javascript'&gt;alert('Invalid Request!');location='Outstanding.aspx'&lt;/script&gt;")
            End If

            sendMail.send_email(hfEmail, "Your credit limit has exceeded. Please increase the credit limit or the SO cannot be process." &amp; vbCrLf &amp; "SO No: " &amp; SO_No, "Infoline")


        ElseIf e.CommandName = "RejectSO" Then

            Dim SO_No As String = e.CommandArgument.ToString()

            Dim dtTemp As New Data.DataTable
            Dim daTemp As New Data.SqlClient.SqlDataAdapter
            Dim cmd As New Data.SqlClient.SqlCommand
            cmd.Connection = New Data.SqlClient.SqlConnection(solist_SqlDataSource.ConnectionString)



            cmd.CommandText = "UPDATE SO_Main SET SO_Status='REJECT' WHERE SO_No='" &amp; SO_No &amp; "' "

            If cmd.Connection.State = Data.ConnectionState.Closed Then
                cmd.Connection.Open()
            End If

            cmd.ExecuteNonQuery()

            If cmd.Connection.State = Data.ConnectionState.Open Then
                cmd.Connection.Close()
            End If

            Response.Write("&lt;script type='text/javascript'&gt;alert('SO has been rejected!');location='Outstanding.aspx'&lt;/script&gt;")

        ElseIf e.CommandName = "ApproveSO" Then
            Dim SO_No As String = e.CommandArgument.ToString()

            Dim dtTemp As New Data.DataTable
            Dim daTemp As New Data.SqlClient.SqlDataAdapter
            Dim cmd As New Data.SqlClient.SqlCommand
            cmd.Connection = New Data.SqlClient.SqlConnection(solist_SqlDataSource.ConnectionString)

            cmd.CommandText = "UPDATE SO_Main SET SO_Status='APPROVE' WHERE SO_No='" &amp; SO_No &amp; "'"

            If cmd.Connection.State = Data.ConnectionState.Closed Then
                cmd.Connection.Open()
            End If

            cmd.ExecuteNonQuery()

            If cmd.Connection.State = Data.ConnectionState.Open Then
                cmd.Connection.Close()
            End If
            Response.Write("&lt;script type='text/javascript'&gt;alert('SO has been approved!');location='Outstanding.aspx'&lt;/script&gt;")
        End If
    End Sub
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>joeyliew7</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458038/no-data-display-other-than-1st-page</guid>
		</item>
				<item>
			<title>refrish data in DropDownList  after press save button</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458016/refrish-data-in-dropdownlist-after-press-save-button</link>
			<pubDate>Mon, 01 Jul 2013 17:50:56 +0000</pubDate>
			<description>hi i have 4 DropDownList i made connction with database sql server 2008 and create 2 button NEW , SAVE button here funtion to DropDown Protected Sub DropDownList_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadComboBox6.Init If flagNEW &lt;&gt; &quot;NEW&quot; Then Dim adapter As New SqlDataAdapter(&quot;SELECT ID,DESCR , ACCT_NO,MAISTAKE_ID ...</description>
			<content:encoded><![CDATA[ <p>hi i have 4 DropDownList<br />
i made connction with database sql server 2008<br />
and create 2 button NEW , SAVE button</p>

<p>here funtion to DropDown<br />
   Protected Sub DropDownList_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadComboBox6.Init</p>

<pre><code>    If flagNEW &lt;&gt; "NEW" Then

        Dim adapter As New SqlDataAdapter("SELECT  ID,DESCR , ACCT_NO,MAISTAKE_ID  FROM  HAL_HR_PENALTY_TAP ", con)
        Dim links As New DataTable()

        adapter.Fill(links)

        RadComboBox6.DataTextField = "ID"
        RadComboBox6.DataValueField = "ID"

        'TextBox6.Text = flagNEW




        RadComboBox6.DataSource = links
        RadComboBox6.DataBind()
    End If

End Sub

when i click new i make empty DropDown i fill data DropDownList

and when i click save  

 con.Close()
            con.Open()
            Dim cmd As SqlCommand
            cmd = New SqlCommand("insert into HAL_HR_PENALTY_TAP (ID,DESCR,MAISTAKE_ID,ACCT_NO) VALUES (@ID,@DESCR,@MAISTAKE_ID,@ACCT_NO)", con)
            Dim pr1 As New SqlParameter
            pr1 = cmd.Parameters.Add("@ID", SqlDbType.VarChar)
            pr1.Value = RadComboBox6.Text
            pr1 = cmd.Parameters.Add("@DESCR", SqlDbType.VarChar)
            pr1.Value = RadComboBox7.Text
            pr1 = cmd.Parameters.Add("@MAISTAKE_ID", SqlDbType.VarChar)
            pr1.Value = Left(RadComboBox8.Text, 2)
            pr1 = cmd.Parameters.Add("@ACCT_NO", SqlDbType.VarChar)
            pr1.Value = RadComboBox9.Text
            'con.Open()


            cmd.ExecuteNonQuery()

            MsgBox("تم الحفظ")

it saved but the problem the data not back when i DropDownList

give me empty List how i refrish data in DropDownList after save
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>bassam572009</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458016/refrish-data-in-dropdownlist-after-press-save-button</guid>
		</item>
				<item>
			<title>Upload File Content into Database</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/458015/upload-file-content-into-database</link>
			<pubDate>Mon, 01 Jul 2013 17:50:50 +0000</pubDate>
			<description>Hello all, I have an issue, not that familiar with ASP but the environment I'm working on requires this to be designed here. I have a file with a string, integer, and another integer seperated by commas. I need the website to allow the user to upload a csv or ...</description>
			<content:encoded><![CDATA[ <p>Hello all,</p>

<p>I have an issue, not that familiar with ASP but the environment I'm working on requires this to be designed here. I have a file with a string, integer, and another integer seperated by commas. I need the website to allow the user to upload a csv or text file that can read the content of the file into the database.</p>

<p>I haven't found anything yet that is quite what I'm looking for. I'm hoping you guys are able to assist.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>DaniwebOS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/458015/upload-file-content-into-database</guid>
		</item>
				<item>
			<title>how to generate dynamic check box  in C#?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457984/how-to-generate-dynamic-check-box-in-c</link>
			<pubDate>Mon, 01 Jul 2013 08:05:49 +0000</pubDate>
			<description> Hi all, i am developing web application in asp.net backend MS-Sql.&lt;br/&gt; i have to retrieve a particular table values for example table name &quot;costomer&quot; and its fields are &quot;c_id,c_name,c_contactno&quot; like that and when i retrieve this values, it should be bind the checkbox for UI. now i've code for generate ...</description>
			<content:encoded><![CDATA[ <pre><code>Hi all,
     i am developing web application in asp.net backend MS-Sql.&lt;br/&gt; i have to retrieve a particular table values for example table name "costomer" and its fields are "c_id,c_name,c_contactno" like that and when i retrieve this values, it should be bind the checkbox for UI. now i've code for generate check box but it is not working well. only display single column c_id or C_name or C_contact number. but, i have to display all (c_id,c_name,c_contactno). i don't know how to do this, if anyone know please help me.
      #region generate checkbox
            public void generateckbox()
            {
                try
                {
                    objAddValuesClass = new AddValuesClass();
                    table = new DataTable();
                    ds = new DataSet();

                    ds = objAddValuesClass.getmenuvalues();
                    table = ds.Tables[0];
                    for (int intControlIndex = 0; intControlIndex &lt;=  table.Rows.Count - 1; intControlIndex++)
                    {
                            CheckBox chkList1;
                            chkList1 = new CheckBox();
                            chkList1.Text = table.Rows[intControlIndex][0].ToString();
                            //chkList1.ID = table.Rows[intControlIndex][1].ToString();
                            chkList1.Font.Name = "Verdana";
                            chkList1.Font.Size = 9;
                            PnlControl.Controls.Add(chkList1);
                            PnlControl.Controls.Add(new LiteralControl(""));
                    }
                }
                catch (Exception exp)
                {
                    throw new Exception(exp.Message);
                }    
            }
            #endregion
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>raajsj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457984/how-to-generate-dynamic-check-box-in-c</guid>
		</item>
				<item>
			<title>Update an UpdatePanel from dropdownlists</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457644/update-an-updatepanel-from-dropdownlists</link>
			<pubDate>Fri, 28 Jun 2013 15:09:17 +0000</pubDate>
			<description>Hi guys, I've been trying to update an updatepanel with the selected values of two dropdownlists. The updatepanel is supposed to be updated on selectedindex changed of the second dropdown. The update works on the first initial index changed, but does not work for any subsequent index change. The markup ...</description>
			<content:encoded><![CDATA[ <p>Hi guys,</p>

<p>I've been trying to update an updatepanel with the selected values of two dropdownlists. The updatepanel is supposed to be updated on selectedindex changed of the second dropdown. The update works on the first initial index changed, but does not work for any subsequent index change.</p>

<p>The markup is as such:</p>

<pre><code>&lt;asp:UpdatePanel runat="server" ID="pnl1" UpdateMode="Always"&gt;
    &lt;ContentTemplate&gt;
        &lt;div id="blah" runat="server" class="well well-large" style="height:100px;"&gt;
        &lt;asp:DropDownList ID="ddl1" runat="server" OnSelectedIndexChanged="func1_click" AutoPostBack="true" /&gt;&lt;br /&gt;
        &lt;asp:DropDownList ID="ddl2" runat="server" OnSelectedIndexChanged="func2_click" AutoPostBack="true"  /&gt;
        &lt;/div&gt;
    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;

&lt;asp:UpdatePanel runat="server" ID="pnl2" UpdateMode="Always"&gt;
        &lt;Triggers&gt;
            &lt;asp:AsyncPostBackTrigger ControlID="ddl2" EventName="SelectedIndexChanged" /&gt;
        &lt;/Triggers&gt;
        &lt;ContentTemplate&gt;
            &lt;asp:Label ID="lbl" runat="server" /&gt;
        &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>The Codebehind functions:</p>

<pre><code>protected void func1_click(object sender, EventArgs e)
{
    if (ddl1.SelectedValue == "")
        ddl2.Visible = false;
    else
    {
        SqlCommand cmd = new SqlCommand("SELECT blah blah...", con);
        con.Open();
        cmd.Parameters.AddWithValue("@id", ddl1.SelectedValue);

        ddl2.DataSource = cmd.ExecuteReader();
        ddl2.DataTextField = "text";
        ddl2.DataValueField = "value";
        ddl2.DataBind();
        ddl2.Items.Insert(0, new ListItem("--Select--", ""));
        ddl2.SelectedIndex = 0;
        ddl2.Visible = true;
    }
}

protected void func2_click(object sender, EventArgs e)
{
    lbl.Text = ddl1.SelectedItem + " &gt; " + ddl2.SelectedItem;
}
</code></pre>

<p>When I try to toggle the the second dropdownlist more than once, it does not update the update panel. I have to toggle the first dropdownlist and then the second dropdownlist to see results. If this is not clear, please let me know. Thanks for your help!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>while(!success)</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457644/update-an-updatepanel-from-dropdownlists</guid>
		</item>
				<item>
			<title>Looking For Skin File for asp.net</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457526/looking-for-skin-file-for-asp.net</link>
			<pubDate>Thu, 27 Jun 2013 03:44:39 +0000</pubDate>
			<description>Dear all i have allready Created web application and used skin file for that application now i am planing to change look of my application for that need to change skin file but problem is i am not a good imaginative so need some sides which provides attractive skin file ...</description>
			<content:encoded><![CDATA[ <p>Dear all i have allready Created web application and used skin file for that application now i am planing to change look of my application for that need to change skin file but problem is i am not a good imaginative so need some sides which provides attractive skin file for almost all controls of asp.net or any site which allows to create dynamically skinfile for controls so anybody has any idea Please Help me out</p>

<p>Thanks In advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>hirenpatel53</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457526/looking-for-skin-file-for-asp.net</guid>
		</item>
				<item>
			<title>VB.NET ERROR</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457506/vb.net-error</link>
			<pubDate>Wed, 26 Jun 2013 20:27:26 +0000</pubDate>
			<description> :Notes Repeater :Dim Notes RepeaterDataSource As sqlDataSource = e.Row.FindControl(&quot;DataSource1&quot;) :NotesRepeater DataSource.Select Command = &quot;SELECT *FROM [contact.Notes] WHERE Type = 'POC' AND ContactID = &quot; &amp; Me.ContactsGridview.Datakeys(e,row.RowIndex).value</description>
			<content:encoded><![CDATA[ <pre><code>:Notes Repeater
:Dim Notes RepeaterDataSource As sqlDataSource = e.Row.FindControl("DataSource1")
:NotesRepeater DataSource.Select Command = "SELECT *FROM [contact.Notes] WHERE Type = 'POC' AND ContactID = " &amp; Me.ContactsGridview.Datakeys(e,row.RowIndex).value
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>dev.mohitpatel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457506/vb.net-error</guid>
		</item>
				<item>
			<title>Controls next to each other</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457478/controls-next-to-each-other</link>
			<pubDate>Wed, 26 Jun 2013 12:06:38 +0000</pubDate>
			<description>Hi, im new to ASP.Net, just playing around with it... Got a simple question. I am trying to display my Textboxes next to my datagrid, but for some reason, it's always at the bottom of my datagrid. I playing around with this for an introduction to ASP.net. Anyway, i've tried ...</description>
			<content:encoded><![CDATA[ <p>Hi, im new to ASP.Net, just playing around with it...</p>

<p>Got a simple question. I am trying to display my Textboxes next to my datagrid, but for some reason, it's always at the bottom of my datagrid. I playing around with this for an introduction to ASP.net. Anyway, i've tried div and it does'nt work for me.</p>

<pre><code>&lt;script runat="server"&gt;
void CustomersGridView_SelectedIndexChanged(Object sender, EventArgs e)
{
    SqlConnection thisConnection = new SqlConnection(@"Data Source=prl-sql08-01;Initial Catalog=RemoteDownload;Integrated Security=True");
    using (SqlCommand thisCommand = new SqlCommand(ConfigurationManager.AppSettings["RemoteDownloadConnectionString"]))
    {
        SqlCommand command = new SqlCommand("select * FROM [RemoteDownload].[dbo].[CameronTest]", thisConnection);
        thisConnection.Open();
        SqlDataReader rdr = null;
        rdr = command.ExecuteReader();
        int i = 0;

        while (rdr.Read())
        {
            string a = (string)rdr["Terminal"];
            TextBox Step = new TextBox();
            Step.ID = "Step " + i.ToString();
            Step.TextMode = TextBoxMode.MultiLine;
            Step.Text = a;
            Panel1.Controls.Add(Step);
            i++;
        }
    }
}
&lt;/script&gt;


&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333"
        onselectedindexchanged="CustomersGridView_SelectedIndexChanged"
        GridLines="Vertical" AllowSorting="True"&gt;
        &lt;AlternatingRowStyle BackColor="White" /&gt;
        &lt;Columns&gt;
            &lt;asp:CommandField ShowSelectButton="True" /&gt;
            &lt;asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /&gt;
        &lt;/Columns&gt;
        &lt;EditRowStyle BackColor="#7C6F57" /&gt;
        &lt;FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /&gt;
        &lt;HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /&gt;
        &lt;PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /&gt;
        &lt;RowStyle BackColor="#E3EAEB" /&gt;
        &lt;SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /&gt;
        &lt;SortedAscendingCellStyle BackColor="#F8FAFA" /&gt;
        &lt;SortedAscendingHeaderStyle BackColor="#246B61" /&gt;
        &lt;SortedDescendingCellStyle BackColor="#D4DFE1" /&gt;
        &lt;SortedDescendingHeaderStyle BackColor="#15524A" /&gt;
    &lt;/asp:GridView&gt;

    &lt;asp:Panel ID="Panel1" runat="server"&gt;&lt;/asp:Panel&gt;

    &lt;br/&gt;

    &lt;asp:label id="MessageLabel"
        forecolor="Red"
        runat="server"/&gt;

    &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="&lt;%$ ConnectionStrings:RemoteDownloadConnectionString %&gt;" 
        SelectCommand="USE RemoteDownload SELECT Name FROM sys.Tables"&gt;
    &lt;/asp:SqlDataSource&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Cameronsmith63</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457478/controls-next-to-each-other</guid>
		</item>
				<item>
			<title>How to use  xml file to  generate excel report using asp.net</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457451/how-to-use-xml-file-to-generate-excel-report-using-asp.net</link>
			<pubDate>Wed, 26 Jun 2013 07:21:23 +0000</pubDate>
			<description>I have a task in which i have to take some raw data in form of xml and then put that data in data tables using data set and aftre that i have to generate a report from that.Any help would be appreciated.</description>
			<content:encoded><![CDATA[ <p>I have a task in which i have to take some raw data in form of xml and then put that data in data tables using data set and aftre that i have to generate a report from that.Any help would be appreciated.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>diana john</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457451/how-to-use-xml-file-to-generate-excel-report-using-asp.net</guid>
		</item>
				<item>
			<title>asp.net</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457444/asp.net</link>
			<pubDate>Wed, 26 Jun 2013 05:25:39 +0000</pubDate>
			<description>hi!!! guyz i want to know if asp.net is easy to use?because i want to make a web application, and i want o use asp.net and i want to learn the basic codes of asp.net thanks!!!..plz help^_^</description>
			<content:encoded><![CDATA[ <p>hi!!!</p>

<p>guyz i want to know if asp.net is easy to use?because  i want to make a web application, and i want o use asp.net and i want to learn the basic codes of asp.net</p>

<p>thanks!!!..plz help^_^</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>venus pacia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457444/asp.net</guid>
		</item>
				<item>
			<title>Application_Error in Global.asax not returning Error line numbers</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457415/application_error-in-global.asax-not-returning-error-line-numbers</link>
			<pubDate>Tue, 25 Jun 2013 17:13:31 +0000</pubDate>
			<description>I have a .Net web application where any uncaught exceptions get handled via the Application_Error event in Global.asax. Here, I email myself details of any uncaught exceptions that sneak through. My problem is that while I am getting the error messages just fine, I am not getting the line numbers ...</description>
			<content:encoded><![CDATA[ <p>I have a .Net web application where any uncaught exceptions get handled via the Application_Error event in Global.asax. Here, I email myself details of any uncaught exceptions that sneak through.</p>

<p>My problem is that while I am getting the error messages just fine, I am not getting the line numbers in the stack trace to denote where the error is happening.</p>

<p>The Application_Error code is as follows:</p>

<pre><code>    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Error
        ' Fires when an error occurs
        Dim Context As System.Web.HttpContext = HttpContext.Current
        Dim Ex As System.Exception = Context.Server.GetLastError.GetBaseException
        Dim Path As String = Context.Current.Request.Url.AbsolutePath

        Try
            objMailMessage.From = "..." : objMailMessage.To = "..."
            objMailMessage.Subject = "Global Error - " &amp; System.IO.Path.GetFileName(System.Web.HttpContext.Current.Request.Url.AbsolutePath)
            objMailMessage.Body = Ex.Message &amp; "&lt;BR&gt;" &amp; Ex.Source &amp; "&lt;BR&gt;" &amp; Ex.StackTrace &amp; "&lt;BR&gt;" &amp; Ex.TargetSite.Name
        Finally
            objSmtpMail.Send(objMailMessage)
            objSmtpMail = Nothing
        End Try

        Context.Server.ClearError()
    End Sub
</code></pre>

<p>The specific error email I'm getting is:</p>

<p>Input string was not in a correct format.<br />
mscorlib<br />
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br />
StringToNumber</p>

<p>Of note, I already have the PDB file in the bin folder, as well as have debug set to true in my web.config. Also, this web app was built in Visual Studio 2003, and is running in a .Net 4.0 app pool in IIS 7.5.</p>

<p>Am I doing something wrong in trying to obtain fully detailed error messages, with line numbers, etc? Thanks in advance for any insight you can provide.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>lysv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457415/application_error-in-global.asax-not-returning-error-line-numbers</guid>
		</item>
				<item>
			<title>diploma cse project topics</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457404/diploma-cse-project-topics</link>
			<pubDate>Tue, 25 Jun 2013 13:07:09 +0000</pubDate>
			<description>Hi I'm diploma cse final year student I want Topic for project plzz help me</description>
			<content:encoded><![CDATA[ <p>Hi I'm diploma cse final year student I want Topic for project plzz help me</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>jagan.rao</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457404/diploma-cse-project-topics</guid>
		</item>
				<item>
			<title>GridView not showing information</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457353/gridview-not-showing-information</link>
			<pubDate>Mon, 24 Jun 2013 20:13:25 +0000</pubDate>
			<description>So I have a Datatable that is supposed to show information. I have it working in Windows Forms but tranfering it over to asp.net so a little diffrent. I do not understand GridViews that much. So any help would be appreciative. I will not give everything away. I did a ...</description>
			<content:encoded><![CDATA[ <p>So I have a Datatable that is supposed to show information. I have it working in Windows Forms but tranfering it over to asp.net so a little diffrent. I do not understand GridViews that much. So any help would be appreciative.</p>

<p>I will not give everything away. I did a break and noticed that all the information was getting recieved but the gridview was not showing up. All of this is on page load.</p>

<pre><code>dr = dt.NewRow();
        try
        {
            dt.Rows.Clear();
            dt.Rows.Clear();
            dt.Rows.Clear();
            dt = new DataTable("MyTable");
            dt.Columns.Add("Scale");
            dt.Columns.Add("Cases");
            dt.Columns.Add("Cases2", Type.GetType("System.String"));
            dt.Columns.Add("Cases3", Type.GetType("System.String"));
            dt.Columns.Add("Cases4", Type.GetType("System.String"));
            dt.Columns.Add("Cases5", Type.GetType("System.String"));
            dt.Columns.Add("Cases6", Type.GetType("System.String"));
            dt.Columns.Add("Cases7", Type.GetType("System.String"));
            dt.Columns.Add("Cases8", Type.GetType("System.String"));
            dt.Columns.Add("Cases9", Type.GetType("System.String"));
            dt.Columns.Add("Cases10", Type.GetType("System.String"));



            List&lt;ManifestData&gt; Data = GetManifestData(Start);
            if (Data != null &amp;&amp; Data.Count &gt; 0)
            {
                List&lt;Standards&gt; Standards = GetStandards(Data);

                //get scale numbers
                var a = (from d in Data select d.Scale).Distinct();

                //sort by scale where it will be displayed in order
                a = a.OrderBy(z =&gt; z.Value);

                TimeSpan t1 = new TimeSpan(), t2 = new TimeSpan(), t3 = new TimeSpan(), t4 = new TimeSpan(),
                         t5 = new TimeSpan(), t6 = new TimeSpan();
                foreach (int i in a)
                {
                    //get percentages for each scale
                    ScaleData s = GetPercentages(Data, Standards, i);

                    if (s != null)
                    {
                        if (s.ActualTarget != 0 &amp;&amp; s.AdjustedTarget != 0)
                        {
                            //display percentages for scale
                            GridView1.Rows.Add = (new object[] { -info });

                        }

                       GridView2.Rows.Add(new object[] { -info }
                        t1 += s.ActualTime;
                        t2 += s.AdjustedTime;
                        t3 += s.ActualTimeWithChangeOvers;
                        t4 += s.AdjTimeWithChangeOvers;
                        t5 += (s.ActualTimeWithChangeOvers - s.ActualTime);
                        t6 += (s.ActualTimeWithChangeOvers - s.AdjTimeWithChangeOvers);

                    }
                }
                //add totals line
                if (GridView2.Rows.Count &gt; 0)
                {
                    double cases = 0, target = 0, target2 = 0;
                    foreach (GridViewRow r in GridView2.Rows)
                    {
                       -info
                    }

                    GridView2.Rows.Add(new object[] { -info });
                }

                if (GridView2.Rows.Count &gt; 0)
                {
                    int cases = 0, changeovers = 0;

                    foreach (GridViewRow r in GridView2.Rows)
                    {
                        -info
                    }

                    GridView2.Rows.Add(new object[] { -info});
                }

            }
            else
            {

            }
        }
        catch (Exception ex)
        {
            Label1.Text = "Error" + ex;   
        }
</code></pre>

<p>I deleted a lot of things and just put -info. You dont really need the code I believe. Just need help with things like Gridview.Rows.Add</p>

<pre><code> cases += Convert.ToInt32(r.Cells[1].Value.ToString());
                        changeovers += Convert.ToInt32(r.Cells[2].Value.ToString());
</code></pre>

<p>.Value does not work.</p>

<p>Any help would be awesome.</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Kratoswoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457353/gridview-not-showing-information</guid>
		</item>
				<item>
			<title>blog</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457336/blog</link>
			<pubDate>Mon, 24 Jun 2013 16:12:20 +0000</pubDate>
			<description>hi programers i need a sample of code for a simple blog(add/editing) by datalist</description>
			<content:encoded><![CDATA[ <p>hi programers</p>

<p>i need a sample of code for a simple blog(add/editing) by datalist</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>samoslook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457336/blog</guid>
		</item>
				<item>
			<title>blogs</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457260/blogs</link>
			<pubDate>Sun, 23 Jun 2013 12:48:45 +0000</pubDate>
			<description>GeekSpeak.Blog.InsertBlog(BlogTitleTextBox.Text, BlogMessageTextBox.Text) Response.Redirect(&quot;Default.aspx&quot;) hi hi i m a beginnger in asp.net i need explaination wut does this guy mean with this code in the begining &gt;&gt;&gt;&gt;&gt; i need explaination about wut is geekspeak=?? is it a web page called like this!! geekspeak.blog=??? also this wut means insertblog also this=???? and ...</description>
			<content:encoded><![CDATA[ <p>GeekSpeak.Blog.InsertBlog(BlogTitleTextBox.Text, BlogMessageTextBox.Text)<br />
Response.Redirect("Default.aspx")</p>

<p>hi hi<br />
 i m a beginnger in asp.net<br />
i need explaination wut does this guy mean with this code in the begining</p>

<blockquote>
  <blockquote>
    <blockquote>
      <blockquote>
        <p>&gt;<br />
        i need explaination about wut is geekspeak=??<br />
        is it a web page called like this!!</p>
      </blockquote>
    </blockquote>
  </blockquote>
</blockquote>

<p>geekspeak.blog=???<br />
also this wut means</p>

<p>insertblog also this=????</p>

<p>and the redirect page should be wut page<br />
?????<br />
thnax in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>samoslook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457260/blogs</guid>
		</item>
				<item>
			<title>display sql data in a from of binary tree for asp.net with C#</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457204/display-sql-data-in-a-from-of-binary-tree-for-asp.net-with-c</link>
			<pubDate>Sat, 22 Jun 2013 10:13:26 +0000</pubDate>
			<description>I an developing a Multilevel Marketting Website. I have enterd data in sql table (MemberDetail) columns(Member_Id, LeftChildMemberId, RightChildMemberId,TreePosition). Now in asp.net form I have to display Member_Id in form of Binary Tree. How can i do this?</description>
			<content:encoded><![CDATA[ <p>I an developing a Multilevel Marketting Website. I have enterd data in sql table (MemberDetail) columns(Member_Id, LeftChildMemberId, RightChildMemberId,TreePosition).                                            Now in asp.net form I have to display Member_Id in form of Binary Tree. How can i do this?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>abhinavashish</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457204/display-sql-data-in-a-from-of-binary-tree-for-asp.net-with-c</guid>
		</item>
				<item>
			<title>How to give accesskey to WebDataMenu controlof infragestics.</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457084/how-to-give-accesskey-to-webdatamenu-controlof-infragestics</link>
			<pubDate>Thu, 20 Jun 2013 11:38:11 +0000</pubDate>
			<description>Is there a way to setup Access Keys in the WebDataMenu like we could in the UltraWebMenu? Any help would be appreciated in advance.</description>
			<content:encoded><![CDATA[ <p>Is there a way to setup Access Keys in the WebDataMenu like we could in the UltraWebMenu?</p>

<p>Any help would be appreciated in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Ankur_tces</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457084/how-to-give-accesskey-to-webdatamenu-controlof-infragestics</guid>
		</item>
				<item>
			<title>DataGrid column width in runtime</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457063/datagrid-column-width-in-runtime</link>
			<pubDate>Thu, 20 Jun 2013 07:07:24 +0000</pubDate>
			<description>Im developing application using ASP.net + VB.net Now i want to change column width at run time. But in run time it doesn't work. This is what i did up to now. data bind in form load like this. myGrid.datasource = myDataSet.table(0) myGrid.databind() In here dataset come properly. in grid ...</description>
			<content:encoded><![CDATA[ <p>Im developing application using ASP.net + VB.net<br />
Now i want to change column width at run time. But in run time it doesn't work.</p>

<p>This is what i did up to now.<br />
data bind in form load like this.</p>

<pre><code>myGrid.datasource = myDataSet.table(0)
myGrid.databind()
</code></pre>

<p>In here dataset come properly.</p>

<p>in grid data bound event</p>

<pre><code> If e.Row.RowType = DataControlRowType.Header Then

Dim cell As TableCell = e.Row.Cells(1)
            cell.Width = New Unit(200) 'I added "200px" instead of 200. But it didn't work.
cell.text = "abc" 'This is working. It is show the header as abc

end if
</code></pre>

<p>in above code i added (as an experiment) cell.wrap = false and cell.wrap = true. that code also not effected.<br />
There is no any error. But width doesnt work.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>weeraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457063/datagrid-column-width-in-runtime</guid>
		</item>
				<item>
			<title>permission</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457031/permission</link>
			<pubDate>Wed, 19 Jun 2013 22:13:20 +0000</pubDate>
			<description>well how can i stop accessing a folder by using in vb in the page load(request.browser......etc) i used this before but i forgot how i m not talking about authentication but if u have other way or method to do that it would be better</description>
			<content:encoded><![CDATA[ <p>well<br />
how can i stop accessing a folder by using in vb in the page load(request.browser......etc)<br />
i used this before but i forgot how<br />
i m not talking about authentication<br />
but if u have other way or method to do that it would be better</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>samoslook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457031/permission</guid>
		</item>
				<item>
			<title>Populate Excel template with ASP.NET controls contents</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457012/populate-excel-template-with-asp.net-controls-contents</link>
			<pubDate>Wed, 19 Jun 2013 15:27:53 +0000</pubDate>
			<description>Hello, I am working on a web form project in Visual Studio 2012 and MS SQL Server 2008 R2 using Visual Basic. I would like to place an Excel file template in my project folder which would then be modified using the ASP.NET controls on the page and prompt the ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I am working on a web form project in Visual Studio 2012 and MS SQL Server 2008 R2 using Visual Basic.</p>

<p>I would like to place an Excel file template in my project folder which would then be modified using the ASP.NET controls on the page and prompt the user to SaveAs wherever they like on BUTTON click.</p>

<p>Bear in mind the values form the server controls will go into specific cells (e.g Name.Text = "A5").</p>

<p>Can somebody please provide a basic example of how to do this? I can then build a complete one for my application.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>jagtar8642</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457012/populate-excel-template-with-asp.net-controls-contents</guid>
		</item>
				<item>
			<title>logging out</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456991/logging-out</link>
			<pubDate>Wed, 19 Jun 2013 11:46:34 +0000</pubDate>
			<description>hello i m building a website with asp.net language and i have made the session and the login and log out but i have trouble that when i click back in the browser and return the session remain so my question how to end the session and return to the ...</description>
			<content:encoded><![CDATA[ <p>hello</p>

<p>i m building a website with asp.net language  and i have made the session and the login and log out<br />
but i have trouble that when i click back in the browser  and return the session remain<br />
so my question how to end the session and return to the main page (logon page) and  (my information about java is like a beginnner ) and i have read that i can make this by java to end the session<br />
hope i will have an answer :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>samoslook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456991/logging-out</guid>
		</item>
				<item>
			<title>Appending an attribute to URL</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456986/appending-an-attribute-to-url</link>
			<pubDate>Wed, 19 Jun 2013 08:59:58 +0000</pubDate>
			<description>i'm trying to append a bool variable zoom. zoom is set to true once the btnview is clicked. i did something but it's not working. can someone put me on the right path here. &lt;a id=&quot;btnview&quot; class=&quot;btnview&quot; data-href=&quot;&lt;%=HttpContext.Current.Request.QueryString.Add(&quot;zoom&quot;,true) %&gt;&quot; style=&quot;margin:60px 0 0 0;&quot;&gt;zoom&lt;/a&gt; some how it is not setting the ...</description>
			<content:encoded><![CDATA[ <p>i'm trying to append a bool variable zoom. zoom is set to true once the btnview is clicked. i did something but it's not working. can someone put me on the right path here.</p>

<pre><code>&lt;a id="btnview" class="btnview" data-href="&lt;%=HttpContext.Current.Request.QueryString.Add("zoom",true) %&gt;" style="margin:60px 0 0 0;"&gt;zoom&lt;/a&gt;
</code></pre>

<p>some how it is not setting the zoom value to true.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>goco17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456986/appending-an-attribute-to-url</guid>
		</item>
				<item>
			<title>View Excel spreadsheet in ASP.net with dynamic labels</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456930/view-excel-spreadsheet-in-asp.net-with-dynamic-labels</link>
			<pubDate>Tue, 18 Jun 2013 11:51:08 +0000</pubDate>
			<description>My company is using a simple spreadsheet to write down things from control surveys. Then the data is beeing saved in a big and useless program. Since the data is beeing saved to a database, I want to view this same spreadsheet in a ASP.NET page, with the textboxes filled ...</description>
			<content:encoded><![CDATA[ <p>My company is using a simple spreadsheet to write down things from control surveys. Then the data is beeing saved in a big and useless program. Since the data is beeing saved to a database, I want to view this same spreadsheet in a ASP.NET page, with the textboxes filled in. The spreadsheet is so complex graphicly, so i don't think gridview would be the way to go.</p>

<p>Is there anybody that have done something similar. I've been thinking about make a picturebox of the spreadsheet and then have dynamic labels upon it, but I think there should be smarter ways.</p>

<p>I have atatched the file. The survey is beeing done multiple times on the same area, so i wan't the user to be able to choose which date he want to view. But of course this is done simple in SQL.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>rubenrav</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456930/view-excel-spreadsheet-in-asp.net-with-dynamic-labels</guid>
		</item>
				<item>
			<title>auto update Gridview </title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456920/auto-update-gridview-</link>
			<pubDate>Tue, 18 Jun 2013 10:51:37 +0000</pubDate>
			<description>Hi all i stuck with one problem i have gridview and values continuesly changing in database so i wanto to that it should automaticaly update that value in grid without making screen flik or postback to server scenario like stock market even if any value exeed then its max value ...</description>
			<content:encoded><![CDATA[ <p>Hi all</p>

<p>i stuck with one problem i have gridview and values continuesly changing in database so i wanto to that it should automaticaly update that  value in grid without making screen flik or postback to server scenario like stock market even if any value exeed then its max value it should be change cell colour to red i know use of timmer but it makes screen flik i want smooth flow so any body has any idea Please help me out</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>hirenpatel53</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456920/auto-update-gridview-</guid>
		</item>
				<item>
			<title>Comparing element</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456876/comparing-element</link>
			<pubDate>Tue, 18 Jun 2013 01:26:02 +0000</pubDate>
			<description>good morning guys, i'm developing a website. whereby have to move through records..next and previous...i did something like this public Product NextProduct(List&lt;Product&gt; products, Product product) { Product nextproduct = (Product)product; for (int i = 0; i &lt; products.Count; i++) { if (Equals(products[i].ProductId, product.ProductId)) { if (products[i + 1].ProductId == null) ...</description>
			<content:encoded><![CDATA[ <p>good morning guys, i'm developing a website. whereby have to move through records..next and previous...i did something like this</p>

<pre><code>public Product NextProduct(List&lt;Product&gt; products, Product product)
    {
        Product nextproduct = (Product)product;

        for (int i = 0; i &lt; products.Count; i++)
        {
            if (Equals(products[i].ProductId, product.ProductId))
            {
                if (products[i + 1].ProductId == null)
                {
                    return null;
                }
                else
                {
                    nextproduct = products[i + 1];
                }
            }
        }
        return nextproduct;
    }

    public Product PrevProduct(List&lt;Product&gt; products, Product product)
    {
        Product prevproduct = (Product)product;

        for (int i = 0; i &lt; products.Count; i++)
        {
            if (Equals(products[i].ProductId, product.ProductId))
            {
                if (products[i - 1].ProductId == null)
                {
                    return null;
                }
                else
                {
                    prevproduct = products[i - 1];
                }
            }
        }
        return prevproduct;
    }
</code></pre>

<p>this method is not working. giving error<br />
i just wanna return the new product. how do i accomplish this...thank u in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>goco17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456876/comparing-element</guid>
		</item>
				<item>
			<title>Call script or css style in the update panel</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456776/call-script-or-css-style-in-the-update-panel</link>
			<pubDate>Sun, 16 Jun 2013 15:47:05 +0000</pubDate>
			<description>I am using a script on a page due to which the style of dropdown , checkbox and textbox is applied on them, but if i put dropdown or any other tool inside the updatepanel than only when the page gets load script is shown to that tool but whenever ...</description>
			<content:encoded><![CDATA[ <p>I am using a script on a page due to which the style of dropdown , checkbox and textbox is applied on them, but if i put dropdown or any other tool inside the updatepanel than only when the page gets load script is shown to that tool but whenever one of the tool gets refresh with the other selectchange of tool which is also inside the updatepanel than both of the script gets removed.</p>

<p><strong>For example:</strong></p>

<pre><code>       &lt;head runat="server"&gt;
        &lt;title&gt;script not working&lt;/title&gt;      
        &lt;script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
        &lt;link rel="stylesheet" href="jqtransformplugin/jqtransform.css" type="text/css" media="all" /&gt;
        &lt;script type="text/javascript" src="jqtransformplugin/jquery.jqtransform.js"&gt;&lt;/script&gt;

        &lt;script language="javascript"&gt;
            $(function() {
                $('form').jqTransform({ imgPath: 'jqtransformplugin/img/' });
            });
        &lt;/script&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;form id="form1" runat="server"&gt;    
            &lt;table cellpadding="0" cellspacing="0"&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
                        &lt;/asp:ScriptManager&gt;                 
                    &lt;/td&gt;               
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                            &lt;ContentTemplate&gt;
                                &lt;asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="DropDownList1_SelectedIndexChanged"&gt;
                                    &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;4&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;5&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;&lt;/asp:ListItem&gt;
                                &lt;/asp:DropDownList&gt;
                            &lt;/ContentTemplate&gt;
                        &lt;/asp:UpdatePanel&gt;
                    &lt;/td&gt;               
                &lt;/tr&gt;            
                &lt;tr&gt;               
                    &lt;td&gt;
                        &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
                            &lt;ContentTemplate&gt;
                                &lt;asp:DropDownList ID="ddtrial" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="ddtrial_SelectedIndexChanged"&gt;
                                    &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;4&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;5&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;&lt;/asp:ListItem&gt;
                                &lt;/asp:DropDownList&gt;
                            &lt;/ContentTemplate&gt;
                        &lt;/asp:UpdatePanel&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;           
            &lt;/table&gt;   
        &lt;/form&gt;
        &lt;/body&gt;
</code></pre>

<p>I am facing 1 problems:</p>

<p>1--When the page gets load script is applied to the dropdown is shown but whenever one of the dropdown selectchanges both of the dropdown script gets removed.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>mitesh.24jain</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456776/call-script-or-css-style-in-the-update-panel</guid>
		</item>
				<item>
			<title> create online examination in .net</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456613/-create-online-examination-in-.net</link>
			<pubDate>Fri, 14 Jun 2013 08:40:36 +0000</pubDate>
			<description>how to create online examination in .net</description>
			<content:encoded><![CDATA[ <p>how to create online examination in .net</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>mohanasamala</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456613/-create-online-examination-in-.net</guid>
		</item>
				<item>
			<title>Text value in dropdown list</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456605/text-value-in-dropdown-list</link>
			<pubDate>Fri, 14 Jun 2013 05:37:47 +0000</pubDate>
			<description>Hi, I have a dropdownlist named MyDropDown. I have declared an arraylist and I collect required names of collection in the list. In parallel, I would like to keep appending the names obtained in dropdownlist. I have an If condition, checking for proper valid names. Those names I wish to ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have a dropdownlist named MyDropDown. I have declared an arraylist and I collect required names of collection in the list. In parallel, I would like to keep appending the names obtained in dropdownlist.</p>

<p>I have an If condition, checking for proper valid names. Those names I wish to display in dropdownlist.</p>

<p>I tried all the properties/events/methods and combinations of the dropdownlist, but could not obtain desired result.</p>

<p>The value of valid name is stored in a string variable ie</p>

<pre><code>string name = MyString.title;
</code></pre>

<p>and immediately after this, I need to insert this value in MyDropDown so that it goes into for each for new value again. and new value will be inserted in MyDropDown below the previous one.</p>

<p>Please help !! M stuck on it since 3 days.. Did a lot of trial and error.. Your help would be highyl appreciated.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>RT00220489</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456605/text-value-in-dropdown-list</guid>
		</item>
				<item>
			<title>Create A unique search engine for my website</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456566/create-a-unique-search-engine-for-my-website</link>
			<pubDate>Thu, 13 Jun 2013 12:52:02 +0000</pubDate>
			<description>GoodDay all. I have been asked to create a search box which will search all the html pages on my clients website for particular text / words. Nothing fancyjust TEXT. there is no DB to search. The problem they have is that they have over a hundred html pages already ...</description>
			<content:encoded><![CDATA[ <p>GoodDay all.<br />
I have been asked to create a search box which will search all the html pages on my clients website for particular text / words. Nothing fancyjust TEXT. there is no DB to search. The problem they have is that they have over a hundred html pages already and now want search functionality which will list the pages that fit the search criteria.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>craigallansmith</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456566/create-a-unique-search-engine-for-my-website</guid>
		</item>
				<item>
			<title>Displaying sum total from an SQL database on PDF</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456545/displaying-sum-total-from-an-sql-database-on-pdf</link>
			<pubDate>Thu, 13 Jun 2013 08:35:43 +0000</pubDate>
			<description>I am creating PDF's using ITextSharp and Stored procs. I have a stored proc in place that calulates the totals of two columns SELECT SUM (Time) AS TotalTime, SUM (Cost) AS TotalCost From dbo.Records WHERE CustNum = @p_CustNum When i run the stored proc it returns the two answers. However ...</description>
			<content:encoded><![CDATA[ <p>I am creating PDF's using ITextSharp and Stored procs. I have a stored proc in place that calulates the totals of two columns</p>

<pre><code>SELECT SUM (Time) AS TotalTime, SUM (Cost) AS TotalCost
    From dbo.Records
    WHERE CustNum = @p_CustNum
</code></pre>

<p>When i run the stored proc it returns the two answers.</p>

<p>However I need to print the two results on a PDF report and I am not sure how to do this in C#.  Any help would be great.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>coder91</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456545/displaying-sum-total-from-an-sql-database-on-pdf</guid>
		</item>
				<item>
			<title>ASP.NET MVC 4 and Twitter Bootstrap</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456526/asp.net-mvc-4-and-twitter-bootstrap</link>
			<pubDate>Thu, 13 Jun 2013 04:29:07 +0000</pubDate>
			<description>How to use twitter bootstrap in an asp.net mvc4 application. please provide proper guideline step by step.</description>
			<content:encoded><![CDATA[ <p>How to use twitter bootstrap in an asp.net mvc4 application. please provide proper guideline step by step.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>anupamduttabd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456526/asp.net-mvc-4-and-twitter-bootstrap</guid>
		</item>
				<item>
			<title>can apache web server can be used for asp.net site?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456321/can-apache-web-server-can-be-used-for-asp.net-site</link>
			<pubDate>Mon, 10 Jun 2013 11:22:15 +0000</pubDate>
			<description>i want to know whether can i configure visual studio web developer 2010 express edition to work with apache web server instead of ISS?</description>
			<content:encoded><![CDATA[ <p>i want to know whether can i configure visual studio web developer 2010 express edition to work with apache web server instead of ISS?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>ravinder yadav</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456321/can-apache-web-server-can-be-used-for-asp.net-site</guid>
		</item>
				<item>
			<title>sync scrolling between radGrid and radScheduler</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456316/sync-scrolling-between-radgrid-and-radscheduler</link>
			<pubDate>Mon, 10 Jun 2013 10:34:48 +0000</pubDate>
			<description>Hi, I have a radSplitter with two radPanes. In first pane I have a radGrid and in second I have a radScheduler with scroll bars and both are of same height. Now i want to synchronize the scrolling between radGrid and radScheduler.(i.e if i move the scroll bar in radGrid ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have a radSplitter with two radPanes. In first pane I have a radGrid and in second I have a radScheduler with scroll bars and both are of same height. Now i want to synchronize the scrolling between radGrid and radScheduler.(i.e if i move the scroll bar in radGrid then radScheduler should also move and vice versa). I want it to be done in the client side javascript.I tried it but couldn't find what is the event that is getting fired when i scroll the radscheduler...Can anybody tell me how to achieve this?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Fara_DaniWeb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456316/sync-scrolling-between-radgrid-and-radscheduler</guid>
		</item>
				<item>
			<title>How to use picture magnify tool without increasing web page loading time?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456305/how-to-use-picture-magnify-tool-without-increasing-web-page-loading-time</link>
			<pubDate>Mon, 10 Jun 2013 07:56:20 +0000</pubDate>
			<description>i have seen some e commerce site which display picture of there products using magnify tool.*[Click Here](http://www.crateandbarrel.com/border-queen-headboard/s235515)* At first picture size is small and as we press magnify tool image size and resolution goes on increasing. i want to know how it is done,what libraries are used?</description>
			<content:encoded><![CDATA[ <p>i have seen some e commerce site which display picture of there products using magnify tool.<em><a href="http://www.crateandbarrel.com/border-queen-headboard/s235515" rel="nofollow">Click Here</a></em> At first picture size is small and as we press magnify tool image size and resolution goes on increasing. i want to know how it is done,what  libraries are used?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>ravinder yadav</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456305/how-to-use-picture-magnify-tool-without-increasing-web-page-loading-time</guid>
		</item>
				<item>
			<title>How to populate dropdown list box in Asp.net(c#) programatically</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456296/how-to-populate-dropdown-list-box-in-asp.netc-programatically</link>
			<pubDate>Mon, 10 Jun 2013 05:43:22 +0000</pubDate>
			<description>I had created a dropdownlist box as follows. The contents of default.aspx is listed below &lt;asp:DropDownList runat=&quot;server&quot; ID=&quot;day&quot; CssClass=&quot;dobselect&quot;&gt; &lt;asp:ListItem Value=&quot;0&quot; Text=&quot;DAY&quot;&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; &lt;asp:DropDownList runat=&quot;server&quot; ID=&quot;month&quot; CssClass=&quot;dobselect&quot;&gt; &lt;asp:ListItem Value=&quot;0&quot; Text=&quot;MONTH&quot;&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; &lt;asp:DropDownList ID=&quot;year&quot; CssClass=&quot;dobselect&quot; runat=&quot;server&quot;&gt; &lt;asp:ListItem Value=&quot;0&quot; Text=&quot;YEAR&quot;&gt;&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; Then in the default.cs.aspx I had added the following code to ...</description>
			<content:encoded><![CDATA[ <p>I had created a dropdownlist box as follows. The contents of default.aspx is listed below</p>

<pre><code>&lt;asp:DropDownList runat="server" ID="day" CssClass="dobselect"&gt;
   &lt;asp:ListItem Value="0" Text="DAY"&gt;&lt;/asp:ListItem&gt;
 &lt;/asp:DropDownList&gt;
 &lt;asp:DropDownList runat="server" ID="month" CssClass="dobselect"&gt;
     &lt;asp:ListItem Value="0" Text="MONTH"&gt;&lt;/asp:ListItem&gt;
 &lt;/asp:DropDownList&gt;
 &lt;asp:DropDownList ID="year" CssClass="dobselect" runat="server"&gt;
     &lt;asp:ListItem Value="0" Text="YEAR"&gt;&lt;/asp:ListItem&gt;
 &lt;/asp:DropDownList&gt;
</code></pre>

<p>Then in the default.cs.aspx I had added the following code to display the dropdownlist boxe's values</p>

<pre><code> private void autofilldate(int incrementBy, int max, int itemcount)//to automatically generate days in a dropdownlist
 {
   int incr = incrementBy;
   for (int i = 0; i &lt;itemcount; i++)
   {
     if (incrementBy &lt;= max)
      {
        day.Items.Add(new ListItem(incrementBy.ToString(), incrementBy.ToString()));

      }
    }
}//end of autofilldl
// ....more code for displaying month and year 

private void autofillyr(int incrementBy, int maxyr, int no_year)
    {
       int yr = incrementBy;
       for (int i =0; i &lt; no_year; i++)
       {
           if (incrementBy &lt;= maxyr)
           {
               year.Items.Add(new ListItem(incrementBy.ToString(), incrementBy.ToString()));
               incrementBy =incrementBy + yr;
           }

protected void Page_Load(object sender, EventArgs e)
    {
        autofilldate(1, 31, 31);
        autofillmonth(1, 12, 12);
        autofillyr(1, 2050, 2076);
    }
</code></pre>

<p>when it is executed both the day and month is working fine, but for the year it is displaying as 1 2 3..... 2050 and so on. what I need is it must start from the year"1900" it should not get displayed from the value 1 to 2050. How can I do this? anyone please help me.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>Varunkrishna</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456296/how-to-populate-dropdown-list-box-in-asp.netc-programatically</guid>
		</item>
			</channel>
</rss>