是否有可能根据从数据库中获取的值来打印按钮?请紧急....... [英] is there any possibility to print a button according to the value getting from the database ? please urgent..........

查看:30
本文介绍了是否有可能根据从数据库中获取的值来打印按钮?请紧急.......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能根据从数据库中获取的值来打印按钮? 请紧急 ..........

is there any possibility to print a button according to the value getting from the database ?????????? please urgent..........

推荐答案

圣桑蒂·萨加尔,
您的问题还不清楚,您的意思是根据从数据库中获取的值来更改按钮文本"吗?
如果是,请参见下面的代码

hi Santhi Sagar,
your question is not clear, you mean changing the button "Text" according to the value getting from the database?
if yes see the below code

protected void Page_Load(object sender, EventArgs e)
{
    changeButtonValue();
}

private void changeButtonValue()
{
    string newBtnValue = getValueFromDB(); //To get the data from database
    Button1.Text = newBtnValue;
}



如果没有,请说明情况.

谢谢.



if not please explain the scenario.

Thanks.


这篇关于是否有可能根据从数据库中获取的值来打印按钮?请紧急.......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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