如何找到Name and Assembly js asp.net文件

How do find Name and Assembly js asp.net file

本文关键字:js asp net 文件 Assembly and 何找 Name      更新时间:2023-09-26

我想要asp.net中js的活动gzip。我使用ScriptManager和以下代码:

    <asp:ScriptManager ID="ScriptManager1" runat="server">
<CompositeScript>
<Scripts>
<asp:ScriptReference  Path="~/Scripts/jquery.min.js" />
<asp:ScriptReference Name="MicrosoftAjax.debug.js" Assembly="AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.debug.js" Assembly="AjaxControlToolkit, Version=4.1.7.123, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" /> 
</Scripts>
</CompositeScript>
</asp:ScriptManager>

它正在发挥作用。但我有一个js,不知道Name和Assembly。请帮我找到这个js文件的名称和程序集。

文件:

WebResource.axd?d=qRVKOjs7_Tkijfl7uZM8g2&t=634879765642710978

摘要代码js:

function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
this.eventTarget = eventTarget;
this.eventArgument = eventArgument;
this.validation = validation;
this.validationGroup = validationGroup;
this.actionUrl = actionUrl;
this.trackFocus = trackFocus;
this.clientSubmit = clientSubmit;
}
function WebForm_DoPostBackWithOptions(options) {
var validationResult = true;
if (options.validation) {
    if (typeof(Page_ClientValidate) == 'function') {
        validationResult = Page_ClientValidate(options.validationGroup);
    }
}
if (validationResult) {
    if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
        theForm.action = options.actionUrl;
    }
    if (options.trackFocus) {
        var lastFocus = theForm.elements["__LASTFOCUS"];
        if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
            if (typeof(document.activeElement) == "undefined") {
                lastFocus.value = options.eventTarget;
            }
            else {
                var active = document.activeElement;
                if ((typeof(active) != "undefined") && (active != null)) {
                    if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
                        lastFocus.value = active.id;
                    }
                    else if (typeof(active.name) != "undefined") {
                        lastFocus.value = active.name;
                    }
                }
            }
.
.
.

显然,在最新版本的框架中没有任何内容可以压缩WebResource.axd提供的资源。你必须自己做。

好消息是其他人已经做了这项工作。请参阅此处:

http://madskristensen.net/post/Optimize-WebResourceaxd-and-ScriptResourceaxd.aspx