Quote:
Originally Posted by jimibt
R - i think you'll manage it just fine.
good luck on the final stages of your implementation, this can be the most difficult stage (the 80/20 rule - i.e. 80 of your effort is concentrated in the last 20% of the project - yikes!!)
cheers for now...
|
Oh no! ..
Yes, I'm finding the last chapter on deploying the project a little confusing but I'll get there.
I'm back tracking with this other issue right now so put that on hold a bit longer.
I found that if I do this:
<asp:HyperLink ID="lnkAddedBy" runat="server" Text='<%# Eval("AddedBy") %>'
NavigateUrl='<%# "mailto:" + Eval("
AddedBy") %>' />
on <asp:Literal ID="lblAddedDate" runat="server" Text='<%# Eval("AddedDate", "{0:f}") %>' />
(instead of "
AddedByEmail" ) then if you click on the user's name which is a hyperlink, it still opens up the outlook e-mail but shows no email address. So that's cool.
But I'd like to allow people to choose whether to allow their email addresses to be accessed if they don't mind. So this is what I'm trying to figure how to do but so far haven't figured it out. This is left over from the little bit of visual basic I learned some years ago which does me no good these days

:
protected void ckEmailOk_CheckedChanged(object sender, EventArgs e)
{
if (ckEmailOk.Checked ==
true)
{
<asp:HyperLink ID="lnkAddedBy" runat="server" Text='<%# Eval("AddedBy") %>'
NavigateUrl='<%# "mailto:" + Eval("
AddedByEmail") %>' />
on <asp:Literal ID="lblAddedDate" runat="server" Text='<%# Eval("AddedDate", "{0:f}") %>' />
}
else
{
<asp:HyperLink ID="lnkAddedBy" runat="server" Text='<%# Eval("AddedBy") %>'
NavigateUrl='<%# "mailto:" + Eval(
"AddedBy") %>' />
on <asp:Literal ID="lblAddedDate" runat="server" Text='<%# Eval("AddedDate", "{0:f}") %>' />
}
}
Any suggestions would be appreciated! (I still have a hard time figuring how to work the code behind with the aspx page)
Rachel