How To Get Meta Tag Information Of Any Web Page
Mar 18, 2011i m implimenting one web which requires the content of meta tag how i get the content?
View 1 Repliesi m implimenting one web which requires the content of meta tag how i get the content?
View 1 Repliescreate db driven meta keywords/description. I would store these records in a database, xml format i presume; since it would be per culture.How would i go about doing this?
View 4 RepliesI need to add Meta tags, description and keywords in aspx page. My aspx pages are in master page and I have already added meta tags and description in my Master Page.
Now I want add in my other pages also so if someone search my site on GOOGLE it should look like same as this:
[URL] ...
How to achieve this?
List<HtmlMeta> metas = new List<HtmlMeta>();
foreach (Control c in this.Page.Header.Controls)
if (c.GetType() == typeof(HtmlMeta))
{
HtmlMeta meta = (HtmlMeta)c;
if (meta.Name == "CategoryID")
strMeta = meta.Content;
}
[coder]...
i would like to know how to add meta tag into my aspx, if it is generated from a master page.i am using vb.net and visual developer.
View 7 RepliesI have a number of .aspx pages inheriting from a common master page. I need to insert <meta> tags into the master page and this varies from page to page. What is easiest and fastest way to get this done. The thing is, my site is already developed so I dont want to rework/rewrite any of the code.
View 4 RepliesI have a txt file with a list of <titles><meta keyword> and <meta description> and the link that these titles and tags should be associated with. how do i set the master page contentplaceholderid to read the text file and set the tags and titles accourding the the link on the txt file.
View 2 RepliesI populate mete tag from database according to this thread [URL] ....
In store.aspx page i have this behinde code
protected void Page_Load(object sender, EventArgs e) {
string data = Server.UrlDecode(Request.QueryString["BehCode"]);
SqlCommand _cmd = new SqlCommand("storeInfo", _cn);
_cmd.CommandType = CommandType.StoredProcedure;
_cmd.Parameters.AddWithValue("@BehCode",data);
_cn.Open();
[Code] ....
Here instead of
stringkeyword = _dr[0].ToString();
I put
string keyword = _dr["Keyword"].ToString();
But when i run website and see viewsource it doesn't show any thing in meta tag.
I want to redirect to login page,when session is timedout. Here is the link i am following [URL] ...
For example: If i am in the page called http://localhost/RealWebApp/Dashboard/RealProfile.aspx
when session is timed out, this page is showing like http://localhost/RealWebApp/Dashboard/logout.aspx
But i wanted to be like : http://localhost/RealWebApp/logout.aspx
If I use like this in master page:
meta.Content = Convert.ToString(Session.Timeout * 60) + ";url=../LogOut.aspx";
then it is redirecting to http://localhost/Logout.aspx
But i wanted to be like : http://localhost/RealWebApp/logout.aspx
How to accomplish this:
protected void Page_Load(object sender, EventArgs e) {
HtmlMeta meta = new HtmlMeta();
meta.HttpEquiv = "Refresh";
meta.Content = Convert.ToString(Session.Timeout * 60) + ";url=LogOut.aspx";
this.Page.Header.Controls.Add(meta);
}
I have a simple site [URL]that I setup for my parents and other family member to share recipes on. The issue I have is that when I try to incorporate a google search the header is always RECIPE form from the dynamically driven site.
If page requested is [URL] in a SEO return I want it to have the title of the recipe to be Apple Sour Cream Crumble Pie not RECIPE FORM or RECIPE PRINT FULL FORM
How can I get this changed and also have metadata dynamically created to improve SEO returns?
how can i add title and meta tags for content pages in a project base on master and content page(dinamically) ?
i used the blow method for master page :
[code]....
and the error is :(in line *)
Error 17 'System.Web.UI.MasterPage' does not contain a definition for 'SetMetaTags' and no extension method 'SetMetaTags' accepting a first argument of type 'System.Web.UI.MasterPage' could be found (are you missing a using directive or an assembly reference?)
I am using Jquery Load and calling a page in a div.
Now while doing postback m getting this error The state information is invalid for this page and might be corrupted.
SO what might be the possible solution for the same.or is this error due to some other thing.
All this error am getting while doing postback.and when i refresh the page and do the same thing again it works absolutely fine.
Creating a membership and user login in VS 2005 - [URL] Settings are windows 7, 64 bit operating system, sql server 2005, sql 2008 and vs 2008 also installed. Page displayed with login previously, but issue was with server instance not correct, which was preventing the created user from logging in, I discovered the database was not even installed in server 2005, new asp.net program was created with new correct instance. Now page will display with http 500 error, unchecked show friendly http error messages, then pages displays blank!. Also there was an issue with the creation of iis application, recreated application in iis 7.5. This process should be simple, but I cant see my detailed errors if the page is blank! and I have enabled the errors in iis and internet explorer 8.
[Code]....
I have create one grid and in that i am showing student database now i have to give edit option in that grid.I am ready with that only thing that now i want to try to open a small pop up page in same page. suggest how to open a pop up page with same information from session which i am passing from the grid page.
View 2 RepliesI have HTML page of few tables created by ASP.NET and when I do the "Page Setup" option before printing the paper size is already selected as "Letter" and I want that option to be in "A4". I changed the size of the table but its not working. Is there any page setup information I can put in HTML so that "Page Setup" option can take it from there.
View 2 RepliesMy client asked for encrypting some information form their payment system to prevent user stealing personal information.
The system is web-base and written by ASP.NET
We have tried some annoying solution such as JavaScript no right-click or css-no-print
but apparently my client didn't like it.
so are there any commercial solution to encrypt information in aspx produced html pages?
or someone can tell me how to pursuit my client to stop these "prevent stealing" idea in a web-base system?
I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.
So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.
If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.
I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.
I want to show information from an excel spreadsheet in a web page. The xls will have maybe 5 columns, and as many rows as needed. The columns will be 'Name', 'Created Date', 'Expired Date', 'Owner', and maybe down the road maybe more.
What I would like is for the C# to nightly read the xls, and display the information in a table on the website.
If there is a PDF available for download I am going to link that as well.
I want to display all the session information of my asp.net page (aspx) in the page. How can I do that? The programming language is C#.
View 2 Repliescan i get information about the computer that enter my page , like the currently logged user on that computer and the ip address . and if i can get the currently logged user name , isn't that considered as security risk .
View 3 RepliesI need to generate a page which will include text information at the top followed by a summary list of items like such:
[Code]....
What sort of control can I use for this? Gridview, placeholder, etc.? One thing, though. This page will be a report, so it will need to be printed out. So it needs to be printer friendly.
I'm fetching some settings out of the database based on a value passed from a query string. Out of these settings, a few will be used in master page, few on my Page and few in my user control (say login control which is a web user control).I've an entity class MySetting for it and there is a method in my data access layer which returns me an instance of MySetting when I pass the value I got in query string.
I don't want to fetch settings from the database multiple times for one request. I'm using asp.net web forms with C# and sql server.
Is there an easy way to get all information posted to a page into a querystring.
ex: page1.aspx
from
name=mike
address=street
then on page2.aspx
creating ?name=mike&address=street
I want to do this without requesting all individual fields of course, just a routine
I need to query a database and return list of names, then I need to display their pictures and information in a Web Page, using ASP.NET or using JavaScript. The main concern is displaying the pictures and information dynamically on the page in an organized way.
View 5 RepliesI have a need to display user-specific information in my master page. As a result, I have set up all of my controllers to be inherited from a "master" controller. This has worked well for other aspects of the master page, such as displaying random quotes. However, while using this technique to incorporate the user-specific information, I ran into a problem where, when I check the Request.IsAuthenticated value, the Request object is null.
Here is my "master" controller:
[Code]....
Curiously - at least to me - is that the Request object becomes populated by the time program flow hits the Home Controller:
[Code]....