How do i call the Item Template in Formview in vb.net

Hi all i am getting a link from a page in my VB.net project on the page i have a formview with all its templats willed in, i would like to call the Itemteplate as a default


div class="btn_add_schedule">
                  <asp:LinkButton ID="btnAddItem" Text="Add Invoice" runat="server" OnClick="btnAddItem_OnClick" CssClass="btn_text"   PostBackUrl="~/memberpages/invoicedetails.aspx">Add Invoice</asp:LinkButton>/
            
             
              </asp:PlaceHolder>

            </div>


here is the code i have so far
div class="btn_add_schedule">
	            <asp:LinkButton ID="btnAddItem" Text="Add Invoice" runat="server" OnClick="btnAddItem_OnClick" CssClass="btn_text"   PostBackUrl="~/memberpages/invoicedetails.aspx">Add Invoice</asp:LinkButton>/
	       
             
	        </asp:PlaceHolder>

            </div>

Open in new window

awolarczukAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mr_nadgerConnect With a Mentor Commented:
you can set the default template of the formview in the formview DefaultMode property
alternatively, you can set it programmatically with
formview1.ChangeMode(FormViewMode.ReadOnly)
formview1.ChangeMode(FormViewMode.Edit)
formview1.ChangeMode(FormViewMode.Insert)

0
All Courses

From novice to tech pro — start learning today.