ASP.NETÖÐÈçºÎµ¯³öÒ»¸öÏûÏ¢¿ò(ת)
¶¼ÖªµÀÔÚ¿Í»§諯ʹÓõ¯³ö¿òµÄÊDz»ÄÜÓÃMesssageBoxÀ´ÊµÏÖµÄ.
Ò»°ã¶¼Ê¹ÓÃÒÔϼ¸ÖÖ·½·¨.
1) Button.Attributes.Add("onclick","javascript:return confirm('È·¶¨?');");
ÕâÖÖ·½·¨..ÏÖÔÚʹÓÃ×îµÄ¶à..
ÔÚwww.csdn.netÀïÓÐÒ»ÎÄÕ¾ͺܺÃ.
http://www.csdn.net/Develop/Read_Article.asp?Id=20892
´ó¼Ò¿ÉÒÔ¿´Ò»ÏÂ..»áÓкܶàÊÕ»ñ.
2)ÁíÒ»¸ö·½·¨..ÎÒ²»ÖªµÀÆäËüÈËÓÐûÓÐÕâôÓÃ.²»¹ýÎÒÊÇÕâôÓõÄ..ºÜ͵ÀÁµÄ°ì·¨¾©ÊÇ
< div id=div1 onclick="javascript:return confirm('È·¶¨?');"><asp: button id="Button1" runat="server" Text="Button"></asp:button></div>
Õâ¸öÒ»ÑùÄÜʵÏÖ..¶øÇÒ²»ÓÃÔö¼Ó·þÎñÆ÷µÄ¶¯×÷...²»¹ýÓÐûÓÐÆäËüºó¹û..¾Í²»..ÖªµÀÁË..
ÔÚDataGridÖÐÒ»ÑùÔÚButtonÁÐÖÐʹÓÃÊôÐÔ±à¼Æ÷ÔÚÎı¾(t)ÖÐдÈë
<div id=div1 onclick="javasciprt:return confrim(È·¶¨?')">ɾ³ý</div>¾ÍÄÜÔÚDataGridÖÐʵÏÖɾ³ýÈ·ÈϵŦÄÜ..µ±È»Èç¹ûÿÐÐɾ³ý²»Ò»ÑùÄã¾ÍµÃÓÃÆäËü·½·¨ÁË.
http://www.csdn.net/Develop/Read_Article.asp?Id=20892
ÖÐÒ»ÑùÓнéÉÜ.
3)¿ÉÄÜÓÐʱºò´ó¼Ò»áÕâÑùµÄÓô¦..¾ÍÊÇÄãµã»÷µ¼ÈëÊý¾ÝµÄButtonµÄ°´Å¥ºó..Ï£ÍûÄܵ¯³öÒ»¸öalert('Êý¾Ýµ¼ÈëÍê³É!')ÕâÑùµÄÐÅÏ¢.
ÕâÀï¾ÍµÃÓÃÁíÍâµÄ·½·¨ÁË..¿ÉÄܺܶàÈ˶¼ÖªµÀ¾ÍÊÇʹÓÃ.
Page.RegisterClientScriptBlock ();»òPage.RegisterStartupScript();
ÕâÁ½Ò»¹¦ÄÜÉÏÏà²î²»ÊǺܴó...ÇÒÅäºÏ.Page.IsClientScriptBlockRegistered()»òPage.IsStartupScriptRegistered();À´Ê¹ÓõÄ
string scriptStr="<script language=javasciprt> alert('Êý¾Ýµ¼·ÅÒÑÍê³É')</"
sciprtStr+="sciprt>";
Page.RegisterStartupScript("alert1",sciprtStr);
¾ÍOkÁË.
¾Ý˵Page.RegisterClientScriptBlock ();±ÈPage.RegisterStartupScript();ºÃ..
µ«ÎÒ²»ÖªµÀÔÒò£¬ÄÄλÄÜ˵һÏÂ×îºÃÀ².
Ïà¹ØÎĵµ£º
±¾ÌùÀ´×ÔZDNetChinaÖÐÎÄÉçÇø http://bbs.zdnet.com.cn/
±¾ÌùµØÖ·£ºhttp://bbs.zdnet.com.cn/viewthread.php?tid=108315
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñé£¬Ìø¹ýÒÔÏÂÕâÁ½²½£º
¡¡¡¡µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄǰÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇ ......
using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Timers;
using System.Data;
using System.Data.SqlClient;
namespace SMS_joke
{
/// <summary>
/// Global µÄժҪ˵Ã÷¡£
/// </summary>
public class ......
Õû¸öSQLºÍAsp.net(vb.net)Ò»Æð´ò°üµÄÈ«¹ý³ÌдһÏ¡£
Ò».×¼±¸±ØÒªµÄÎļþ
1. SQL½Å±¾Îļþ£¬Éú³ÉÒÔºó°²×°¹ý³ÌÖÐÐèÒªµÄ±íºÍ´æ´¢¹ý³ÌµÈµÈ£»
Éú³ÉÖ®ºó£¬¾ÍÔÝʱ°ÑËüÃüÃûΪdb.sql(×¢Òâ´óСд)
2.LisenceFile.rtfµÄ°²×°Îļþ£¬ÒòΪÎÒµÄϵͳÊǸöÈ˵쬶øÇÒfreeµÄ£¬ËùÒÔ¾ÍûÓÐ×ö¡£Õâ¸öÒÔºóÒ²ÊÇÒªÓõ½µÄ¡£
¶þ.ÔÚ×Ô¼ºÏÖÓеÄÏîÄ¿Àïà ......
ASP.NET(C#)·µ»ØÉÏÒ»Ò³(ºóÍË)´úÂë
2008-08-10 10:32
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ViewState["BackUrl"] = Request.UrlReferrer.ToString();
}
}
/// <s ......