<?xml version="1.0" encoding="ISO-8859-1"?>

<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>ASP Message Board - ASP.NET</title>
		<link>http://www.aspmessageboard.com/</link>
		<description><![CDATA[This forum is for questions on ASP.NET.  If you've got a question about building a Web application on the Microsoft platform, this is the forum to use!]]></description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 02:39:14 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.aspmessageboard.com/images/misc/rss.png</url>
			<title>ASP Message Board - ASP.NET</title>
			<link>http://www.aspmessageboard.com/</link>
		</image>
		<item>
			<title>I am having all kinds of problems with this</title>
			<link>http://www.aspmessageboard.com/showthread.php?237619-I-am-having-all-kinds-of-problems-with-this&amp;goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 03:12:45 GMT</pubDate>
			<description><![CDATA[Hi again Experts, 
 
This issue is really, really driving me nuts. 
 
Please take a look at code below: 
 
Code: 
--------- 
s = "INSERT INTO...]]></description>
			<content:encoded><![CDATA[<div>Hi again Experts,<br />
<br />
This issue is really, really driving me nuts.<br />
<br />
Please take a look at code below:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">s = &quot;INSERT INTO tblTrainings (CourseId, tblLocations.LocationId, dateId,AvailableSeats,username) VALUES (@CosID, @LocID, @dat, @Available_Seating, @Username)&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim cmd = New SqlCommand(s, conn)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.AddWithValue(&quot;@cosID&quot;, Request.QueryString(&quot;cosId&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.AddWithValue(&quot;@locID&quot;, Request.QueryString(&quot;locid&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.AddWithValue(&quot;@dat&quot;, Request.QueryString(&quot;iddate&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.AddWithValue(&quot;@Available_Seating&quot;, 45 - 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.Parameters.AddWithValue(&quot;@UserName&quot;, username)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd.ExecuteNonQuery()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.Close()</code><hr />
</div> We have 2 fieldnames, one field called Capacity is on a table called Location.<br />
<br />
This Capacity is of integer data type and has a value of 45.<br />
<br />
The other fieldname is called Available and is also of integer data type.<br />
<br />
This fieldname is on a table called trainings.<br />
<br />
The idea is to show Capacity Seating (which is 45) and to show Available Seats.<br />
<br />
Initially, the Available fieldname has no value.<br />
<br />
This trainings table is used to store information about people who register for a class.<br />
<br />
The first time a user signs up for a class, Available will show 44 seats remaining. You can see this from the code above:<br />
<br />
                cmd.Parameters.AddWithValue(&quot;@Available_Seating&quot;, 45 - 1)<br />
<br />
The problem is that after this initial decrease from 45 to 44, it doesn't decrease anymore.<br />
<br />
The idea is that each time someone signs up, the number decreases by 1 and will continue to decrease until the number is now 0.<br />
<br />
Of course, when it is 0, any attempt to sign up again by a user, a message will go out that class is full and user will be on a waiting list. This means that the user's registration info will be saved on the waiting list table.<br />
<br />
Not really worried about this waitinglist part.<br />
<br />
I just want to be able to have Available decrease by 1 each time a user signs up until 0.<br />
<br />
How do I make this work?<br />
<br />
Thanks as always for your continued assistance<br />
.</div>

 ]]></content:encoded>
			<category domain="http://www.aspmessageboard.com/forumdisplay.php?17-ASP.NET">ASP.NET</category>
			<dc:creator>IheChi</dc:creator>
			<guid isPermaLink="true">http://www.aspmessageboard.com/showthread.php?237619-I-am-having-all-kinds-of-problems-with-this</guid>
		</item>
		<item>
			<title>How do I send my user to a custom login page if/when they time out?</title>
			<link>http://www.aspmessageboard.com/showthread.php?237595-How-do-I-send-my-user-to-a-custom-login-page-if-when-they-time-out&amp;goto=newpost</link>
			<pubDate>Tue, 21 May 2013 10:46:14 GMT</pubDate>
			<description>I have implemented a timeout with slidingexpiration in my web.config which by default sends the user to the default.aspx page which has the login...</description>
			<content:encoded><![CDATA[<div>I have implemented a timeout with slidingexpiration in my web.config which by default sends the user to the default.aspx page which has the login control.  I woulf like to change this behavior such that the user would be directed to a page that will have a login control plus information telling them that they have arrived at this page due to a timeout.  I'm trying to avoid the following scenario.  A user leaves their computer while logged in to my application intending to return shortly and thus does not log out.  However they get distracted and do not return within the allowed timeout period and find that when they make an entry they are immediately looking at the login page without any indication as to why they have been sent here.  I have found some blogs with ideas for presenting an alert that a timeout is about to occur, but with the slidingexpiration this would not occur unless they were not activiely using the application and thus would not be present to see the alert.  Thank you for any suggestions you choose to offer..............................Phil Hoop</div>

 ]]></content:encoded>
			<category domain="http://www.aspmessageboard.com/forumdisplay.php?17-ASP.NET">ASP.NET</category>
			<dc:creator>PhilHoop@mm.com</dc:creator>
			<guid isPermaLink="true">http://www.aspmessageboard.com/showthread.php?237595-How-do-I-send-my-user-to-a-custom-login-page-if-when-they-time-out</guid>
		</item>
	</channel>
</rss>
