I am making a web site by using web forms and I have a part named "news" on the index page. After I finished the web site, I want users to add new news by uploading a file or by writing a text ot both of them. So I did upload part and saved the files on
te database. But I confused, how will I fetch necessery texts and files to the links. I want add new texts or files on a web form. I couldn't find how to do it.
What is I want is something like forum sites. Every user add new heading and a text sometimes attach files. And I want to hold these things on links in a web form.
name_d
None
0 Points
6 Posts
File uploading
Feb 01, 2013 07:53 AM|LINK
Hi,
I am making a web site by using web forms and I have a part named "news" on the index page. After I finished the web site, I want users to add new news by uploading a file or by writing a text ot both of them. So I did upload part and saved the files on te database. But I confused, how will I fetch necessery texts and files to the links. I want add new texts or files on a web form. I couldn't find how to do it.
What is I want is something like forum sites. Every user add new heading and a text sometimes attach files. And I want to hold these things on links in a web form.
Can give me idea?
HostingASPNe...
All-Star
15882 Points
2977 Posts
Re: File uploading
Feb 01, 2013 08:05 AM|LINK
Hello,
If you use database then you can have linkID, file and text, so when you generate the links you can get the right file and text.
Regards
Free ASP.NET Examples and source code.
anuj_koundal
Contributor
2088 Points
496 Posts
Re: File uploading
Feb 01, 2013 08:10 AM|LINK
Use a WYSIWYG Editor to post content and images at the same time and save all data to database.
Regards
Anuj Koundal
name_d
None
0 Points
6 Posts
Re: File uploading
Feb 01, 2013 08:14 AM|LINK
I will look at the links thanx
name_d
None
0 Points
6 Posts
Re: File uploading
Feb 01, 2013 08:14 AM|LINK
Ok, but how will I generate links automatically, that's the point I confused.
anuj_koundal
Contributor
2088 Points
496 Posts
Re: File uploading
Feb 01, 2013 11:58 AM|LINK
If you follow articles I have provided you will get answer to all your queries.
You can also see this asp .net starter kit:
Regards
Anuj Koundal
name_d
None
0 Points
6 Posts
Re: File uploading
Feb 04, 2013 11:09 AM|LINK
I installed CKeditor and I read and implement the tutorial but I couldn't manage to make the connection of Database.
Tutorial is on FCKeditor but now it is CKeditor, I changed something it worked a bit.
http://evonet.com.au/creating-a-content-management-system-for-your-asp-net-web-site/ in this tutorial there is a code:
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" ToolbarSet="MyToolbarSet" Value='<%# Bind("html") %>' EditorAreaCSS="/css/editor.css"> </FCKeditorV2:FCKeditor><CKEditor:CKEditorControl ID="CKEditorControl1" runat="server" BasePath="/ckeditor/" ToolbarSet="MyToolbarSet" AutoPostBack="True" ContentsCss="~/ckeditor/contents.css"></CKEditor:CKEditorControl>
Value='<%# Bind("html") %>'
isnt working in my code. But I understood the logic of this CK Editor thanx.
name_d
None
0 Points
6 Posts
Re: File uploading
Feb 04, 2013 11:55 AM|LINK
http://evonet.com.au/creating-a-content-management-system-for-your-asp-net-web-site-with-ckeditor/ this is the updated version of that link. I will try again. I added it incase someone needs this tutorial.