precedence4, text box digital verification (Li Brainstorming lxc) 5. Operators with C #6. StatementsBranch Statement If...else If...elseLoop statement for (int i=0;i7. ArraysSimilar to collections in C #, not fixed-length, non-fixed typeAssignment: Assign a value directly with an index without addEmpty: With a foreach loop, array[i]=null;Quantity: Length;8. FunctionsNo parameter no return, no return, no parameter, no return, no parameter returned type, direct returnRecursion: Self Tune Yourself
, substr (x, y)-intercept string, start at index x, intercept y length5. Split (' x ')-string segmentation with X as tag6, IndexOf ("string")-Returns the first index value of a string7, Trim ()-Remove the space before and after8, var d = new Date (); -Get current timevar d = new Date (2000,3,3); -Define TimeAlert (D.getfullyear ()); -Get the year in time9. Mathematical functions with C #10. Common events:OnClick-click eventOnDblClick-Double-click eventOnmouseover,onmouseout-mouse hover, departur
Box-shadow IntroductionCSS3 can easily add a shadow effect to an element using the Box-shadow property, Box-shadow can set multiple sets of effects, each set of parameter values separated by commas.Grammar:box-shadow:x-shadow y-shadow blur spread color inset;Parameter description:
X-shadow: Sets the shadow horizontal offset value of an object, which can be px, EM, or percent, allowing negative values.
Y-shadow: Sets the shadow vertical offset value of an object, which can be px,
Ylbtech-Architecture: WebForm-blog center-6.0-Space-Short Message (Msg)
The implementation of space short messages in the blog Park.
1. A, Concept
Advantages:
Disadvantages:
1. B, Structure
B .1,/msg/Inbox. aspx
B .2,/msg/Compose. aspx
B .3,/msg/Message. aspx
B .4,/msg/Outbox. aspx
B .5,/msg/Export. aspx
1. C. creation process
C.1, write information --> sender --> View [reply, convert, delete] for
Ylbtech-OpenSource: WebForm-blog garden-1.0-Passport-Logon and Registration
Everyone is bored in their spare time, so someone suggested that we create a blog park on our own! So we use it every day (even overnight, why? Most people want to write a few more good articles. One is to share their experiences, and the other is to share the concerns and sympathy of others !) First, I roughly analyzed the website, divided the modules, straightened out t
WebForm demo, simulating mobile phone Usb interface charging, webformdemo
MATERIALS: Mobile, MiniCharger, IUsb ),
Design Concept:
1. Declare the interaction mode between IUsb objects, including an event;
2. Mobile implements the IUsb interface, which is the key point. It is the interface implemented by the caller and needs to be delegated to the charging device through the event;
3. Mobile reflection charging device, injecting IUsb through constructor
cookies//Assign Valuestrings =TextBox1.Text; response.cookies["username"]. Value =s;if(checkbox1.checked) {response.cookies["username"]. Expires =datetime.now.adddays (3);//set the expiration time of a cookie }//Take valueif(request.cookies["username"] !=NULL) Label1.Text= request.cookies["username"]. Value;Cookies If you want to empty a saved persistent cookie, you can do so by response.cookies["username". Expires = DateTime.Now.AddDays (-10); The date before setting this cookie ex
the kitchen-IIS informs the. NET framework of the ASPX that the user wants to seeKitchen cooking-the. NET Framework performs processing of C # code in ASPX pagesShouted the waiter to serve the dishes-. NET Framework to return the processed pages to the Iis,iis to the user.(2). html fileTo head Garlic-HTML page requests, IIS can be returned directly to the user without having to go through. NET Framework ProcessingExample 2, connect the database, display the linked table in the form of a table o
System.Web.UI; 6 using System.Web.UI.WebControls; 7 8 public partial class Default2:System.Web.UI.Page 9 {protected void Page_Load (object sender, EventArgs e) 11 {if (! IsPostBack) (Literal1.text = DataBind ();}16}17 public String DataBind () 18 {String end = ""; list1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 8 Public partial class Delete:System.Web.UI.Page 9 { protected v
stringBirstr {Get { stringEnd =""; if( This. _birthday!=NULL) {End= Convert.todatetime ( This. _birthday). ToString ("yyyy mm month DD Day"); } returnend; } }User Data extension(4) Increase and deletion checkFirst instantiate:1 NULL //web-Built LINQ class name 2 Public UserData () 3 {4 new webdatacontext (); 5 }First, check all 1 public list Select () 2 { 3 return con. User.tolist (); 4 } //user is the object name, which is the table n
// take out The primary key value you want to delete string Code = request["ID"]; // the primary key value is passed to the method for deletion. BOOL New studentdata (). Delete (Code); // Skip to transfer display page after delete complete if (b) { Response.Redirect ("default.aspx"); }(ii) Amendment1. Constructs the modification interface, and carries on the verification and the data point2. Present the original data to the page3. Perform the
File Upload (control: Fileupload)--File mapping: Server.MapPath (PATH) (phaseAbsolute path to turn)--Save to the specified path: fileupload.saveasExample: Click the button to get the uploaded image;String path= "Images\aaa.txt";String endpash= Server.MapPath (path);Fileupload.saveas (absolute path);1. Upload files with duplicate names:FIX: (Preserve file formerly known as) stringPath= "images/" +fileupload.filename;Problem two: Multiple uploads are easy to repeat:Resolution: (plus time) stringPa
informs the. NET framework of the ASPX that the user wants to seeKitchen cooking-the. NET Framework performs processing of C # code in ASPX pagesShouted the waiter to serve the dishes-. NET Framework to return the processed pages to the Iis,iis to the user.(2). hrml fileTo head Garlic-HTML page requests, IIS can be returned directly to the user without having to go through. NET Framework ProcessingExample 2, connect the database, display the linked table in the form of a table on the browser"C
Client and web Side:C/S (client):Two different ways: WinForm WPFData is present on other computers or on the serverData needs to be downloaded from the server and processed in the client on the local computerThe process of data processing is performed on the User's computer, which will require the User's computer Configuration.B/S (web-side):aspTwo different ways: WebForm MVCThe user sends a request to the IIS server, the server will execute all the c
); } Response.Redirect ("main.aspx"); }Main interface main background code:Determine if the cookie is empty, is not empty, and is based on the value of the cookie to inquire if (request.cookies["user"]! = Null) { Users u = new USERSDA (). Select (request.cookies["user"). Value); Labdl.text = u.nickname; Literal1.text = "welcome to you!" "; } empty, Jump to login page else { Response
"; return;/do not execute subsequent statements } // upload the file to the absolute path Fileupload1.saveas (endpath);Note: the file size on the C # side limit is not good. Cause: if the file exceeds the maximum length of the system, the C # end is limited, and the program crashes Directly.You can also set the size of the file in Web.confight.Method: Add In js, set the file size How to limit the types of files that can be selected: add accept= ". jpg,.jpeg,.png" to
| | !DUPWD2 | | !dunicheng | | !dup | | !duyou | | ! Duyz) { alert (" please confirm that it is all filled in Correctly!") "); return false ;//the code behind does not execute }4, Three level linkage(1) Modify a property: AutoPostBacksecond, the repeater repetition deviceFour templates:Headertemplate: execution begins at loadItemTemplate: How many data are executed and how many timesFootertemplate: last run on loadAlternatingitemtemplate: Alternating It
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.