I have a code snippet. & i wanted to pass msg_arr as a parameter,array name is msg_arr
Here is my try 1,but getting eror
private void check(string keyword params arr[] msg_arr )
{
switch (keyword.ToUpper())
{
case "SETTELG":
Response.Redirect("../SMSFunction/SeenSMS.ascx?value=1&arr" + msg_arr);
break;
Here is my try 2,also error
private void check(string keyword string msg_arr[] )
{
switch (keyword.ToUpper())
{
case "SETTELG":
Response.Redirect("../SMSFunction/SeenSMS.ascx?value=1&arr" + msg_arr);
break;
Well, you are missing a comma between the parameters:
If that’s not the case, please post the whole code and the actual error message. A good idea is to read the documentation on params.