i want to dispaly the system.Windows.Forms.MessageBox in the client side computer.. i try this code but when i excute it, i is displaying in server not in the client computer how am i going to do this.
thanks in advance
![]() |
0 |
![]() |
What kind of application are we talking about? Where is the code located?
Brian
Brian
"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
![]() |
0 |
![]() |
like this im using asp.net i want to execute asp.net function.
ex.
public sub save()
end sub
i want this function to be executed after the user click the yes button in message box if they want to save the record. how im going to integrate this with vbscript this function save() this code as code behind of the webform. is posibble??.
![]() |
0 |
![]() |
Yes, you can add script or call script methods within a page through:
Page.RegisterClientScriptBlock("confirm", "<script language='javascript'>script</script>")
However, the problem is that the script will need to invoke a postback. I haven't done this before. I know you can register postback events for controls... Mainly because you have to postback to access the server code so you can invoke the save method.
Brian
Brian
"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
![]() |
0 |
![]() |
yah know how to execute the script in webform but the problem is does this script can execute the function save in webform??? how??.
![]() |
0 |
![]() |
No I don't, and I'm not sure it is possible through a confirm statement... Maybe if you wrote a function that if the user confirms your request, it submits the form, which does the postback, and you can recognize that somehow. I can envision this, but without having done it, I can't honestly figure it out......
Most of the approaches taken were like for a delete button in a datagrid.
Brian
Brian
"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
![]() |
0 |
![]() |