Reply
Set a file/folder read-only
Old 11-29-2004, 04: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
 
 
When You Register, These Ads Go Away!
Old 11-29-2004, 07: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
Moe@KCamel.com
* KCamel.com
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.08377 seconds with 13 queries