在msgbox中显示数据 [英] Displaying data in msgbox

查看:106
本文介绍了在msgbox中显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview,在gridview中有未检查的按钮。

i想要只显示msgbox中的选定项目..我该怎么办?

i have one gridview , there is check unchecked button in gridview.
i want to displays only selected items in msgbox.. how should i?

推荐答案

你可以从这个例子中得到一些想法



http://www.dotnetspider.com/forum/312778-Alert-Message-Box-show-Selected-Grid-value-name -alert-box.aspx [ ^ ]
you can get some ideas from this example

http://www.dotnetspider.com/forum/312778-Alert-Message-Box-show-Selected-Grid-value-name-alert-box.aspx[^]


您好,



< a href =http://www.ezzylearning.com/tutorial.aspx?tid=5187857>

Clicke me [ ^ ]

http://csharpdotnetfreak.blogspot.com/2009/08/checkall-checkbox-gridview-aspnet.html [ ^ ]





然后使用datarow.findcontrol()方法从gridview获取数据。将已检查的数据保存在datatable中。然后再创建一个带有Gridview的面板,并将该数据表数据填充到gridview。



执行此操作使用模型弹出扩展器后,您可以将面板显示为POPUp。 br $>




一切顺利......
Hi,


Clicke me
[^]
http://csharpdotnetfreak.blogspot.com/2009/08/checkall-checkbox-gridview-aspnet.html[^]


Then after getting the data from the gridview by using the datarow.findcontrol() method. save the checked data in datatable . Then create a one more Panel with Gridview and fill that datatable data to gridview.

After doing this Using Model Pop Up extender you can display the panel as a POPUp.


All the best....


ClientScript.RegisterStartupScript(this.GetType() ,警报,警报(''消息存储成功......'');,真实);



int stock = 10;

ScriptManager.RegisterClientScriptBlock(Page,this.GetType(),myscript,alert(''Available.Available stock:+ stock.ToString()+'');,true);





Kishor Makwana

软件工程师

Insight Softech

www.insightsoftech.com
ClientScript.RegisterStartupScript(this.GetType(), "Alert", "alert(''Message stored successfully...'');", true);

int stock=10;
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "myscript", "alert(''Available.Available stock : " + stock.ToString() + "'');", true);


Kishor Makwana
Software Engineer
Insight Softech
www.insightsoftech.com


这篇关于在msgbox中显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆