Retain Values In Select Multiple Box?

Oct 28, 2011

I have a javascript function below to move from select multiple box A which is populated from database to another multiple select box B, in the event of a postback my values in B which are moved over from A got lost. Initially I thought because I included a "runat="server"" tag for server side actions but apparently it's not the case. I read about Form.Request but ain't have a clue how to go about it. I just need to retain those values in multiple select box B.[code]...

View 1 Replies


ADVERTISEMENT

Select Multiple Values In DropdownList In Asp.net With VB?

Jan 20, 2012

I am creating a page in which I need to show a drop down List. From this drop down List a user can select multiple values. I know I could use a check box list like:

<asp:CheckBoxList ID="CheckBoxList1" runat="server" style="margin-right: 158px">
<asp:ListItem>Value 1</asp:ListItem>
<asp:ListItem>Value 2</asp:ListItem>

[code]....

but if there are more than 50 or so values then that will consume a lot of space on the page and will look odd. So kindly tell me how can I select multiple values from drop down list or if there any alternatives so that I can select multiple values and show many records on a minimum space but not a grid?

View 2 Replies

How To Select Multiple Values Based On Parameters

Aug 11, 2011

I have a little challenge. I have a report that I declared a parameter called Department that has default values like this: [Code] The problem is that when I test this (with CR10 or on web), and I select multiple values, the thing does not show the values for the multiple values. It only works when I select a single department. What should I do?

View 2 Replies

How To Retain Data Across Multiple Forms

Sep 8, 2010

I have an vb.net windows application set up. It has multiple forms, about 6 in all. There's a main menu form, and then 5 other forms to collect data. The user will collect data on each form and bounce back and forth between forms. How do I get the forms to retain the data that has been entered into the text boxes and/or other controls on the forms? For example, they might fill out a few textboxes on a form, but then need to go to a different form and fill something out and then back to the previous form. Right now, when they come back to the form, all the data previously entered in to the text boxes is gone.

View 7 Replies

Asp.net - Request.Form HTML + Select Multiple Box Values?

Oct 29, 2011

I am trying to get values from a select multiple box like this but the breakpoint at 'For Each Item in box' is nothing, what am I doing wrong?

[Code]...

View 1 Replies

Display CheckedListbox Values Into Listbox2 And Retain CheckedState?

Dec 13, 2010

What i am trying to achieve is that if listbox2 contains checkedlistbox1 items then checkedlistbox1 should retain checked state even after the from is closed and re-opened again.

Since i am saving the checkedlistbox1 values into a Table - is it possible to bind those to retain the checked state even after the from is closed and re-opened again - or it can be done comparing the values from both listboxes [code]...

View 2 Replies

Retain Field Values On Error In A Dynamic Gridview?

Jun 7, 2011

I have a page which has a GridView on it, which is populated from a database. Some of the columns in the GridView have text boxes, as well as Checkboxes.When the user saves the page, the page may error if they have not entered their data correctly. At this point, I need to re-display what they have entered already so they can simply make the correction instead of having to change everything from scratch again.

View 1 Replies

Select Multiple Rows In Data Grid View And Loop A Sub With The Values?

May 19, 2010

I am almost there but for some reason I don't find the answer to my issue. Here it goes. In my application I have a form which displays a data grid view with some info I get through XML from a web server. The data grid view have as first column a Check Box colum. The second column have the information I get into a variable (from cells), one by one, to pass it to the sub with the XML command.

What I want to do is to be able to select all the rows and send the cell info of the second row (only for the selected rows) to my sub which will execute once then send the second cell info and execute the sub and so on until all the loop is complete. Currently my code works only if I delete one row at a time (sending the XML code will delete the info in the web server and update the datagridview which in return will remove the item).

[Code]...

View 3 Replies

Pass Multiple Values And Return Multiple Values?

Jun 10, 2011

When I click on button1, employee_id and P values need to be transferred from button1_click to Cal_Category13() and go through all the calculation. After the calculation, udtnew.X and udtnew.MTD values need to be transferred back to button1_Click

I've no problem to return multiple values Cal_Category13().MTD and Cal_Category13().X from Cal_Category13() to button1_Click but i've no idea how to transfer employee_id and p values from button1_click to Cal_Category13().

Program Code
Public Structure PCB
Public Employee_ID As String
Public MTD As Decimal

[Code]......

View 2 Replies

Unable To Select Multiple Column In Datatable (dtable.select())

Aug 2, 2011

Unable to select multiple column in datatable

Code:
Dim Activitydtb As DataTable = DirectCast(ViewState("TalentcharacterActivty"), DataTable)
grdviewactivity.DataSource = Activitydtb.Select("SELECT

[Code].....

View 2 Replies

.net - One Dataset With Multiple Results Sets (multiple Select Statements) SQL Reporting Service?

Oct 15, 2011

I have a question regarding the dataset usage in Reporting Services. I have a stored procedure which returns multiple select statements (result tables), and I created a Dataset in Reporting Services 2005 with this stored procedure. The problem is that I can not reference the second or third result table, and I can only use the first select statement fields. Is this the limitation on Reporting Services Dataset or is there a way to use multiple table results in one dataset?

View 1 Replies

Multiple Select Of HTML Select Element?

Mar 22, 2011

I have a webbrowser control in VB 2010 Windows Form project that loads a webpage. This webpage contains select tags with a few options. I can select one option using:

Dim
cboTemp1 As
mshtml.HTMLSelectElement

[Code]....

But I need to be able to select more than one option (e.g. 1 and 6) in the select tag/element. Is that possible, the Select element has the multiple select option enabled..

View 1 Replies

Select To Multiple Sql Tables Using Select Query?

Jul 23, 2011

I want to select to multiple sql tables using select query in vb.net..I have 2columns in sql table..I have tried this query.. But i'm getting error.

TextBox11.Text = Val(27)
cmd = New SqlCommand("SELECT outside,power FROM vijay21 INNER JOIN vijay22 ON vijay21.outside=vijay22.outside WHERE outside BETWEEN " & Val(TextBox11.Text) & " AND " &

[code].....

View 4 Replies

Select Multiple Objects Like Checking Multiple Checkboxes?

Nov 24, 2010

Is there a tool in the toolbox that i can use that replaces checkboxes. i have limited amount of space and checkboxes just keep taking up room. I need the user to select multiple objects like checking multiple checkboxes.

View 5 Replies

Exclude Multiple Values In Sum Depending On Values In 2 Columns In SSRS 2005?

Apr 21, 2009

I have simple columns and their respective sums. However, I exclude 1 particular value from each sum, like so [code]...

Now I need to exclude another value ("Awaiting Progression") from a second column called "PROGRESSION".

Since I already exclude value based on 1 column called CATEGORY, how do I change my =Sum(Code.ExcludeOthers(Fields!CATEGORY.Value,Fields!ACTION_PLAN_NEW.Value)) to exclude a value from the PROGRESSION column if it's = ("Awaiting Progression") ?

i.e. How do I exclude multiple values, depending on values in 2 columns in SSRS 2005?

View 1 Replies

Select Row Values In A Gridview - ASP.NET?

Oct 12, 2009

[code]
Public Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
If e.CommandName = "Select" Then

[Code].....

View 2 Replies

Select Top 4 Values Using Sql Table?

Jun 15, 2011

I want to select top 4 values in sql table using vb.net.. how do i select it?

View 10 Replies

SQL .net Insert Using Select AND Values?

Apr 6, 2011

New to using SQL and I am having trouble accomplishing something that I figured would be simple.I am trying to create and INSERT that will insert the MAX() value from the first column in one table to the first column in another table while the rest of the columns will be filled with parameters.

I have tried switching my code around to see if I just had the syntax wrong but I've had no luck and I'm not even sure what I'm trying to do is possible (at least in a single INSERT).Here is what I have at the moment:

INSERT INTO [Table2] VALUES(SELECT(Number FROM [Table1] WHERE Max(Number)), @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10)

View 2 Replies

Retain A Value From A Textbox And Add To It?

Nov 15, 2011

My assignment is to create an application that allows the user to type an item's price into a single textbox, add the price to the previously entered prices, and display the total charge which includes a $15 shipping charge and a 3% sales tax.Example: I type 10 in the textbox and click calculate. the subtotal (before tax and shipping) reads $10. Next, I type 20 in the textbox and click calculate. The subtotal should now read $30.I have everything working fine except adding the different prices. I cannot figure out how to retain the value of the subtotal and add it to the next value entered.

View 2 Replies

How To Send <Select> Values To Vbscript

Mar 31, 2010

I'm using some HTML with vb.NET and would like to know if it's possible to pass data back and forth. I need the value of an option in a drop down box passed down:

[Code]...

View 1 Replies

Javascript / Printing Values From Select Box

Sep 29, 2011

I have a select box call 'ToLB' which takes in value items from another select box. I need to extract those selected values from 'ToLB' and print it on a label, this is how I do it but apparently it's not working as in no error message but nothing was printed to the label.[code]

View 1 Replies

Select And Saving Values From Listbox To SQL DB

Apr 27, 2012

We have a listbox in our MVC View and the user has the ability to highlight multiple values. I'd like to be able to save those selected values(if possible?) as a comma delimited cell value in our '08 SQL Database.

The image below shows what I am attempting to explain. Note the selection in the LISTBOX

This is where we save the passed in values from the Positionnumber DDL (Listbox w/ mulitple highlights).

> <HttpPost()>
> Function Edit(wsmonitor As WSMonitor, ByVal vbpositionnumberDDL As Integer, ByVal PassedCounty As Integer, ByVal
> MonitorTypeDDL As String) As ActionResult

[Code]....

View 1 Replies

Select Statement Not Fetching Values?

Jan 15, 2012

I am entering a value in textbox and click the find button. In the button click i've written the following code, but it does not yield any result.

dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbsource = "Data Source = D:sprrg.mdb"
con.ConnectionString = dbprovider & dbsource

[Code]....

View 2 Replies

Select Statement To Store Values?

Jul 19, 2011

Here is my select stament to store values when username and password and check boxes are check

com =
New OleDbCommand("INSERT
INTO Users (UserName,Password,IsAdmin,Read,Write,Change,REMOVE,User_st) VALUES ('" & txtusername.Text &
"','" & txtpassword.Text &
"'," &
CInt(chkIsadmin.Checked) &

[Code]...

My problem is this wehen i add new record to my db it saves values like this the value of read column is as follows read = 1 when check box is checked and read = 0 when check box is checked but i want to save true or false instead 1 and 0 how to achieve this using vb.net and my db is Oracle.

View 2 Replies

Select Statement With Conditional Values?

Dec 13, 2010

Is there a way to do a select statement with conditional values?

For example: select * from table where column1 = (ifequals(column1, Active, Y, N))

View 9 Replies

Use Linq For Select Distinct Values?

Mar 28, 2012

I'm pretty new in Linq and the first problem I've is to select the Distinct values from a ObservableCollection( Of T)

I've tried with[code]...

View 2 Replies

Can't Select Multiple Records In SQL With ASP.net?

Nov 18, 2011

I have problem and I've been looking for a week now on how to solve it. Yesterday I thought I solved but apparently I didn't when I tried the query with new data added in my database.Here's my query

Public Function getTicketsByBeginstation(ByVal station As String) As Array
Dim r As Array
r = (From u In treinDataContext.Tickets Where u.ritId =[code].....

The problem I have is: when I have a station selected there are more than 1 trajecten (connections in English) but I had to use the .first else Visual Studio would give the error "the '=' operator is not defined for 'integers' and 'system.linq. IQueryable(of integer)".

So I give the name of a station -> I have to select all trajectens with the given station as beginstation -> I have to select all ritten which have the given trajecten -> I have to select all tickets which have the given ritten So: I have to show all tickets for a certain station.

View 2 Replies

How To Select From Multiple Table

Jun 18, 2012

how to select from multiple tables. so far this is my code how do i Dim dr As OleDbDataReader

[Code]...

View 2 Replies

How To SELECT To Multiple Table

Jun 18, 2012

what sql command i must use. this is my current command but it give me an error saying "The specified filed 'ClientNo' could refer to more than one table listed in the FROM clause of your sql statemate." [code]

View 3 Replies

Select Multiple Columindexes In Dgv?

Mar 14, 2010

what you can see in the code is when i select a name of a column in cbo1(combobox1.text) and also the value of a RB1(radiobutton1.text) .the cells of the selected column returns the value of RB1 so thats OK

but when i select a different name (column) in cbo1 the value of the first column doesn't stay and i want that unchanged

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved