0

JavaScript 函数:

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

C#代码:

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

但是,有编译器错误表明括号有问题。我不确定在哪里加上引号。

4

1 回答 1

0
clientStageCommand = new ClientStepCommand
{
    CommandType = ClientStageCommandType.Eval,
    Argument = string.Format(@"WelcomeMessageMaster(""{0}"")", this.Grid.UniqueID)
};   
于 2013-03-06T12:05:48.580 回答