Ϊʲôasp.net2.0Ò³Ò»Ìá½»¾Í±äÐÎ
Ϊʲôasp.net2.0Ò³Ò»Ìá½»¾Í±äÐÎ
ÎÒµÄasp.netÒ³ÖÐÓÐÒ»¸ö±í¸ñ,Àï·ÅÁËһЩtextbox¿Ø¼þ,ΪʲôһÌá½»ËüÃǸ߿í¾Í»á±äÐÎ,ˢоͲ»»á±äÐÎ,Ìá½»¾Í»á£¡¶¼¼ÓÁËÑùʽÔõ»á±äÐÎ
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "jiaju_add.aspx.cs " Inherits= "Manager_jiaju_add " %>
<%@ Register Assembly= "FreeTextBox " Namespace= "FreeTextBoxControls " TagPrefix= "FTB " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml " >
<head runat= "server ">
<title> ÎÞ±êÌâÒ³ </title>
<link href= "../Manager/Style2.css " rel= "stylesheet " type= "text/css " />
</head>
<body>
<form id= "form1 " runat= "server ">
<div>
<br />
<table border= "1 " cellpadding= "0 " cellspacing= "0 " style= "width: 600px; font-size: 12px; ">
<tr>
<td colspan= "2 " style= "font-weight: bold; font-size: 14px; background-image: url(images/bg1.gif);
height: 20px ">
¼Ò¾Ó×°ÐÞÉÏ´« </td>
</tr>
<tr>
<td style= "width: 285px; height: 20px ">
<strong> ±êÌâ: <asp:TextBox ID= "News_Title " runat= "server " Height= "15px " Width= "205px " CssClass= "textbox "> </asp:TextBox>
<asp:RequiredFieldValidator ID= "news_title_check " runat= "server " ControlToValidate= "News_Title "
ErrorMessage= "ÇëÊäÈë±êÌ⣡ "> </asp:RequiredFieldValidator> </strong> </td>
<td style= "width: 300px; height: 20px ">
<strong> ±êÌâͼƬ <asp:TextBox ID= "imageurl " runat= "server " Height= "19px " Width= "185px " CssClass= "textbox "> </asp:TextBox> </strong> </td>
</tr>
<tr>
<td style= "width: 285px; height: 26px; ">
<strong> ËùÊôÀ¸Ä¿ </strong> : <asp:DropDownList ID= "DropDownList1 " runat= "server ">
<asp:ListItem Value= "1 "> ¼Ò¾Ó </asp:ListItem>
</asp:DropDownList> </td>
<td style= "width: 300px; height: 26px; ">
<strong> ÈÕÆÚ <asp:TextBox ID= "News_Datetimes " runat= "server " Height= "16px " Width= "148px " CssClass= "textbox "> </asp:TextBox> </strong> </td>
</tr>
<tr>
<td style= "width: 285px; height: 25px; ">
<strong> ÐÅÏ¢À´Ô´»ò×÷Õß <asp:TextBox ID= "News_Source " runat= "server " CssClass= "textbox " Height= "18px "
Width= "150px "> </asp:TextBox> </strong> </td>
<td style= "width: 300px; height: 25px; ">
<strong> ËÑË÷¹Ø¼ü×Ö </strong> <asp:TextBox ID= "News_Key " runat= "server " Height= "16px " CssClass= "textbox "> </asp:TextBox> </td>
</tr>
<tr>
<td colspan= "2 " style= "height: 343px ">
<FTB:FreeTextBox ID= "FreeTextBox1 " runat= "server " ButtonImagesLocation= "InternalResource "
ImageGalleryPath= "~/Manager/upfiles " JavaScriptLocation= "InternalResource " Language= "zh-cn "
SupportFolder= "~/FreeTextBox/ " ToolbarImagesLocation= "InternalResource " ToolbarLayout= "ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker,Cut,Copy,Paste,Delete,InsertTable,InsertImageFromGallery,Preview,SelectAll,WordClean|Undo,Redo,Print,Save,Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat,JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule,InsertDate,InsertTime "
Width= "615px ">
</FTB:FreeTextBox>
<br />
<asp:Button ID= "save " runat= "server " Text= "±£´æ " Width= "55px " OnClick= "save_Click " />
<asp:Button ID= "Button2 " runat= "server " Text= "Çå¿Õ " Width= "60px " /> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
[½â¾ö°ì·¨]
ÊDz»ÊÇÌá½»ºǫ́´úÂëResponse.WriteÁËʲô¶«Î÷£¿
[½â¾ö°ì·¨]
ÊDz»ÊÇÔÚpostbackÒÔºóÓÃÁËResponse.WriteÓï¾ä
[½â¾ö°ì·¨]
Ìá½»ÒÔºóÊDz»ÊÇÓÃÁËresponse.write
Èç¹ûÓÃÁ˾ͻᵼÖÂÑùʽ¸Ä±ä
È¥µô¾ÍºÃÁË
[½â¾ö°ì·¨]
·´ÕýÄãÓõÄÊDZí¸ñ¡£
¸É´à°Ñ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml " >
»»³É
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML>
[½â¾ö°ì·¨]
»»ÁËÒÔºóËæ±ãÄãÓÃresponse.writeÁË¡£
[½â¾ö°ì·¨]
ʲһ¶¨ÒªÓÃResponse.Write().²»¿ÉÒÔÓÃlableʾЩϢ?
[½â¾ö°ì·¨]
ÏÔʾѶϢÓÃLabel±êÇ©£¬ÔÚ´úÂëÀïÓÃLabelid.TextÏÔʾ
»¹ÓУ¬ÔÚÑùʽ±íÄÚÓë¿Ø¼þ´úÂëÄڵij¤¿íÒªÔÚÄãµÄµçÄÔÔÊÐíµÄÏñËØ·¶Î§ÄÚ