Web Forms :: Creating A Dropdown Similar To The Time Dropdown In Outlook?
Aug 14, 2010
creating a dropdown similar to the time dropdown in outlook, located in the recurring event. The dropdown shows intervals of 30 minutes based on a 12 hour time format and allows the ability to put text in it.
View 1 Replies
Similar Messages:
Oct 15, 2010
I have one left side panel which containg one search box and treeview, when user type any search text than i have to dropdown the list of matching item below textbox,according to search text user can able to find text on dropdown, when user select particular text and click on same on treeview that text would be automated selected and on right side panel data will pupulate automatically according to selected item.same like
[URL]
View 4 Replies
Apr 30, 2010
I need to create 2 cascading dropdown menus for a website. I am really new to ASP so don't understand a lot of it yet.. now is that the website pulls the list items from a SQL database and I don't want to use this method. I need to use either JavaScript or just hard code the items. Here are the directions for what I need to do:
Drop down list box for selecting a state (populate it with names of five states)
View 7 Replies
Sep 8, 2010
Does anyone know how to do this so when I select something the 1st dropdown and the 2nd one becomes visible and populates list from a Select statement. I really need help on how to do in an aspx and not on the code behind page.
View 12 Replies
Jun 12, 2010
I Have the gridview control with 2 dropdown list and 2 text boxes,When the textbox chnaged event happen 1 row will create and the dropdown back to initial values( its not retaining the selected values),I am binding the control after text changed method,Is there any properties needs to be set or any other way we can retain the values in postbacks?
View 4 Replies
Mar 4, 2011
I have a gridview where i have two fields. one is product and second is sub category.
I need to do 2 things.
1. I need to populate the two combos from the database. But depending what is selected in dropdown 1 this will determine what needs to be populated in drop down 2?
how can i achieve this?
View 2 Replies
Oct 14, 2010
I have two dropdown linked with sqldatasources.When I select item in ddl1 then on the basis of selection ddl2 is being loaded.Is there any possiblity that if I select ddl2 then ddl1 will also load on the basis of selection?
View 3 Replies
Sep 16, 2010
I am a complete newcomer to ASP.NET. However in the few weeks I have been playing with it I have got pretty far and have mastered things like stored procedures, gridviews, formviews and templates.I have a dropdown box which is populated from SQLDataSource1
I have a second dropdown box which is populated from SQLDataSource2, but i need the query feeding this to be dependent on what was selected in the first dropdown box. I assumed it would simply be a case of modifying the select statement on SQLDataSource2 using the SelectedIndexChanged event on the first DropDownList to update the second SQL source, but I cannot work out for the life of me how to do it. Pretty much all of the code I have is ASP.
can i do this purely in ASP rather than using VB behind the scenes or do I need to use VB? I am pretty comfortable with vb.net but one of the other issues I have is referencing an ASP object from VB... so for instance if I had a text box in ASP, how can I read or change the properties of this object from VB?
FYI I am using Visual Studio 2010 and SQL/Server
View 3 Replies
Mar 11, 2014
I have seen article in code snippet but i have never used web services so that is complicated .
View 1 Replies
Oct 9, 2010
I was wondering is there anyway to create a flag column similar to outlook or is there any 3rd party control out there that already has this feature built in?
View 1 Replies
Jun 11, 2010
I'm having a problem with using a dropdown to filter the contents of another drop down. The basic idea is:
Dropdown 1 = CountryList (Column1)
Dropdown 2 = StateList (Column2)
I read the contents of a CSV file and populate the gridview. The user then visually verifies that the data is valid and proceeds to upload to the database. To do some testing, i have intentionally changed spellings of country names so they DO NOT match the countrylist which the grid view then flags with a different background indicating bad data. The user then edits the gridview. The Country and state columns then show a drop down control populated with the country list and filtered states list based on countryID.
Here's the ASP.NET ASPX Source for the section of code that is dealing with the gridview
[Code]....
Here's the section of VB Code behind that deals with handling the "RowEditing", specifically the binding of the dropdowns
[Code]....
The proglem is that these dropdowns are ment to easily fix minor errors in data. When i intentionally changed the spelling of "Canada" to Canadaa", this has no corresponding CountryID in the table and the ddlEdtStateID Dropdown's datasource filter does not work. I tried setting the datasource to nothing if a valid CountryID was not there and then i tried to use the SelectedIndexChanged event for the ddlEditCountryID to programmatically set the datasourceID for ddlEditStateID but when i try using CType(FindControl("ddlEdtStateID"), DropDownList) to set the DataSourceID, it does not find the control.
If the Country does not exist, then i just want the stateslist dropdown to say "select a country" but when a valid country is selected, it should display the filtered list for that countryID. Right now, if bad data is entered for the country, then the program crashes when it tries to populate the state drop down. I want it to just say, select a country when the countryID is not valid.
View 1 Replies
Mar 21, 2010
How can i dynamically add textboxes and dropdown lists on a button click. I'll be showing 4 text boxes and 1 dropdown list initially with a link button ADD MORE, Then after clicking ADD MORE button i need to generate same 4 text boxes and dropdownlist exactly in the below row as in EXCEL sheet.
I'm having a SQL table with 4 textboxes and a drpdown list values as columns and i need to insert them into the database. i previously worked on the same requirement where i've collected multiple values frm a listbox control and looped all the selected items and comma seperated them and inserted them into table(here the case is different, there is only one row so it became simple and straight forward during insertion). Now i need to loop throguh all the 4 textbxes which user enters and need to insert those 4 textboxes values into DB under same columns.
View 3 Replies
Mar 16, 2011
I have dropdown1 that has some items in it.I also have dropdown2 that gets populated from a database based on whatever is selected from dropdown1.Dropdown2 has its first item as "Make Selection" and then appends the data from the db based on what was selected in dropdown1.
Now when I select an item from dropdown1 it puts the correct data in dropdown2 but as soon as I select another item from dropdown1 it appends those values into dropdown2. How can I remove the values from dropdown2 after a new item is selected from dropdown1?
View 3 Replies
Feb 1, 2013
How to fill the value in drop down box according to value selected in another drop down box?
View 1 Replies
Jun 18, 2012
How to get the first letter from dropdown value and append with second dropdown
I want to get the first character of dropdown selected value and append with second dropdown selected value.
Eg
i kept two dropdown control in page
five values binded in 1st dropdown
like
1. reebok
2. nike
3. puma
4. woodland
5. Leather
and
five values binded in 2nd dropdown
like
1. prod1
2. prod2
3. prod3
4. prod4
5. prod5
here i am going to insert into table in below format
i wand to append the value like this rprod1 (r is a reebok from 1st dropdown and prod1 is second dropdown) .
eg
nprod1
pprod1
View 1 Replies
Mar 1, 2010
i would like to add a search module in my web application. I would like to use drop down list. I would like to know how to connect more than one drop down list in the same page to produce a result.
Example :
Holiday Type : Honeymoon,shopping (select in a drop down list)
Budget : 300-400, 400-500, 500-600 (select in a drop down list)
Result : a suggested holiday pakage (from database).
I'm new to asp.net. I think that 'if else' method can be used. Would be nice if anyone could share any related source codes.
View 7 Replies
Mar 3, 2011
I have a working dropdown box that gives the answers yes & no. When "yes" is selected I need to create a message box that displays a simple message and allows the user to click ok, to get back to the survey.
I have been working with it, and tried several things but no luck. What would the code look like, and where exactly would I place it to fire at the right time. I am working in VB, with an aspx & aspx.vb page.
View 3 Replies
Sep 27, 2010
I am trying to do is user can add to the drop down list during runtime and that new value should then be inserted in the databse .
suppose drop down list is bind with as dataset with values
value1,
value2 ,
value3 ,
now if the user click on button "add new items" then he should be able to enter new list item and that should be able to insert it in databse.
View 1 Replies
Apr 4, 2011
I want to create a dropdown of Vendors. I have a Vendors table in my DB, containing a VendorID and a CompanyID. The Company table contains a CompanyID and a Name.
I would like to have a dropdown with items that have the VendorID as the value and the Company Name as the text. But I don't know how to get the Name field from the related table to put in the dropdown, so I have the VendorID as the value and text. Here's what I have right now.
I'm passing in a model that contains this:
public IEnumerable<Vendor> Vendors { get; set; }
In my controller, I'm setting the value of Vendors like this:
MyDBEntities _entities = new MyDBEntities();
Vendors = _entities.Vendors;
Here is my dropdown list on the page:
<%= Html.DropDownListFor(m => m.VendorId, new SelectList(Model.Vendors, "VendorID", "VendorID"), "- Select a Vendor -")%>
I thought I could create a custom function - GetVendorsForDropdown - that would return only the data I needed, and changing my model to contain IEnumerable<Something>. But I don't know what the return type should be.
View 2 Replies
Jan 20, 2011
I've noticed that page load time increases dramatically as you load up a ddlistbox with items. 10,000 or so results in a pretty much unacceptable wait time for my setup. The dropdown I'm trying to load is Airports - like all of them. What are some alternative UI solutions that give the user the ability to easily select any (literally) airport, but without a ginormous page loading time? (Currently the dd is keyed to the airport's 3 letter code, so it's convenient for the prepared user to just type the 3-letter code and have the right airport selected. The display is then set to code, city, country.)
View 7 Replies
Jul 9, 2010
I have a category and a subcategory column in a Jqgrid. I have enabled inline editing, both category and subcategory are dropdownlists columns (edittype:'select'). I need to filter the subcategory list based on the selected category. I wonder how can I acheive this functionlity? I tried the below event but its not working for me
afterEditCell: function(rowid, celname, value, iRow, iCol) {
//to do here
}
the above event doesn't get fired. my all column are editable
View 1 Replies
Mar 1, 2010
We are developing our application on a 64 bit server. We are using a dropdownlist to filter and display departments in a htmltable(hide and show rows) on every selectedindexchanged event.
The issue is it is firing properly for the first time, but it is not doing a post back there after. We have even given autopostback=true. We are using AJAX for hiding and showing the rows of the htmltable.
View 2 Replies
Sep 3, 2010
i have a dropdown with month names if the user has data for the month tht is selected then gridview displays the rows with day nos as per the month but if the gridview has no data for the same the dropdown or gridview via some event should call a insert procedure to insert data into the table for tht month with daynos ad rebind the gridview witht the rows just created
View 6 Replies
Oct 10, 2010
I am stuck at this point "Displaying a dropdown list of Categories with a --None -- Option. I want the gridview control to display 2 dropdown list one in read-only mode and the other in edit mode. When a record is in read-only mode, the dropdownlist's enabled property will be set to false."When it's on a read-only mode, it doesn't display the selected Category. it shows but the "No Category". When i click on edit to edit or change category, it doesn't display the selected category.
The example is given below( I am reading the book Sams Teach yourself ASP.NET 2.0 by Scott Mitchell. page 628)
<asp:Label ID="UserIdValue" runat="server" Visible="False"></asp:Label>
<asp:SqlDataSource ID="picturesDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [Pictures] WHERE ([UserId] = @UserId) ORDER BY [UploadedOn] DESC"
DeleteCommand="DELETE FROM [Pictures] WHERE [PictureID] = @PictureID"
InsertCommand="INSERT INTO [Pictures] ([UserId], [CategoryID], [Title], [Description], [UploadedOn]) VALUES (@UserId, @CategoryID, @Title, @Description, @UploadedOn)"
UpdateCommand="UPDATE [Pictures] SET [UserId] = @UserId, [CategoryID] = @CategoryID, [Title] = @Title, [Description] = @Description, [UploadedOn] = @UploadedOn WHERE [PictureID] = @PictureID">
<DeleteParameters>
<asp:Parameter Name="PictureID" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="UserId" />
<asp:Parameter Name="CategoryID" Type="Int32" />
<asp:Parameter Name="Title" Type="String" />
<asp:Parameter Name="Description" Type="String" />
<asp:Parameter Name="UploadedOn" Type="DateTime" />
</InsertParameters>
<SelectParameters>
<asp:ControlParameter ControlID="UserIdValue" Name="UserId" PropertyName="Text"/>
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="UserId"/>
<asp:Parameter Name="CategoryID" Type="Int32" />
<asp:Parameter Name="Title" Type="String" />
<asp:Parameter Name="Description" Type="String" />
<asp:Parameter Name="UploadedOn" Type="DateTime" />
<asp:Parameter Name="PictureID" Type="Int32" />
</UpdateParameters>
</asp:SqlDataSource>
<br />
<asp:SqlDataSource ID="categoriesDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [CategoryID], [Name] FROM [Categories] WHERE ([UserId] = @UserId)">
<SelectParameters>
<asp:ControlParameter ControlID="UserIdValue" Name="UserId" PropertyName="Text" />
</SelectParameters>
</asp:SqlDataSource>
<br />
<asp:SqlDataSource ID="maxPictureIDDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT MAX(PictureID)
FROM Pictures
WHERE UserId = @UserId">
<SelectParameters>
<asp:ControlParameter ControlID="UserIdValue" Name="UserId"
PropertyName="Text" />
</SelectParameters>
</asp:SqlDataSource>
<br />
<asp:Label ID="cannotUploadImageMessage" runat="server"
Text="The photo could not be added to your album either because you did not specify a file to upload or the file specified was not a JPEG image with the file extension .JPG"></asp:Label>
<br />
<asp:DetailsView ID="dvPictureInsert" runat="server"
DataSourceID="PicturesDataSource" Height="50px" Width="125px"
AutoGenerateRows="False" CellPadding="4" DataKeyNames="PictureID"
DefaultMode="Insert" ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="White" />
<CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
<EditRowStyle BackColor="#2461BF" />
<FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
<Fields>
<asp:TemplateField HeaderText="Picture">
<InsertItemTemplate>
<asp:FileUpload ID="imageUpload" runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="imageUpload" Display="Dynamic"
ErrorMessage="There was no file selected" ValidationGroup="PictureAdd"></asp:RequiredFieldValidator>
</InsertItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Category" SortExpression="CategoryID">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CategoryID") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:DropDownList ID="pictureCategory" DataSourceID="categoriesDataSource"
runat="server" DataTextField="Name" DataValueField="CategoryID"
SelectedValue='<%# Bind("CategoryID") %>'
Visible='<%# Bind("CategoryID") %>' AppendDataBoundItems="True">
<asp:ListItem Selected="True" Value="">-- Select Category --</asp:ListItem>
</asp:DropDownList>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("CategoryID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Title" SortExpression="Title">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" Display="Dynamic"
ErrorMessage="you must provide a name for the title"
ValidationGroup="PictureAdd"></asp:RequiredFieldValidator>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description" SortExpression="Description">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Description") %>'></asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Description") %>'
View 2 Replies
Oct 22, 2010
how to populate a dropdown list box based on selected value in another.
dropdown list box? Say, for example, the first dropdown is a list of car manufactures. When a user selected a manufacture from that dropdown list, the second dropdown would list would automatically gets populated with all the car models for that manufacture.
View 3 Replies