Discussion:
如何在pop up 一個messagebox?
(时间太久无法回复)
vincent
2006-02-07 09:20:27 UTC
Permalink
如標題
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
€pŠ¶ (MS MVP)
2006-02-07 10:52:02 UTC
Permalink
// add code replace with:

Response.Write("<script>alert('message');</script>");
--
============================================
Š¶©ú€€ (€pŠ¶)
Microsoft MVP for Solution Architect, SQL Server
€pŠ¶žê°T€u§@«Ç žÑšM€è®×¬[ºc®v
http://www.jcistudio.idv.tw
ŠpŒÐÃD
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
vincent
2006-02-08 01:36:16 UTC
Permalink
謝謝,感激不盡。

"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by vincent
如標題
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
johnson
2006-02-09 08:23:27 UTC
Permalink
請問小朱:
  如果我要出現一個視窗,使用者按下y 時,就往下執行Code ,如果是 n 的話,就不執行;請問要如何做呢?
感謝回答。

"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by vincent
如標題
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
€pŠ¶ (MS MVP)
2006-02-09 10:53:06 UTC
Permalink
sample:

if (!confirm('message'))
{
return;
}
else
{
... your code.
}
--
============================================
Š¶©ú€€ (€pŠ¶)
Microsoft MVP for Solution Architect, SQL Server
€pŠ¶žê°T€u§@«Ç žÑšM€è®×¬[ºc®v
http://www.jcistudio.idv.tw
œÐ°Ý€pŠ¶¡G
·PÁŠ^µª¡C
"€pŠ¶ (MS MVP)" šÓšç¡G
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
Š¶©ú€€ (€pŠ¶)
Microsoft MVP for Solution Architect, SQL Server
http://www.jcistudio.idv.tw
ŠpŒÐÃD
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
johnson
2006-02-09 11:15:27 UTC
Permalink
小朱你好:
你寫給我的,好像是Javascript的程式碼,是嗎?我想要的還是.net的code,可以嗎?





"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
if (!confirm('message'))
{
return;
}
else
{
... your code.
}
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by johnson
請問小朱:
  如果我要出現一個視窗,使用者按下y 時,就往下執行Code ,如果是 n 的話,就不執行;請問要如何做呢?
感謝回答。
"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by vincent
如標題
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
Tyson
2006-02-13 02:24:27 UTC
Permalink
if (!confirm('message'))
{
return;
}
else
{
我是利用Button將資料submin出去
或是暫存一個判斷
}

"johnson" 來函:
Post by johnson
小朱你好:
你寫給我的,好像是Javascript的程式碼,是嗎?我想要的還是.net的code,可以嗎?
"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
if (!confirm('message'))
{
return;
}
else
{
... your code.
}
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by johnson
請問小朱:
  如果我要出現一個視窗,使用者按下y 時,就往下執行Code ,如果是 n 的話,就不執行;請問要如何做呢?
感謝回答。
"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by vincent
如標題
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
johnson
2006-03-10 12:47:28 UTC
Permalink
你好:
先感謝你的回答,不過,方便請你貼上完整的程式碼嗎?

ps: 是 vb.net 的程式碼嗎?謝謝。

"Tyson" 來函:
Post by €pŠ¶ (MS MVP)
if (!confirm('message'))
{
return;
}
else
{
我是利用Button將資料submin出去
或是暫存一個判斷
}
"johnson" 來函:
Post by johnson
小朱你好:
你寫給我的,好像是Javascript的程式碼,是嗎?我想要的還是.net的code,可以嗎?
"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
if (!confirm('message'))
{
return;
}
else
{
... your code.
}
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by johnson
請問小朱:
  如果我要出現一個視窗,使用者按下y 時,就往下執行Code ,如果是 n 的話,就不執行;請問要如何做呢?
感謝回答。
"小朱 (MS MVP)" 來函:
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
朱明中 (小朱)
Microsoft MVP for Solution Architect, SQL Server
小朱資訊工作室 解決方案架構師
http://www.jcistudio.idv.tw
Post by vincent
如標題
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
璉璉
2006-03-10 15:31:11 UTC
Permalink
ASP.NET ¬OŠøªAŸ¹ºÝµ{Š¡¡A€£¯àªœ±µŠbšÏ¥ÎªÌºÝžõ¥X°T®§²°¡A©Ò¥H¥²¶·šÏ¥Î client script ¡A€pŠ¶µ¹§Aªº¬O JavaScript
©ó news:EB6A1E33-E76F-4B9C-91B2-B9A3E47C0B6F%40microsoft.com µoªí
§AŠn¡G
¥ý·PÁ§AªºŠ^µª¡A€£¹L¡A€è«KœÐ§A¶K€W§¹Ÿãªºµ{Š¡œX¶Ü¡H
ps: ¬O vb.net ªºµ{Š¡œX¶Ü¡HÁÂÁ¡C
"Tyson" šÓšç¡G
Post by €pŠ¶ (MS MVP)
if (!confirm('message'))
{
return;
}
else
{
§Ú¬O§Q¥ÎButton±Nžê®Æsubmin¥X¥h
}
"johnson" šÓšç¡G
€pŠ¶§AŠn¡G
§AŒgµ¹§Úªº¡AŠn¹³¬OJavascriptªºµ{Š¡œX¡A¬O¶Ü¡H§Ú·Q­nªºÁÙ¬O.netªºcode¡A¥i¥H¶Ü¡H
"€pŠ¶ (MS MVP)" šÓšç¡G
Post by €pŠ¶ (MS MVP)
if (!confirm('message'))
{
return;
}
else
{
... your code.
}
--
============================================
Š¶©ú€€ (€pŠ¶)
Microsoft MVP for Solution Architect, SQL Server
http://www.jcistudio.idv.tw
œÐ°Ý€pŠ¶¡G
·PÁŠ^µª¡C
"€pŠ¶ (MS MVP)" šÓšç¡G
Post by €pŠ¶ (MS MVP)
Response.Write("<script>alert('message');</script>");
--
============================================
Š¶©ú€€ (€pŠ¶)
Microsoft MVP for Solution Architect, SQL Server
http://www.jcistudio.idv.tw
ŠpŒÐÃD
protected void Button1_Click(object sender, EventArgs e)
{
//add code geere
}
--
€ô®ü¬ì§Þšt²Î¬ãµoÅçÃÒ€u§@«Ç ASP.NET Web News Reader 0.2.0 UTF-8 Beta
·s»Džs²Õ RSSºô»xµo¥¬ŽúžÕ€€ http://tlcheng.no-ip.com/News/rss2.aspx
ºô¯žŠa¹Ï http://tlcheng.no-ip.com/wwwmap.htm
¬y°ìšŸ¬x/€ôžê·œ¹B¥Î/®}ª@ºô/ªŽºÀ¹Ï/»y­µ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ­ì©lœX¡B€å³¹»P°Qœ×
--
ASPNET News http://tlcheng.no-ip.com/News/ | http://tlcheng.twbbs.org/News/
RSS 2.0 http://tlcheng.no-ip.com/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet
Loading...