Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is there any possibility to print a button according to the value getting from the database ?????????? please urgent..........
Posted
Updated 21-Oct-11 2:04am
v2
Comments
Richard MacCutchan 21-Oct-11 7:57am    
What do you mean by "print a button"?
[no name] 21-Oct-11 8:04am    
Don't ask for urgent help. This is a volunteer site and people will answer on their time, not yours
_Tushar Patil 21-Oct-11 8:07am    
Please Explain Question Th-roughly......
Richard MacCutchan 21-Oct-11 12:59pm    
It's 5 hours since you posted this and you have not responded to any of our queries. That suggests to me that this is not in any way urgent.

1 solution

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

C#
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900