Hi there,
i'm trying to accomplish the following (however searching the net for days now, without result):
As you know you have a asp button:
<asp:Button ID="test" Text="Test" OnClick="Test_B utton_Click">
this will launch the method "Test_Button_Cl ick" on the server side. As i find the built in OS buttons ugly, i designed some new buttons myself, and it uses a table of 3 columns wide, and 1 row high. in the middle is a transparent button, only showing the text. In the left and right there are some images as background with some roundings (to make a smooth nice looking button).
The probem now is that i want to do the following:
<uc1:UserButt on ID="Test" Text="Test" OnClick="Test_B utton_Click">
but i can't get the OnClick attribute to work for the usercontrol, tried few different things that i found on the internet, and eventually it leaded me to launch javascript. So to sum it up: I have a asp button in the usercontrol, but i want to be able to pass the OnClick attribute of the usercontrol to the button. I searched for days now. If anyone can help me, please. Thanks in advance!
Kind Regards,
Nick
i'm trying to accomplish the following (however searching the net for days now, without result):
As you know you have a asp button:
<asp:Button ID="test" Text="Test" OnClick="Test_B utton_Click">
this will launch the method "Test_Button_Cl ick" on the server side. As i find the built in OS buttons ugly, i designed some new buttons myself, and it uses a table of 3 columns wide, and 1 row high. in the middle is a transparent button, only showing the text. In the left and right there are some images as background with some roundings (to make a smooth nice looking button).
The probem now is that i want to do the following:
<uc1:UserButt on ID="Test" Text="Test" OnClick="Test_B utton_Click">
but i can't get the OnClick attribute to work for the usercontrol, tried few different things that i found on the internet, and eventually it leaded me to launch javascript. So to sum it up: I have a asp button in the usercontrol, but i want to be able to pass the OnClick attribute of the usercontrol to the button. I searched for days now. If anyone can help me, please. Thanks in advance!
Kind Regards,
Nick
Comment