Click here to Skip to main content
16,021,211 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Can a Java application call a DotNet WCF service? Pin
Dinesh Mani25-Jan-10 1:20
Dinesh Mani25-Jan-10 1:20 
AnswerRe: Can a Java application call a DotNet WCF service? Pin
April Fans25-Jan-10 0:56
April Fans25-Jan-10 0:56 
QuestionGridViews and Properties... Pin
Illegal Operation24-Jan-10 13:13
Illegal Operation24-Jan-10 13:13 
AnswerRe: GridViews and Properties... Pin
nagendrathecoder24-Jan-10 18:28
nagendrathecoder24-Jan-10 18:28 
GeneralRe: GridViews and Properties... Pin
Illegal Operation24-Jan-10 18:46
Illegal Operation24-Jan-10 18:46 
GeneralRe: GridViews and Properties... Pin
nagendrathecoder24-Jan-10 19:03
nagendrathecoder24-Jan-10 19:03 
GeneralRe: GridViews and Properties... Pin
Illegal Operation26-Jan-10 12:34
Illegal Operation26-Jan-10 12:34 
QuestionNeed Help Pin
kruegersck24-Jan-10 11:35
kruegersck24-Jan-10 11:35 
I have an ASP.Net Page using C# and I am getting this error:

No value given for one or more required parameters.

Here is my code. Any help would be appreciated.

<asp:HiddenField ID="hidfld1" runat="server" />
<br />
<asp:HiddenField ID="hidfld2" runat="server" />
<br />
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/mail.mdb"
DeleteCommand="DELETE FROM Email WHERE ((Email = ?) OR (Email IS NULL AND ? IS NULL))"
InsertCommand="INSERT INTO Email (Email) VALUES (?)"
SelectCommand="SELECT Email FROM Email WHERE (Email = ?)">
<SelectParameters>
<asp:Parameter Name="Email" Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="Email" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Email" Type="String" />
</InsertParameters>
</asp:AccessDataSource>

Code:

protected void Page_Load(object sender, EventArgs e)
{
hidfld1.Value = Request.QueryString["Email"].ToString();
hidfld2.Value = Request.QueryString["ACT"].ToString();

if (hidfld2.Value == "S") AddRec();
else DelRec();
}

protected void AddRec()
{
try
{
AccessDataSource1.InsertParameters["Email"].DefaultValue = hidfld1.Value;
AccessDataSource1.Insert();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}

protected void DelRec()
{
try
{
AccessDataSource1.DeleteParameters["Email"].DefaultValue = hidfld1.Value.ToString();
AccessDataSource1.Delete();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
}
AnswerRe: Need Help Pin
Not Active24-Jan-10 13:13
mentorNot Active24-Jan-10 13:13 
QuestionValidationGroup Pin
farokhian24-Jan-10 10:00
farokhian24-Jan-10 10:00 
AnswerRe: ValidationGroup Pin
Not Active24-Jan-10 13:15
mentorNot Active24-Jan-10 13:15 
QuestionApp too slow :-/ Pin
Matt Cavanagh24-Jan-10 7:46
Matt Cavanagh24-Jan-10 7:46 
AnswerRe: App too slow :-/ Pin
Not Active24-Jan-10 9:22
mentorNot Active24-Jan-10 9:22 
AnswerRe: App too slow :-/ Pin
wilsonmanmcp24-Jan-10 12:10
wilsonmanmcp24-Jan-10 12:10 
AnswerRe: App too slow :-/ Pin
Anurag Gandhi24-Jan-10 17:44
professionalAnurag Gandhi24-Jan-10 17:44 
Questionadding validator callout extender programatically Pin
je198024-Jan-10 6:02
je198024-Jan-10 6:02 
QuestionDisplaying totals in rows Pin
AndyASPVB24-Jan-10 5:04
AndyASPVB24-Jan-10 5:04 
QuestionHow to open document in asp.net? Pin
JC.KaNNaN24-Jan-10 2:09
JC.KaNNaN24-Jan-10 2:09 
AnswerRe: How to open document in asp.net? Pin
Not Active24-Jan-10 2:28
mentorNot Active24-Jan-10 2:28 
GeneralRe: How to open document in asp.net? Pin
JC.KaNNaN24-Jan-10 23:18
JC.KaNNaN24-Jan-10 23:18 
GeneralRe: How to open document in asp.net? Pin
Not Active25-Jan-10 1:13
mentorNot Active25-Jan-10 1:13 
QuestionVisual Studio Web Developer 2008 Pin
Roy Shoa24-Jan-10 1:11
Roy Shoa24-Jan-10 1:11 
QuestionProblem showing the correct value in a gridview Pin
AndyASPVB24-Jan-10 0:59
AndyASPVB24-Jan-10 0:59 
AnswerRe: Problem showing the correct value in a gridview Pin
Not Active24-Jan-10 2:33
mentorNot Active24-Jan-10 2:33 
QuestionFormsAuthentication.SetAuthCookie not working??? or is my logic wrong? [modified] Pin
wilsonmanmcp24-Jan-10 0:19
wilsonmanmcp24-Jan-10 0:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.