Features


Friday, September 19, 2008

Message box on vb.net

This is just sample messagebox code using vb.net language. I place this in the onclick button and prompt it during save. the code looks like this one.


Dim rstResult As DialogResult

rstResult = MessageBox.Show("Are you sure want to update?", _
"Business Card", _
MessageBoxButtons.YesNo, _
MessageBoxIcon.Question)

If rstResult = DialogResult.Yes Then
// do some action here. is the user selected Yes and nothing is no.
End If

2 comments:

Anonymous said...

kani parbs kung gusto nimo ang page lang jud EG (default.aspx)

string pagename = System.IO.Path.GetFileName(Request.ServerVariables["SCRIPT_NAME"]);

Anonymous said...

Yep. wow salamat sa additional.. wala man ka name oi.. hehehe.