the eval use in front page(*.aspx)like <%#Eval("article_title")%> the bind is from code page(*.cs),is from a void of a control's databind. you can search in google
wikizhao
Posts
-
Eval_Bind -
DALDAL is part of Factory Model in asp.net.there is have model 、BLL and website item. In China ,A Programmer dev a tool ,that can use hid tool generate DAL BLL and Model,when soft generate the code,you want It needs fine-tuning a litter.can save more time. wish can helo you.
-
how to use validation with loginyou user the jquery.validate.js,there is many more validation rules inside!
-
datepicker textbox in asp.netNot just use in asp.net project,also use in other type page,like php,jsp and so on! let's show you my ways! put this in page header and write a script $(function() { $('#birthdate').datepicker({ format: 'yyyy-mm-dd' }); }); the birthday is the input control number!
-
Host my website on PC in my networkif the host computer is server OS,you can setting DNS,if the host computer ip is 192.168.1.101,you can put it int DNS and setting ip with domain,like www.a.com but just access in WLAN
-
Host my website on PC in my networkput it in IIS,you can user IP view the web,like 192.168.1.123:801/default.aspx
-
Can I connect to MS SQL using HTML & JavaScript?just use javascript or html can't connect mssql database,At least for now
-
ASP.netthe more you need!
-
Project on Code Conversionsure! the first textbox event have no "else". so! Just show the second textbox event info!
-
How to Create Search Text Box in C#.Net like Google Search Boxi have demo,please give me msg,i send to you
-
Asp.netPassed by value to iframe
-
How to use different fonts?download the font if you like;put this in website Directory, like css Directory and so on.and user this.I 'll sell look like this in Apple.com
-
Clearing Textboxes (Foreach) Not Working#region Clear all text boxes page value (for server-side controls) /// /// ex:FindTextBox(this); /// /// public void FindTextBox(Control c) { if (c.Controls != null) { foreach (Control x in c.Controls) { if (x is System.Web.UI.WebControls.TextBox) { ((System.Web.UI.WebControls.TextBox)x).Text = string.Empty; } FindTextBox(x); } } } #endregion #region Clear all text boxes page value (for client side controls) /// /// ex:FindHtmlInputText(this); /// /// public void FindHtmlInputText(Control c) { if (c.Controls != null) { foreach (Control x in c.Controls) { if (x is System.Web.UI.HtmlControls.HtmlInputText) { ((System.Web.UI.HtmlControls.HtmlInputText) x).Value = string.Empty; } if (x is System.Web.UI.HtmlControls.HtmlTextArea) { ((System.Web.UI.HtmlControls.HtmlTextArea)x).Value = string.Empty; } FindHtmlInputText(x); } } } #endregion ex:FindHtmlInputText(this); Hope you can help!!!
-
best timing!<script> function ss() { $("#date").text( Date()); } </script> use span and give an id ,name is date. id="date" <input id="Button1" type="button" value="button" onclick="ss()" />
-
best timing!var d = new Date(); var localZone = d.getTimezoneOffset()/60;
-
check boxrunat="server" you know
-
Develop Enterpise Applicattions with ASP.NETin fact! ASP.NET is not well with this. and the php is better,you can try it
-
SEND MAILthis code have some chinese,if you know #region :Send Email /// /// Send Email(Success return true, faile retuan false) /// /// content /// theme /// send email /// send keys/param> /// get email /// Success return true, faile retuan false public static bool SendMail(string strBody, string strSubject, string strFrom, string strFromPwd, string strTo, string strSmtp) { bool b = false; // 邮件信息(属性) MailMessage mm = new MailMessage(); mm.From = new MailAddress(strFrom); mm.Subject = strSubject; mm.SubjectEncoding = Encoding.UTF8; mm.Body = strBody; mm.BodyEncoding = Encoding.UTF8; mm.IsBodyHtml = true; mm.Priority = MailPriority.Normal; //// 获取 SMTP 服务器 //string Smtp = string.Empty; // smtp 地址 //// 取得后部分的 smtp地址 //string strSmtp = strFrom.Substring((strFrom.IndexOf("@") + 1)); //Smtp = "smtp." + strSmtp; // 发送邮件 SmtpClient sc = new SmtpClient(strSmtp); // 用户凭证 (email 地址和密码) sc.Credentials = new NetworkCredential(strFrom, strFromPwd); if (strSmtp == "gmail.com") { sc.EnableSsl = true; } sc.Timeout = 5000; mm.To.Clear(); mm.To.Add(strTo); try { sc.Send(mm); b = true; } catch (ArgumentNullException ex) { b = false; } catch (SmtpException smtpEx) { b = false; } catch { b = false; } // 释放资源 mm.Dispose(); return b; } #endregion
-
session variablestry to use session timeout.Sometime,network is not well and session has not remove.
-
Gridview in Repeaterput ul li in it Repeater, that can Meet your needs!You try!