<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for MCSDeveloper</title>
	<atom:link href="http://mcsdeveloper.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mcsdeveloper.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 21 Dec 2008 11:34:21 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Ajax Progress Indicators by bugzlife</title>
		<link>http://mcsdeveloper.wordpress.com/2006/10/20/ajax-progress-indicators/#comment-75</link>
		<dc:creator>bugzlife</dc:creator>
		<pubDate>Sun, 21 Dec 2008 11:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/10/20/ajax-progress-indicators/#comment-75</guid>
		<description>dead, just like ajaxload.info</description>
		<content:encoded><![CDATA[<p>dead, just like ajaxload.info</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Loan Payment / Overpayment Calculator by haven putnam</title>
		<link>http://mcsdeveloper.wordpress.com/2007/09/15/loan-payment-overpayment-calculator/#comment-61</link>
		<dc:creator>haven putnam</dc:creator>
		<pubDate>Tue, 22 Apr 2008 05:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2007/09/15/loan-payment-overpayment-calculator/#comment-61</guid>
		<description>Hi Ben
Thank you for providing the on line mortgage calculator .
Warmest Regards
Haven</description>
		<content:encoded><![CDATA[<p>Hi Ben<br />
Thank you for providing the on line mortgage calculator .<br />
Warmest Regards<br />
Haven</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Framework for Application Level Impersonation Using the ASP.NET Membership Provider by Seb</title>
		<link>http://mcsdeveloper.wordpress.com/2006/11/13/a-framework-for-application-level-impersonation-using-the-aspnet-membership-provider/#comment-56</link>
		<dc:creator>Seb</dc:creator>
		<pubDate>Thu, 20 Dec 2007 20:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/11/13/a-framework-for-application-level-impersonation-using-the-aspnet-membership-provider/#comment-56</guid>
		<description>Hi Ben,

Great article. It has definately given me some light to move forward.

I am sorry to bother you, but I am having a hard time understanding how to implement this feature in my application. 

On the user site for example, when setting the folder permissions in web.config, would the classes above still allow the admin to browse the site as another user?

Do you have a a sample of an application that uses this great feature that I may be able to go through as a guide?

I understand you might be busy at the moment, but If you are available for consultation, I would appreciate it if I could take a moment of your professional time to discuss this at yor hourly rate. Please let me know asap.

I am in Toronto, Canada so I believe we are in the same Time zone.

Thank you very much in advance.</description>
		<content:encoded><![CDATA[<p>Hi Ben,</p>
<p>Great article. It has definately given me some light to move forward.</p>
<p>I am sorry to bother you, but I am having a hard time understanding how to implement this feature in my application. </p>
<p>On the user site for example, when setting the folder permissions in web.config, would the classes above still allow the admin to browse the site as another user?</p>
<p>Do you have a a sample of an application that uses this great feature that I may be able to go through as a guide?</p>
<p>I understand you might be busy at the moment, but If you are available for consultation, I would appreciate it if I could take a moment of your professional time to discuss this at yor hourly rate. Please let me know asap.</p>
<p>I am in Toronto, Canada so I believe we are in the same Time zone.</p>
<p>Thank you very much in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FormView control, SqlDataSource, and &#8216;Procedure or function has too many arguments specified&#8217; error by Madani</title>
		<link>http://mcsdeveloper.wordpress.com/2006/11/01/formview-control-sqldatasource-and-procedure-or-function-has-too-many-arguments-specified-error/#comment-55</link>
		<dc:creator>Madani</dc:creator>
		<pubDate>Thu, 25 Oct 2007 12:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/11/01/formview-control-sqldatasource-and-procedure-or-function-has-too-many-arguments-specified-error/#comment-55</guid>
		<description>This generates exception if more than 1 param needs to removed since the collection is being modified:

Exception:
Collection was modified; enumeration operation may not execute.

Solution:
Use for loop starting from collection end to 0 index, so you do not miss any param when it moves:

for (int i = e.Command.Parameters.Count - 1; i &gt;= 0; i--)
                if(MySqlDataSource.UpdateParameters[e.Command.Parameters[i].ParameterName] == null)
                    e.Command.Parameters.RemoveAt(e.Command.Parameters[i].ParameterName);</description>
		<content:encoded><![CDATA[<p>This generates exception if more than 1 param needs to removed since the collection is being modified:</p>
<p>Exception:<br />
Collection was modified; enumeration operation may not execute.</p>
<p>Solution:<br />
Use for loop starting from collection end to 0 index, so you do not miss any param when it moves:</p>
<p>for (int i = e.Command.Parameters.Count &#8211; 1; i &gt;= 0; i&#8211;)<br />
                if(MySqlDataSource.UpdateParameters[e.Command.Parameters[i].ParameterName] == null)<br />
                    e.Command.Parameters.RemoveAt(e.Command.Parameters[i].ParameterName);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Software Estimation by Decomposition by Love the estimating spreadsheet!</title>
		<link>http://mcsdeveloper.wordpress.com/2006/09/28/software-estimation-by-decomposition/#comment-52</link>
		<dc:creator>Love the estimating spreadsheet!</dc:creator>
		<pubDate>Fri, 06 Jul 2007 12:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/09/28/software-estimation-by-decomposition/#comment-52</guid>
		<description>Love the spreadsheet!  I&#039;ve been looking for ways to make estimating easier and this sure helps take some of the magic out of it.  Thanks again!!!!</description>
		<content:encoded><![CDATA[<p>Love the spreadsheet!  I&#8217;ve been looking for ways to make estimating easier and this sure helps take some of the magic out of it.  Thanks again!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FormView control, SqlDataSource, and &#8216;Procedure or function has too many arguments specified&#8217; error by Ali</title>
		<link>http://mcsdeveloper.wordpress.com/2006/11/01/formview-control-sqldatasource-and-procedure-or-function-has-too-many-arguments-specified-error/#comment-51</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Fri, 25 May 2007 23:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/11/01/formview-control-sqldatasource-and-procedure-or-function-has-too-many-arguments-specified-error/#comment-51</guid>
		<description>This passage is regarding to &#039;Procedure or function has too many arguments specified&#039; Error

I have read many belogs, though many were usefule but what I found is:

I have used Stored Procedures to select, insert, update, and delete. 
 
1- Visual Studio based on the parameters declared in the stored procedure creates the parameter list for any of the actions like insert 
2- Based on the fields on the form VS creates the values as the parameters.

If your stored procedure has a variable as inClientID and your table field is ClientID, VS creates insertparametes as 

                        


And Binding the field on the form is 


                        ClientID:
                        &#039;&gt;


When iserting VS takes to parametert to pass to stored procedure 

@inClientID 
@Client ID

so the stored prcedure expects one parameter but receives two parameters and generates error.

The solution is :
Declare the parameter in the stored procedure as the name of the field 

Like 
Create Procedure insert
@client ID int
As
insert into clienttable ([clientID]) values (@clientID)
Go

In this way VS creates the insert parameter and value with the same name as clientID

To find how many parameters the page passes to a command use this code that I found in one of the belogs:


 Protected Sub YourSqlDataSource_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles HousinClientList.Inserting
        For x As Integer = 0 To e.Command.Parameters.Count - 1
            Trace.Write(e.Command.Parameters(x).ParameterName)
            Trace.Write(e.Command.Parameters(x).Value)
        Next

    End Sub


Enable  trace = true on your page. You will see what I am saying.</description>
		<content:encoded><![CDATA[<p>This passage is regarding to &#8216;Procedure or function has too many arguments specified&#8217; Error</p>
<p>I have read many belogs, though many were usefule but what I found is:</p>
<p>I have used Stored Procedures to select, insert, update, and delete. </p>
<p>1- Visual Studio based on the parameters declared in the stored procedure creates the parameter list for any of the actions like insert<br />
2- Based on the fields on the form VS creates the values as the parameters.</p>
<p>If your stored procedure has a variable as inClientID and your table field is ClientID, VS creates insertparametes as </p>
<p>And Binding the field on the form is </p>
<p>                        ClientID:<br />
                        &#8216;&gt;</p>
<p>When iserting VS takes to parametert to pass to stored procedure </p>
<p>@inClientID<br />
@Client ID</p>
<p>so the stored prcedure expects one parameter but receives two parameters and generates error.</p>
<p>The solution is :<br />
Declare the parameter in the stored procedure as the name of the field </p>
<p>Like<br />
Create Procedure insert<br />
@client ID int<br />
As<br />
insert into clienttable ([clientID]) values (@clientID)<br />
Go</p>
<p>In this way VS creates the insert parameter and value with the same name as clientID</p>
<p>To find how many parameters the page passes to a command use this code that I found in one of the belogs:</p>
<p> Protected Sub YourSqlDataSource_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles HousinClientList.Inserting<br />
        For x As Integer = 0 To e.Command.Parameters.Count &#8211; 1<br />
            Trace.Write(e.Command.Parameters(x).ParameterName)<br />
            Trace.Write(e.Command.Parameters(x).Value)<br />
        Next</p>
<p>    End Sub</p>
<p>Enable  trace = true on your page. You will see what I am saying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Software Estimation by Decomposition by Must.. make&#8230; client&#8230;. happy&#8230;..* &#171; MCSDeveloper</title>
		<link>http://mcsdeveloper.wordpress.com/2006/09/28/software-estimation-by-decomposition/#comment-47</link>
		<dc:creator>Must.. make&#8230; client&#8230;. happy&#8230;..* &#171; MCSDeveloper</dc:creator>
		<pubDate>Wed, 24 Jan 2007 05:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/09/28/software-estimation-by-decomposition/#comment-47</guid>
		<description>[...] in my case, the scope was well defined during the planning phase, and a detailed estimate submitted.&#160; But lo and behold, after all of this work, the client announced that someone in [...]</description>
		<content:encoded><![CDATA[<p>[...] in my case, the scope was well defined during the planning phase, and a detailed estimate submitted.&nbsp; But lo and behold, after all of this work, the client announced that someone in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ajax Progress Indicators by Trevor</title>
		<link>http://mcsdeveloper.wordpress.com/2006/10/20/ajax-progress-indicators/#comment-7</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 20 Oct 2006 19:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/10/20/ajax-progress-indicators/#comment-7</guid>
		<description>Boomarked!

Thanks.</description>
		<content:encoded><![CDATA[<p>Boomarked!</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Be on the lookout for a suspicious developer by Another one bites the dust &#171; MCSDeveloper</title>
		<link>http://mcsdeveloper.wordpress.com/2006/10/05/be-on-the-lookout-for-a-suspicious-developer/#comment-6</link>
		<dc:creator>Another one bites the dust &#171; MCSDeveloper</dc:creator>
		<pubDate>Wed, 18 Oct 2006 22:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/10/05/be-on-the-lookout-for-a-suspicious-developer/#comment-6</guid>
		<description>[...] DevX just came by and proclaimed that we would no longer be seeing him again.  In his words: &#8220;I was not productive or proactive enough, and I surfed the web too much.&#8221;  All of this was true, but you can&#8217;t help feeling bad when it happens, especially to someone with a wife and kids. [...]</description>
		<content:encoded><![CDATA[<p>[...] DevX just came by and proclaimed that we would no longer be seeing him again.  In his words: &#8220;I was not productive or proactive enough, and I surfed the web too much.&#8221;  All of this was true, but you can&#8217;t help feeling bad when it happens, especially to someone with a wife and kids. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Whew! by Trevor</title>
		<link>http://mcsdeveloper.wordpress.com/2006/10/06/whew/#comment-5</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Tue, 17 Oct 2006 03:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://mcsdeveloper.wordpress.com/2006/10/06/whew/#comment-5</guid>
		<description>Well done Ben!!

May God continue to grant you favor!

Keep up the great techie work.  I&#039;m gonna book mark your techie blog!</description>
		<content:encoded><![CDATA[<p>Well done Ben!!</p>
<p>May God continue to grant you favor!</p>
<p>Keep up the great techie work.  I&#8217;m gonna book mark your techie blog!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
