I have a web page, where after the users enters the data, they should be able to go back and modify data on all the pages. I am using ASP and VBSCript. I am using session variables and getting all the data, into the controls for modifying, but there is a page, which it has a radio button "yes" and "no", if you click yes, it shows more controls. now, my question is when they come back to modify data and if the session values is yes, it is checked yes, but how shall I show the other controls without clicking on the radio buttons, or how to call the click event within the VBScript. I need to call the "show('hideable1') method from VBScript if, the session value is yes.... Thanx, abhi example code.... onClick="show('hideable1')" name="radio_aspiration" value="yes" '<%if Session("rdaspiration") = "yes" then %>' checked '<%end if%>'> yes ' checked '<%end if%>'> no abhi
abhishk2001 yahoo com
Posts
-
Hi ! -
Hi !I have a web page, where after the users enters the data, they should be able to go back and modify data on all the pages. I am using ASP and VBSCript. I am using session variables and getting all the data, into the controls for modifying, but there is a page, which it has a radio button "yes" and "no", if you click yes, it shows more controls. now, my question is when they come back to modify data and if the session values is yes, it is checked yes, but how shall I show the other controls without clicking on the radio buttons, or how to call the click event within the VBScript. I need to call the "show('hideable1') method from VBScript if, the session value is yes.... Thanx, abhi example code.... onClick="show('hideable1')" name="radio_aspiration" value="yes" '<%if Session("rdaspiration") = "yes" then %>' checked '<%end if%>'> yes ' checked '<%end if%>'> no abhi
-
converting a varchar datatype to a bit data type using VBScriptHi, I have a ASP form which has a radio control for "yes/no", and in the SQL server I have a data type bit to store the value, but before inserting the values, how to I convert the value "yes and no" to bit data type. Thanks, abhi abhi
-
setting the property for radioButtonsHi, In my windows form, I have a set of CheckBoxes, which I am storing the selection as an integer value in the database and I am able to do that with CheckBoxes. But I have a groupBox with two radioButtons, I don't know how to read the bit values from it. This is my GUI class.... CheckBox1.Checked = r.cSthA; //gets and sets the value for the // checbox by reading the property // from the class "r" given below. // This is a different class private enum rc : int { cSthA = 0x0001 }; public int Rac = 0; public bool cSthA { get { return ((Rac & (int) rc.cSthA) != 0); } set { if (value) Rac |= (int) rc.cSthA; else Rac &= ~(int)rc.cSthA; } } // How to set the property and read it for a groupBox. I really appreciate ur help.. Thanks
-
checkedlistbox control in a winformI have a table where the fields are 'CustID' and 'CustName'. In a checkedListBox control on winforms, I want to display 'CustName', but when a user selects 'CustName', I want to get the selected 'CustName''s 'CustID', so that I can run the query on 'CustID' and display 'CustName', how can this be done. or how to add more than one column in a checkedlistbox control, which displays 'CustName' and 'CustID'. I really appreciate ur help. Thanks, abhi
-
hidden column in a checkedListBox controlHi, My question is : I have a checkedListBox control in a WinForm, where I am displaying 'siteName' column from a table and the checkedListBox is being populated by siteName, but when forming a dynamic query, I want to form a query by 'siteID' not the sitename. How do i make a hidden column in a checkedListBox, where it selects, 'siteID' and should display 'siteName' on the checkedListBox control. I appreciate your help. Thanx abhi
-
How to databind a CheckedListBox controlFirst let me thank you guys, for sharing your knowledge and for responding. I am a newbie learning .NET, so plz bear with me. my question is, how to bind a CheckedListBox control in a WinForm. I did the binding, but it is not showing any values, it's not giving any error either, I wanted the CheckedListBox control to be populated at the FormLoad Event. my code is given below. I tried different ways, but still its not working. lstFacilityType is a CheckedListBox control. First, I tried this. ------------------------------------------------------------------------- lstFacilityType.DataBindings.Add(new Binding("Text",ds,"FacilityType")); ------------------------------------------------------------------------- Second, I tried the code given below, it is returning the table in the dataset. ------------------------------------------------------------------------ lstFacilityType.DataBindings.Add(new Binding("Text",ds.Tables[0],"FacilityType")); ------------------------------------------------------------------------ Thanks, for ur help. abhi
-
Why selected items in a checkedListBox don't show in orderHi, I have 5 CheckedListBox controls on a winForm. I am appending the selected items in a stringBuilder on a buttonClick Event. my question is, say, I have checkedListBox named as A, B, C, D and E. after selecting the items from each CheckedListBox, it first shows me the selected values from E,D,C,B and A. why does it shows the selection in reverse, when i am adding the selected values immediately to the StringBuilder. my code is given below. Thanks, for ur help. I am actually using the selected items to form a dynamic query. StringBuffer sb=new StringBuffer(); CheckedListBox clb = null; foreach(Control c in groupBox1.Controls) { if(c is CheckedListBox) { clb = c as CheckedListBox; if(clb.CheckedItems.Count !=0) { for(int i=0; i<=clb.CheckedItems.Count -1; i++) { sb.Append(clb.CheckedItems[i].ToString()); sb.Append(", "); } } } MessageBox.Show(sb.ToString()); abhi
-
How to clear selected items from multiple checkedlistboxesHi, I have a WindowsForm, which has a groupBox and has multiple CheckedListBox Controls. I want to clear all selected check items dynamically, instead of doing it individually. I want to get all the controls from the groupBox first, which also has other controls, then get the CheckedListBox controls and clearing it, if selected. I wrote this code, but it is not working, its not coming out of the loop. Any help, will be really appreciated. foreach(Control ctrl in this.groupBox1.Controls) { if(ctrl is CheckedListBox) { CheckedListBox cb=(CheckedListBox)ctrl; for(int i=0; i<=(cb.CheckedItems.Count-1); i++) { cb.ClearSelected(); } } } abhi
-
Reading Values from multiple ListBoxes and forming an queryHi, I have a Windows Form, which has multiple ListBoxes, being populated by data on FormLoad Event, and a Button to run the query. onClick of the button, I want to get all the selected values from the ListBoxes and form a Query String, with commas in between values, How can i Do That ?? Any help is appreciated. Thanks, Abhi
-
Displaying a DataGrid in child FormHi, I have a Main Form, with controls, which are dynamically being populated from the database on FormLoad Event. There is a button called "Run Query", when I click this button, I want the result of the query to be displayed in a "Child Form" in a DataGrid, with sorting and paging facility and also a column in the "data grid", which allows me to edit the selected records. Any working examples or help is appreciated. Thanks abhi
-
DataReader reading data from multiple tablesHi, my query is given below. "select dp.detail from procdure p, mentryi m, dtentryp dp where m.master=p.proc and dp.master =m.detail and m.item=481" when i am running the query its giving me the output, that is fine. now using ado.net DataReader, how do i read individual columns from different tables. I am using DataReader b'coz, I am reading a BLOB field from mysql database and converting into .jpg images, that is also working fine, if i am reading from just one table. I need to read specified columns from different tables in the same DataReader. if i am using the instance like "p" for procdure table, it is giving me error and its not identifying the variables associated with the table. Any help would be appreciated.. vijay
-
dynamic binding a combo boxHi, I have a combobox, for users. It's a lookup, which gets the user names from the table "tblContacts" field "Name". when the form loads, the combobox gets populated. There is also one button to add the user, if the user is not available in the table, and onClick the Add button, which will pop-up one more form, to add the new user. it does fine, adds the user to the table. but it dosen't populate the combobox immediately with the new user just added. when the form loads, i was storing all the values in an Arraylist from the table and specifying the combobox datasource as the Arraylist. can anyone tell me how to dynamically bind the combobox, which will reflect the new records added. Thanx vijay
-
custom metadata editor in ArcCatalogHi, Has anyone developed a custom metadata editor using C#.net or vb.net. if yes, i have a question. I am trying to develop a custom metadata editor using C#.net. i am using ArcGis 8.3 and Visual studio .net 2003. when i am trying to execute my custom metadata editor in ArcCatalog it says "Object reference not set to an instance of an object". i don't know where i am going wrong.. I appreciate your help in this regard.. example is given on http://arcobjectsonline.esri.com Thanks, abhi
-
custom metadata editor for ArcCatalogHi, Has anyone developed a custom metadata editor using C#.net or vb.net. if yes, i have a question. I am trying to develop a custom metadata editor using C#.net. i am using ArcGis 8.3 and Visual studio .net 2003. when i am trying to execute my custom metadata editor in ArcCatalog it says "Object reference not set to an instance of an object". i don't know where i am going wrong.. I appreciate your help in this regard.. example is given on http://arcobjectsonline.esri.com Thanks, abhi
-
custom metadata editor using c#.netHi, Has anyone developed a custom metadata editor using C#.net or vb.net. if yes, i have a question. I am trying to develop a custom metadata editor using C#.net. i am using ArcGis 8.3 and Visual studio .net 2003. when i am trying to execute my custom metadata editor in ArcCatalog it says "Object reference not set to an instance of an object". i don't know where i am going wrong.. I appreciate your help in this regard.. example is given on http://arcobjectsonline.esri.com Thanks, Abhi abhi
-
ArcCatalog Custom metadata editor using c#.netHi, Has anyone developed a custom metadata editor using C#.net or vb.net. if yes, i have a question. I am trying to develop a custom metadata editor using C#.net. i am using ArcGis 8.3 and Visual studio .net 2003. when i am trying to execute my custom metadata editor in ArcCatalog it says "Object reference not set to an instance of an object". i don't know where i am going wrong.. I appreciate your help in this regard.. example is given on http://arcobjectsonline.esri.com Thanks, Abhi
-
ArcCatalog Custom metadata editor using c#.netHi, Has anyone developed a custom metadata editor using C#.net or vb.net. if yes, i have a question. I am trying to develop a custom metadata editor using C#.net. i am using ArcGis 8.3 and Visual studio .net 2003. when i am trying to execute my custom metadata editor in ArcCatalog it says "Object reference not set to an instance of an object". i don't where i am going wrong.. I appreciate your help in this regard.. Thanks, Abhi
-
developing a custom metadata editor for ArcCatalog using VB.NET and COMHi, I am trying to develop a custom metadata editor for ArcCatalog(ArcGIS), using VB.NET. I am using a COM component into my application. i am using esriObjecLibrary 1.0 into my reference, and its a .dll project, using VisualStudio.NET 2003. this metadata editor will be a pluging into ArcCatalog. after writing the code, when i compile the project it says "Unable to emit assembly: Referenced assembly 'Interop.StdType' does not have a strong name".. I went to the DOS prompt and gave a strong name to the assembly and added the assembly file into my AssemblyInfo.vb file, but still its not working. if any of you have worked on this and know much about it, i will appreciate ur help...if u have worked on similar problem using C#.NET that will be of much help... Thanks software Used: Visual Studio.NET 2003 ArcGIS 8.2 VB.NET Platform: win2k vijay
-
Developing Custom Metadata Editor for ArcCatalog using C#.NETHi, I am trying to develop a custom metadata editor for ArcCatalog(ArcGIS), using VB.NET. I am using a COM component into my application. i am using esriObjecLibrary 1.0 into my reference, and its a .dll project, using VisualStudio.NET 2003. this metadata editor will be a pluging into ArcCatalog. after writing the code, when i compile the project it says "Unable to emit assembly: Referenced assembly 'Interop.StdType' does not have a strong name".. I went to the DOS prompt and gave a strong name to the assembly and added the assembly file into my AssemblyInfo.vb file, but still its not working. if any of you have worked on this and know much about it, i will appreciate ur help...if u have worked on similar problem using C#.NET that will be of much help... Thanks software Used: Visual Studio.NET 2003 ArcGIS 8.2 VB.NET Platform: win2k abhishek