Menu

#61 Post back from client function

open
nobody
None
5
2010-01-08
2010-01-08
No

Hi. i am using NUnitASP 2.0 and found some strange behaviour when trying do post back for to server from client functiong inside <a> tag. For example, I have
such expression <a id="ctrl_DriveList_lnk_ctrl_DriveList_hard_drive_item_1" class="drive_item" title="Select to view content" onclick="__doPostBack('ctrl_DriveList', (xGetElementByID('ctrl_DriveList_ddlSystem')).options[(xGetElementByID('ctrl_DriveList_ddlSystem')).options.selectedIndex].value + ',' + 'D:');" onmouseout="setLinkStyle('ctrl_DriveList_hard_drive_item_1', 'drive_item')" onmouseover="setLinkStyle('ctrl_DriveList_hard_drive_item_1', 'drive_item_hover')" href="#">.
Then I pass parameter onclick to Form.Postback("__doPostBack('ctrl_DriveList', (xGetElementByID('ctrl_DriveList_ddlSystem')).options[(xGetElementByID('ctrl_DriveList_ddlSystem')).options.selectedIndex].value + ',' + 'D:');"). After parsing such string I have very strange target and argument. I supposed that regular expressions for getting this values not correct.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB