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 user grid_InitializeDataSource function to do something,
string departmentId = Request.Form["hid_DepartmentId"]; string performanceCheckId = Request.Form["hid_PerformanceCheckId"]; string employeeNumber = Request.Form["hid_EmployeeNumber"]; string performanceIds = Request.Form["hid_PerformanceIds"]; string button_click = Request.Form["hid_button_click"]; // 先处理数据 if (!string.IsNullOrEmpty(button_click)) { string strReturn = SaveIndividualDepartmentPerformance(button_click, String2ArrayList(performanceIds)); hid_save_message.Value = "12345"; } DataSet dst = new DataSet(); Performance performance = new Performance(); performance.FillPerformanceByDepartmentId(dst, departmentId, performanceCheckId, employeeNumber); e.DataSource = dst;
i want to get "12345" by OnAfterResponseProcess function in client, how can i do? OnAfterResponseProcess function like the this:
function wg_performance_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject) { if (document.all["hid_button_click"].value != '') { EnableControls(); document.all["hid_button_click"].value = ''; var statusLabel = document.getElementById("save_message"); var v_hid_save_message = document.getElementById("hid_save_message"); if (v_hid_save_message.value == '') { statusLabel.innerHTML = '设定成功!'; statusLabel.className = 'clsSucceed'; } else { statusLabel.innerHTML = v_hid_save_message.value; statusLabel.className = 'clsFailed'; } v_hid_save_message.value = ''; } }
thanks
Hello Roger,
Can I know why do you need to get "12345" at OnAfterResponseProcess event? I think, It is a little weird that you set the value from InitializeDataSource event. Normally, this event is used to bind WebGrid. Perhaps, you can let us know more specific about your scenario.
Regards,Handy
i found way to get the information by InitializePostBack event using InvokeScript functon to execite client javascript code, thanks!
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