Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void MakeUploadButton(attachment a, PlaceHolder ph)
- {
- LinkButton lb = new LinkButton()
- {
- Text = "Upload New " + a.attachment_type.type_name,
- CssClass = "button right",
- ID = "lb" + a.attachment_type.file_tag,
- CommandArgument = a.attachment_type_id.ToString(),
- CommandName = a.attachment_type.type_name,
- CausesValidation = false
- };
- lb.Click += new EventHandler(showModalPopup);
- lb.DataBind();
- ph.Controls.Add(lb);
- }
- Protected Sub Page_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- If Page.IsPostBack Then
- Dim lb as ListButton = TryCast(Page.FindControl("IDOfControl"), LinkButton)
- lb.Click += new EventHandler(showModalPopup);
- End If
- End Sub
Add Comment
Please, Sign In to add comment