By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,247 Members | 871 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,247 IT Pros & Developers. It's quick & easy.

Disable edit/delete from formview in

P: n/a

I'm working in and i need to disable the edit/delete
functionality from a frmview component.

help me.thang you!

my ACL sub:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim Content1 As ContentPlaceHolder =
Dim Label1 As Label = Content1.FindControl("Label1")
Dim Control1 As Control
Dim Control2 As Control
For Each Control1 In Content1.Controls
If TypeOf Control1 Is FormView Then
'Label1.Text = Label1.Text & "<br/>" & CType(Control1,
For Each Control2 In Control1.Controls

'If TypeOf Control2 Is LinkButton Then
'If CType(Control2, LinkButton).CommandName = "delete"
Then 'it's ok????
'CType(Control2, LinkButton).Enabled = False

'End If
'End If
End If
End Sub

i'm sorry,my english is poor!
Jan 3 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.