开发者

get list name in sharepoint 2010

开发者 https://www.devze.com 2023-02-12 02:15 出处:网络
how to get current used list name. my scnerio is: i have a list said config. i have create one column say \"test\" whose datatype is \"Managed Metadata\". now after 开发者_StackOverflowadd this column

how to get current used list name. my scnerio is: i have a list said config. i have create one column say "test" whose datatype is "Managed Metadata". now after 开发者_StackOverflowadd this column.now when i edit this item and click on icon near to "test" column one dialog is open which is webtaggig.aspx something like that.

now, i had open my custom control in this page. when page opened , my control is loaded. now on my custom control page load i want to get the list name programatically.

can any one suggest me how can i do this?


Have a look at the SPContext object. You would need something like SPContext.Current.List.Title to get the name or title of the current list.

0

精彩评论

暂无评论...
验证码 换一张
取 消