Web Forms :: Creating A Front Page News Function With C#?

Oct 29, 2010

I was wondering how to create a front page news function with C# as the language.

Basically I want to be able to use a one of my forums in the category "Site Discussion" called "News" as a way to connect with the front page (homepage) of the site to display a few of the newest news articles each with a title, image, and a short blurb of what the post is about. Also I want them to have a link that connects to the news post in the forums.

***NOTE*** I am using YAF (Yet Another Forum) for my forums.

An example of this from another site is [URL]

As you can see in the above site in the "Today's Top Stories" section it shows 4 news posts (1 main, and 3 other top stories) and if you click on them it links to the news post (which is also accessible via the forums in the news section).

This is basically what I want to incorporate into my site, but using the YAF forums, note an admin console is also needed to do this, I have a serperate admin console that I will set-up for it basically that's when you write it and from there it displays on the front page and in the forums.

View 8 Replies


Similar Messages:

Displaying The News Details On Page Based Upon Click News Link?

Apr 3, 2010

I am working on How to display the News Updates on page inside Marquee as hyperlink and on click on the link i have to display the details of the selected News .

which approach i can display the particular section of the page ?

I have to disply the News from Database?

View 2 Replies

.net - Make A "Add News Page" When User Write His News?

Nov 8, 2010

i want to make a add news page that when my user write his news(in up.aspx) then his news shown in news.aspx.
what am i going to do ? what is the best way for writing this page ?

View 1 Replies

Web Forms :: Menu Selection For Front Page?

Mar 10, 2011

I need to code a e-commerce site but about the front end I thought about building a "flowing" menu, how it works is, in the top row you have "Retail" and "Wholesale", if I move my mouse over the retail word I want in the next row, data to be loaded like the main categories if you clicked a category word, then in the 3rd row you get the sub categories then you can click on a subcategory name and then a 4rth row will appear with more subcategories, and so on and on, the reason for this is that the business has alot of sub categories going very deep down,

View 1 Replies

Web Forms :: Alternate Of The Marquee Tag For Moving The News In Aspx Page?

Oct 11, 2010

Is there any alternate of Marquee for moving the news in aspx page may i move the text without marquee tag?

View 4 Replies

Web Forms :: Displaying A JavaScript Popup Box In Front Of The Page After It Has Been Rendered?

Mar 22, 2010

I have a Java Script popup messae box that is displayed when an application user first displays the web page. Everything works great, but when the popup displays the background of the screen is white, with the popup in front of it. Instead I would like for the popup to be displayed in front of the web page after it has been rendered with all of the controls on it.

<%@ Page Language="C#" codebehind="Default.aspx.cs" inherits="Colso.Site.Default" masterpagefile="~/Master.Master">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script language='JavaScript'>");
sb.Append("alert('message to client')");
sb.Append("<");
sb.Append("/script>");
ClientScript.RegisterStartupScript(this.GetType(), "PopupSb", sb.ToString(), false);
}
</script>
<asp:Content id="contentPage" runat="server" contentPlaceHolderRoot">
// Controls not shown because I don't want too many lines
</asp:Content>

View 5 Replies

Web Forms :: HTML Page Scraping - Picks Up The Values Between The Tag But Not The Signs In Front Of It?

Jul 29, 2010

I seem to be having some challenges with the data I am retriveing from a Webpage using the Webclient class. The code works fine, however I observe that the regular expression is not picking up the negative or positive sign in the Daily_Movement data. For example, a daily movement can be -0.31 or +0.31 but the code is not picking the sign in front of the decimal values.Here is my code

[Code]....

I think where the problem lies is the part of the code Regex r1 = new Regex("<span class="quoteData">.*</span>"); It picks up the values between the tag quite well, but not the signs in front of it. [Code]....

View 6 Replies

Design Separate Page For News And Advertisement ?

Apr 19, 2010

I design web site by asp.net my website contain news page ,advertisement page and others ,I design Separate page for news and advertisement so I have question what is the best when I design Separate page or place news,advertisment and other page in multiview (view)

View 4 Replies

AJAX :: Get Calenderextender To Show In Front Of Controls On The Page?

Mar 26, 2010

I can't get my calendar extender to show in front of controls on the page. Don't see a "z-index" capablility. What can I do?

View 5 Replies

Design Of A News Site Static Page Control

Dec 15, 2011

So i was thinking on using an image and a literal control. The questions i have is

1)Is there a better control to use than literal?I am using it because the text would have html and i must render it.

2)How i will achieve putting text beside the picture(the site uses a <strong> as i see in firebug but i cannot view the css and after that everything is simple text and some <br> )?

If i put the literal beside with <strong> and have a specific div size will the text automatically go below when reach the div limit?I'm asking because it will be html so i don't know if it(html) can surpass the main div container.

View 22 Replies

SQL Server :: Want That Whenever User Left This Field Blank From Front End Aspx Page, Null Value Should Be Inserted In This Column From Stored Proc?

Oct 27, 2010

I have a table in sql having a numeric data type column,Now i want that whenever user left this field blank from front end aspx page, null value should be inserted in this column from stored proc.How can i achieve this? Also what kind of data type is most appropriate on front end for such taking kind of value?

View 2 Replies

Javascript - ExtJS - Creating Hyperlinks With A Function?

Dec 16, 2010

I'm trying to build an edit column, but my routine isn't quite right for some reason. My value of "store" is not returning anything like I thought it would.

function editLinkRenderer(value, metadata, record, rowIndex, colIndex, store) {
if (store == V2020.ServiceStore)
return '<a href="javascript:editServices(' + value + ')">Edit</a>';
else if (store == V2020.PriceStore)
return '<a href="javascript:editPrice(' + value + ')">Edit</a>';
else if (store == V2020.PromoStore)
return '<a href="javascript:editPromo(' + value + ')">Edit</a>';
return "Edit";
}

I'm using it in my gridpanel like so:

{ header: "Edit", width: 60, dataIndex: 'serviceID', sortable: false, renderer: editLinkRenderer },

View 2 Replies

Creating Dynamic Buttons To Call A CodeBehind Function?

Mar 29, 2011

So I have a page that is rendering data from an MSSQL instance into an HTML table. The last cell has a button to download an uploaded file from the database which is created manually during the table creation so I can enter the recordid as a parameter of the button.

The upload and download functions work perfectly fine. The problem is that I cannot get my dynamically created button to work . All it does is post back but I never get the actual file to send from the server. (Although I verified it works through other means). Any suggestions would be great, I've litterally spent all day on this. below are a few code snippets of the different methods i've tried.

RenderControl. This is great but it loses the onclick method

c# Code:

[code]....

View 2 Replies

Creating A Function To Calculate Two Database Columns / Values?

May 11, 2010

I am using ASP.NET 2008 Visual Basic Language. I tried to create a function that multiply two values from two different tables and get the result presented in a label. The value is retrieved by referring to the primary key after the user selects from a DropDownList which is in another page using sessions.

I tried to build this code in the Load_Page event but it didn't display for me the total.

[Code]....

View 4 Replies

ADO.NET :: Creating A Generic Function - Data Access Layer

Feb 1, 2011

I have written the following functions(1 & 2) in a class file(say abc.vb) to execute a sql statement in code behind.

[Code]....

View 35 Replies

C# - Creating Multiline Textbox Using Html.Helper Function?

Feb 16, 2011

I usually find my answers at stackoverflow but this one has bugged me for a couple of days now. I am trying to create a multiline Textbox using ASP.NET MVC with the following code.

<%= Html.TextBox("Body", null, new { TextBoxMode = "MultiLine", Columns = "55px", Rows = "10px" })%>

It just shows up a single line fixed sized textbox. on the other hand

<asp:TextBox runat="server" ID="Body" TextMode="MultiLine" Columns="55" Rows="10"></asp:TextBox>

renders the right view, but in the controller's post method with formCollection named form

form["Body"];

returns a null value.

View 2 Replies

Security :: Creating A Validateuser (username) Function - Validation Without A Password?

Mar 22, 2010

I have an application with a custom mebership (I'm still working on it). There is some funcionality in the application for asociating users. This means that (if already associated) one user could switch to some other user with just a click.

My question is:

Can I do a function that would allow me to authenticate one user without sending the password as a parameter?

View 1 Replies

DataSource Controls :: Creating Cluster Index From View With Aggregate Function?

Mar 5, 2010

Here is my code in SQL

[Code]....

Error i am facing is :Msg 8668, Level 16, State 0, Line 2Cannot create the clustered index 'RateViewIndex' on view 'NoteToPass.dbo.RateView' because the select list of the view contains an expression on result of aggregate function or grouping column. Consider removing expression on result of aggregate function or grouping column from select list.

View 4 Replies

C# - Creating An Executable Script Which Accesses Aspx Form Components And Runs Function?

Jul 28, 2010

I have created and application which contains a gridview that is populated by an SQL database. I built a function which converts the gridview into an excel file and stores it on the server.

I would just like to know how I can write an executable script(which I will set to run at a certain time on the server) that will access the gridview in the .aspx file containing the gridview and run the convertToExcel() function located in the .cs file attached to the .aspx file and then close.

View 1 Replies

Creating An LDAP Class That Contains A Function That Returns The Managers Username Of The Current User?

Jan 26, 2011

I'm creating an LDAP class that contains a function that returns the managers username of the current user.

I know that I can use the "manager" attribute to return CN="name", OU="group", DC="company" etc.I specifically want the managers username, does anyone know if there is an attribute string that I can send to LDAP that specifically gets the managers username only? If not, is there an alternative method to do so?

View 2 Replies

Web Forms :: Bring Menu To Front?

Mar 15, 2011

I have menu's on the top of the web page and report viewer under it. Whenever I click on menu it drops down and goes in the back of report viewer instead showing menu on top of the report viewer. Code for the workaround?

View 2 Replies

Web Forms :: Add Image From Google News?

Feb 16, 2010

I have added google news into my site using the following code

private void GetRSS()
{
//http://www.autoweek.com/section/rss01Create a WebRequest http://www.1888pressrelease.com/rss/automobile.xml
WebRequest rssReq =
WebRequest.Create("http://news.google.com/news?pz=1&ned=in&hl=en&q=uk+automobile+industry&output=rss");

[Code]....

but when giving image url as eval("image") then error..

View 2 Replies

Web Forms :: Make An Image In Front Of Another?

Jan 17, 2011

I was wondering if you can make the image on top of another, as "bring to front".

View 2 Replies

Web Forms :: Change Latest News Runtime?

Sep 17, 2010

one of my client has the requirement of changing the latest news section of website dynamically or runtime so not to publish the site and host it agian and again.this section is in master page how can i achieve this in asp.net c#

View 4 Replies

Web Forms :: How To Add Blank Space In Front Of Control

Jan 27, 2010

I want add blank space infornt of hyperlink control in panel

[Code]....

[Code]....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved