Click here to Skip to main content
15,914,397 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionI can´t get any output from XML and Binary. Pin
Marc Hede8-Dec-19 3:51
Marc Hede8-Dec-19 3:51 
AnswerRe: I can´t get any output from XML and Binary. Pin
Richard MacCutchan8-Dec-19 5:15
mveRichard MacCutchan8-Dec-19 5:15 
GeneralRe: I can´t get any output from XML and Binary. Pin
Marc Hede8-Dec-19 7:17
Marc Hede8-Dec-19 7:17 
GeneralRe: I can´t get any output from XML and Binary. Pin
Richard MacCutchan8-Dec-19 21:51
mveRichard MacCutchan8-Dec-19 21:51 
QuestionExample Needed Pin
Mycroft Holmes30-Nov-19 12:02
professionalMycroft Holmes30-Nov-19 12:02 
QuestionRe: Example Needed Pin
Maciej Los3-Dec-19 1:53
mveMaciej Los3-Dec-19 1:53 
QuestionProblem with Using Directive Pin
Dawud Ahmad29-Nov-19 17:00
Dawud Ahmad29-Nov-19 17:00 
AnswerRe: Problem with Using Directive Pin
phil.o29-Nov-19 22:19
professionalphil.o29-Nov-19 22:19 
SuggestionRe: Problem with Using Directive Pin
Richard Deeming3-Dec-19 0:47
mveRichard Deeming3-Dec-19 0:47 
QuestionShould I begin with razor pages or mvc? Pin
Dawud Ahmad29-Nov-19 6:29
Dawud Ahmad29-Nov-19 6:29 
AnswerRe: Should I begin with razor pages or mvc? Pin
Richard MacCutchan29-Nov-19 7:27
mveRichard MacCutchan29-Nov-19 7:27 
AnswerRe: Should I begin with razor pages or mvc? Pin
Richard Deeming29-Nov-19 8:01
mveRichard Deeming29-Nov-19 8:01 
QuestionNewbie here. Why is my array list not working? Pin
Marc Hede28-Nov-19 0:31
Marc Hede28-Nov-19 0:31 
AnswerRe: Newbie here. Why is my array list not working? Pin
phil.o28-Nov-19 0:41
professionalphil.o28-Nov-19 0:41 
AnswerRe: Newbie here. Why is my array list not working? Pin
Richard Deeming28-Nov-19 1:24
mveRichard Deeming28-Nov-19 1:24 
GeneralRe: Newbie here. Why is my array list not working? Pin
Marc Hede28-Nov-19 6:14
Marc Hede28-Nov-19 6:14 
GeneralRe: Newbie here. Why is my array list not working? Pin
Richard Deeming28-Nov-19 6:39
mveRichard Deeming28-Nov-19 6:39 
GeneralRe: Newbie here. Why is my array list not working? Pin
Marc Hede28-Nov-19 9:09
Marc Hede28-Nov-19 9:09 
GeneralRe: Newbie here. Why is my array list not working? Pin
Richard Deeming29-Nov-19 0:34
mveRichard Deeming29-Nov-19 0:34 
GeneralRe: Newbie here. Why is my array list not working? Pin
Marc Hede29-Nov-19 3:00
Marc Hede29-Nov-19 3:00 
QuestionDuring redirection localhost is not attached and page failed to load Pin
Member 1115418827-Nov-19 23:59
Member 1115418827-Nov-19 23:59 
AnswerRe: During redirection localhost is not attached and page failed to load Pin
Richard Deeming28-Nov-19 1:18
mveRichard Deeming28-Nov-19 1:18 
QuestionASP.net In Visual Studio 2019 Pin
Ebrahimaw20-Nov-19 13:09
Ebrahimaw20-Nov-19 13:09 
AnswerRe: ASP.net In Visual Studio 2019 Pin
Eddy Vluggen20-Nov-19 14:03
professionalEddy Vluggen20-Nov-19 14:03 
QuestionSQL Parameter Collection - Not able to assign to SQLCommand Pin
Member 1115418819-Nov-19 6:11
Member 1115418819-Nov-19 6:11 
Hello Friends,

i have following code. I am getting Error "The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter[] objects."
in the line
cmd.Parameters.Add(HasPermissionParams).

Please help.

Thanks in Advance.

SqlCommand cmd = GetCommand(Sql_GetPermission);
SqlParameter[] HasPermissionParams = GetInsertParameters(Sql_GetPermission);
SetHasPermissionParams(HasPermissionParams, EmpID, Permission);
cmd.Parameters.Add(HasPermissionParams);


private static void SetHasPermissionParams(SqlParameter[] parms, string EmpID, string Permission)
{
parms[0].Value = EmpID;
parms[1].Value = Permission;
}

private const string Sql_GetPermission = "[sp_Permission]";


private static SqlParameter[] GetInsertParameters(string querytype)
{
SqlParameter[] parms = null;

switch (querytype)
{
case Sql_GetPermission:
parms = new SqlParameter[]
{
new SqlParameter("@EmpID", SqlDbType.VarChar),
new SqlParameter("@PermissionName", SqlDbType.VarChar)
};
break;
}
return parms;
}

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.