English 中文(简体)
无法在按支离破碎分类时获得控制价值
原标题:Not able to access control value when serializing by jquery

我遇到一个非常奇怪的问题。 我的一位意见是,我正在执行尸体解剖。 在哪里使用jquery序列izer。 此外,我还利用了定期互换职能的时间。 该职能采用亚克斯电话(邮政方法),并将序列号星号发送服务器。 在服务器上,i 记录表格价值,储存在数据库中。

页: 1 曾使用不光彩的网络编辑控制。 插座机首次包括编辑的价值,但次日机再次将形式序列化,然后包括编辑内容。 回答非常奇怪。 下面是样本代码。

timerfunction() {
    var str = $("#wrapper input,select,textarea,MainContent_USCWebHtmlEditor_t_a,MainContent_USCWebHtmlEditor_tw").not( :button ).serialize();
    $.ajax({
      type: "POST",
      url: "<%= GetPageUrl() %>?autosave=true",
      data: str,
      success: function (msg) {
        ProcessPostAutosave(msg);
      }
    });
}
问题回答

MainContent_USCWebHtmlEditor_t_a 和MainContent_USCWebHtmlEditor_tw 错误选择

如果是这些组成部分的背书,请在它们课前或课时添加<条码>#。

还铭记:在<代码>#wrapper内,你填充了<代码><input>内的所有其他内容,也将从#wrapper外移。

如果你想解决你可以做的事的话

var context = $("#wrapper")
var str = $("input,select,textarea", context).not( :button ).serialize();




相关问题
Choosing the right subclass to instantiate programmatically

Ok, the context is some serialization / deserialization code that will parse a byte stream into an object representation that s easier to work with (and vice-versa). Here s a simplified example ...

WCF Problem Sending Object To Client

Background Converting from using .Net Remoting to WCF. Most of the methods on the WCF server are working fine, but ran into one that isn t working today. This is the service contract: [...

WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

deserialize the XML Document --- Need Help

I am using the below code snippet now to deserialize the XML document ... [WebMethod] public XmlDocument OrderDocument(XmlDocument xmlDoc) { XmlSerializer serializer = new XmlSerializer(typeof(...

How do I serialize a child class?

how do I include the serialized data from a child class where both impliment iserializeable? Class A Implements ISerializable dim _B as new B Class B Implements ISerializable ...

WCF: Serialize complex objects with read-only members

Looking for some guidance on a WCF service I’m prototyping. I have a WCF service hosted in IIS that will pass data to my clients. I have a separate shared assembly that contains all my business ...

Long/multiple SQL queries vs Serialization

I m trying to improve the performance of my web app where a page does a long query to pull data from different tables on a database. It pulls invoice data with multiple item lines, invoice status, and ...

热门标签