Free Support Forum - aspose.com

WebWorksheets´s name

Hello,

Is there any client side script, where I can get the name of active´s webworksheet?

Thank you!!

Hi,

Thanks for considering Aspose.

May the following code help you for your need:

In Page_Load event handler you may add a line:
E.g.,
if (!IsPostBack)
{
.
.
.
GridWeb1.Attributes["actsheet"] = GridWeb1.WebWorksheets.ActiveSheet.Name;
}

And in Html source code, please set the client side attribute:
E.g.,
<agw:gridweb id="GridWeb1".........................OnSubmitClientFunction="onSubmit"......


and here it is the javascript function, you may place it in .... tags



Thank you.