Does anyone know what's the equivalent of SelectedIndexChanged(object sender, System.EventArgs e) event of Win form ComboBox control in UltraCombo in Infragistics control. I want to raise a event only when UltraCombo value changes. thanks Share knowledge to enhance your learning
Neel07
Posts
-
UltraCombo in Infragistics -
Adding new row in UltraWinGrid in Windows FormHi, In one of my Windows Form displaying data using infragistics UltraWinGrid control in C# VS2003, I need to add a new row when user clicks "Add" button in the existing grid so that user can enter values for each column and then posting this entry to the database. Any idea about how to do that in UltraWinGrid control thanks Share knowledge to enhance your learning
-
Reports using Business Object in C#I need to call Business Object Reports from Windows C# application. It should invoke the BO using BO API from C# winform pass the login credential to the BO and invoke that report in windows application. Does any one have idea how to achieve that or someone has already implemented this in their application. thanks in advance Share knowledge to enhance your learning
-
Data bond problemInstead of opening & closing multiple times database connection you can define mutiple dataset based on number of controls and open a connection once in the load event populate all the datasets based on different sql query for populating different controls and once you finish then close the database connection. Now you can bind corresponding dataset to different controls. Hope this way you can avoid mutiple database trip and a performance gain as well Share knowledge to enhance your learning
-
DataList and pagingUnfortunatelyDataList does not provide inbuilt paging & sorting feature like DataGrid but this ofcourse gives you a performance boost than using DataGrid in web page. However you can build custom paging in datalist visit this following article http://aspalliance.com/157 Also you can explore using different data web controls that best suits your application in msdn article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-whenusedatawebcontrols.asp Share knowledge to enhance your learning
-
can i bring external applications into a .net applicationyes you can so far I know in ASP.net application quite not sure about windows form. In ASP.Net you can add reference to adobe from project reference tab and in .NET tab select adobe and add it to the project. This is way we can use external application in our .net application. Share knowledge to enhance your learning
-
Disabling textbox based on comboYou can either write an procedure on onchange event of combobox or make autopostback attribute to true for combobox. And in the code behind file check the combobox value if its other then --select-- set textbox enabled if (Convert.ToInt32(cmbModLev.SelectedItem.Value) != 0) txtBox.Enabled =true; else txtBox.Enabled =false; Share knowledge to enhance your learning
-
Updaing excel file using oleDb in c#Am trying to update one cell in excel file using oleDb in c# but I get the following error "Concurrency violation: the UpdateCommand affected 0 records" Many thanks for ur help Excel File Test.xls structure (cell format for both these columns are Text in excel) Col1 Col2 1 100 code snippet using System.Data.OleDb; string ExcelConStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Test.xls;Extended Properties=Excel 8.0;"; OleDbConnection oleDbConn = new OleDbConnection(ExcelConStr); oleDbConn.Open(); OleDbDataAdapter da = new OleDbDataAdapter("Select * from [Sheet1$]",oleDbConn) DataSet ds = new DataSet(); da.Fill(ds); da.UpdateCommand = new OleDbCommand("Update [Sheet1$] SET Col2= ? Where Col1= ?",oleDbConn); da.UpdateCommand.Parameters.Add("Col1",OleDbType.VarChar,255,"Col1"); da.UpdateCommand.Parameters.Add("Col2",OleDbType.VarChar,255,"Col2"); ds.Tables[0].Rows[0]["Col2"]=500; da.update(ds); Share knowledge to enhance your learning
-
Datagrid ItemCommandAsp.Net datagrid I want to associate this event OnItemCommand="dgModule_ItemCommand", but when I compile its give me error message "dgModule_ItemCommand(object, System.Web.UI.WebControls.DataListCommandEventArgs)' does not match delegate 'void System.Web.UI.WebControls.DataGridCommandEventHandler(object, System.Web.UI.WebControls.DataGridCommandEventArgs)'" Surprisingly in some of the webpage it does not give this error here is the code snippet protected System.Web.UI.WebControls.DataGrid dgModule; dgModule.ItemCommand += new DataGridCommandEventHandler(this.dgModule_ItemCommand); public void dgModule_ItemCommand(DataListCommandEventArgs e) { int iCount=e.Item.ItemIndex +1; //other lines of code here } Anyone is having clue on that Thanks in advance Share knowledge to enhance your learning
-
Custom webcontrol and ValidatorsIf you want client side validation i.e. without being postback then write a javascript function add this function to the control you want to validate. string jscript="Javascript:fn();"; controlname.Attributes.Add("onchange",jscript); Share knowledge to enhance your learning
-
ASP.NET 1.1 server set upIn test environment server when I deploy application, which runs fine in the development server, gives me following error. Created a directory hello and given web sharing under inetpub\wwwroot. Any clue or idea what's going wrong here. Server cannot access application directory 'C:\Inetpub\Wwwroot\hello\'. The directory does not exist or is not accessible because of security settings. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Server cannot access application directory 'C:\Inetpub\Wwwroot\hello\'. The directory does not exist or is not accessible because of security settings. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Server cannot access application directory 'C:\Inetpub\Wwwroot\hello\'. The directory does not exist or is not accessible because of security settings.] System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72 System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263 [HttpException (0x80004005): ASP.NET Initialization Error] System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +983 System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 Share knowledge to enhance your learning
-
SQL server 2k Database connection from ASP.NETHi I am trying to connect SQL server database 2K, which is in different machine from web server but in the same domain, from ASP.NET page but it gives error message "SQL Server does not exist or access denied" but with same connection string & same server I can connect using windows form or other application. Does anyone has got any clue on that Would much appreciate your help. Thank You Share knowledge to enhance your learning
-
Parsing XMLThanks a lot I have found the solution and you are right we should mention only "OrigoNS" as namespace prefix. Also it should call the 1st overloaded method of SelectSingleNode passing the XmlNamespaceManager object in the 2nd parameter. Corrected code XmlDocument objXmlDoc = new XmlDocument(); objXmlDoc.Load("C:\\abc.xml"); objRoot=objXmlDoc.DocumentElement; XmlNamespaceManager objXmlNS = new XmlNamespaceManager(objXmlDoc.NameTable); objXmlNS.AddNamespace("OrigoNS","http://www.origoservices.com"); XmlNode objRoot; string MsgID=objRoot.SelectSingleNode("//OrigoNS:message_id",objXmlNS).InnerText; Share knowledge to enhance your learning
-
Parsing XMLI am trying to drill down a xml file having schema reference in c# .NET and while processing have added namespace using XmlNamespaceManager but it still gives error "Namespace Manager or XsltContext needed. This query has a prefix, variable,or user-defined function." Following is the code snippet -----------------code snippet----------------------------------------- XmlDocument objDoc = new XmlDocument(); XmlNode objRoot; objDoc.Load("C:\\abc.xml"); XmlNamespaceManager objXmlNS = new XmlNamespaceManager(objDoc.NameTable); objXmlNS.AddNamespace("xmlns:OrigoNS","http://www.origoservices.com"); objRoot=objDoc.DocumentElement; string MsgID=objRoot.SelectSingleNode("//OrigoNS:message_id").InnerText ------------------- abc.xml ---------------------------------- 2005-07-25T09:55:30342C3E5F-xxx4-4073-Byyy-C543973AA2960abc Valuation Requestv1.0synchronousxyzabctest ----------------------------------------------------------------- Would appreciate your help if you have got any clue for this problem Thanks Share knowledge to enhance your learning
-
HttpWebRequest:)Hi I am trying to post some xml data to secured server https:// using HttpWebRequest of System.Xml class in c#. It works fine and get valid response from remote server 1st time when I post the request but in the subsequent request I get following exception of HttpWebRequest "The remote server returned an error 400 bad request " but if restart the application and try to send again it does not throw this exception. Would much appreciate your help if anyone of you had encountered the same problem and resolved it. Thanks in advance Share knowledge to enhance your learning
-
Converting string value to System.IO.StreamHi I want to convert one string input in one of my function in c# to System.IO.Stream object but it gives me conversion error in 2nd line of the below function static myFunc(string strInput) { Stream objStream; objStream=(Stream)strInput; } would much appreciate any help Thank you Share knowledge to enhance your learning