drop-down-menu

DropDownLists Issue ASP.NET

大兔子大兔子 提交于 2020-01-15 10:26:43
问题 I really have a serious issues with postback, i have 3 dropdownlists, the first one contain data from a database, it's the countries, the second is the same but for the cities who depends the selected value on the first dropdownlist wich is the countries, and the third dropdownlist is the airlines who depends on the selected value of the second dropdownlist wich is the cities. So the first two dropdownlists work perfectly, but the third dropdownlist will never work even with autopostback true

SELECT Dropdown that redirects without Javascript

三世轮回 提交于 2020-01-15 07:20:25
问题 Is it possible to create a dropdown that redirects the user when he selects an option without javascript? When the user selects a category in dropdown A, I display dropdown B (which has subcategories) with Javascript. I want to make it work similarly for users without Javascript. My idea is to redirect users to different pages when they choose an option in the first dropdown. Is this possible without javascript? How can it be done? (if not if possible suggest something) 回答1: No. The most

IE 7 CSS drop menu troubles

假如想象 提交于 2020-01-15 03:22:05
问题 I have a couple dropdown menus that are giving me issues in IE7. I've wasted the entire morning trying to fix it. The client is monitoring the site using IE7 so it's a top priority. I've got a live demo and a jsfiddle demo set up. Here is the actual site I'm working on today as well just for reference, but the demos have the problems isolated. I left some of the reset css and such in case any of it is related. There are 2 problems: Most Important : There are z-index issues with the top menu

Django foreign key drop down

大憨熊 提交于 2020-01-14 19:23:25
问题 New to Django and Python and I need a little help with a foreign key drop down. Basically, I have a category model and a image model and I want users to be able to choose which category to put the image in. How do I create a drop down for the category in the image form? Are my views and html correct too? I have had a look online but I can't seem to do it myself. I keep getting errors. Here are my models: class Images(models.Model): image = models.ImageField(upload_to='images', blank=False)

Django foreign key drop down

↘锁芯ラ 提交于 2020-01-14 19:23:05
问题 New to Django and Python and I need a little help with a foreign key drop down. Basically, I have a category model and a image model and I want users to be able to choose which category to put the image in. How do I create a drop down for the category in the image form? Are my views and html correct too? I have had a look online but I can't seem to do it myself. I keep getting errors. Here are my models: class Images(models.Model): image = models.ImageField(upload_to='images', blank=False)

MVC3 DropDownList + JSON + selected issue

核能气质少年 提交于 2020-01-14 19:01:48
问题 I have a very strange behaviour between my website (MVC3 + JQuery) and its mobile version (MVC3 + JQuery mobile) which are split in two distinct solutions. I am using the following code to change the concent of a dropdown (SearchValue) according to another one (SearchBy). Razor: @Html.DropDownListFor(x => x.SelectedSearch, new SelectList(Model.SearchBy, "key", "value"), new { onchange = "GetValues($(this).val());" }) @Html.DropDownListFor(m => m.SelectedSearchValue, new SelectList(Model

How can I set alignment for a ListItem in a DropDownList?

痴心易碎 提交于 2020-01-14 18:51:05
问题 I have a DropDownList in my aspx file like this: <asp:DropDownList runat="server" ID="MaxRec"> <asp:ListItem>10</asp:ListItem> <asp:ListItem>50</asp:ListItem> <asp:ListItem>100</asp:ListItem> <asp:ListItem>150</asp:ListItem> <asp:ListItem Selected="True">200</asp:ListItem> </asp:DropDownList> In Chrome it renders like this: How can i set the alignment on all ListItems to be to the right so that values are properly aligned? I tried setting style="text-align:right" on the DropDownList and on

How can I set alignment for a ListItem in a DropDownList?

夙愿已清 提交于 2020-01-14 18:50:11
问题 I have a DropDownList in my aspx file like this: <asp:DropDownList runat="server" ID="MaxRec"> <asp:ListItem>10</asp:ListItem> <asp:ListItem>50</asp:ListItem> <asp:ListItem>100</asp:ListItem> <asp:ListItem>150</asp:ListItem> <asp:ListItem Selected="True">200</asp:ListItem> </asp:DropDownList> In Chrome it renders like this: How can i set the alignment on all ListItems to be to the right so that values are properly aligned? I tried setting style="text-align:right" on the DropDownList and on

Dropdown submenu on bootstrap is not working

会有一股神秘感。 提交于 2020-01-14 13:46:27
问题 I just wanna ask why is it the dropdown submenu on bootstrap is not working, i just followed the instructions in this link: (http://getbootstrap.com/2.3.2/components.html) but still the dropdown sub menu on a submenu did not appear. By the way I did not change or override classes in the CSS. Here's my code! :) <li class='dropdown'><a class='dropdown-toggle active' data-toggle='dropdown' href='#'><img src = 'images/forbank.png' height = 35 width = 35>Banking<span class='caret'></span></a> <ul

mysql select distinct query in PHP

独自空忆成欢 提交于 2020-01-14 10:33:11
问题 $sql = "SELECT DISTINCT Branch FROM student_main"; $result = mysql_query($sql); $row_num = mysql_num_rows($result); $rows = mysql_fetch_array($result); echo "<select name='Branch'>"; for($i=0;$i<=$row_num-1;$i++){ echo "<option value='".$rows[$i]."'>".$rows[$i]."</option>"; } echo "</select>"; echo "<input type='submit' Value='submit' />"; echo "</form>"; I am trying to create a dropdown using the above code for my form. But its not working. There are 3 distinct values in the Branch column