AdamSpattam
Technical User
newbie - how do you call a button_click event from another method.
I am trying to do a crosspage post back (Cs and asp.net 3.5) . in the wired up SelectedIndexChanged() event of a dropdown list, i want to call a button click event that already has the code i want in it. well basically it is a work around because this web control has the UrlPostBack attribute that goes in its asp tag and the dropdown list does not, so want on selectedIndexChanged() to call btnCrossPagePostback_OnClick like i used to do in vb6.
In either case, i will need to know how to call a controls event from a method in C# if it is possible.
thanks In Advance
I am trying to do a crosspage post back (Cs and asp.net 3.5) . in the wired up SelectedIndexChanged() event of a dropdown list, i want to call a button click event that already has the code i want in it. well basically it is a work around because this web control has the UrlPostBack attribute that goes in its asp tag and the dropdown list does not, so want on selectedIndexChanged() to call btnCrossPagePostback_OnClick like i used to do in vb6.
In either case, i will need to know how to call a controls event from a method in C# if it is possible.
thanks In Advance