locked
Popups in dynamic data RRS feed

  • Question

  • User1410850330 posted

    I am using dynamic data 4.0.

    I am displaying Employee table  by using dynamic data.

    Employee  table contains emailid   as  one of the fiedls.

    On clicking on that mail  id  a popup  window have to be opened   to send mail.

    How to  implement  this

    Wednesday, February 2, 2011 3:46 AM

Answers

  • User-330204900 posted

     there are two ways you can do this;

    1. just use the mailto: prefix <a href="mailto:astark1@unl.edu"> in the link this will fire off the local e-mail client
    2. use the AJAX popup extender from the Ajax Control  Toolkit to popup a form and then in the code behind send the e-mail.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 2, 2011 9:55 AM

All replies

  • User-330204900 posted

     there are two ways you can do this;

    1. just use the mailto: prefix <a href="mailto:astark1@unl.edu"> in the link this will fire off the local e-mail client
    2. use the AJAX popup extender from the Ajax Control  Toolkit to popup a form and then in the code behind send the e-mail.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 2, 2011 9:55 AM
  • User3866881 posted

    My addition to MVP:

    MVP is really right. I think you can make a self-made dynamic Control of your own. with something like <a href='BindingEmail Field'>Click Here to Email</a> 

    Thursday, February 3, 2011 2:07 AM
  • User-526354650 posted

    This is already implemented by the EmailAddress.aspx field template provided by Dynamic Data. All you need to do is apply the following attribute to the emailid property in your model.

    [DataType(DataType.EmailAddress)] 

    Sunday, February 13, 2011 3:21 PM
  • User-330204900 posted

    Thanks Oleg, I'd forgot about that [:)] 

    Monday, February 14, 2011 4:44 AM