diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 21cc6b6..f346fac 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1.445")] -[assembly: AssemblyFileVersion("3.0.1.445")] +[assembly: AssemblyVersion("3.0.1.446")] +[assembly: AssemblyFileVersion("3.0.1.446")] diff --git a/WebApplication/Post.aspx.cs b/WebApplication/Post.aspx.cs index 2680d5b..388e66b 100644 --- a/WebApplication/Post.aspx.cs +++ b/WebApplication/Post.aspx.cs @@ -86,6 +86,8 @@ namespace ScrewTurn.Wiki { protected void btnSend_Click(object sender, EventArgs e) { string content = editor.GetContent(); + Page.Validate(); + if(!Page.IsValid || content.Replace(" ", "").Length == 0 || txtSubject.Text.Replace(" ", "").Length == 0) { lblResult.CssClass = "resulterror"; lblResult.Text = Properties.Messages.SubjectAndBodyNeeded; diff --git a/WebApplication/Post.aspx.designer.cs b/WebApplication/Post.aspx.designer.cs index 26084a7..b26b219 100644 --- a/WebApplication/Post.aspx.designer.cs +++ b/WebApplication/Post.aspx.designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4016 +// Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated.