问题
I am looking for a custom control which could enable me to call message of following type.
http://extjs.com/deploy/dev/examples/message-box/msg-box.html
Is there a control which function like a .NET desktop application messagebox?
I know, exactly similar may not be possible but main features I am looking for here is returning value of clicked button and custom value entered by user in code behind.
I have also started working on it myself, but hardly any luck so far.. any direction in this case will also be very useful.
回答1:
There is a good tutorial which could help:
Create MessageBox user control using ASP.NET and CSS
And here combining it with the AjaxControlToolkit:
ASP.NET Popup Message Box User Control
I hope this helps!
回答2:
Have you looked at the AJAX Toolkit? It doesn't do all the things you want, but it should be too hard to the extender and controls needed into a CustomControl and create your own DLL.
回答3:
use the namespace "System.Windows.Forms" by adding the reference to the solution explorer
来源:https://stackoverflow.com/questions/293697/asp-net-message-box