 |
|
 |
I want to use the code you have provided in a commercial company.
Is it ok to use it in my product?
Is the license is The Code Project Open License (CPOL) ?
Thank you.
Have a nice day!
|
|
|
|
 |
|
 |
I'm trying to use the combobox and load it with a select result from an access table. But, the control displays like a label with all the items displayed at the same time. In design view, it looks like a normal combobox, but as soon as i run the application, it looks like a label. If there are no items in the control, it just becomes transparent and does not show up on running at all.
I ran the application in debug mode and see that the ItemsCollection has all the items in the array, it is only the way it is being displayed that is a problem.
I am trying to understand this problem since a very long time, but haven't been able to. Can anybody help, please?
|
|
|
|
 |
|
 |
maybe the clientside problem cause combobox.htc is not download successfully.
you can remove the comment in the .htc file and try again if you make sure the htc downloaded correctly.
|
|
|
|
 |
|
 |
Nevermind, i used another control to get my functionality. Thanks anyway!
|
|
|
|
 |
|
 |
Hi Everyone,
I'm running into a major problem with the combobox. I recently had to re-install VS studio 2002 on my laptop and the code that I had to run the combox is no longer working. I'm getting this error:
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Method LoadPostData in type Bestcomy.Web.UI.WebControls.ComboBox from assembly LoadPostData does not have an implementation.
Source Error:
Line 187: <td class="heading" width=135px>Central Office:</td>
Line 188: <td width=220px>
Line 189: <bestcomy:ComboBox id="ddlCO" runat="server" Width="120px" AutoPostBack="true" ></bestcomy:ComboBox>
Line 190: </td>
Line 191: <td>
Has anyone seen anything like this before? Any help would be greatly appreciated. thanks!
|
|
|
|
 |
|
 |
Hello,
I have proven this combobox in line of vision studio 2003 and works correctly. But I prove with the line of vision studio 2005, combobox does not visualize correctly. As this can be solved? it is going to have some new version of this combobox so that it has supported ASP.NET 2.0?
Thank you
moskis27
|
|
|
|
 |
|
 |
I wrote my own combobox, which supports widths for the textbox and the listbox, a big requirement for me, but I have to use the asp prefix on the list items. From the outline above I see that yours allows you to use the same prefix for the custom control and the list items. How did you do this. I tried looking at the code, but it seems to have been corruped with strange text symbols.
Thank you
|
|
|
|
 |
|
 |
add [assembly: TagPrefix("Bestcomy.Web.UI.WebControls", "bestcomy")] in AssemblyInfo.cs, but I don't think you can use "asp" as TagPrefix for your custom control, because this prefix is used by asp.net
|
|
|
|
 |
|
 |
I'll give it a try. Yes, I can and do use <asp:ListItem value="n" text="text" /> to provide the explicit options for my custom combobox. When I tried using the same tag prefix as my custom combobox control, I got a parse error. I think I could use the regular html <option value="n">text</option> tags too. But, using your suggestion, I hope to use the same prefix for the whole component, including the childern.
Thanks for the quick reply.
|
|
|
|
 |
|
 |
When I changed your suggested line to "", where cwcComboBox is my namespace and cwc is the tag prefix, then I put it in my combobox's Assembly.vb file, but got an error saying that Type TagPrefix was not defined. So took the line out and put it after the cwcComboBox.vb file where I define the variables, properties, and rendering code to build my custom component. This time I didn't get any errors when I compiled the component, but when I changed the <asp:ListItem... /> option tags to in the page where I use my combobox I got the following error (lines 16-19 and 25 were added so you can see the complete combobox tag definition):
<big><big>Server Error in '/cwcComboBoxTest' Application.</big></big>
--------------------------------------------------------------------------------
<p />
<big>Parser Error</big>
<p />
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
<p />
Parser Error Message: Could not load type cwcComboBox.LISTITEM from assembly cwcComboBox, Version=1.0.2526.16429, Culture=neutral, PublicKeyToken=null.
<p />
Source Error:
<p />
<small><code>Line 16: <cwc:cwcComboBox id="cwcComboBox1" runat="server" Width="220px" TextBoxWidth="60px" ListBoxWidth="40px"
Line 17: Columns="5" MaxLength="-1" ListBoxStyle="Position: Relative; Right: 40" AutoComplete="True" IgnoreCase="True"
Line 18: RestrictToList="False" LabelText="cwcComboBox One:" LabelPosition="Left" HighlightOriginalSelectionColor="red"
Line 19: HighlightOriginalSelection="True" ListBoxToolTip="Pick a value from the list or type one into the textbox."
Line 20: TextBoxToolTip="Type in a value or pick one from the list" onChange="setActiveComboBox()" onfocus="setActiveComboBox()"
Line 21: style=" Z-INDEX: 116; LEFT: 232px; POSITION: absolute; TOP: 8px">
Line 22: <cwc:LISTITEM Text="one" Value="1" />
Line 23: <cwc:LISTITEM Text="two" Value="2" />
Line 24: <cwc:LISTITEM Text="three" Value="3" Selected />
Line 25: </cwc:cwcComboBox></code></small>
<p />
Source File: C:\Inetpub\wwwroot\WebApps\Custom Component ComboBox\cwcComboBoxTest\cwcComboBoxTest.aspx Line: 22
If it makes any difference, I'm using VS.NET 2003 and my component is written using vb and javascript.
Thanks.
|
|
|
|
 |
|
 |
very wonerful job ..!
No pain no gain!
|
|
|
|
 |
|
 |
Great idea. Here's another approach: Create a class called ComboBox that inherits from DropDownList. Then override TagName to return "deadbeef:combobox", TagKey to return Unknown, and register the XML:NAMESPACE (see previous poster's comment).
Five lines of code....
Martin
|
|
|
|
 |
|
 |
this sounds like a really good ider i just need some advise here
how do you get the object to be shown in design mode
could you somehow give me an example of the code or perhaps a guide on how to do so?
|
|
|
|
 |
|
 |
In design mode, delegate to the base class render method:
Protected Overrides ReadOnly Property TagKey() As System.Web.UI.HtmlTextWriterTag
Get
If Context IsNot Nothing AndAlso DisplayMode = DropDownDisplayMode.EditableComboBox Then
Return HtmlTextWriterTag.Unknown
Else
Return MyBase.TagKey
End If
End Get
End Property
Forgive the VB.
|
|
|
|
 |
|
 |
Protected Overrides ReadOnly Property TagName() As String
Get
If Context IsNot Nothing AndAlso DisplayMode = DropDownDisplayMode.EditableComboBox Then
Return "deadbeef:combobox"
Else
Return MyBase.TagName
End If
End Get
End Property
|
|
|
|
 |
|
 |
how to post back from this control on selected index change?
I tried writing an event handler to the code but still invain. can u help in this regard?
Thotatri P,
http://spaces.msn.com/members/thotatri/
|
|
|
|
 |
|
 |
Does anybody have alternative/solution for this?
Please reply ASAP.
Krishna
|
|
|
|
 |
|
 |
Hi, I have a big problem with my web form.
I have a form with a combobox ( my form build with HTML) that link to a access data base and display all of records there are in a culomn of a table.
I want when user not to found special item in combobox list. type this item in combobox then submit form. but I don't know how set my combobox to able to write new item and pass it to action asp page.
please help me if it possible for you
1000 thanks
Malihe Habibi
|
|
|
|
 |
|
 |
Brillant stuff I must say but i must have missed something because the one important features that I thought should have been implemented with this custom combobox was the ability to set 2 widths, one for the textbox and the other for the list.(handy for large strings) Forgive me if im not clear as im just an amatuer programmer.
50cents allot of money
|
|
|
|
 |
|
 |
Andy Smith's free ComboBox WebControl has been available since early 2002 and offers cross-browser support, documentation, designer support, full source code, as well as a number of other useful features:
http://www.metabuilders.com/Tools/ComboBox.aspx[^]
|
|
|
|
 |
|
 |
This combobox can be used within an asp table server control. I was able to do it by creating the table and the combobox at runtime.
|
|
|
|
 |
|
 |
I searched high and low on the Internet for a control like this. The only problem is that I cannot use the combobox within a table or div. When I do, the control gets messed up. Any idea how I can overcome this problem (aside from the obvious of not using it in a table or div)?
|
|
|
|
 |
|
 |
I think if you modify the HTC like I mention below it should work in a table. Works in a panel object, which is basically a panel.
|
|
|
|
 |
|
 |
I also have needed such functionality on a web page. Those that I have found have not been cross browser compliant.
If that could be fixed you would be onto a winner!
|
|
|
|
 |
|
 |
If only i would still see a "normal" selectbox in Firefox, instead of what seems to be a bunch of labels. Can't select anything like this...
Would be much better if the control defaults to a regular selectbox on browsers other than IE
|
|
|
|
 |