Fejl - Must declare the scalar variable
Får denne fejl: Must declare the scalar variable "MailId" og kan ikke finde ud af hvor problemer er! Her er min DataSource:<asp:SqlDataSource ID="sqldsContactform" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString1 %>"
InsertCommand="INSERT INTO [Mail] ([MailId], [Department], [Priority], [Subject], [Message]) VALUES (@MailId, @Department, @Priority, @Subject, @Message)"
ProviderName="<%$ ConnectionStrings:ASPNETDBConnectionString1.ProviderName %>">
<InsertParameters>
<asp:ControlParameter Name="Department" Type="String" ControlID="Department" PropertyName="Text" />
<asp:ControlParameter Name="Priority" Type="String" ControlID="txtPriority" PropertyName="Text" />
<asp:ControlParameter Name="Subject" Type="String" ControlID="txtSubject" PropertyName="Text" />
<asp:ControlParameter Name="Message" Type="String" ControlID="txtMessage" PropertyName="Text" />
</InsertParameters>
</asp:SqlDataSource>
Tak på forhånd, Kim.