How to open a new web page using mvc3 razor - asp.net-mvc-3

I want to open new web page for exemple https://www.google.md/
I want to do this using #Html.ActionLink if it is possible, can someone help me?

I want to do this using #Html.ActionLink if it is possible
Html.ActionLink should be used for internal urls that are part of the same application as it depends on routing.
If you want to generate a link to an external url you could use a normal anchor element:
Go to google

If you want to open it in new browser page use also target="_blank"
Google!
but if you want just to open another web site's url with some value frome your code you can do it like:
Google!

Related

Getting URL with javascript

Because of an HTTP_REFERER issue I need to make a url pass from an https site to http.
I have this bit of javascript but it is not working.
Save this page as PDF
Can I also find out how I would append the current site using javascript their api url?
http://api.htm2pdf.co.uk/urltopdf?apikey=yourapikey&url=http://www.example.com
Any advice?
Need to block the initial anchor tag event.
Save this page as PDF
I would use either javascript or the href attribute, not both. I don't see how they would work well together.
You can use .preventDefault() as noted, but why put the href attribute there in the first place?
Is this what you're looking for? It should work on both http or https sites.
<a onclick="window.open('http://api.htm2pdf.co.uk/urltopdf?apikey=yourapikey&url=' + window.location.href, '_blank', 'location=yes,scrollbars=yes,status=yes');">Save as PDF</a>

URL Change without loading whole page in mvc3

I am working on classified ads project in asp.net mvc3. I am facing problem in filter search page I want to change the URL without loading the whole page like Facebook or Linkedin before change:
http://localhost:4847/Category/Clothing/
after change when user remove category:
http://localhost:4847/Category/
And when user select category it should be change to append category as I show on top.
I am using ajax for filter search
You can make use of the Html5 History API
Anyway this is an Html5 feature and not all browsers may support it. In this case I would suggest directly using a plugin that degrades to hash changes if not supported, like History.js
This is fundamentally the same question as how to fix the browser history back-forward buttons. Checkout What is the best back button jQuery plugin?, it really could help you alot!

How does a website load only part of the page and still display full on URLs?

I am looking at the Gawker blogs (http://io9.com, http://lifehacker.com/) and I'm curious about how they are made.
When I click for on a link only the article part of the page reloads displaying a loading icon while it does.
But what I can't figure out is that links point to new URLs like io9.com/something/something and its not something like I see on ajax pages that they put a site.com/#something tag at the end of the url from javascript to mark the page after an ajax request.
Can I change the full blown URL from javascript or what is happening?
When it happens, the website is using the HTML5 History API. This API can change the url (via JavaScript) without changing the page.
See caniuse.com for browser support.
If you would like to implement it in yout website, backbonejs.org would be very useful.

codeigniter embedded web page

I was wondering what is the best way to have a web page inside another page in code igniter. From the old code i'm redesigning they use iframes. Is this the best way to do it? I want to click on a button on the existing webpage, after it will do some query's and update a corresponding iframe below.
Thanks,
Tariq
This is ok to do in code igniter or any other web framework for that matter. This is more of an html question than it is a backend question. Happy Coding!

How to open a web page from QlikView?

I am starting to use QlikView.
I need to open a web site from QlikView script, for instance something like
call ("wwww.mywebsite.com").
Is possible to call a website from QlikView Script?
Are you looking to launch a web page from a dashboard page component? If so you can use a text object with an "Open URL" action. and specify the url (or an expression that returns a url)
If you need to use a web site as a datasource (ie a web service) then you can use the Web file wizard to construct the proper connection to the web service.
Yes, you have two options. You can either use the 'Web Files' wizard, or for more complicated web service calls you can use a macro and call it in your script.
Check out the following site:
http://blog.qvapps.com/2010/09/20/using-qlikview-with-web-services/

Resources