小编Muh*_*tar的帖子

在64位服务器上启用应用程序池32位模式

我们已经64-bit Windows server并且需要32-bit mode在我们的网站使用的应用程序池中明确启用,因为MS Jet Engine Data Provider used to import data from Excel它不会运行.

我不确定,如果我们启用32-bit模式,我们仍然会获得64-bitServer 的优势吗?

asp.net application-pool

3
推荐指数
1
解决办法
2万
查看次数

列表框中的选定项目为空

我在列表框中有几个项目.当我选择一个项目时,我将它存储在一个字符串中以供进一步使用,但是当我显示该字符串值时,它显示为null.

以下是我的Invitee.aspx文件的代码:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Invitee.aspx.cs" Inherits="FinalProj2.Invitee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <asp:DropDownList ID="DropDownList1" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList2" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList3" runat="server">
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList4" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList5" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList6" runat="server">
        </asp:DropDownList>

    </div>
    <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="true" Height="310px" 
        onselectedindexchanged="ListBox1_SelectedIndexChanged" Width="271px">
    </asp:ListBox>
    <asp:TextBox ID="TextBox1" runat="server" Height="217px" Width="544px"></asp:TextBox>
    </form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

和Invitee.aspx.cs的代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net listbox

3
推荐指数
2
解决办法
1万
查看次数

Gridview分页无法正常工作

我有一个GridView控件,我通过c#代码填写,并希望使用这样的代码进行分页

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)     
{
 BindGrid();
 GridView1.PageIndex = e.NewPageIndex;
 GridView1.SelectedIndex = -1;
} 
Run Code Online (Sandbox Code Playgroud)

BindGrid()函数是我获取网格数据源并绑定它的地方.这一切都很好,我必须按两次才能更改页面.我该怎么做才能在一次点击后点击?

谢谢.

.net c# asp.net gridview

3
推荐指数
1
解决办法
6318
查看次数

ASP.Net下拉列表没有返回selectedindexchanged事件的索引

我有一个dropdownlist控件,其中有一个正确触发的selectedindexchanged 事件.但是,从列表中选择项目时,返回到selectedindexchanged事件的索引值不会更改; 列表框弹出列表中的第一个项目.任何帮助,将不胜感激.〜苏珊〜

ASP DROP DOWN LIST控件:

 <asp:DropDownList ID="CuisineList" runat="server" Width="100" 
    AutoPostBack = "true" onselectedindexchanged="CuisineList_SelectedIndexChanged" >
 </asp:DropDownList>
Run Code Online (Sandbox Code Playgroud)

在PAGELOAD活动中控制数据:

 protected void Page_Load(object sender, EventArgs e)
 {
    //Load drop down lists for restaurant selection

    BLgetMasterData obj = new BLgetMasterData();

    var cusineList = obj.getCuisines();
    CuisineList.DataSource = cusineList;
    CuisineList.DataBind();
    CuisineList.Items.Insert(0, "Any");
Run Code Online (Sandbox Code Playgroud)

SELECTEDINDEXCHANGEDEVENT:

   protected void CuisineList_SelectedIndexChanged(object sender, EventArgs e)
    {

        if (IsPostBack)
        {
            string def = this.CuisineList.SelectedItem.Value;
            //aLWAYS returns index '0'
        }
    }
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net drop-down-menu

3
推荐指数
1
解决办法
7143
查看次数

在chrome中,Web服务工作得很好,但在Firefox和IE中却没有

我试图调用外部Web服务,它在chrome中工作正常,但在firefox和IE中却没有.在chrome中,它返回'true',但在firefox中,它返回'0 error',这里是我的完整代码...

 <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#btnCall").click(function (event) {
            var campaignid = 1000007;
            var r_source_id = 1000008;
            var parameters = "{'CompanyName': '" + document.getElementById('txtCompanyName').value + "', 'name': '" + document.getElementById('txtName').value + "', 'title': '', 'email':'" + document.getElementById('txtEmail').value + "', 'phone':'" + document.getElementById('txtPhoneNo').value + "', 'web_url':'', 'no_of_emp':'0', 'c_Currency_id':'100', 'r_source_id':'" + r_source_id.toString() + "', 'industry_ID':'1', 'city':'', 'country_ID':'" + document.getElementById('ddlCountry').value + "', 'cur_solution':'','pur_timeline':'','comments':'', 'year_sell_erp':'2013', 'support':'', 'bpgroup_ID':'1', 'C_Campaign_ID':'" + campaignid.toString() + "', 'R_STATUS_ID':'1000033', 'C_Region_ID':'100', 'CreatedBy':'1000012', 'salesrep_id':'1000012', …
Run Code Online (Sandbox Code Playgroud)

html javascript asp.net jquery web-services

3
推荐指数
1
解决办法
5955
查看次数

ASP.NET网站在生产服务器上的性能下降

我的问题是我的ASP.NET网站在我的生产服务器上比我的开发服务器上运行速度慢.

在我的开发环境中在120ms内执行的页面需要400ms才能在服务器上执行.我使用分析器监视SQL服务器,并且在服务器上运行400ms的页面上运行的查询只需要大约50ms才能完成 - 所以我确信自己的问题不在于SQL服务器.

我的开发机器是Intel I7,内存为6GB,生产服务器是2x AMD四核,内存为16GB.

c# asp.net iis web

2
推荐指数
2
解决办法
3万
查看次数

在单个更新面板中对PostBackTrigger的ControlId属性进行多个控制

海家伙,

是否可以在单个更新面板中向PostBackTrigger的ControlId属性添加多个控件(按钮)....

asp.net ajax triggers updatepanel

2
推荐指数
1
解决办法
4604
查看次数

web的含义是无状态的,http是无状态协议?

请用简单的词语指导Web的含义是无状态的吗?

还要解释HTTP的含义是无状态协议吗?

谢谢

.net asp.net http

2
推荐指数
1
解决办法
6889
查看次数

在gridview中的数据绑定期间修改数据源行值

我有一个网格视图,我绑定数据表.我的问题是数据表有整数值因为1,2,3,4,5.我希望A,B,C,D,E在网格视图中分别绑定所有这些值.我正在使用绑定字段.我不知道在哪里修改来自数据表的数据?

.net c# asp.net gridview

2
推荐指数
1
解决办法
8182
查看次数

从excel导入数据 - .(点)列名

更新--------

我正在尝试从Excel工作表导入数据.一切都很好,除了,列名有' ."

 selectCommand.CommandText = "SELECT Date,[Meter No.] FROM [Advance EDS export$]";
Run Code Online (Sandbox Code Playgroud)

本专栏正在创建问题[Meter No.]

.net c# asp.net import excel

2
推荐指数
1
解决办法
1986
查看次数