I am using following code to add a google translator to my page header. But if I move it inside page content its not displaying anything. How to get the same translator box in iframe.
<div id="google_translate_element" class="langSwitch"></div> <script> function googleTranslateElementInit() {
I have included googles provided google translate script on websites home page, all it translated is just teh home page not the other pages on the website.I read about googletranslate.api, does any one has any info or an example how to embed teh google translate.api translate feature to whole website.
Is there any way to install google plugin's in .net. for e.g. if chinese wan't there content should display in there language then it should display on one click
I am implementing google translate in my asp.net through that we can translate our website to 60 more language but when I implement totally my alignment is changing so what to do now?
I have implemented URL rewriting and I would like someone to answer if my new URLs will be indexed by google or not.
BACKGROUND:
I have many databound linkbutton which redirects to URL like: www.example.com/product.aspx?PLU=4985783028
What I intended to do is to make above URL look like www.example.com/MY-Nice-Product1-For-Sale-4985783028.xyz . Whuich internally should rewritten as above. I could have easily implemented such URL rewriting but all my databound link button redirects to
/product.aspx?PLU=4985783028 and when this the page at this URL is served to browser it will look like /product.aspx?PLU=4985783028 and not /MY-Nice-Product1-For-Sale-4985783028.xyz
WHAT I DID:So I implemented my own method of Rewrite. Steps for which I did is as follows
1. I wrote code inside Global.asax in Application_BeginRequest event.
2. I checked for URL if its product.aspx or not (using fullOrigionalpath.Contains)
3. If its product.aspx I would takeout the "PLU" Query parameter and by string manipulation and then call a function to determine product name from the unique ID ("PLU").
4. And then I would redirect the page to "/productname-PLU.xyz" (e.g. here productname is "MY-Nice-Product1-For-Sale" . AND PLU is "4985783028" so that is redirects to "/MY-Nice-Product1-For-Sale-4985783028.xyz")
5. Once redirected, again, "Application_BeginRequest" event will be called. and there I would check if URL contains. ".xyz" extension.
6. If so, I would takeout PLU by string manipulation and then rewrite URL to right URL which looks like "/product.aspx?PLU=4985783028"
7. Then after user will see "/MY-Nice-Product1-For-Sale-4985783028.xyz" on their browser addressbar
This is how I achieved my goal so that all old URL redirects works too and all new URL works too and in both case user will see new URL.
Following is the code
[Code].... So finally the question is "Will my new URL be indexed by Gooogle?" because the basic intention of doing this was to help with SEO .
Can anyone tell me if there is a way to convert all URL's to lowercase using an Http Module for URL rewriting? For example www.homeforhire.com/Home.aspx should be converted to lowercase.
I cannot use the IIS7 URL Rewriter because I need to perform database lookups as part of my URL rewriting.
I have researched this extensively but have not had any luck finding a solution.
The only alternative I can think of is to use a dynamically created canonical link in my page headers.
In my website users can create thier own websites by making folder of thier choice like: [URL] Where the folders Pankaj and Adam are storing in database. I just want that when user after creting thier website just clicked or type the address of thier website as [URL] then if the folder with name Pankaj exists in database then the page will open otherwise it gives the http 404 page not found error. And while the address [URL] is opens then i donot want to physically create it on server. My requirement is that i want to open it by the concept of url rewriting/ Routing. Which one concept will be good for this. And can anyone provide some code with example that how can i achieve this easily.
I made a site www.hediyelikdukkani.com and I added the site to goole from web masters tools. But google doesn't index my web site. When I test my site how the google see from Test like a Google bot from web masters tools it says that
I am trying to implement URL rewriting technique in my Web application.I have found some articles on net 2 rewrite URL. But i m not able to understand. tell me any API or DLL which will take care of all url rewriting techniques in my Web applications.
I have heard something abt UrlRewriter.ddl . But i have not used it yet. provide me the easiest way to do that. If any sample application is there then it will be better ti understand
I am using a textbox to populate mySQL database. My problem is when I recall the text it displays without line brakes or line spacing, inserted in the input textbox. I have tried all the field types i.e. Text, Small, Medium Text and Chars. I have tried gridview, repeater and datalist all displaying continuous text without line brakes.
I have a gridview which i want to update line by line.Its for confirmed users.SO i have a list of users and they are confirmed by clicking the checkbox and updating the value in the database.But how can i find the checkbox on the gridview and get the value. Ive tried the following code but no joy
I am trying to read a multilined textBox line by line into a List<String> but with the code below the compiler says that "'System.Environment' does not contain a definition for 'Newline'
i have insert a text in a textbox with the textmode = multiline.. when i display out the data, i wan the data will be display with the break line. for example, my input is like that
18.0 million effective pixels Auto lighting optimizer Full HD video 1920 x 1080
the text is line by line. but when i display out the data i have inserted through textbox it cannot display line by line in the front page.
I am having problem redirecting error when error is http 500 or http 403 locally running this site there is no problem it gets redirected to my errorpage.aspx. But when deployed at server, it does not get .tried putting try and catch in page_load and in global.asax and I have set Application_Error to redirect to that page and also set <customErrors defaultRedirect to that page also
i m a beginner with visual studio 2005.i have a input file on a page, this input file displays a bouton with a text : "browse..."i'd like to display another text on this button !