I am working in VisualStudio 2010 C#. I want to create a web page that has top news stories with an image each and the image would be a hyperlink that takes you to the full story. I have posted a picture example of how I would like it to look. I already have my master page created, and I don't want to know about import the files for the news story or images from the database or anything, just the basics of how to create this kind of layout. Thanks!!
example of how I want it to look:
http://www.aol.com/news/
Look at this great free CSS library: http://metroui.org.ua/. It has similar look and feel to what you posted, so you can just style your GridView with the classes provided there.
Related
I'm newbie in ASP.Net C#.
I made a site on Classic ASP, but I need to recreate on .NET. I am using DetailsView on detail page.
I need to move some fields to another place on mi page. Example: usually put the name on page top, email place is on top too but right side inside a DIV formatted with bootstrap.
I don't know how separate fields that are grouped on DetailsViews's table.
All information on MS site talks about DetailsView, this stuff it's cool but I want more flexibility for placing fields anywhere. DetailsView's table makes me feel tied.
Can you add the section of your code your trying to change? May be easier to understand your question.
So this is my first post. I guess, this is the right place for me to learn some new things in ASP.net. Well, I just started creating a system using Asp, and just to ask ask anyone here, how to apply the downloaded layout template into my master page? Looking forward to any feedbacks. Have a nice day!
Implementing a layout in to your ASP.NET website is a matter of breaking it up in parts like header, footer, main content etc. The header and footer parts are good candidates to go into your master page, but the main content will be different per page, so that belongs into the pages itself.
Here you have a good read about site wide layouts using masterpages:
http://www.asp.net/web-forms/tutorials/master-pages/creating-a-site-wide-layout-using-master-pages-cs
I am attempting to create a store page, and for the storefront page I need to create something that will
list items from the database,
get the ID + Image URL saved in the database
create an hyperlinked image for each item in the query.
Any suggestions on how to do this?
The hyperlinked image will be an image of a product and links to a store page based on ID.
and a list of them will be displayed for the person to click on.
Thank you in advance, this project is a first for me (as well as my first web application in asp.net) and I'd like to see it done right!
And the site is done in C#, although if necessary I can port over to VB, at this time, not much actual code behind has been written, and I am comfortable enough with both to port whatever code I have over to it)
A simple approach would be to use an ASP.NET repeater.
Class documentation is here: http://msdn.microsoft.com/en-us/library/w9283stf
One detailed (although potentially out-of-date) article I found with a quick search is http://msdn.microsoft.com/en-us/magazine/cc163780.aspx
(But there are plenty of other "how to use repeater control" articles out there).
Good luck.
Standard sharePoint just put "Page - some site" in the page title in the browsers, but I want to change that, but don't know how.
I have succesfully created a webpart to do so, but I believe it's a major overkill creating a webpart to control such a small part of something as huge as SharePoint.
So how can I control what the page title in best practice?
Is a webpart reallly neccessary or can this goal be achieved in some other way?
To specify some more: I don't want it to just have the same title all over the site. I want it to say something like: "AwesomeSite - Home" or "AwesomeSite - Video upload" etc. You get the point.
First question , where would these keywords like AwesomeSite, Home, Video Upload come from ? What would be the source?
The best would be to create a Delegate Control and refer it in your master page. This delegate control can be either a simple javascript to set the Title or a web server control which will query the sharepoint metadata on current page to set the Title.
I have an web based application. The content for the Home page has been currently mentioned in the HTML code for the Home page using , and tags. To change the content anytime in future, it needs to be changed in the HTML code. :(
Is there a way that we can pick up the content from some external place and get it reflected through the website. This ways, any change if required can be made at the external location without referring to the application's code.
Please advise if there is any solution for it.
Thanks.
You can
Use a database
Include external files using Server Side Includes
Read external files and write their contents and an alternative method
Sounds like you're looking for a Content Management System (CMS), which will allow your content editors access to modify only specific blocks of a page that you specify.
There are a ton out there to do what you want, so you don't have to start from scratch. Just Google 'CMS'.
Although I haven't used it myself, DotNetNuke is a popular one these days and has a free version.