开发者

ASP.Net Load Data from another page

开发者 https://www.devze.com 2023-03-11 12:15 出处:网络
i am facing one problem.. I have a page which has some templates related to user.. User use this template to send email..

i am facing one problem..

I have a page which has some templates related to user..

User use this template to send email..

User can have option to save this template and then he can load the 开发者_开发问答saved templates...

What i want is on click on "Load Template" link. a new page appears which will display all the saved templates for logged in user. this page can contain grid. on select i want to close this load template page. and pass the text data back to previous page. which will display this template into text field. so that user can use saved templates.

How to do this using Asp.Net


You can do this using JavaScript, assuming the template selection window is opened with a call to window.open(). When the template is selected you can communicate and invoke methods (such as passing back the selected template ID) with code similar to this:

window.opener.templateSelected(selectedTemplateID);
window.close();

Here is information about window.opener


I believe that this may be what you're looking for. It's pretty straight forward and is in C#. It is done in .Net as opposed to client side JS.

0

精彩评论

暂无评论...
验证码 换一张
取 消