sharepoint

How to tie a dropdown list to a gridview in Sharepoint 2007?

怎甘沉沦 提交于 2020-01-15 11:22:27
问题 This should be a really really simple thing, but for some reason it is just eluding me. I want a Sharepoint page which will have a drop down list that is tied to a database lookup table. When an item is selected and they click a GO button, I want it to update a gridview that is also on the page. I'm looking for a simple how to - while assuming I'm a sharepoint idiot. BTW, I am using the Microsoft Office Sharepoint Designer. Thanks, Edit: My need is actually very simple. I want to filter the

Add ASP.NET control to Sharepoint Web Part

妖精的绣舞 提交于 2020-01-15 10:15:49
问题 I'd like to dynamically add an ASP.NET LinkButton to my SharePoint web part. I'm hooking the LinkButton up with an event-handler, but when I execute the code it seems the event is never fired. Where in the life-cycle (which event) should I add such a control and how? Thanks. 回答1: Add it in the CreateChildControls() event in the webpart, like: protected override void CreateChildControls() { LinkButton linkbutton = new LinkButton(); linkbutton.Click += ClickButton; this.Controls.Add(linkbutton)

Add ASP.NET control to Sharepoint Web Part

醉酒当歌 提交于 2020-01-15 10:15:33
问题 I'd like to dynamically add an ASP.NET LinkButton to my SharePoint web part. I'm hooking the LinkButton up with an event-handler, but when I execute the code it seems the event is never fired. Where in the life-cycle (which event) should I add such a control and how? Thanks. 回答1: Add it in the CreateChildControls() event in the webpart, like: protected override void CreateChildControls() { LinkButton linkbutton = new LinkButton(); linkbutton.Click += ClickButton; this.Controls.Add(linkbutton)

SharePoint 2007 : Get all list items in a list regardless of view from web service?

一世执手 提交于 2020-01-15 09:44:09
问题 I need to check for duplicates. Currently I have items stored in sub folders in a list. How can I retrieve all items in the list from a web service, so I can check for duplicates? Here is code from object model: I want to do exactly this, but from a web service private static void PrintItemTitles() { string strUrl = "http://localhost:8099/"; using (SPSite site = new SPSite(strUrl)) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists["MyList"]; SPListItemCollection items = list

jquery SPGetCurrentUser() to get the current logged in username in sharepoint 2007

眉间皱痕 提交于 2020-01-15 07:43:36
问题 I would like to use jquery to get the current logged in username and pass the user information to the connectible webpart. This is what I have written in CEWP. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function() { var thisUserAccount = $().SPServices.SPGetCurrentUser({ fieldName: "Name", debug: false }); alert(thisUserAccount); } ); </script> but nothing is hapening. I dont

Create Feature to Upload Site Template File (.stp) in MOSS

别来无恙 提交于 2020-01-15 06:09:10
问题 Following on from this question, I have created a feature to upload an site template file as part of an automated build of a SharePoint site. However, while the feature deploys the .stp file correctly to the hive, and the solution appears in the CAS | Operations | Solution Management page, the site template does not appear in the site template gallery as expected. I have given the contents of the feature.xml and elements.xml files below; can anyone spot where I am going wrong? feature.xml <

SPFarm.Local is return null

爱⌒轻易说出口 提交于 2020-01-15 05:34:06
问题 SPFarm.Local is return null I have googled. x64 and x86 problem - No Access issue - No Additional 1. Database server is up 2. Sites are opening 3. CA is opening The account is 'System Account' under which the code is running. Always worked before. Now suddenly it started returning null. Any ideas? Thanks in advance. 回答1: A simple server/machine restart solved the problem. Some of my friends faced similar issue and restarting solved the issue. :) 回答2: I tried by changing from x64 or x86 to Any

Global Customized View for Document Libraries in Sharepoint

断了今生、忘了曾经 提交于 2020-01-14 18:59:07
问题 In Sharepoint document library, when we create a new document library, the default view is 'All Document'. This one: We can make a custom view from View > Create View (at the upper right corner of document library view). I created a new standard view and named it 'Chromed View'. I edited it, then I saw that this view only applied on current document library: The other document libraries cannot use this view. I develop a system that triggers document library creation from CRM (the document

TFS2010: Opening certain Excel reports gives error TF80076

江枫思渺然 提交于 2020-01-14 13:51:07
问题 When I try and open certain TFS2010 Excel reports I get the following error popup from Excel: TF80076: The data in the work item is not valid or you do not have permissions to modify the data. Please correct the problem and retry. This is then followed by the popup: TF208103: The initialization of the workbook to connect to Team Foundation Server was not successful. THe workbook will close.... etc. etc.. ... and Excel closes. The reports that throw this error include: Documents -> Samples and

SqlServer事务日志满的解决方案

本小妞迷上赌 提交于 2020-01-14 13:35:41
这是微软社区精英项目传过来的一个案例。 我当时给了解决方案。 问题描述: 环境说明: 操作系统 win2003 数据库 SQL SERVER 2000 SP4 数据库数据大小 150GB左右 具体故障描述: 连接门户系统 提示无法连接到配置服务器 去服务器本地查看 右下角提示 数据库所在的磁盘已满 于是把SQL服务停掉 该磁盘立即有十几GB的空间释放 重新启动SQL服务 连接门户系统 依然提示无法连接配置数据库 在SQL控制台连接该数据库也是连不上 门户系统共三台服务器 : 10.205.1.6 应用系统服务器 SharePoint 10.205.1.7 门户DB 服务器 数据库服务器 SQL 2000 10.205.1.5 DC服务器 出现该错误的是10.205.1.7 数据库服务器 错误截屏: 解决方案: 这个问题初步看起来是SharePoint_Config和tempdb数据库的日志文件占用过大空间,以致于所在磁盘空间满了。 要解决这个问题,要稍微麻烦点。因为磁盘空间已满,SqlServer服务有可能无法正常启动。先不要让应用程序连接数据库,SharePoint也不要连接数据库。试着启动SqlServer服务。看看能否启动起来。如果不能,需要腾出来一点空间来。删除一些暂时不要的软件。总之要让SqlServer服务启动起来。如果SqlServer服务能起来,就做下面的。