首次登录时间(Sharepoint 2007) [英] Firs time loging IN (Sharepoint 2007)

查看:108
本文介绍了首次登录时间(Sharepoint 2007)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

页面需要此页面上提供的链接为首次登录?".这将馈送到要求用户提供5位数字公司代码的页面,并将此代码与sharepoint中的列表进行比较.如果代码匹配,请转到下一页,否则将出错.

我创建了一个页面,该页面将使用5位数字的公司代码.但是我不知道如何与清单比较.

The page needs a link provided on this page that reads ‘First Time Logging In?’. This will feed to a page that asks the user for the 5 digit company code, and compare this code with the list in sharepoint. If code match go to next page otherwise error.

I created a page , which will take 5 digit company code. But i don''t know how to compare with the list.

Any help will be great!

推荐答案

这是SharePoint的基本知识

This is basic SharePoint knowledge

SPQuery query = new SPQuery();
query.Query = "<Where>
   <Eq>
     <FieldRef Name=''myFieldName'' />
      <Value Type=''Text''>value to test for</Value>
  </Eq>
</Where>
";
SPList list = web.Lists["myList"];
SPListItemCollection items = list.GetItems(query);


这篇关于首次登录时间(Sharepoint 2007)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆