Create PDF From Article Page?
Feb 9, 2010I have a article page, in the top right corner i have small icon like pdf, when click that i have to create pdf and open. i have seen fews link, those just showing static html creattion.
View 7 RepliesI have a article page, in the top right corner i have small icon like pdf, when click that i have to create pdf and open. i have seen fews link, those just showing static html creattion.
View 7 RepliesI want to add the creating Blog in my Web Application but i dont have where i can get start Any Article or hint will be apperciated
what is the Blog and why we need to create it ?
i need to display image for every article in my page (articles information in data base ) and i have control panel to add,delete,edit articles how to display image for every article i made fileupload that store images in folder ,but when i insert article's title,details, image name ,the image does n't appear in page
i wrote ImageUrl='<%#Eval("image")%>'
I am trying to create a comments page for users to review and comment on an article. I have 2 buttons on each comments posted by users; "Like" and "Don't Like". I am stuck with how to track which user voted already for a given comment. I am thinking of two options and would like to know if they are they way to go or is there a better solution.
Option 1: I have created a table in my database with stores, the comment id, the userid of the user who rated it and the value "like" or "don't like". So each time I have to query my table to find out if this user indeed vote for a given comment. The table unfortunately grows exponentially!!
Option 2: I store the commentid, userid, and "like" or "don't like" value in a cookie on the client's machine. I read the cookie and find out if the user has already voted on a comment. This is proving to be VERY quirky with cookie expiration, growing cookie size and also multiple users on the same machine.
In either way, my test case of ~1500 users, and 2 Million comments, this is getting to be HEAVY on both methods. Is there anything better?
I am developing a blog site in asp.net 3.5 with C#. I have written few blog post in my site. Now, I want to give two icon below my article 1: "retweet" [Twitter], so that people can tweet my article 2: Subscribe RSS Feed for this article.
View 1 RepliesWhat if I write an article that is in excess of what NVARCHAR(Max) can store?What would you do?Run a quick bit of code to separate the article into smaller chunks?Or is there a better way?I know I could create some sort of key system where there is an "article" primary key and in the same table, there would be an "article part" integer, then run a query when I want to display the article to stick it back together, but is it a good idea or am I over complicating it?
View 3 RepliesI'm sure there's a blog post or tutorial out there somewhere on how to accomplish this, but I'm having trouble coming up with the keywords to search for. I'm building a website with a small content management system that allows the user to create articles that will be published to the site. I want the home page to display the 10 most recently submitted articles.What I don't want however, is for the home page to be 6 miles long. I would like to cut the article off after the first paragraph, add ellipses, and have a "continue reading" link that will allow them to view the full article. Does anyone have a link or information on how to accomplish this?
View 6 RepliesI want to create a web application that can post article or blog on different website automatically.
Like in wordpress (php) there is a plugin support for this, so is there any plugin or anything else from which i can achieve my requirements?
I'm planning to create a site for learning technologies, such as codeproject or codeplex. different ways to manage huge articles?
View 3 RepliesI just found an article on codeproject, which made me quite interested ... So I've implemented this one here:
I have two projects:
MyComponent.Web (holding all the resources and controls)
MyComponent.Web.Demo (just the webProject)
In MyComponent.Web I have
AssemblyInfo.cs
[Code].....
I'm trying to use this article to learn about custom roleproviders, but I'm getting this error:
Could not load type 'TestRoles.SimpleRoleProvider'.
The relevant section from my web.config:
<roleManager enabled="true" defaultProvider="SimpleRoleProvider">
<providers>
<add name="SimpleRoleProvider" type="TestRoles.SimpleRoleProvider"/>
</providers>
</roleManager>
The RolesProvider.cs class:
public class TestRoles{
public class SimpleRoleProvider : RoleProvider
{
public override string[] GetRolesForUser(string username)
{
List<string> roles = new List<string>();
roles.Add("Guest");
if (username.Equals("Dave"))
roles.Add("Admin");
return roles.ToArray();
}
}
}
From this error, it seems like it can't find the RoleProvider.
startup article over the mixture of ASP.NET MVC and Dynamic Data?
View 1 RepliesI'm constructing a new cms with the option to create reviews and articles (blog items). Now if the user wants to write a review he/ she will want to add a lot of images in the text. Now my question to you is , what would be the best option to include those images (with keeping in mind that a CDN can be used later). I was thinking of the following methods:
Break an article in multiple blocks, each block can then include a picture and text. Just add the picture in the text via WYSIWYG editor (easiest option but not so versatile) Upload images separately and include them via tags in article text. Like Title{img_1}Content
This article helps what i needed. Getting the folder path in TextBox. [URL] my question is.. here he has given D:\ as default. How can i change this... to work on DevServer, Clients .. so..on If it is in local it works fine that to for d:\.... if i want to browse from other drives how should i do that. i need to browse all folders in all drives... what should i change in this statement.
TreeNode
onjParent = new
TreeNode("D:\",
"D:\");
And How can i save the directory when i go to that page again.like keeping nodes open which are opened before.
How can i check the article(contents) that is not copied from google or anywhere else. after submission the Artilce in a website....??
View 3 RepliesI am having issues implementing SqlSiteMapProvider using the Wicked Code article. I am using VB.NET and SQL Server 2008 - and the OnSiteMapChanged event is not firing (the SqlDepdencyCache just seems to simply be not working at all). The article states "You also need to run the ASP.NET worker process with dbo privileges for SQL Server 2005 cache dependencies to work automatically.)" I don't understand what this means. I know what the ASPNET user account is and that it runs aspnet_wp.exe which is basically the ASP.NET run time as I understand it. I know what DBO privs are on SQL. But my SQL and web servers are on different machines, and ASPNET is not a domain account. And it seems crazy to make it one to try to simply get the SqlDepdencyCache to work, and I have trouble believing everyone is doing this?Anyone have any clue what I'm missing here?
View 2 RepliesI have been searching the INTERNET for a solution to this problem with no luck. I am using a repeater to show the particulars of a document, and would like to add a read more button to the repeater that will show the body of the document when clicked. I am also open to suggestions that doesn't involve a repeater. Here is a screen shot to show what I am trying to do... So when working correctly the area that is boarders would only show when a link or button is clicked.
View 12 RepliesI know this is a wrong place to ask this but i cant resist
I want users of my website to store article with Images..How a i able to store the content in SQL Server?
I have taken up a project at work that was left half finished by the last guy that used to work here, it involves choosing a country, region and town from some drop down lists this is all done in Javascript which leaves this as a problem for me so now I need to retrieve the value of the townID that is stored in a hidden value, I tried this by putting the townID value inside a session and then on postback (after clicking the button) I wanted to parse the session value to retrieve the correct article, but I receive the following error:
Value cannot be null.
Parameter name: String
Here is what I am doing with the code (on the button):
[Code]....
(Postback)
[Code]....
This is the code I am using, the TownID is coming out null!
I have a bunch of news articles and I want to select the most recent one using Linq to Sql. I have an MVC action method like so
[ChildActionOnly]
public ActionResult LatestNews()
{
var article = mhndb.NewsArticles.Single();
return PartialView("LatestNews", article);
}
I would like to know the syntax for selecting the most recent item in the NewsArticles collection using Linq.
The user can write articles and upload images related to that article. Let's say that there is a form that collect the article text and, under it, there is a FileUpload control for images. Here, I have a question. What if the user has uploaded some images and then he closed the browser, before submitting, cancelling the operation? the images have been uploaded to the server wasting space!
one solution I've figured out is to store "ImageInfo"s in a list, and store the list in the Session object. And when the user submit the article, the images in the list should be marked as "related" and then inserted. and in the Session_End event I should delete every image does not have the "related" mark.
I have a list of users that's coming from a web service, each user must be assigned a job as they come in, in a round robin method,
example:
users 1 2 and 3
next it's users 2 3 and back to 1
and so on.
My problem is the list has the abilty to change. Could someone point me in the correct direction, C#, VB does not matter?! Article or Code Snipet
iam not using ASP.NET AJAX-Enabled Web Site, but iam using asp.net website , can use ajax tool there.
pls suggest me how to incorparate the ajax in asp.net website, in all article they showing only in asp.net ajax-enabled website
I have a following requirement:
1. Create a blog with content and images.
2. Category for blogs
3. Comments on each blog
4. Monthly Archives, Recent Blogs and Recent comments.
When i run my asp.net web application i got this error,
An error occurred loading a configuration file: Failed to start monitoring changes to 'Z:CR-IRSTapp_codemodel' because the network BIOS command limit has been reached. For more information on this error, refer to Microsoft knowledge base article 810886. Hosting on a UNC share is not supported for the
Windows XP Platform.