Fixed issue in CAPTCHA validation in Post.aspx.
This commit is contained in:
parent
7b5d3223b3
commit
56a6ce3d9d
3 changed files with 5 additions and 3 deletions
|
@ -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")]
|
||||
|
|
|
@ -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;
|
||||
|
|
2
WebApplication/Post.aspx.designer.cs
generated
2
WebApplication/Post.aspx.designer.cs
generated
|
@ -1,7 +1,7 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue