asp.net中的“通知"窗口 [英] Notifiaction window in asp.net

查看:76
本文介绍了asp.net中的“通知"窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

专家,

在我的主页上,我使用listview逐一显示评论.

在列表视图中,每个通讯员都位于链接按钮上,并且其关联的 commentid 保留在命令参数中.

EX

Hi Expert,

On my home page i am showing comments one by one using listview.

In listview each commants is on link button, and its assocaited commentid kept in command argument.

EX

<ItemTemplate>
     <tr class="recentTr" >
           <td><asp:LinkButton ID="inqID" runat="server" CommandName="select" Text='<%# Bind("company")%>' CommandArgument='<%# Bind("commID")%>' ></asp:LinkButton></td>
                                   </tr>
                               </ItemTemplate>




当用户单击链接按钮时,我将显示带有注释的弹出窗口,这取决于从命令参数中选择的注释ID.


字符串url ="inquiry/inquiry_reminder_update1.aspx";
字符串fullURL ="window.open(""+ url +"'',``_blank'',``height = auto,width = 420,status = 0,toolbar = no,menubar = no,location = no,滚动条= 0,可调整大小= 0,最大化= 1,最小化=否,标题栏=否'');;
ScriptManager.RegisterStartupScript(this,typeof(string),"OPEN_WINDOW",fullURL,true);


这将打开单独的窗口.

但是现在我使用 AjaxToolKit:modalPopupExtender

它看起来不错,但不能在服务器端运行.而且我已经在服务器端为该链接按钮编写了代码

如何从客户端的命令参数中查找值?

有任何建议.

我的目标是显示通知窗口以显示适当的评论.
请事先帮助我............




when user click the linkbutton i am displaying popup window with comments depends upon selected comment id from command argument.


string url = "inquiry/inquiry_reminder_update1.aspx";
string fullURL = "window.open(''" + url + "'', ''_blank'', ''height=auto,width=420,status=0,toolbar=no,menubar=no,location=no,scrollbars=0,resizable=0,maximize=1,minimize=no,titlebar=no'' );";
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", fullURL, true);


This open separate window.

But now i use AjaxToolKit:modalPopupExtender

Its looking nice but its not working on server side. and i have write code in server side for that link button

How to find value from command argument in client side?

Any suggestion.

my goal is to display notification window for appropriate comment.

Please help me thanks in advance............

推荐答案

扔掉AjaxToolkit并使用jQuery.如果您必须使用可怕的MS库(他们不再告诉人们使用AFAIK),那么您需要定义它在服务器端不起作用"并发布有问题的代码(如果需要)帮助.为了从客户端的命令争论中获取价值,我将使用jquery进行AJAX调用.您的另一种选择是将所有可能的值发送给客户端,以便可以在本地查找它们-不理想.
Throw away the AjaxToolkit and use jQuery. If you must use the horrible MS library ( which they are no longer telling people to use AFAIK ), then you need to define ''it''s not working on the server side'' and post the code in question, if you want help. To get a value from the command arguement on the client side, I''d make an AJAX call using jquery. Your other option is to send all the possible values to the client so they can be looked up locally - not ideal.


这篇关于asp.net中的“通知"窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆