473,385 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

i want to open mail box

I put up this code but it does not work.

What can I do?

Expand|Select|Wrap|Line Numbers
  1. <td style='width:200px;font-size: 12px ;border:solid 1px #ddd2c7; background-color:#fcfaf7; font-family:Verdana;' >
  2.     <a href=" + d["Email"] + "></a>
  3. </td>


d["Email"] is email id retrieve from server.
Jun 5 '13 #1
1 1269
Frinavale
9,735 Expert Mod 8TB
What you want to do is print the email into the page.
I am assuming that you are using ASP.NET

Firstly, if you want to run server script from your page code, you need to wrap it in <% ... %> tags.

So, if I wanted to write something into the page I would have:
Expand|Select|Wrap|Line Numbers
  1. <td style='width:200px;font-size: 12px ;border:solid 1px #ddd2c7; background-color:#fcfaf7; font-family:Verdana;' >
  2.     <a href=" <%response.write(d["Email"])%>"></a>
  3. </td>
However, there is a shorthand syntax for printing something into the page: <%= ... %>. The following accomplishes the same thing:
Expand|Select|Wrap|Line Numbers
  1. <td style='width:200px;font-size: 12px ;border:solid 1px #ddd2c7; background-color:#fcfaf7; font-family:Verdana;' >
  2.     <a href=" <%=d["Email"]%>"></a>
  3. </td>
Now, the above code is pretty "old school".
If you are using ASP.NET Razor or even MVC, the syntax is a bit different.

Happy coding

-Frinny
Jun 5 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Hans | last post by:
Hi! I don't think this is possible but I have a report that is created in XML and transformed to html using XSL. Is it possible to add a link in this report that will mail itself (the report as...
2
by: shadab | last post by:
I wants Open Source Code of a Web site made in PHP for Updation of my Website.
2
by: gumairu | last post by:
http://www.is.in.th/ http://marketathome.com/ http://tarad.com/ Free Complete Website for all people easy fast
2
by: Arno R | last post by:
Hi, A client just called me this afternoon and said she had a problem. While trying to send mail from Access she sees the message: "Microsoft Access can't open the mail session. Check your mail...
2
by: Mubs | last post by:
can any1 tell me how i can get ms access to open a ms word file from a switchboard..
2
by: Shokoth | last post by:
Hi, i am trying to open up a document, that is already mailmerged with the correct data (and fields). I have written the letter, and added the relevant table source, along with the required fields,...
1
by: Muddasir | last post by:
i've developed a mail module in asp, whenever i sent any mail to someone it goes to junk........ can any one tell me the reason. thanks
2
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my webform, I've a checkbox and when it's checked, i want to open the client's email program (outlook, mozila and so..), add the the "to" and "subject" to that mail. I tried this code:...
1
by: Chris Ortega | last post by:
I need to recover the password for a/c. “smtp.gmail.com:-foo-@gmail.com”. Tried using my gmail a/c. password but was rejected. Thanks Explain your issue in full detail here: Sir, I use an iMac...
1
by: kplshrm7 | last post by:
i have crated a master page that is a mailbox and now i want to sent mails from this local to a gmail or another server. please tell how can i do this.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.