<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2841023023697349165</id><updated>2012-02-16T10:32:54.842-08:00</updated><category term='asp.net'/><category term='programming'/><title type='text'>ASP.NET Answers</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asp-net-answers.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://asp-net-answers.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Introspect</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2841023023697349165.post-6299205551261532913</id><published>2011-10-27T12:07:00.000-07:00</published><updated>2011-10-27T12:07:06.502-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>ASP.NET: button click, validate form then redirect browser</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;I wanted to have users click on a button link, validate the form and if valid then redirect to another page. &amp;nbsp;If not valid then show errors.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;Turns out it is pretty simple:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; Protected Sub ContinueButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Validate()&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If Page.IsValid Then&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Redirect("~/Somepage.aspx")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;lt;asp:LinkButton ID="ContinueButton" runat="server" CausesValidation="true"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;onclick="ContinueButton_Click" Text="Next Step" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841023023697349165-6299205551261532913?l=asp-net-answers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-net-answers.blogspot.com/feeds/6299205551261532913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asp-net-answers.blogspot.com/2011/10/aspnet-button-click-validate-form-then.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default/6299205551261532913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default/6299205551261532913'/><link rel='alternate' type='text/html' href='http://asp-net-answers.blogspot.com/2011/10/aspnet-button-click-validate-form-then.html' title='ASP.NET: button click, validate form then redirect browser'/><author><name>Introspect</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2841023023697349165.post-1167137901441797971</id><published>2011-06-13T21:02:00.000-07:00</published><updated>2011-10-27T12:08:56.007-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>Backup of ASP.NET website app_data SQL Express database files</title><content type='html'>On an IIS 6.0 server, when attempting to backup an asp.net website that includes an SQL Express database mdf and log files, the database and log file may not be copied. This is due to the database being locked as in use. To back up the SQL databases of these websites, you may simply run a batch file on the server scheduled to execute at a certain time that will stop and then restate the IIS service.&lt;br /&gt;&lt;br /&gt;For backup scheduling purposes, two text files can be created. One to stop IIS and one to start the service. Each containing the appropriate command then saved with the .bat extension. These batch files can be run at designated times to allow your websites to be completely backed up.&lt;br /&gt;&lt;br /&gt;From the command line, iisreset /stop stops the IIS service.  The command iisreset /start starts the IIS service. &lt;br /&gt;&lt;br /&gt;Otherwise, you may find that your website SQL Express databases contained in your app_data folders are not being backed up after all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841023023697349165-1167137901441797971?l=asp-net-answers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-net-answers.blogspot.com/feeds/1167137901441797971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asp-net-answers.blogspot.com/2011/06/backup-of-aspnet-website-appdata-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default/1167137901441797971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default/1167137901441797971'/><link rel='alternate' type='text/html' href='http://asp-net-answers.blogspot.com/2011/06/backup-of-aspnet-website-appdata-sql.html' title='Backup of ASP.NET website app_data SQL Express database files'/><author><name>Introspect</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2841023023697349165.post-8676313851067809085</id><published>2011-05-14T14:10:00.000-07:00</published><updated>2011-05-14T14:10:01.976-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Introduction - asp.net answers</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Why post a blog about asp.net? &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I've been programming websites for over 10 years. &amp;nbsp;I've had questions, found answers and wanted to begin sharing my knowledge with others.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Many times I've run into programming challenges and have searched for answers without finding any resolution.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I've found others with the exact same questions but no answers.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I just want to record the answers to those questions so that others can benefit.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841023023697349165-8676313851067809085?l=asp-net-answers.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://asp-net-answers.blogspot.com/feeds/8676313851067809085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://asp-net-answers.blogspot.com/2011/05/introduction-aspnet-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default/8676313851067809085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841023023697349165/posts/default/8676313851067809085'/><link rel='alternate' type='text/html' href='http://asp-net-answers.blogspot.com/2011/05/introduction-aspnet-answers.html' title='Introduction - asp.net answers'/><author><name>Introspect</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
