CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 no window.open with ASP:BUTTON

Print topic Send  topic

Author Message
mike2
Posted: 10/29/2004, 1:57 AM

hi,
i'm trying to make an window.open or an alert with an <ASP:Button>
but it not works?
i'm adding an ONCLICK Attribute in the beforeshow event....but there is no action in the page...the button is standing alone..he is in no repeater or something else...

thanks for help
Stan
Posted: 11/02/2004, 12:20 AM

You can use CCS OnClick client event for this task (Events tab of the property window > Client > On Click)
mike2
Posted: 11/02/2004, 2:13 AM

Quote Stan:
You can use CCS OnClick client event for this task (Events tab of the property window > Client > On Click)

i know this, but this doesn't work anymore or it only works if i push the Button two times!!

mike
Stan
Posted: 11/02/2004, 2:38 AM

Mike

Could you provide code, which you use in the OnClick event?

Stan
mike2
Posted: 11/03/2004, 1:02 AM

Quote Stan:
Mike

Could you provide code, which you use in the OnClick event?

Stan

hi stan,

the ccs javascript code is here:
**********************************
<script language="JavaScript">

//End Include JSFunctions

//page_Button1_OnClick @49-EE34CB59
function page_Button1_OnClick()
{
var result;
//End page_Button1_OnClick

//Confirmation Message @50-CC7AB971
return confirm('testt');
//End Confirmation Message

//Close page_Button1_OnClick @49-BC33A33A
return result;
}
//End Close page_Button1_OnClick

//page_zeit_Button_Update_OnClick @24-53AEF11B
function page_zeit_Button_Update_OnClick()
{
var result;
//End page_zeit_Button_Update_OnClick

//Confirmation Message @48-BC3AFB11
return confirm('hansi');
//End Confirmation Message

//Close page_zeit_Button_Update_OnClick @24-BC33A33A
return result;
}
//End Close page_zeit_Button_Update_OnClick

//submit_forms @1-5E8A46CB
function submit_forms() {
var result = true;
return result;
}
//End submit_forms

//bind_events @1-D3E27F44
function bind_events() {
document.forms["_ctl0"].onsubmit = submit_forms;
check_and_bind('document.forms["_ctl0"].zeitButton_Update','onclick',page_zeit_Button_Update_OnClick);
check_and_bind('document.Button','onclick',page_Button1_OnClick);
forms_onload();
}
//End bind_events

window.onload = bind_events; //Assign bind_events @1-19F7B649
//End CCS script
</script>
**********************************
the Button1 doesn't work.... this button is "alone" in then page!
the Button_Update works ! ....this button is in a grid!
i need this for open window .....


thanks
mike


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.