0

JavaScript function:

function WelcomeMessageMaster(clientID) {
    alert("ClientID = " + clientID);
}

C# code:

clientStageCommand = new ClientStepCommand
{
    CommandType = ClientStageCommandType.Eval,
    Argument = "WelcomeMessageMaster"/("/" + this.Grid.UniqueID + ""/)""
};

But, there's compiler error that says something's wrong with brackets. I'm not sure where to put quotation marks.

1
  • Excuse me, it's similar, but not the same. I haven't posted whole code. Could you open it, please? Commented Mar 6, 2013 at 12:13

1 Answer 1

0
clientStageCommand = new ClientStepCommand
{
    CommandType = ClientStageCommandType.Eval,
    Argument = string.Format(@"WelcomeMessageMaster(""{0}"")", this.Grid.UniqueID)
};   
Sign up to request clarification or add additional context in comments.

1 Comment

I've just posted the whole code above. Could you take a look at it, please?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.