S
SilentCry
i have a solution that contains 2 projects - a class library project for my
composite control and a web project i use to test the control. that is i use
default.aspx as a container for the control which i add via the toolbar in
design mode.
my composite control has 2 buttons on it both of which i can trap the click
event of via the OnBubbleEvent handler (overriden). this all takes place
within the scope of the composite control code. one of the buttons does a
save of a textboxes content to a file on the client side but the code i'm
using (below) can only be placed in default.aspx not in the control. also, i
only want to do this when the button is clicked..
Response.ContentType = "application/xml";
Response.RedirectLocation = SaveFileName;
Response.AddHeader("Content-Disposition",
"attachment;filename=\"" + SaveFileName + "\"");
Response.Write(e.XML);
Response.End();
so basically i need to know how to bubble or broadcast the click event of
the Save button up to the containing page. being that the control itself is
in a different project than the page, i can't just use the name of the pages
handler/method in the control project because it's not recognized.
any ideas? or maybe there's a better way to do this?
composite control and a web project i use to test the control. that is i use
default.aspx as a container for the control which i add via the toolbar in
design mode.
my composite control has 2 buttons on it both of which i can trap the click
event of via the OnBubbleEvent handler (overriden). this all takes place
within the scope of the composite control code. one of the buttons does a
save of a textboxes content to a file on the client side but the code i'm
using (below) can only be placed in default.aspx not in the control. also, i
only want to do this when the button is clicked..
Response.ContentType = "application/xml";
Response.RedirectLocation = SaveFileName;
Response.AddHeader("Content-Disposition",
"attachment;filename=\"" + SaveFileName + "\"");
Response.Write(e.XML);
Response.End();
so basically i need to know how to bubble or broadcast the click event of
the Save button up to the containing page. being that the control itself is
in a different project than the page, i can't just use the name of the pages
handler/method in the control project because it's not recognized.
any ideas? or maybe there's a better way to do this?