Hi AJAX xperts, I have AJAX autocomplete Textbox, which is a user control. i am getting employee details into this text box. upon typing 3 chars it will fetch 20 records which matchs with the prefix text. I modified _highligted function(item) in Autocomplete.js in order to store emp fullname in window.status . upon mouse over on this list i need populate employee details like dept, empid, empmanager, empcost center here is my autocomplese.asmx C# code : public string[] GetCompletionList(string prefixText, int count) { if (count == 0) { count = 10; } string peopledata = ConnectionStrings.GetConnectionString("Peopledata"); using (SqlConnection ConnStr = new SqlConnection(peopledata)) { ConnStr.Open(); SqlCommand sqlcmd = new SqlCommand("GetPeopleDetails", ConnStr); sqlcmd.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = prefixText + "%"; sqlcmd.CommandType = CommandType.StoredProcedure; SqlDataAdapter da = new SqlDataAdapter(sqlcmd); DataTable dt = new DataTable(); da.Fill(dt); DataSet ds = new DataSet(); da.Fill(ds); string[] items = new string[dt.Rows.Count]; int i = 0; List PeopleData = new List(); foreach (DataRow dr in dt.Rows) { items.SetValue(dr["EmpFullName_MngrName"].ToString(), i); PeopleData.Add(dr["NBKid"].ToString()); PeopleData.Add(dr["PersonNo"].ToString()); PeopleData.Add(dr["CostCenter"].ToString()); PeopleData.Add(dr["Hierarchy"].ToString()); i++; } //return PeopleData.ToArray(); return items; }//end of sqlconnection } //end of GetCompletionList here is my java script code: var obj; function GetDataViaAJAX() { try { obj = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { obj = new Active
Krishnamenon
Posts
-
Autocomplete with On mouseover details -
Hierarchial TreeViewGuys can any one help me out in Hierarchial Tree View for an organization. from, Menon
-
Hierarchial TreeViewHi guys, I need to build a Hierarchical Tree view structure (Manager > Employee relations)for my module which should be like + TopRootManager - Manager 1 Employee1 Employee2 Employee3 - Manager 2 Employee1 Employee2 -Employee3 Employee1 Employee2 + Manager 3 And Results should be from SQL database. Can any one help me plz !!!:(( From, Menon
-
Ajax AutoComplete with On HoverHi sathish, You mean to say onMouseover function can help me ? I am very new to this technology, can you help me more on this. appreciate your concerns. My work around is similar to the in following link > AutoComplete_From_Database < when results are populated in the list. Upon mouse over on any name i need to display details. Thanks & regards, Krishnamenon
-
Dockable window in asp.netWhat exactly you are looking for ? do you need dockable window in asp.net which should simulate like VS 2005 interface ? If you look for similar to this you can find DOCK MANAGER over the internet. Hope it may give you some information from krishna
-
Ajax AutoComplete with On HoverHi guys! I am very new to this AJAX, I am performing certain functionlity with AUTOCOMPLETE. eg: I am displaying Employee Fullname in autocomplete List, on mouse over on FullName's in List Automatically i need to display their Details like Dept, Manager, Salary, HRA etc., How can i perform this action ? folks Please help me on this:((
-
how to handle multiple dynamic controls after postback?Hi jesse, Thanks for your valuable suggestion. I am doing the same steps and also following robbieMorris sample at > http://www.eggheadcafe.com/articles/extendtextboxviewstate.asp , here he clearly demonstrated creating controls runtime as well as handling them at postback & in viewstate. In my scenario i took two rows and two columns. > I have linkbuttons in each cell > upon clikcing on linkbutton a window will be enabled at right side (assume it as property window) > From that window user will select controls from a dropdown list (like text box, label etc), enter name, height, width for that controls (as we do in property window). > upon hitting on save button in that property window, my program will create a runtime control. > next he'll click linkbutton in another cell and follow same procedure for creating controls. > but at this point am facing problem though am following Robbie Morris concepts i dont know control is not creating as well as i am loosing last control which i created. appreciate ypur help on this !!! From, Krishna
-
How to Submit a Html Form and Get Response Dynamically?hello, first of all you need to have runat=server for these controls then only you can able to access from code behind from: krishna
-
how to handle multiple dynamic controls after postback?Here is my requirement : users has to able to create their custom forms through web interface. it should more or less equal to visual studio 2005 deisgner. I come across many articles and done some work around to create a drag and drop scenario in web application for controls but i finally ended with nothing. Again i changed layout for that maodule :Form Designer: i came up with linear design which is having a property window on right side holding few common properties for most controls like Control name, control type, height, width etc. I have another layout having multiple rows & 2 columns(like Left & Right), in each cell i assigned a link button. Here how i planned to work it out: When user click on any cell, right side properties will be visible to user and user can select the controls of his/her choice setting some properties to it. Upon clicking save button (which will be located in the property window) program will generate a control at the link button place. Problems am facing : I could not able to regenerate the controls after postback done. I could able to save & load control properties from array but could not able to establish the same controls after postback done. can anyone give me references or suggesstions :((how to handle multiple dynamic controls after postback? from: krishna
-
Dynamic webcontrols in winformsHi all ! I need to develop a application where users will drag & drop user controls on the design layout (same like in www.formlogix.com, need to develop similar kind of application). And also if you look at "Ironspeed" (www.ironspeed.com), this application does a gr8 job with out creating a simple application from scratch. Please download trial version and look at it. The layout will be similar to visual studio 2005, where we need to develop a toolbox, property box, solution explorer. And also i need to load user controls which was developed by another programmers. subsequently user will drag & drop controls from toolbox to a designer layout. Then i need to save that layout into a webpage. There are certain limitation as i came to know. 1. Controls included as Textbox, Listbox, Dropdownlist, Label, Command button, Radio buttons, check boxes and User Controls (which we need to develop with certain functionality) 2. How can we able to incorporate winforms controls on a webpage, i know this cannot be done in this way either can we able to incorporate webcontrols into a winform application? 3. do we need to build user controls in winform application or in webapplication ? 4. This application intially thought to build in a web application through AJAX concepts but i could not able build architecture later we changed to win application taking a prototype as in www.ironspeed.com. Guys, please help me building up the architecture as well as concepts to put in, appreciate your help and cooperation. :sigh::doh::(( Regards, krishna
-
How to dispaly custom toolbox on a webpage using asp.nethmm not exactly webparts! because at the same time we need to handle control resizing as well. What if we need to place many controls over the webparts. Can it handle ?
-
How to dispaly custom toolbox on a webpage using asp.netHi all, Did any one come across displaying custom tool box on a webpage in asp.net ? Example: just like we have toolbox visual studio 2005 where we can drag controls on designer page. We need similar functionality to do on a webpage where we have to create a user controls and these user controls has to be populated on a toolbox inturn users will drag and drop those controls on a certain location on a webpage. How cane we handle this situation on a webpage? Is it through AJAX? Please help me in putting down your ideas here. Appreciate your help on this. Krishna From DE
-
Display custom tool box on a web page in Asp.netHi all, Did any one come across displaying custom tool box on a webpage in asp.net ? Example: just like we have toolbox visual studio 2005 where we can drag controls on designer page. We need similar functionality to do on a webpage where we have to create a user controls and these user controls has to be populated on a toolbox inturn users will drag and drop those controls on a certain location on a webpage. How cane we handle this situation on a webpage? Is it through AJAX? Please help me in putting down your ideas here. Appreciate your help on this. Krishna. From DE
-
Class {BD4B4E61-F7B8-11D0-964D-00A0C9273C2A}hi all, My application is in vb6 and CrystalReports8.5 (some designer reports) . Earlier i have Crystal Reports9. So i Uninstalled CrystalReports9 restarted machine installed Crystalreports8.5. But when try to open my project it could not able load designer reports. instead for my surprise a log file is creating for the files which is not opened. In that lines are like this Line 2: Class {BD4B4E61-F7B8-11D0-964D-00A0C9273C2A} of control RptActiveCustomer was not a loaded control class. Line 0: The file C:\AA_NCS\IndonCitiSafe\B_Development\Test@NCS\IFRoS\RptActiveCustomer.Dsr could not be loaded. I have 13 designer reports for each file i found same message but .Dsr defers Later i searched in forums whether i get some help, I got something from following link http://www.codecomments.com/archive342-2005-4-449170.html But it was not solved, problem still exists. Again i uninstalled crystalreports8.5 and reinstalled it again thinking .dll not installed properly. So i ask eperts here to help to solve this version problem. Thank you in advance krishna N