I have a DevExpress ASPxRadioButtonList which does not have any data source for the items. When trying to assign the selected item the control doesnt have any items. I have spent hours looking at this as it is set up to similar controls which work fine.Here is my code:
When trying to find the Item by value it returns null for the ListEditItem. The DataTable dt has a value for priority for 3 and the item should be in there as its hard coded in the ASPX.
I have ASPxDataView and ASPxRadioButtonList within item template. i also have two SQLDataSource's (first fill ASPxDataView, second ASPxRadioButtonList). They are using other database tables connected with the foreign key. Is there any way to pass parameter to my second sqlDataSource (id) to fill RadioButtonList property ? i mean select * from TABLE2 where id = @id ; (@id is a value from TABLE1 which is a value of column returned by first sqlDataSource)
i thought of a textbox and a submit button,when submit button clicked comment extracted from textbox and saved into the database using sql.and displayed in literal.but all this is server sided,please help by providing example script for the following,please note i googled and googled but cannot find a satisfy easy and efficient answerOnMouseClickextract text from textbox saving it to a variable send the variable value to server instructing it to save the value in a db in a particular field of a particular table.simple words,facebooks comment box and the status updates box how are they implemented,thousands and thousands of them use it, still it doesnot get slow no postbacks observed to page reloading etc.
I have a list box which is populated using a dictioanry. When I iterate throught the selected items using the following code, it always show only the first items as selected - even if the first item is not selected. Have you ever encountered this scenario? This problem occurs when I use dictionary for binding. On the other hand a generic list works fine.
On the home page as I on work, I have a dropdown list which act as a menu. But in Internet Explorer can not figure out how to display all text in my dropdown list How it looks in Internet Explorer
How it looks in firefox, chrome and opera Do you know how to do so that Internet Explorer also displays all the text in my dropdown list like in firefox and the other
I have a horizantal menu that has 3 items.Home Solutions Contact DatabaseSoftwareTechnical SupportAs you can see when you hover over Solutions it displays 3 submenu items.Beneath this menu, I have a JavaScript Slide Show.The problem is when you hover over Solutions it displays only the first 2 submenu items, the 3rd one (Technical Support) is chopped off by the JavaScript Slide ShowI have tried this in IE & FireFox and the same problem occurs.Can anyone please assist me in why the JavaScript Slide Show makes the sub menu items dissappear?
i want to show the arrayliust items in the listbox, for that i had stored some data in array list, and now i want that if i gv any id which is in the array list its corresponding details are displayed in listbox. I had two fields ID, Name, and when i give id its corresponding name should be shown in list box.
I'm using a text book to teach myself ASP.NET 3.5. I'm using Visual Web Developer 2008 express to create my pages. At this point in my text, the author has me drag a DropDownList control to the Web page and then tells me to go to the Properies window and look at the Items property. I don't see an Items property. I've doublechecked that I'm on my DropDownList control, but I see no Items property. Is this a bug in VWD, an error in the book, or just plain old User error?
I'd be willing to hard-code the property in the source window, but I don't know the syntax. I tried items="Vanilla, Chocolate" but nothing appears in the list when I view the screen.
I have a listbox and used the sqldatasource to load the items in the listbox. But if there are no items in the result then i need to hide the listbox and show one msg like "no items". I know to check the listbox is empty or not using "Items.Count " , but which event will i check this?
I set up a really simple custom membership provider for my website, it is on shared hosting with 123reg which operate in medium trust mode. Due to this the membership provider throws an error. how it would work on medium trust on shared hosting? The hosting doesnt allow me to set the applications trust mode either.
am a .NET developer with four years professional experience. In my free time I am looking at building a site that graphically displays relationships between objects, in this case, people. I don't want to spend any money on a web control as this is just for fun. Something that looks like this:
except with people (who know each other, or otherwise). I am having trouble starting this project out. I have the database designed with a People table (ID, Name) and a Relationships table (ID1, ID2), but don't know how to graphically display this information.
I have a databound dropdownlist hooked up to a table and the query has the returned items show up in order. I also have some default items that are _DataBound like so:
[Code]....
What I'd like to do is add some more items, but have these new items show up in order with the other items displayed from the query. How do I accomplish this?
I had used listbox control with multiple selection mode. I stored id with comma delimiter in database.
e.g.
1. List Item One. 2. List Item Two. 3. List Item Three. 4. List Item Four. 5. List Item Five. 6. List Item Six.
Suppose user select item 2, 4 & 6. So I will store it as a 2,4,6 in database. This will work fine.
Now in editing I have to shows selection-bar for item 2, item 4 & item 6. So I had typed below source.
string strData ="2,4,6" if(strData != null) { char[] separator = new char[] { ',' }; string[] strSplitArr = strData.Split(separator); int x = 0; for (x = 0; x < strSplitArr.Length; x++) { // lstWDef_PurchasesEdit.Items[x].Selected = true; lstWDef_PurchasesEdit.SelectedValue = strSplitArr[x].ToString(); } }
But with this statement I got only last item id as a selected item with selectionbar. In our example 2,4,6 only item whoseid is 5 got as a selected item.
if i use
for (x = 0; x < strSplitArr.Length; x++) { if (lstWDef_PurchasesEdit.Items[x].Value == strSplitArr[x]) { lstWDef_PurchasesEdit.Items[x].Selected = true; } }
if the selected items are serial like 2,3,4 then it is displaying correctly..
if items are 2,4,6 then it is not selecting the items of listbox properly.
Is anybody guide me how to make item 2, item 4, item 5 as a selected item ?
I have a usercontrol on my page. The user control contains an ajax updatepanel with a listbox in it. There is also a PopupControlExtender that is tied to that panel so when the user clicks on something the popup shows. That is all working fine except when my page initially loads I briefly see all the listbox items and then they go away.
I have a number of products in a SQL2005 DB. I have the Stored Procedure set-up to return the info as grouped rows containing 'manufacturer, model, quantitiy'.
I need to then display this content on a c# Asp.Net 4 web form grouped by manufacturer with the manufacturer as the group header. The whole data should be displayed over a 3 column layout.
So, Ive used a Datalist as this allows for the number of columns to be stipulated.
However, I can't work out an effective way to show the various products groupd by manufacturer, eg as shown below;
I have an xml repeater deployed on two different pages. On the "News" page, I'd like to show all the items (which works fine), but on the "Home" page I'd only like to display the three most recent items.The code I'm using is below.
I have a custom menu, which leverages the standard asp.net sitemap. It works well but some of my pages are dynamically generated by URL rewriter, so they don't sit in the sitemap XML file. At the moment I rolled a custom solution which shows/hides menu items via CSS class and a programmatic check of the role that the user is in. It works ok until I visit a dynamic page that doesn't exist in the sitemap file. I've tried the "roles" attribute in the sitemap file with security trimming but it isn't working because I have a custom menu.
Is there a way I could leverage the roles attribute in the sitemap file to show/hide menu items for my custom control below, even when some pages are not in the sitemap? My menu control is below...
I want to use something like the AutoCompleteExtender, however, if the user clicks on an item, I don't want that value to go into the text box. Doesn't anyone know how to do this?
I need to know how to do what the following would intuitively do if it worked (imagine useGreek() and useNato() to be states that would be consulted once per load or postback):
(It will already be apparent that I'm not usually asked to write for IIS.)
Anyway, ASP.NET doesn't like code interleaved with list items, so this is a no-go. I imagine that there's some C#-based way to handle this somehow, but I've been trying for a few days now with no luck.
Also, just to be clear, I'm seeking a server-side solution here. I'm well-versed with jQuery, but we're trying to keep most of the processing of this particular form off the client.