Just installed the ASPNETforums Chinese version 0831, intended to integrate it into my project and make some modifications.
First, add advanced image upturproof functions
1. Add a folder Plus to the Controls component and add an UPLoadImage.cs file.
2. Add a skin-uploadimage.ascx file to the / themes / default / skins / default / skins / directory under the ASPNETforum project.
3, hit the CreateEditPost.cs file under the Controls project, open the Public Static Void IntializeriTextBox (FreeTextBox FTB, BOOL ENABLEHTMLMODE) method Add the following code:
// *** BillChen Add **** Start and replays the previous page content after redirect. FTB.Text = (httpcontext.current.session ["postbodyrichtext_state"] as string) (httpContext.current.Session "] AS String);
HttpContext.Current.Session ["postbodyrichtext_state] = null; httpcontext.current.session [" ShowuploadImage] = null; // *** Billchen Add *** * End
4. Find the View-createPost.ascx file under the / themes / default / skins / directory under the ASPNETforum project.
Open and find input id = "filetoupload" type = "file" runat = "server" name = "filetoupload"
Add the following code below it: