Answer Questions
bonnielee O/R Mapping and visual controls
Hi I'm rather new to .Net: what is the best way to link persistent domain objects with data-aware visual controls What I'm trying to do is to use a rich domain model, get an O/R mapping tool/framework (e.g. NHibernate) to take care of persistence but still be able to use Girds and other DB controls. Any help would be greatly appreciated. Andrei. But I thought that Datasets would take care of at least filtering and sorting - I mean, I would expect that it will fire a new select query to get it sorted by some column or apply a filter. That way dataset does not have to fetch all the data to sort/filter it. Am i being completely wrong here Thanks Andrei It need to be a ...Show All
DavidAWinter How to call HelloWorld service with parameters ?
Hi, we are trying to extend the HelloWorld sample. The webservice currently has one function HelloWorld, which returns back a string value. But, what if we modify this HelloWorld service, to accept some parameters also, as below: [WebMethod] public string HelloWorld ( string parameter ) { return parameter; } while making a call, we would write < Route > < Criteria > (ACTION EQ 'http://tempuri.org/HelloWorld') </ Criteria > < Destination > HelloWorldParticipant[http://tempuri.org/HelloWorld parameter="Hello World"] </ Destination > </ Route > But this does not work. Any idea on how to call webservice from ...Show All
Seth Cohen i need to change the default value of a field in create new item in the task list items
Hi, when the user is working on a certain list and he clicks on new item. I need to change the default value on one of the fields programmaticaly. So I did this, let s suppose that my list is called Tasks and the field that I need to change is the " Title " field. And I am working in a site called site2 in my Sharepoint web site. What I did I create a web part and add it to the NewForm.aspx page in the Tasks directory. Then I did this in CreateChildControls () method I did this in the code : for (int j = 0; i < spw.Lists.Count; j++) { &nbs ...Show All
JavaBoy some questions about Algorithms!
hello i`m a student,and i also develope codes in c#, i have some questions about some algorithms,and specially about their analysing. it has things like O(n),Omega and... please tell me where i can ask questions like this ooops man thank you for your logical answer anyway! I think the best place to ask things about C# algorithms is the Visual C# Language Forum. What questions do you have anyways Hummmm..... Thought I'd tag along here - I have a traditional bute force algorithm to a problem, but I think it's the travelling salesman problem, can't quite see how to apply it (and I haven't implemented it in ...Show All
Takezo workflow triggered during upload but after the user enters values in the properties dialog
1) When " Start this workflow when a new item is created " option is selected the workflow gets triggered as soon as the file is uploaded and even before the 'edit properties' dialog is displayed . I want the workflow to be triggered after the properties are entered by the user on upload. 2) Selecting "Start this workflow when an item is changed." option also does not trigger the workflow during upload. This triggers only when the user explicitly selects 'Edit Properties' dialog. So my question is, how to get the workflow triggered during upload but after the user enters values in the properties dialog. Use 'Advanced Settings' to enable 'custom content type' then you will be ab ...Show All
NeederOfVBHelp The event receiver context for Workflow is invalid
Has anyone experienced the error:- The event receiver context for Workflow is invalid - appears in the error log after starting a statemachine WF - there's no error in MOSS and I can step through the onworkflow activated and create task events without error This WF is attached for review of a page and when viewing WF status it reports failed on start. Any help appreciated! I have taken the statemachinedemo (sharepoint wf sdk) initiation form (and customized it) to make use of the user authentication controls (dont know which control/activex control this is, anyone know ) to validate the user (windows authentication) - the error has gone away, so I assume the WF couldn't assign a tas ...Show All
Sicundercover Issue with managed UDF
Hello I have been trying to use managed UDF for the Client (as Add-In) and Server excel workbook on sharepoint server. I have followed the site http://msdn2.microsoft.com/en-us/library/bb267252.aspx which explains " Extending the Excel Services Programmability Framework". 1. Created a UDF project. My UDF consists of a simple method which will return a string. It is marked with the volatile attribute as true. 2. After creating the project, I have assigned a strong name to the assembly and copied the dll onto some other folder and also registered the dll. 3. Created a excel workbook that calls the UDF method. 4. The excel workbook is placed in a trusted file location and the UDF is registered as a trusted ...Show All
AndyMc Looking for database design patterns
Hi all, I am looking for some good references or guidance on database design. Some of the issues I would like to research include: Storing hierarchies. From what I can gather there are 3 main ways to do this. Storing graphs. By this I mean graphs with vertices and edges, not graphics or images. i.e. see http://en.wikipedia.org/wiki/Graph_theory Recording and reporting on changes to items over time. Through, for example, History tables or using Insert-only tables. Custom item types. The ability for customers to define their own types of items. Custom metadata. Ability for customers to add fields to items. Some ways I have seen to do this include: extension table per type, store custom data in an XML ...Show All
Fredrik Melin Web Service for Bank's internal operations
Dear All. I am very new to XML Web Services. I read that ther are suitable for connecting different organizations and different systems. But What do you think Is it true logic to use Web Services for inside bank operations: f.e: AddNewCustomer, EditCustomer, DebetAccount. So, in general operatiosn that use "Data Manipulation Language". So, not to use siply Client-Server architecture, there will Client-WebSrvice/s - Database Server. As we know bank's has bunch of records. Are WebServices good candidate for such bunch operations Thanks in advance. Teymur Hi All, I have the same problem and just wandering how to implent 3 tier in this case Need web service or remoting or other simple wa ...Show All
Kirk Lipscomb Message Routing doesn't work
Hi, all. I defined a very simple ASP.NET Web service as follows (namespace omitted): [WebService(Namespace = " http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : WebService { [WebMethod] public void Log(string log) { using (StreamWriter writer = File.CreateText(@"C:\log.txt")) { write.WriteLine(log); } } } The session manifest is as follows: <Session timestamp="0001-01-01T00:00:00.0000000-08:00" timeout="30" serialize="None" routeAnyAction="true" ackOnRouteMsgToParticipants="false" xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:xsi=" http://www.w3.org/2001 ...Show All
yem Deficiencies in Layered approach of Architecure
Hi, Need to validate following WEB based application architecture. Please mention flows in it. Architecture consists 1) Presentation Layer (Entity objects) 2) Business Logic Layer (Consuming serialized Entity objects, Deserialize them into Entity objects again and applying Business Rules) 3) Data Access Layer (Consuming Entity objects from BLL to save into database, fetch EO from Database and pass to BLL) What are the cons of using XML Serialization between presentation layer and Business Logic Layer Is there any other implicit serialization applied if application is deployed in Web Farm environment. (Session serialization by State Server ) Maintainability of code in case Layers are loosly coupled Thanks, Narendra When ...Show All
Harish1 Visual Studio 2005 Crashes after installing Extensions for Windows Sharepoint services
After installing Windows sharepoint services for VS 2005, I created a web part but then went I attempt to view the Sharepoint solution properties tab in project properties it causes Visual studio to crash. The following error is displayed. "Microsoft Visual Studio has encountered a problem and needs to close" The further error message displayed in the Event log is as follows; Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module unknown, version 0.0.0.0, stamp 00000000, debug 0, fault address 0x0a9f042e. Has anyone seen this error before Hi... I have the extension running. Sorta... First off, the "SharePoint Solution" tab under the "Project Properties" didn't wo ...Show All
stenlik Where can I download the wss12.xsd file?
I am trying to edit a .webpart file and would like to add the schema to the properties for the file in VS 2005. However, in my 12 hive directory there is only a wss.xsd file and no wss12.xsd or anything resembling that. Several forum posts make references to the wss12.xsd file but I can't find it on the web anywhere. Also, I have installed SharePoint 2007. That would be fine except that the wss.xsd does not contain a schema for the .webpart file and other schemas for the deployment. Do you know of any file that has the schema for webpart files I've no issues creating and deploying webparts. To create a webpart I do the following: Open VST2005 se ...Show All
honey1016 Auto Forward User to 'My Site'
Dear all, How to auto forward user to their My Site. Currently when user login, they will see the master Sharepoint Page. Thank you I was trying to find the particular default.aspx and could not for the life of me. Which one of the 2 dozen or so default.aspx pages represents the Portal home page What is the javascript to redirect someone to another site Someone gave me this and I put it in a CEWP and it doesn't do anything. <script type="text/javascript"> <!-- window.location = " http://www.google.com/ " //--> </script> Can anyone help Thanks. Bailey ...Show All
Rune Gulbrandsen How to get authenticated password of sharepoint site user to pass on NetworkCredential() method as parameters
I am creating a user control page(ascx) using the web services from SharePoint Services/Project Server site. As we know that the user name and password needs to access the sites of them. I used the following code(C#) to access the web services, it will work fine. There is already Windows Authentication in Sharepoint Site. //UserGroupWS is Added Web Service private static UserGroupWS.UserGroup userGroup = new UserGroupWS.UserGroup(); userGroup.Url = " http://DomainName/_vti_bin/UserGroup.asmx "; userGroup.Credentials = new System.Net.NetworkCredential("UserName", "Password", "DomainName"); Note that there are the parameters namded "Password" also in NetworkCredential() method. W ...Show All
