In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you the "VB.NET how to generate static pages and paging principle", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "VB.NET how to generate static pages and paging principles" this article.
1. VB.NET generates static pages and paging principle static pages template.html, mainly defining some special characters to be replaced.
> $Titletitle > head > $Titlediv > browse script > font > next $Timediv > $Contentdiv > $Pagerdiv >
Textarea > see more comments a > form > div > body > html >
2. VB.NET generates static pages and pre-paging page NewsAdd.aspx, which is a form used to fill in news headlines and content.
> add News title > head > asp:Label > asp:TextBox > asp:Label > FCKeditorV2:FCKeditor > asp:Label > div > form > body > html >
3. VB.NET generates static pages and paging principle background pages NewsAdd.aspx.cs
Using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Mysqlserver; using System.IO; using System.Text Namespace NewsAdd... {public partial class Admin_AdminPanel_NewsAdd: System.Web.UI.Page... {protected void Page_Load (object sender, EventArgs e)... {} protected void Button1_Click (object sender, EventArgs e)... {string strDate = DateTime.Now.ToString ("yyMMdd") + "\" + DateTime.Now.ToString ("yyyymmddhhmmss"); string strFileName = strDate + ".shtml" / store it in the database string strTitle=Request.Form ["Title"] .ToString () .Trim (); / receive the incoming title string strContent=Request.Form ["Content"] .ToString () .Trim (); / / receive the incoming content string [] content = strContent.Split (new Char []... {'|'}); / / split the content and save it to the upper limit of the array int upbound = content.Length;// array SqlServerDataBase db = new SqlServerDataBase () Bool success = db.Insert ("insert into inNews (Title,Content,FilePath) values ('" + strTitle + "','" + strContent + "','" + strFileName + "'), null); / / if (success) / / Message.Text =" added successfully! " ; / * * / create a folder for the current date to start string dir = Server.MapPath (".. /.. /" + "NewsFiles/" + DateTime.Now.ToString ("yyMMdd")); / / to generate the folder if (! Directory.Exists (dir)) {Directory.CreateDirectory (dir) } these are all the contents of the article "how to generate static pages and paging principles in VB.NET". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.