问题描述
我在Visual Studio 2012中开发了一个使用devExpress 2012控件的c#Web应用程序。用户捕获信息并从devexpress ASPxDateEdit中选择日期,保存信息,并在另一个Web表单的gridview上显示。更新日期时,用户点击gridview行,并使用查询字符串填充以前在devexpress ASPxDateEdit上捕获的日期数据,如下所示:
string TrainingStartDate = grid.GetRowValuesByKeyValue(id, TrainingStartDate)的ToString();
Response.Redirect( ExistingCampaign.aspx?EmployeeID = + EmployeeID CampaignName = + CampaignID + & NoOfAgentsRequired = + NoOfAgentsRequired + & TrainingStartDate = + TrainingStartDate);
以下代码是在接收数据的ExistingCampaign.aspx页面上加载的:
string EmployeeID = Request.QueryString [ EmployeeID 跨度>];
string CampaignID = Request.QueryString [ CAMPAIGNNAME跨度>];
string NoOfAgentsRequired = Request.QueryString [ NoOfAgentsRequired跨度>];
string TrainingStartDate = Request.QueryString [ TrainingStartDate跨度>];
ASPxCboCampaings.Text = CampaignID;
ASPxtxtNoAgents.Text = NoOfAgentsRequired;
ASPxDateEditTrainingStartDate.Text = TrainingStartDate;
ASPxtxtTarAgents.Text = TargetedAgentsToDate;
当我在本地运行时,devexpress ASPxDateEdit填充正常,但是当我发布应用程序时,devexpress ASPxDateEdit不会被填充。我需要包含任何参考或?在此先感谢。
I developed a c# web application in Visual Studio 2012 that uses devExpress 2012 controls. A user captures information and selects a date from a devexpress ASPxDateEdit, saves the information, and it gets displayed on a gridview on another web form. When updating the date, the user clicks on the gridview row and data including the date previously captured on the devexpress ASPxDateEdit is populated using querystring as shown below:
string TrainingStartDate = grid.GetRowValuesByKeyValue(id, "TrainingStartDate").ToString();
Response.Redirect("ExistingCampaign.aspx?EmployeeID=" + EmployeeID"CampaignName=" + CampaignID + "&NoOfAgentsRequired=" + NoOfAgentsRequired +"&TrainingStartDate=" + TrainingStartDate);
The below code is on the load of the ExistingCampaign.aspx page that receives the data:
string EmployeeID = Request.QueryString["EmployeeID"]; string CampaignID = Request.QueryString["CampaignName"]; string NoOfAgentsRequired = Request.QueryString["NoOfAgentsRequired"]; string TrainingStartDate = Request.QueryString["TrainingStartDate"]; ASPxCboCampaings.Text = CampaignID; ASPxtxtNoAgents.Text = NoOfAgentsRequired; ASPxDateEditTrainingStartDate.Text = TrainingStartDate; ASPxtxtTarAgents.Text = TargetedAgentsToDate;
When I run this locally the devexpress ASPxDateEdit is populated fine but when I publish the application the devexpress ASPxDateEdit does not get populated. Do i need to include any reference or? Thanks in advance.
这篇关于Devexpress ASPxDateEdit在发布后不会填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!