From my point of view, if you want to preserve data on both a per-page basis and an application-wide basis. I suggest you could try to use session or cookie. When you want to use it, you could read values from session or cookie.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
1 Post
Getting multiple times the same value from an item
May 02, 2015 03:04 PM|Twentyakatwozero|LINK
First off, I'm not an expert developer, I created my website www.twentyakatwozero.com with the help of dreamweaver and some self taught rudiments.
I need to do something very simple, but I can't find a way to do it.
I have an access database with a table named "articolo" with the item "video", and I wanna store in this item a link for a metatags.
For example I wanna do this:
<meta property="og:video" content="<%=(news.Fields.Item("video").Value)%>"/>
<meta property="og:image" content="<%=(news.Fields.Item("video").Value)%>"/>
The problem with copy/paste is that the page doens't see the second item.
Is there a simple solution that I can apply?
Thank you,
Luca
All-Star
45489 Points
7008 Posts
Microsoft
Re: Getting multiple times the same value from an item
May 04, 2015 01:57 AM|Zhi Lv - MSFT|LINK
Hi Luca,
From my point of view, if you want to preserve data on both a per-page basis and an application-wide basis. I suggest you could try to use session or cookie. When you want to use it, you could read values from session or cookie.
For more details, please refer to this link: https://msdn.microsoft.com/en-us/library/75x4ha6s(v=vs.100).aspx
As for the <meta> Tag, I suggest you could refer to this link: http://www.w3schools.com/tags/tag_meta.asp
Best Regards,
Dillion