Thiết kế Website bằng ASP.NET + AJAX
Trang 1 trong tổng số 1 trang
Thiết kế Website bằng ASP.NET + AJAX
Lưu trữ và hiển thị hình ảnh:
http://558.vn/sourcecode/ma_nguon_aspnet_cshap/thanhvan158_luu_tru_va_hien_thi_hinh_anh_trong_database_aspnet_05042010102/
http://www.beansoftware.com/asp.net-tutorials/images-database.aspx
http://558.vn/sourcecode/ma_nguon_aspnet_cshap/thanhvan158_luu_tru_va_hien_thi_hinh_anh_trong_database_aspnet_05042010102/
http://www.beansoftware.com/asp.net-tutorials/images-database.aspx
Re: Thiết kế Website bằng ASP.NET + AJAX
Part 2: Authentication, sử dụng hàm hash để mã hóa mật khẩu: http://www.15seconds.com/issue/020305.htm
Re: Thiết kế Website bằng ASP.NET + AJAX
Phương thức: FormsAuthentication.HashPasswordForStoringInConfigFile Method dùng để mã hóa password. Link: http://msdn.microsoft.com/en-us/library/f0024zw2%28vs.71%29.aspx
Có 3 dạng: Clear (Không mã hóa), MD5 và SHA1
Có 3 dạng: Clear (Không mã hóa), MD5 và SHA1
Re: Thiết kế Website bằng ASP.NET + AJAX
SQL Command Parameters
archar(MAX) and nvarchar(MAX) was introduced in SQL 2005. I started
using these but when I added parameters to an sqlcommand I was never
sure what to use as the size. I used to use int.MaxValue but I was
looking at some code online today which used -1. Here is my example (I
do everything inline to minimize lines of code.)
cmd.Parameters.Add("@Comment",
SqlDbType.VarChar, -1).Value = _Comment;
Simple enough.
Since
I do everything inline and since I rarely use the decimal data type in
sql, I was having problems. My numbers kept on getting rounded off. I
was too lazy to look it up at first but this week I felt the need to
finally do it the right way. Turns out you can't do it inline. Here is
my example (for a decimal(10,2) field).
SqlParameter
HoursParam = cmd.Parameters.Add("@Hours", SqlDbType.Decimal);
HoursParam.Value
= _Hours;
HoursParam.Precision = 10;
HoursParam.Scale = 2;
10
(Precision) is the total number of digits in the number. 2 (Scale) is
how many of those digits come after the decimal point.
Simple
also. This will probably serve as a quick reference for Googler's of the
world, hope it helps.
archar(MAX) and nvarchar(MAX) was introduced in SQL 2005. I started
using these but when I added parameters to an sqlcommand I was never
sure what to use as the size. I used to use int.MaxValue but I was
looking at some code online today which used -1. Here is my example (I
do everything inline to minimize lines of code.)
cmd.Parameters.Add("@Comment",
SqlDbType.VarChar, -1).Value = _Comment;
Simple enough.
Since
I do everything inline and since I rarely use the decimal data type in
sql, I was having problems. My numbers kept on getting rounded off. I
was too lazy to look it up at first but this week I felt the need to
finally do it the right way. Turns out you can't do it inline. Here is
my example (for a decimal(10,2) field).
SqlParameter
HoursParam = cmd.Parameters.Add("@Hours", SqlDbType.Decimal);
HoursParam.Value
= _Hours;
HoursParam.Precision = 10;
HoursParam.Scale = 2;
10
(Precision) is the total number of digits in the number. 2 (Scale) is
how many of those digits come after the decimal point.
Simple
also. This will probably serve as a quick reference for Googler's of the
world, hope it helps.
Similar topics
» Ajax trong ASP.NET
» Một số cuốn sách lập trình nổi tiếng
» Học thiết kế web
» Kinh ngiệm làm mô Phân tích thiết kế
» Kiếm tiền kiểu này hay và thiết thực nhỉ
» Một số cuốn sách lập trình nổi tiếng
» Học thiết kế web
» Kinh ngiệm làm mô Phân tích thiết kế
» Kiếm tiền kiểu này hay và thiết thực nhỉ
Trang 1 trong tổng số 1 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết