Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how can I add .txt files or .pdf files at runtime in my ASP.NETproject

Reply
Thread Tools

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

 
 
sethia.prashant@gmail.com
Guest
Posts: n/a
 
      05-14-2008
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....

 
Reply With Quote
 
 
 
 
Jayakrishnan
Guest
Posts: n/a
 
      05-14-2008
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

 
Reply With Quote
 
 
 
 
sethia4u
Guest
Posts: n/a
 
      05-14-2008
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
 
Reply With Quote
 
Jayakrishnan
Guest
Posts: n/a
 
      05-14-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Panasonic: 'We can't add any more noise to the FZ28 successor soWe'll add HD video" SMS Digital Photography 12 08-10-2009 05:59 AM
Runtime.exec(String[]) Doesn't Always Work, bBut Runtime.exec(String) Does Hal Vaughan Java 11 05-22-2006 04:49 PM
LocaWapp 09 - localhost web applications (add thread, add "Request" object, new "locawapp_main" function, fixed files.py," ...) . Python 0 05-12-2006 10:24 PM
Re: How to add eventHandlers at runtime? Scott Meddows ASP .Net 1 09-06-2003 08:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57