ASP.NET tips

xiaoxiao2021-03-06  77

Use Server.Transfer ("URL") to terminate the execution of the current page and start to transfer the new page specified by the URL. -------------------------------------------------- -------------------------------------------------- ------- <% # DataBinder.eval (ContaSetime "," {0: D} "). Equals (" 1949-10-1 ") NULL: DataBinder.eval (Container. DataITEM, "Disposetime", "{0: D}")%>

<% # Convert.TOString (Container.eval ("Subject")). LENGTH> 20? Convert.TOSTRING (Container.eval ("Subject"). Substring (0,19) ".......": Convert.TOString (databinder.eval (container.DataItem, "Subject"))%>

<% # Databinder.eval (Container.DataItem, "Title"). Tostring (). Length> 20? DataBinder.eval (Container.DataItem, "Title"). Tostring (). Substring (0,18) ". .. ": DataBinder.eval (Container.DataItem," Title ")%> -------------------------------- -------------------------------------------------- ------------------------- ------ -------------------------------------------------- ----- Background code Add a button to the BTN_DELETE to add a confirmation dialog that is detected when it is deleted;

BTN_DELETE.Attributes.add ("Onclick", "JavaScript: Return Confirm ('Do you have to delete?');"); ------------------- -------------------------------------------------- -------------------- Response.write (Request.userLanguages ​​[0]);

For example: zh-cn

============================================================================================================================================================================================================= ================= 【 Close this window ================================================== ==========================

转载请注明原文地址:https://www.9cbs.com/read-94702.html

New Post(0)