📘 HTML – Basics & Concepts 🔹 HTML Html is tag based or browser oriented or text based language. HTML stands for hypertext markup language. 🔹 Terminology Hyper :- hyper represents the next document. Text :- text is a collection of words (char, number or special characters) Markup :- it is basically an HTML library where all the tags are defined (it communicates directly with the browser) Language :- it works as a mediator between a user and computer 🔹 Tag-Based Structure .........Html has a tag-based structure......... <H1>this is a heading</H1> Here, the content between the tags is called inner HTML 🔹 Types of Tags Open tag → <br> , <hr> , <i> , <b> , <img> Closed tag → <h1></h1> 🔹 Development Rules Create your own directory Put all the resources into the directory (Audio, video, image, library, api or other) Don't put spaces between your project's name My project ✗ Myproject ✓ 🔹 Important Tags 1) <del> Th...
* In Dot Net 'Now' is an object defined under "DateTime" library , is set the current time and date of your computer, general computer time is also set/display using Now object. How can we display Time and Date in Dot Net- 1. Firstly, drag a button and a label control [ We will code inside the button click event and the Date & Time will be shown in the Label control ] ex. - //Date Label1.Text = DateTime.Now.ToString("dd/MMMM/yyyy"); Label1.Text = DateTime.Now.ToString("dd"); //Day Label1.Text = DateTime.Now.ToString("dddd"); //Month Label1.Text = DateTime.Now.ToString("MMMM"); //Year Label1.Text = DateTime.Now.ToString("yyyy"); //Time Label1.Text = DateTime.Now.ToShortTimeString(); ADDING Hours/Months/Years to Current Time- Implementation[We will use this function to show the user that the your subscription will gonna expire on that date] Let's have a look- Label1.Text = DateTime.Now.AddHours(5)....
Data Binding Functions are used with controls. Eval()- - Eval function is data binding function. - It is only used with the text property of all controls excluding image control, In Image control we use this with "src". Syntax- Text='<%# Eval("column_name")%>' // column same as database. The column will bind to that control.
Comments
Post a Comment