Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 can t insert a form digest

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2007-01-18 : 23:05:28
I get the error:
Object reference not set to an instance of an object.]
Microsoft.SharePoint.WebControls.SPControl.EnsurePageUri() +81
Microsoft.SharePoint.WebControls.SPControl.get_PageUri() +24
..........
when Insert my formdigest control like this:
<body>
<form id="Form1" method="post" runat="server">
<SharePoint:FormDigest ID=frmdig runat=server/>
<input id="File1" type="file" runat="server" title="upldFileBox"/>
<asp:Button id="Button1" runat="server"
Text="Upload File" OnClick="Button1_Click1"></asp:Button>
<asp:TextBox id="destFile" runat="server"></asp:TextBox>
<asp:TextBox ID="srcFile" runat="server"></asp:TextBox>

</form>
</body>
any idea pls?
Thanks
   

- Advertisement -