Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question

Status
Not open for further replies.

adamdavies

Programmer
May 21, 2003
20
AU
I have a few things i seem to be stuck on, if anyone can help.

1. I have set up a panel with a yes and no button, when i click delete on the datagrid a call the panel to be visible.
It asks if i would like to continue and delete the item, if yes i want it to call
Sub DataDelete(ByVal Sender As Object, ByVal E As DataGridCommandEventArgs)
from the button event
Private Sub Yes_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Yes.ServerClick
how do i do this, i cant call datadelete from inside Yes_ServerClick.

2. If i add a new item and again click
Private Sub Submit_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Yes.ServerClick
i would like to open a new aspx page in the same page
Can open a new aspx page but not in the page using jscript

3. Need to run a batch file on the server, can create a textfile on server would then like to run a batch file to send the text file to the com port to print.

Sorry so many questions, but ive been stuck on these issues for a while.


Thanks
adam
 
Hey Adam,

Alot of posts have dealt with the "Delete Confirmation" issue, and actually a member (Alcar) has written an FAQ on it. Look for "Adding a confirmation script to a datagrid button" in the FAQ section; its much more efficient than using a panel.

Didn't really understand what you meant by "opening a page in a page".

If its not a huge text file, you shouldn't need batch files. Just use the .NET libraries to create the file, and send it to a printer (never had the need to do it, so no code to show. But I know it can be done.)

hth

D'Arcy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top