473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how can I add .txt files or .pdf files at runtime in my ASP.NETproject

Dear programmers/Developers,

I'm developing a website of e-Learning, I have finished approx 50% of
my project, now I'm getting problem.

My website will be accessed by three type of users.
1. Student
2. Faculty
3. Administrator

All must have user ID and password to access that website.

problem:
Admin can add,edit and delete courses runtime. So I have to provide
such interface by which admin can add course files which will be
in .txt, .pdf, .html format.

Please tell me how can I add these files at runtime and where should I
store these files....

Jun 27 '08 #1
3 1067
se*************@gmail.com wrote:
Dear programmers/Developers,

I'm developing a website of e-Learning, I have finished approx 50% of
my project, now I'm getting problem.

My website will be accessed by three type of users.
1. Student
2. Faculty
3. Administrator

All must have user ID and password to access that website.

problem:
Admin can add,edit and delete courses runtime. So I have to provide
such interface by which admin can add course files which will be
in .txt, .pdf, .html format.

Please tell me how can I add these files at runtime and where should I
store these files....
You can use the upload concept and role based authentication. Give
permissions to the folder in web.config file as follows.

<location path="UploadFolder/Files">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>

On upload click. You just check a condition before uploading files.

If Context.User.IsInRole("Admin") Then
......
End If

thats all.

Let me know if you have any trouble.

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40

Jun 27 '08 #2
On May 14, 9:41*am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
sethia.prash...@gmail.com wrote:
Dear programmers/Developers,
I'm developing a website of e-Learning, I have finished approx 50% of
my project, now I'm getting problem.
My website *will be accessed by three type of users.
1. Student
2. Faculty
3. Administrator
All must have user ID and password to access that website.
problem:
Admin can add,edit and delete courses runtime. So I have to provide
such interface by which admin can add course files which will be
in .txt, .pdf, .html format.
Please tell me how can I add these files at runtime and where should I
store these files....

You can use the upload concept and role based authentication. Give
permissions to the folder in web.config file as follows.

<location path="UploadFolder/Files">
* * * * <system.web>
* * * * * * * * <authorization>
* * * * * * * * * * * * <allow roles="Admin"/>
* * * * * * * * * * * * <deny users="*"/>
* * * * * * * * </authorization>
* * * * </system.web>
</location>

On upload click. You just check a condition before uploading files.

If Context.User.IsInRole("Admin") Then
.....
End If

thats all.

Let me know if you have any trouble.

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40- Hide quoted text -

- Show quoted text -
can u tell me ur cell no. so that i can contact u?
I like ur way in which u tell me ur suggetions...

thanx
Jun 27 '08 #3
sethia4u wrote:
On May 14, 9:41 am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
>sethia.prash...@gmail.com wrote:
>>Dear programmers/Developers,
I'm developing a website of e-Learning, I have finished approx 50% of
my project, now I'm getting problem.
My website will be accessed by three type of users.
1. Student
2. Faculty
3. Administrator
All must have user ID and password to access that website.
problem:
Admin can add,edit and delete courses runtime. So I have to provide
such interface by which admin can add course files which will be
in .txt, .pdf, .html format.
Please tell me how can I add these files at runtime and where should I
store these files....
You can use the upload concept and role based authentication. Give
permissions to the folder in web.config file as follows.

<location path="UploadFolder/Files">
<system.web>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>

On upload click. You just check a condition before uploading files.

If Context.User.IsInRole("Admin") Then
.....
End If

thats all.

Let me know if you have any trouble.

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40- Hide quoted text -

- Show quoted text -

can u tell me ur cell no. so that i can contact u?
I like ur way in which u tell me ur suggetions...

thanx
Thanks, I m available online most of the time.

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gert Schumann | last post by:
I'm operating on sun OS 5.6 I ping a host every 10 seconds to get knowlegde wheather it is running or not. After about one and a half hour I get this Exception: java.io.IOException: Too many open...
0
by: Frédéric Paimparet | last post by:
Hi, When I try to install the prequisite component "Setup Runtime Files" the installation process stop and this component is not installed. I have tried to execute the Bootstrap.msi file...
6
by: Jozef | last post by:
Hello, First off, let me say that I DO own XP Developers edition, so I do have a license to distribute the runtime. What I'm looking for is the bare bones files I need to deploy a runtime...
12
by: Mark Broadbent | last post by:
Hi guys, just going through remoting at the moment and a couple of questions relating to .net in general has surfaced. Firstly I have seen in the designer that for the namespace and many of its...
1
by: Mamatha | last post by:
Hi friends, I have an application using mutithreads.In that application one threads writes the data in to a file. Another thread reads the data from same file. So some errors while at the time...
0
by: Master Programmer | last post by:
Well kids, Todays lesson in computing is an explanation of the Microsoft .NET "Framework"............. DEFINITION *************** The MS "Framework" is a term used to describe the Visual...
2
by: Andrus | last post by:
I have resource files in different languages created by VCS 2005 Express. I want to use those files to translate reports at runtime. I have text to be translated as string. I think I need to...
5
by: DBC User | last post by:
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have...
6
by: chrisbirk | last post by:
Hi! I want to write an application on windows xp, which iterates n times a model script (exe) and copies every single run the results (multiple files such as text, maps, subfolders,etc) from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.