I am working on an ASP.Net Project. I am using Radwindowmanager to open a page on click on button.
Can anyone tell me how to open a radwindow in showdialog() method
public partial class WebForm2 : System.Web.UI.Page
{
protected void Button2_Click1(object sender, EventArgs e)
{
Telerik.Web.UI.
RadWindow newWindow = new Telerik.Web.UI.RadWindow();
newWindow.NavigateUrl = "SearchGrid.aspx";
newWindow.OpenerElementID = Button2.ClientID;
newWindow.VisibleOnPageLoad = true;
newWindow.DestroyOnClose = true;
newWindow.Modal = true;
newWindow.EnableViewState = false;
RadWindowManager1.Windows.Add(newWindow);
}
}
In this scenario I need to pass dataset to searchdrid.aspx and need to get selected value from serachgrid.aspx to WebForm2.aspx textbox. In
below I mention the sample which I did from c# windows app.
private void SearchGridTable(DataTable SearchGrid)
{
formSearchGrid frmSearch = new formSearchGrid();
frmSearch.DataSource = SearchGrid;
frmSearch.ShowDialog();
return frmSearch.strVal;
}
pivate void rdbutSearchCategory_Click(object sender, EventArgs e)
{
try
{
CommonVariables commVariable = new CommonVariables();
commVariable.Type = strRequesttype;
DataTable serachDatatable = new CategoryService().SelectDetails(commVariable);
rdtxtCatCode.Text = Utility.SearchGridTable(serachDatatable);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), Constant.SystemMessageErrorHeader, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
please help
When trying to run a basic test, basically doing a bing search, using the capture tool and trying to execute in firefox 5.0, im getting an error and lockup in WebUI Test Studio QA edition.
Overall Result: Fail
System.NullReferenceException: Object reference not set to an instance of an object.
Server stack trace:
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ShutDown()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ArtOfTest.WebAii.Design.Execution.ITestExecuteProxy.ShutDown()
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTest(Test testcase, Settings settings, String testBinaryFolder, String deploymentFolder, ExecutionType exeType, Guid lastStepGuid, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'08/08/2011 12:46:06 PM' - Overall Result: Fail
'08/08/2011 12:46:06 PM' - Duration: [0 min: 20 sec: 822 msec]
------------------------------------------------------------
Any idea what this might be?
Is there a way to tell when the web page loading status is done? I’m trying to wait for search results. With QTP, RFT, and Rational Robot I can take a peek at the loading status but I do not seem to find the hooks here.
Thanks,
John