Htm page to Aspx page - asp.net

I have an htm page.There i have a link Moreinfo.When we click that link it will go to aspx page.Means here the link Moreinfo More Info... when we click that link it has to go reg.aspx.But its not going,,error is shopwing page not found
Means In my project,i have index.htm.From this page when i click Moreinfo link,,it has to go reg.aspx..How i can go..I copied this proj from my collegue
Nothing is working .both index.htm and reg.aspx are in same site 'b'

Are you sure the path of the link is correct? The link you have here is showing http://localhost/akki/akki/b/reg.aspx - are you sure there are supposed to be two "akki"s in the path?

the error means that the aspx page does not exist at the link you are pointing to. either you have given a wrong link or your aspx page does not exist on the path you intend to.

Related

Custom 404 Basic Page in Drupal 7 Has Blank Title Tag

I have created a basic page in drupal 7 to use as my 404. I configured under Configuration -> System -> Site Information to use this page and when an unknown URL is entered, it does indeed display this page while maintaining the unknown URL. For SEO purposes, I really want Page Not Found in the html title tags but it is missing. If you go directly to the basic page, the title tags are correct. Is there a setting somewhere that I am missing?
I used the metatag module's configuration for the 404 page to achieve the desired title tags
When you create a any page, you will get node id of the respective page.
In your case, you need to copy page.tpl.php file and rename new file with your node id like for example : page--node--1.tpl.php
Now, put below code in your newly created template file and clear the cache.
if($title) {
print $title;
}

Drupal 7 how to write a clean url link in Panels, or Content Node

I have enabled clean URLS and it is working fine.
How ever I have a Panel page with link. the link goes somethinglike this.
<a href="?q=PageName">
Now, Lets say I am on that Panel page(i would think the same thing would happen on any other custom content pages) and let's call it PanelPage and I press the link, The URL end up being, PanelPage?q=PageName (The whole URL = localhost/SiteName/PanelPage?q=PageName).
My Question is, Is there a way to write that link, so that It coume out as Clean URL? SiteName/PageName ?
Please help.
Thanks
Use l($text, $path, array $options = array()) to generate links.
In drupal 7, after logged in as admin go to following path "Configuration » Search and metadata » URL aliases".
There you can set 'Alias Path' for 'Existing Path'. Add an Alias path for your panel page.
For EX:
Existing system path : http://www.example.com/PanelPage?q=PageName
Path alias : http://www.example.com/custom_name.html

Hide/rename a word in URL

This is the url of my page http://cbiance.com/wordpress/. Is there a way to hide 'wordpress' in the url or change it to something?
Thanks
The "/wordpress/" is the dir of the page. You can either
Rename the dir and change all the referring documents fo correct it (This includes any other page that links to it and Configuration files like your apache.conf for example.
You could also move the page to the location of url that you would like and redirect from the current page, allowing old links to remain valid.
Use configuration of your apache.conf (or whatever your using) to chang your root dir to this location turning the current URL into "
http://cbiance.com/
The third is the preffered method.

Cannot go to another page because of url incorrect

I created a website which is located on my document folder at Visual Studio 2008\WebSites\MyWebsite\Orders folder.
There is no problem to open the default page when I clicked starting debugging on menu tool bar. However when I go to another page, the url is not correct because it doesn't include the website name. The URL for default page is
http://localhost:64121/Orders/Default.aspx and the search page is http://localhost:64121/Search.asp. How can I change the setting to make it work without change the script on aspx page. Thank in advance.
there is the href to open another page in apsx page.
<a class="leftnavBody" href="/Search.aspx">Search Order</a></li>
If you have Search.aspx available in the same folder as your default.aspx, use
<a class="leftnavBody" href="Search.aspx">Search Order</a></li>
If Search.aspx is level up i.e. on root and default.aspx in some folder
<a class="leftnavBody" href="/Search.aspx">Search Order</a></li>

How Link Wordpress Image Files from js

I am developing a site into sub dirctory-
sitename.com/subdirectory/
I am including an image link from my theme js file.(js/custom.js)
sitename.com/subdirectory/wp-content/uploads/2014/05/333.png
But when i move the site to main directory. I want the sitename.com/subdirectory/ will automatically converted to http://sitename.com/
is that possible? I try to used
/wp-content/uploads/2014/05/333.png
but its not working.
you should do js code in your php script before including script file.
var image1= '<?php echo content_url();?>/uploads/2014/05/333.png';
Then use this variable image1 in your js file.
This will solve your problem.
You can get the current URL by javascript from this Get current URL in web browser
Then check if current URL in subdirectory or not then you can decide what link should to pass to your image link in javascript file

Resources