iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a grid with 2 buttons in it, which fire on the server side. How do I determine WHICH button was clicked?
Hello,Thank you for your reply.Here’s I attached a simple WebGrid sample that perhaps similar with your current scenario.This sample binds to access data source (Northwind.mdb and Shippers table) and then I add two column that have ColumnType=”Button”.I also add an example validation code in OnButtonClick server side event. Here’s the code:
protected void WebGrid1_ButtonClick(object sender, ISNet.WebUI.WebGrid.ButtonEventArgs e){ if(e.Column.Name == "colEdit") System.Windows.Forms.MessageBox.Show("Edit"); else if(e.Column.Name == "colDelete") System.Windows.Forms.MessageBox.Show("Delete"); else System.Windows.Forms.MessageBox.Show("Other"); }
Please kindly have review on the sample to see the result.Thank you.Regards,Hans.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname