嗨,大家好,我想让我的用户上传大尺寸的文件,所以我将我的web.config更改为:
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=" >
<section name="delegatezanjan.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken="/>
</assemblies>
</compilation>
<httpRuntime/>
<httpRuntime maxRequestLength="200000" executionTimeout="99999"/>
</system.web>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="smsSendWebServiceSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://aryanmsg.ir/smsSendWebService.asmx"
binding="basicHttpBinding" bindingConfiguration="smsSendWebServiceSoap"
contract="ServiceReference1.smsSendWebServiceSoap" name="smsSendWebServiceSoap" />
</client>
</system.serviceModel>
<applicationSettings>
<delegatezanjan.Properties.Settings>
<setting name="delegatezanjan_ir_smsline_webservice_SMS_WebServer_Service"
serializeAs="String">
<value></value>
</setting>
</delegatezanjan.Properties.Settings>
</applicationSettings>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
在添加此部分之前,我的代码已经完成,但在添加最后3行后,我的网站返回500内部服务器错误您正在查找的资源存在问题,并且无法显示.
我有一个名为 Factor 的类,其属性为 Id、Explain、Date、Amount 和...。我有这个“Factor”类的列表。
现在我想根据 Factor 对象的一个属性(按日期)对列表进行排序
public class Factor
{
public DateTime? date { set; get; }
public string InnovoiceId { set; get; }
public string explain { set; get; }
public Int64? bedehkar { set; get; }
public Int64? bestankar { set; get; }
public Int64? mande { set; get; }
}
List<Factor> factors=new List<Factor>();
Run Code Online (Sandbox Code Playgroud)
我怎样才能在 C# 中做到这一点?
我想在C#中定义一个类.我找到了这两种方法:
方法1:
public class customer
{
private string _name ;
private string _family;
public string Name
{
get { return __name; }
set { if(value=="")message(" ??? ??????? ?? ???? ???? ");
_name= value; }
}
public string Family
{
get { return _family; }
set { if(value=="")message(" ??? ??????? ?? ???? ???? ");
_family= value; }
}
public void AddCustomer()
{
add _name and _family to database
}
}
Run Code Online (Sandbox Code Playgroud)
方法2:
public class customer
{
public void AddCustomer(string name ,string family) …Run Code Online (Sandbox Code Playgroud)