I am developing a page that has an image element that has its source set to an action on a controller (e.g., "/controller/action". The problem that I am having is that I don't see a built in way to generate a URL (i.e., like an ActionLink's URL) without manually constructing one. At the moment, I am manually constructing the URL, but I want to move away from this. Before I write my own helper method, I thought I would check to see if one it already available. Does such a method exist?
I have a route (the first one listed) which looks like this:
routes.MapRoute( "TopicRoute", // Route name "forums/{forumSlug}/{topicSlug}", // URL with parameters new { controller = "Forums", action = "Topic"} // Parameter defaults );
I can browse to: /forums/my-forum/my-topic and the page loads fine. Yet I have a Html.ActionLink that looks like: @Html.ActionLink(item.Title, "Topic", new { forumSlug ="my-forum", topicSlug = "my-topic" }) And it won't generate the correct link syntax for me? It generates: <a href="">My Topic</a>
By default, links are created without the forward slash suffixed to the end. It is per our company standards to always have this trailing slash. Is it possible, via a configuration or whatever, to automatically have a forward slash whenever these methods are called?
i want to ask that i wanted to implement a book search.. and with that i also want to implment viewing of pdf file as the book is searched..
the idea is similar to what 'google books' does.. that is after searching from a list a pages as we select an ebook, it is shown in side by side..i have read about google search.. viewing a pdf file and viewing it on click and in the portion of the web page..
i am new to asp .net thus i have not much of techincal experience of asp .net.. still working on basics
We have a page that will have the option to print, but along with being able to print the entire page out. We need to provide a print option for a specfic portion of the page. What i was thinking of doing is wrapping that portion of the page with a div and when they click the button to print just that, i can display that in a new popup window that will be formatted for print.
I am looking for a c# function to return a portion of the html. Say I have pages that render html of about 60 k in length, I want to email to users showing only the first 2k and add a link to the original page.
Sure there is a Substring function with String, but it will give me a lot of unclosed html tags.
I have an Html Form that I want to set focus to when the page loads. What I have done is coded the Site.Master to run a javascript function on page load. That js function retrieves a hardcoded form name from the DOM and, if found, sets focus to an input field in that form.
in sql 2005 table fields named fromdate and todate which is having the values like as follows
2010-10-23 05:30:20.000 2010-10-24 16:43:10.000
i want to update this date time values like as follows
2010-10-23 00:00:00.000 2010-10-24 11:59:59.000
ie.initial time of the day and the max time of the day
lot of records are thre in fromdate and todate colum .need to update these values with a single query,without chainging the date.Need to change only the time portion
im writing a whois lookup page for a clients website and the whois query for .com .biz etc is handled by internic,
i create a HTTPRequest and get the response and it returns a whole webpage with the doctype, head tags and body tags, all i want is the data between the tags <pre> and </pre> how would i get just this from the string that is returned?
I have some value in variable string var="some text"; i have bind the combobox with list but during loadoing of form i want var to be displayed in editable portion of Combobox...
I have 32-bit XP with SQL Server 2005 Express and VS 2008. I have successfully added the Adventureworks DB to my VS website and I can see it from SOlution Explorer, however, the entire DB is attached. How would I only attach a few of the tables and stored procedures from this DB?
I have devloped a dashboard, which contains different sections. Each section shows a certain user control. some user controls shows graphs and grids and some information after some calculations. Some of these controls take times (10 seconds) to load, that's why whole page take a remarkable time to load.
I wana display skelton of page and some of controls, not taking much time, and display some processing sign on controls taking time more than 5 seconds. and refresh contents of these controls after processing at server done.
I have a div on the left side of my page. when clicked I toggle a hidden div that flies out to the right. But the click event only works on the bottom portion of the div. The hidden div has a close button div in the lower right. to clicks fine.
code is below
jquery
[Code]....
html
[Code]....
CSS:
[Code]....
why I can't click the entire div of divReportBanner.
I want to create a 'news' excerpt for the front page of my site. So I get the first news item ordered by date and then I want to display it but cut down to a number of words.How would I do this with vb.net?
i have to modify the thumbnail width and height as well as main center image and height. then the thumbnail list displays images with a small portion of mail image.i want to display thw hole image with reduced size inside the thumbnails.