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.
Related
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.
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.
I want to display a webpage in a WebBroswer in my winforms application. I however want to use some custom css to change how the page looks. Is it possible to attach a style sheet and edit the html page you are viewing?
You can use this web control http://www.codeproject.com/KB/miscctrl/csEXWB.aspx
and save it as a web page and load and you can show the source in another text box , once changes are made you can save to a temp file and load it. There is an option to view local file.
I don't think that kind of thing is supported.. but anyway that would be a horrible thing to do. you may end-up interfering with the CSS used by the client page.
Have you ever seen your browser override your CSS used by page and say i want to show it this way. (I know development tools like firebug,etc do it)
I want to add a html control in C# which will display all the text from an html page selectively with the title given in my html page
Don't forget that when you are programming in ASP.NET, you are really programming in HTML. ASP.NET controls have their effect by generating HTML, which is then sent to the browser.
This changes your question. Your question is really, "how can I use HTML to display the contents of another web site, and how can I make ASP.NET generate the HTML that I need".
You can display the contents of another site by using an iframe:
<iframe id="myOtherSite" src="other site url"/>
You can simply place that on your ASP.NET page. However, it doesn't solve your problem with the title. I expect you can do that with some JavaScript, as your main window can access the DOM of the iframe to pick up the title and put it where you want it.
You could always use a string reader to effectively 'scrape' the page content from the 3rd party site. Then use a simple regular expression check to grab the page title. You could then do with it as you want.
I need to create webpart in sharepoint 2010 which will allow me to view page from specific URL.
I.E. I'd like to view http://google.com from this webpart. What's the simpliest way to accomplish that ? I'm totally novice to Sharepoint developement, I've just downloaded SDK and watched some screencasts about creating webparts. Also I'd like to have few of this webparts on one page.
Maybe there is another and better way than creating a webpart ?
The easiest way is to use the Page Viewer Webpart. It embeds an IFRAME in the page, actually.
Maybe there is another and better way than showing external pages in an IFrame. Usually something like this will do:
This is not actually google, and eventhough we would love to actually be google
this link will have to do for now
Or if you are serious about displaying data from external partners, you should consider retrieving data through web-services.