Hi,
I have many problems to build my ImageManager and make one Button_Click server side in the same action. To lauch the Image Manager I use one classical javascript like :
And the constructor server side. My problem is that I need to lauch another action server side with the button_Click event. I have tried changing the single button to one asp:button runat server and add the javascript with one attributes.add, but in this case the "<%= %>" are not well interpreted.
I have many problems to build my ImageManager and make one Button_Click server side in the same action. To lauch the Image Manager I use one classical javascript like :
<script type="text/javascript"> |
var currentTextBoxID; |
function ImageManagerFunction(sender, args) |
{ |
var selectedItem = args.SelectedItem; |
var resultImageObject = args.Result; |
var txt = $get(currentTextBoxID); |
txt.value = selectedItem.getPath(); |
} |
</script> |
<asp:TextBox ID="Linkthumb4" runat="server"></asp:TextBox> |
<telerik:dialogopener runat="server" id="DialogOpener1" > |
</telerik:dialogopener> |
<button onclick="currentTextBoxID='<%= Linkthumb4.ClientID %>';$find('<%= DialogOpener1.ClientID %>').open('ImageManager');return false;">Select</button> |
And the constructor server side. My problem is that I need to lauch another action server side with the button_Click event. I have tried changing the single button to one asp:button runat server and add the javascript with one attributes.add, but in this case the "<%= %>" are not well interpreted.
<
asp:Button ID="Action" runat="server" Text="Select" Width="60px"/>
script.
in addition..
function
lauch()
{
currentTextBoxID=$get(
'Linkthumb4'); NO working well to search the Linkthumb4.Client ID
$find($get(
'DialogOpener1')).open('ImageManager'); NO working well get DialogOpener1.ClientID
}
codebehindAction.Attributes.Add(
"onClick", "lauch();return false;"); added server side to add after my code
...mycode
Someone have one solution to build completly this ImageManager server side or to attach one complementary action server side to asp:button without postback event.
Thanks.