本文介绍了标签在填充时不显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我遇到最奇怪的问题,当使用modalpopup中的确定"按钮填充标签时,我的标签没有显示任何值.当我使用断点进行检查时,我发现标签已被填充,但该值未显示.并且单击确定"或取消"按钮时,弹出窗口不会消失,只是按照设计停靠在窗体上,但是当我按下目标控件时,它会再次弹出
Hi
I''m having the weirdest problem my label is not showing any values when populated by the ok button in a modalpopup. when I use a breakpoint to check I find that the label is being populated but the value just does not show. and the popup does not disappear when ok or cancel button is clicked it merely gets docked on the form as per design but does pop up again when I hit the target control
protected void btnAddSave_Click(object sender, EventArgs e)
{
BusinessLogicLayer.QuoteProduct objex = new BusinessLogicLayer.QuoteProduct();
objex.propProdId = txtProdId.Text;
objex.propQouteNo = Convert.ToInt32(lblQouteNo.Text);
objex.propProdDesc = txtProdDesc.Text;
objex.propFinish = txtFinish.Text;
objex.propProdQty = Convert.ToInt32(txtQty.Text);
objex.propProdPrice = Convert.ToDecimal(txtPrice.Text);
objex.SaveQProd();
if ( lblFullAmt.Text == string.Empty)
{
Famt = Convert.ToDecimal(txtPrice.Text);
}
else
{
Famt = Convert.ToDecimal(lblFullAmt.Text) + Convert.ToDecimal(txtPrice.Text);
}
lblFullAmt.Text = Convert.ToString(Famt * Convert.ToInt32(txtQty.Text)); //it populates fine though
LblDep.Text = Convert.ToString(Convert.ToDecimal(lblFullAmt.Text) / 2);
txtProdlist.Text = txtProdlist.Text + "\r\n" + lblProdIDmod.Text + " " + txtProdDesc.Text + " " + txtQty.Text + " " + txtFinish.Text + " " + txtPrice.Text;
}
推荐答案
这篇关于标签在填充时不显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!