在vs2010中,如何获得元素的GUID?是点击 元素 再 击点“工具”,击点“创建GUID”。
还是不用 点击 元素,随便获取GUID就可以?

解决方案 »

  1.   

    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div>
    Task Title:
    <asp:Label ID="lblTitle" runat="server"></asp:Label>
    <br /><br />
    Please estimate the project costs:
    <asp:TextBox runat="server" ID="EstimatedCosts"></asp:TextBox>
    <asp:RequiredFieldValidator id="valRequired" runat="server"
    ControlToValidate="EstimatedCosts" ErrorMessage="* Enter Number"
    Display="dynamic" type="Integer">
    </asp:RequiredFieldValidator>
    <asp:radiobuttonlist id="Outcome" runat="server">
    <asp:listitem id="Approve" runat="server" value="Approve" />
    <asp:listitem id="Deny" runat="server" value="Deny" />
    </asp:radiobuttonlist>
    <br /><br />
    <asp:Button runat="server" ID="btnSubmit" OnClick="btnSubmit_Click" Text="Submit" />
    </div>
    </asp:Content>
    这是一个应用程序页。这是用于vs2010 sharepoint中的顺序工作流的一个页面。下面是配置文件:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: WorkflowTask (0x01080100) -->
    <ContentType ID="0x0108010031cda7a5483c452f93520d98df2f824a"
    Name="EstimationTaskContentType"
    Group="Project Approval"
    Description="Custom Task for ProjectApproval"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{6CBABC50-4BC1-4399-BDC0-7C0155F2CC89}" DisplayName="EstimatedCosts"
    Name="EstimatedCosts"/>
    <FieldRef ID="{074AE023-34DD-4C2A-AA67-F9B88063C2BC}" DisplayName="Outcome"
    Name="Outcome"/>
    </FieldRefs>
    <XmlDocuments>
    <XmlDocument
    NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
    <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
    <Edit>_layouts/ProjectApprovalForms/EstimationTask.aspx</Edit>
    <Show>_layouts/ProjectApprovalForms/EstimationTask.aspx</Show>
    </FormUrls>
    </XmlDocument>
    </XmlDocuments>
    </ContentType>
    </Elements>
    其中,FieldRef ID就是GUID,是如何获取的?
      

  2.   

    这些guid是数据源(或者是sharepoint或者是业务引擎)生成的,和VS2010半毛钱关系都没有...
      

  3.   

    我也没用过  
    原来这就是GUID啊