1 vài Tool dành riêng cho dân Coder

Đây là 1 số tool mà theo mình là thực sự cần thiết cho dân lập trình đặc biệc là dân lập trình web
1.Firebug Firefox Extension
Đây là 1 tool cực kỳ hữu ích cho việc phân tích 1 site bao gồm từ CSS cho tới javascript và lấy các hình ảnh dù cho bị giấu [...]

ASP.NET MVC 1.0 – Tin nóng

Anh em ơi anh em có quen từ MVC ko?
Nó lại khiến anh em nhớ đến Struts bên Java chăng ??? Thật bất ngờ là Microsoft cũng đã phát triển mô hình ứng dụng bên Java này cho ASP.NET …. anh em chúng ta cùng khám phá nha
ASP.NET MVC 1.0 provides a [...]

130+ New Tools to Make You a Better and Faster Designer

Beginner Resources
YAML Builder – Easy to use YAML (Yet Another Multicolumn Layout) XHTML/CSS site layout builder.
Sky CSS Tool – JavaScript CSS authoring app.
The Box Office – CSS formatting tool for wrapping text around images.
CSSTXT – Online CSS text style generator.

izzyMenu.com – Free CSS menu builder.
pForm – HTML form builder.
Roxer – Drag and drop website creator.
Wirenode [...]

Chọn(Select) dữ liệu từ một bảng trong JSP

Đoạn mã sau sẻ lấy một record ra từ bảng dữ liệu. Code này đầy trên Net mình chỉ sưu tầm và chỉnh lại tí thôi. Chỉ mang tính tham khảo!!!

String id = cust_id.getText();
try
{
PreparedStatement prepstmt;
boolean found = false;
prepstmt = theConn.dbConn.prepareStatement
(“select custName, CustAddr from tCust where custId = ?”);
prepstmt.setString(1, id);
ResultSet rs;
rs = prepstmt.executeQuery();
found = rs.next();
if (found)
System.out.println(rs.getString(1));
else
System.out.println(“Customer [...]

Lấy & Xóa Cookie bên Client Từ Servlet

Vừa học xong cái này nên viết lại cho nhớ chứ hok có gì hết .
Để truy xuất đến bất kì Cookie nào được gởi đến trình duyết thông qua đối tượng  javax.servlet.http.HttpServletRequest – phương thức là doGet và doPost. HttpServletResonse chứa phương thức Cookies[] getCookies() trả về một mảng đối tượng Cookie.
thử [...]

Tạo ứng dụng dựa trên Windows

using System.Windows.Forms;
public class WelcomeForm : Form {
private Label label1;
private TextBox textBox1;
private Button button1;
public WelcomeForm() {
this.label1 = new Label();
this.textBox1 = new TextBox();
this.button1 = new Button();
this.SuspendLayout();
this.label1.Location = new System.Drawing.Point(16, 36);
this.label1.Name = “label1″;
this.label1.Size = new System.Drawing.Size(128, 16);
this.label1.TabIndex = 0;
this.label1.Text = “Please enter your name:”;
this.textBox1.Location = new System.Drawing.Point(152, 32);
this.textBox1.Name = “textBox1″;
this.textBox1.TabIndex = 1;
this.textBox1.Text = “”;
this.button1.Location = new System.Drawing.Point(109, 80);
this.button1.Name [...]