I am required to develop a page for news updates where user of the website can see the latest news updates with images in hindi. Like some news paper website. [URL] ....
When user click on the read more or on the title of the news complete news will displayed on news on new tab.
when admin of the website update the new it will appear on the page. where recently updated news is display first position.
admin of the website have authority to do following task
1. update the news. 2.edit the news. 3.delete the news
Can i make use of sqlserver for storing the news or xml.
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#
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 ?
in my asp.net+vb web with access database i iam willing to show a marquee with live data from database.
.aspx code
<marquee behavior="scroll" direction="left"> <div ><asp:Label ID="Label1" runat="server" Text="Label1"></asp:Label></div></marquee> .vb code Dim ConString As String = ConfigurationManager.ConnectionStrings("baijuep").ConnectionString Dim con As New SqlConnection(ConString) Dim CmdString As String = "SELECT KNo, companyto FROM (InOut) where PosnASOn >= now()-2" Dim Adpt As New SqlDataAdapter(CmdString, ConString) Dim KNo As New DataSet() Adpt.Fill(KNo) For Each dr As DataRow In KNo.Tables(0).Rows Label1.Text &= dr("KNo").ToString() + "<br />" Next End Sub
when i use the query (SELECT KNo, companyto FROM (InOut) where PosnASOn >= now()-2)
in query analyser it works fine and the data is displayed but when i use the complete code .vb is not dispying data in to label.
I have developed a news blog in asp.net 4. When I display news using literal control, the news displays without paragraph. However when i use textbox in administrative site to input the news into db--The Textbox takes the paragraph style and displays it. However i don;t want to use Textbox to display my news. Is there any solution to display the news with the paragraph style and so on? The containing component is Datalist and this is my below code.
string mysql = "SELECT [ID],[FirstName],[LastName],,[MiddleInit],[DateLastModified] FROM [Databse] WHERE ([ID] = '54321') ORDER BY [DateLastModified]";
I have 4 rows for this sql and I m displaying in GridView. I want the latest modified date as my first row but it is displaying in a reverse order. How can I display rows using Latestmodified date without sorting.
I have a website that i did some time ago now they request some new features and i did some changes in some javascript files, but when i publish the clients that use the IE have problems with cache so in they browser they have old version of javascript. How can i clear the client cache so when they visit website they use latest javascript files that i modify.
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 ?
to display my "latest updates" on my site.I have for example some photos and some journeys and reviews, these all have their own model.How do I go forward with displaying these in the same place,sorted by create date,with each having its own "look" to it.Like,photos have one template (I have a template as an .ascx already for each type) and journeys have one etc.
I understand that MVC can be added to an existing ASP.Net Webforms Web Site Project as explained in this post.
I am wondering if any expert here could tell us what MVC related functions of VS2010 would be missing in this scenario. For example, the very useful shortcuts of "Add View..." and "Go To View" seem to be missing. keep in mind this is about aWeb site project not Web application project so no project file (i.e. .csproj) is involved.
I would like to display links that are pasted in as links rather than text but freetextbox does not seem to do this. For instance, if somebody pastes in [URL] it looks like a link but shows up only as text. Do I need to convert this myself or is there a setting in the editor to take care of this?
I am trying to create a RadioButtonListWithOther class that extends the RadoButtonList but I can't get the "Other" textbox to render on the page. When I step through while debugging I can see the control in the parent control's Controls collectio but it still doesn't render.
public class RadioButtonListWithOther : RadioButtonList { private TextBox _otherReason; public RadioButtonListWithOther() { _otherReason = new TextBox(); _otherReason.TextMode = TextBoxMode.MultiLine; _otherReason.Rows = 6; _otherReason.Width = Unit.Pixel(300); _otherReason.Visible = true; } protected override void CreateChildControls() { this.Controls.Add(_otherReason); this.EnsureChildControls(); base.CreateChildControls(); } protected override void OnSelectedIndexChanged(EventArgs e) { _otherReason.Enabled = false; if (OtherSelected()) { _otherReason.Enabled = true; } base.OnSelectedIndexChanged(e); } public override string Text { get { if (OtherSelected()) { return _otherReason.Text; } return base.Text; } set { base.Text = value; } } public override bool Visible { get { return base.Visible; } set { //Push visibility changes down to the children controls foreach (Control control in this.Controls) { control.Visible = value; } base.Visible = value; } } private bool OtherSelected() { if (this.SelectedItem.Text == "Other") { return true; } return false; } }
Here is my code to add an instance of this control to the WebForm:
I'm trying to run a website (site2) that I've placed inside a folder (dir-site2) of another website (site1). The default file of site2 displays fine in every browser on my local computer, as in when I type http://localhost:45912/www.site1.com/dir-site2/default.aspx. But when I upload everything to my host's server and type this
http://www.site1.com/dir-site2/default.aspx I get a server "can't access" error message. I can't display any file that is inside the subdirectory, dir-site2.
I have data in mydatabase. My AnswerText in the database is test1,test2,test3 While retrieving it is displaying as test3,test1,test2. I am using the below code to display the data.
Dictionary<string, string> dicKeyValues = new Dictionary<string, string>(); for (int i = 0; i < cnstsData.Answer.Count; i++) { dicKeyValues.Add(AnswerText, AnswerImage); } DataList.DataSource = dicKeyValues; DataList.DataBind();
I want to display the AnswetText as test1,test2,test3. Basically i want the same order which i added to the database while retrieving also.
I have problem in publishing news.My module is about news.I want to develop function as publishing news in given time period,such as 1 hour or 2 two hour later it will automatically be taken up,i don't want to put it in web immediatelly.