Friday, April 27, 2007

Hot Wallpaper: girls


Art&NoMore...

Friday, April 20, 2007

INTERNET

IP address (Internet Protocol address): The number that identifies a computer linked to the Internet.

1.Cấu trúc một địa chỉ IP: Địa chỉ IP được chia thành 4 số giới hạn từ 0-255. Mỗi số được lưu bởi 1 byte, IP có kích thước là 4 byte, được chia thành các lớp địa chỉ. Có 3 lớp A, B và C. Nếu ở lớp A ta có thể có 16 triệu địa chỉ, ở lớp B có 65536 địa chỉ. Ví dụ ở lớp B với 132.25, chúng ta có tất cả các địa chỉ từ 132.25.0.0 đến 132.25.255.255. Phần lớn các địa chỉ ở lớp A là sở hữu của các công ty hay của tổ chức. Một ISP thường sở hữu một vài địa chỉ lớp B hoặc C. Ví dụ nếu địa chỉ IP của bạn là 132.25.24.23 thì bạn có thể xác định ISP của bạn là ai. (có IP là 132.24.x.x).

Get Web Page Contents in Code With C#

//The .NET framework provides a rich set of methods to access data stores on the web.

//Include right namespace.
using System;
using System.Text;
using System.Net;
using System.IO;


//The HttpWebRequest object allows us to create a request to URL.
//URL variable should contains the URL that you want to get.
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(URL);
myRequest.Method = "GET";

//WebResponse allows us to read the response to the request.
WebResponse myResponse = myRequest.GetResponse();

//We will use StreamReader object to read the response into a string variables.
StreamReader rs = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8);

//result variable will contain the contents of the Web page.
string result = sr.ReadToEnd();
sr.Close();
myResponse.Close();

//You may add some error handling as well for a real application.

Thursday, April 12, 2007

Introduction To ASP.Net Part1

The Web Controls unit covers basic Webform controls and input validation controls.

Web Forms:

-Allow the use of any.NET programming language.

-Enhance performance by dividing Web applications into visual and logical parts.

-use an object model.

-are capable of running on any browser.

-have an .aspx extension.

Which of the following contains an event handler:

-onServerClick="Greet" runat="server"

Web Controls:

-Specify whether the event of a control warrants immediate sending to a server or caching.

-exist within the System.HTML.UI.WebControls namespace.

-exist within the System.Web.UI.WebControls namespace.

-support mobile and small-screen devices.

-produce complex interface elements on the client and complex task-specific output.

-facilitate automatic browser detection.

Sequence the steps in executing an ASP.NET server control.

1.The action and method attributes of the Web Form are created.

2.Unique id and name attributes are added to the Web Form.

3.A value attribute and a text value are added for each control.

4. A hidden control is added to the Web Form.

Identify the closing tag of a

The function of the IsPostBack property is to:

-enable handling of Postback forms.

Which are the principal features of ASP.NET:

-Greater scalability

-Multiple language support

-Cookie-less sessions

-Increased performance

-useful classes and namespaces.

Place in the correct order the events in the ASP.NET page event life cycle:

-Page_Init - Page_Load - Control Event - Page_Unload

The components of the .NET Framework:

-Web Forms and Web Services, Data, Windows.Forms, CLR, BCL.

Select the features of server controls:

-Identified by using the value of the id attribute

-Created by adding the runat="server" attribute value pair to an existing HTML tag.

-Enable multiple page navigation while bypassing cutom query string parameters.

-Enable a Web page to support multiple browsers.

-Can handle multiple control action events.

HTML server controls:

-Allow automatic management of Web Form control values.

-contain a runat="server" attribute value pair.

-exist within the System.Web.UI.HtmlControls namespace.

Identify the components of the ASP.NET page processing model:

-Memory

-Compiler

-Output cache

-Assembly cache.

-Parser.

Select the limitations of ASP:

-Scripting code must be interpreted the first time the file is requested

-State management is limited.

-Even simple tasks require involved code in ASP.

-Files can only be updated whent the Web server is down.

-It is difficult to deploy COM objects.

Which are types of ASP.NET server controls?

-Web

-HTML

Labels

Blog Archive