Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Set a file/folder read-only
Old 11-29-2004, 05:14 AM Set a file/folder read-only
Junior Talker

Posts: 4
Trades: 0
Hi!

I want to change the attributes of a file or folder to "read-only", so that it cant be deleted.
Can somebody help me out?
thx a lot,
greets ben
Benyn is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-29-2004, 08:31 AM
KCamel's Avatar
Average Talker

Posts: 16
Trades: 0
If you use ItemTemplate you can use the LoginView control to hide an control.

Code:
<asp:GridView ID="GridView1" Runat="server" DataSourceID="SqlDataSource1">

<Columns>

    <asp:TemplateField>

        <ItemTemplate>

            <asp:LoginView ID="loginView" Runat="Server">

                <RoleGroups>

                    <asp:RoleGroup Roles="Users2">

                        <ContentTemplate>

                            <asp:Button ID="DeleteButton" Text="Delete" Runat="Server" />

                        </ContentTemplate>

                    </asp:RoleGroup>

                </RoleGroups>

            </asp:LoginView>

        </ItemTemplate>

    </asp:TemplateField>

</Columns>

</asp:GridView>
__________________
* KCamel Inc, Host it Simple!
* Different Support Methods! 24\7!
* For more information contact me on:
Moe J. Mughrabi

Please login or register to view this content. Registration is FREE

*
Please login or register to view this content. Registration is FREE
KCamel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Set a file/folder read-only
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13443 seconds with 12 queries