下拉列表框问题C#Web应用程序 [英] Drop Down list box problem C# web application

查看:121
本文介绍了下拉列表框问题C#Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,在其中一个下拉列表框中的Web窗体上,我正在加载一个产品名称,该产品名称与其包装尺寸以"="字符串联在一起.选择产品之后,在其selectedindex chage事件中,我拆分了产品,并在一个文本框中显示了产品名称,在另一个文本框中显示了数据包大小,但是每当我从丢失的下拉列表"框中选择产品名称时,我的网页就会挂出几秒钟,在下面的页面中,该消息显示了一些消息,表示正在上传(29%),并且该消息最多处理100%,然后重新加载页面,由于该用户感到恼火,所以idont发生了什么

所以请帮忙为什么会发生

以下是下拉列表框的代码

i am developing a web application in which on one of my web form in a dropdown list box i am loading a product names concatenated with its packing size by "=" char. after selecting the product then on its selectedindex chage event i split the product and display the product name in one text box and packet size in another textbox but whenever i select product name from drop down lost box , my web page hangs out for few seconds and in below it shows some message as uploading(29%) and it process up to 100% and then reload the pages, idont under stand what happen, because of that user gets irritated

so please help why this happen

below is the code of dropdown list box

string s = ddlProduct.Text;
string[] words = s.Split('=');
if (words.Length > 0)
{
txtProduct.Text = words[0].ToString();
txtPack.Text = words[1].ToString();
}


比预先提前


thans in advance

推荐答案

它显然表明是性能问题.不确定如何从产品名称下拉列表中拆分和加载数据.建议将这些过滤器逻辑移至后端微调的存储过程.当然,它将改善您的应用程序的性能.
It clearly indicates as performace issue. Not sure how you are splitting and loading the data from product name dropdown. It is advisable to move these filter logic to back end fine tuned stored procedure. Surely, it will improve the performance of your application.


这篇关于下拉列表框问题C#Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆