Jun 01, 2009, 11:22 AM
MessageBox Example Not working
I am consistently getting errors within the below, from the MessageBox example online, when put into the code-behind.
protected void Button2_Click(object sender, AjaxEventArgs e)
{
Ext.Msg.Prompt("Name", "Please enter your name:", new JFunction { Fn = "showResultText" }).Show();
}
here is the error I am getting:Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1526: A new expression requires () or [] after type
Source Error:
Line 124: protected void Prompt_Click(object sender, AjaxEventArgs e)
Line 125: {
Line 126: Ext.Msg.Prompt("Name", "Please enter your name:", new JFunction { Fn = "showResultText" }).Show();
Line 127: }
Line 128: