Hi there.
I'm trying to get radAlert running - with no afford until now. I read the KB-Article of radalert in CodeBehind but that didn't work with my scenario:
It's a simple Emailsystem. There are multiple possible attachments which are shown as links:
Finally: Here is the event-handler:
Nothing happens here. :(
The event-handler is entered, but I got no alert-Window. BTW: A solution would also be if the Handler only is entered when an radConform-Window was confirmed true.
Any ideas?
I'm trying to get radAlert running - with no afford until now. I read the KB-Article of radalert in CodeBehind but that didn't work with my scenario:
It's a simple Emailsystem. There are multiple possible attachments which are shown as links:
foreach (EmailContainerAttachment att in _currentEmail.Attachments) |
{ |
int attId = att.Id; |
LinkButton attTxt = new LinkButton(); |
attTxt.ID = string.Format("lnkAttachment[{0}]", attId); |
attTxt.Text = att.FileName; |
attTxt.Click += new EventHandler(openAttachment_click); |
txtMailAttachments.Controls.Add(attTxt); |
} |
} |
Finally: Here is the event-handler:
void openAttachment_click(object sender, EventArgs e) |
{ |
string scriptstring = "radalert('Welcome to Rad<b>window</b>!', 330, 210);"; |
ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true); |
// throw new NotImplementedException(); |
} |
Nothing happens here. :(
The event-handler is entered, but I got no alert-Window. BTW: A solution would also be if the Handler only is entered when an radConform-Window was confirmed true.
Any ideas?