problem with selected text field and selected value field in check box list
Hi! i have a problem with check box list:here is the code for binding the check box list with sqldatasource SqlDataSource1.SelectCommand = "select vcentrolno,inttpaperno from tabmarksdetails where vcbunchno='" & strBunchNo & "'" chkEnrolNos.DataBind()say now my chkEnrolNos consist of data in this way:vcentrolno inttpaperno selected text selected valueA11439 1A11439 2AR439  ...
Selecting value in one field then causes value in another field to be selected.
I have a web form which contains a date field, the date is populated using a DatePicker which is Javascript based. The form also has a drop down box containing 3 values.
What I want to do is when a date has been selected that this will cause the dropdown list value to change to dated which is one of its 3 values. i.e. when the date field is not blank then the value will be selected in the dropdown. What I also want to happen is when the date has been selected and the dropdown value is dated then the date field and the dropdown field will be set to read only.Anyone any ideas how to this usin...
when loading a previously created record on to form, some controls are missing values(controls are depended on values selected in other controls)
Hello - I have created a page for Editing records. this page will open up a chosen record and allow user to edit the data.On the form, I have 3 drop down lists. The second dropdown list should fill values depending on value chosen in first dropdown list. The third dropdown list should show/fill values depending on value chosen in second dropdown list.So taking this into count, i have several records with various data. When I open-up/load a record in Edit form, only the first dropdown list has a value selected that was the pre-existing va...
selected value of DDL contained in a user control
Hi all,
I have this code in my page_load event of my user control.
If Not IsPostBack() Then
LoadLocations(lstLocation)
'lstLocation.Attributes.Add("onchange", "javascript: document.Form1.submit()")
Select Case strDisplayMode.ToUpper
Case "RESULTS"
poPurchaseOrders.Find(strRequestedBy, strRaisedBy, strApprovedBy, strMatterNumber, strPurchaseOrderNumber, strOffice, intPageNumber, intRecordsOnPage)
Case "MYLIST"
poPur...
Selected values in Checked listbox in repeater control
Hi
How do I retrieve the selected values in a checked listbox that is contained in a data repeater.
<asp:repeater id=dl runat="server" DataSource="<%# bound %>">
<HeaderTemplate>
<TABLE
WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="1"&g...
checking for a null value returned from a SELECT in VB.net
I am executing a SELECT statement, one time it is executed the "category" does not exist in the db.
How do I check that NULL was returned so I dont get an error trying to access it?
At the moment I get the following error message "System.IndexOutOfRangeException: Index 0 is either negative or above rows count."
Dim category As StringDim productDV As DataViewDim arg As New DataSourceSelectArguments
productDV = SqlDataSource1.Select(arg)
If Not IsDBNull(productDV(0)("Category")) Thencategory = LCase(productDV(0)("Categ...
Custom field controlled by other fields valueHi
i want to create a custom field with values shared by only 2 or 3
products for example. the only way i found is to duplicate this value
3 times (numbers of products having this field value). this is
impossible because there is a constraint on the value of the custom
field on the database. do you think that i can drop the constraint
concerning this field from the database?
Thanks a lot
Fida
On 10/22/2010 07:32 AM, fida wrote:
> do you think that i can drop the constraint
> concerning this field from the database?
No, Bugzilla will not function properly with dupl...
Field that controls the values that appear in this field...SGVsbG8gRXZlcnlib2R5IQ0KDQpJJ20gd29ya2luZyBvbiBpbXBsZW1lbnRpbmcgYSBuZXcgaW5z
dGFuY2Ugb2YgQlogNC40LjIgSSBuZWVkIHRvIGFkZCB0aGUgZm9sbG93aW5nIGZpZWxkczoNCg0K
MS4gRGlzdHJpY3QNCjIuIFNjaG9vbCBEZXBlbmRzIG9uIERpc3RyaWN0DQozLiBUZWFjaGVyICBE
ZXBlbmRzIG9uIFNjaG9vbA0KDQpJIGNvdWxkIGRvIHRoZSBSZWxhdGlvbnNoaXAgYmV0d2VlbiB0
aGVtLCBidXQgdGhlIGlzc3VlIGlzIEkgaGF2ZSBsaWtlIDUwMCsgdGVhY2hlcnMsIHNvIHdoZW4g
SSB0cmllZCB0byBjcmVhdGUgYSBidWcgaXQgdGFrZXMgYSBsb25nIHRpbWUgYW5kIEkgaGF2ZSBl
cnJvciBvbiB0aGUgY2hyb21lLCBJIGd1ZXNzIGlzIGZvciB0aGUgYW1vdW50IG9mIGluZm8gb24g
Y2ZfdGVhY2hlciB0YWJsZS4NCg0KSXMgdGhlcmUgYSB3YXkgSSBjYW...
Field that controls the values that appear in this field--_009_EEA7F24FEA5EDC42BC3FD72846A5D8F84138437CAMSPRD0711MB593_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Can I use the option of "Field that controls the values that appear in this=
field" for non-custom fields?
Thanks,
Shalom.
Shalom Shevach | QA Manager
Comigo Ltd.
O: +972- 9-771-5090 Ext. 119 | F: +972- 9-771-5091 | www.comigo.com<http=
://www.comigo.com/>
E-mail: shalom.shevach@comigo.com<mailto:shalom.shevach@comigo.com>
[Description: Description: Comigo]<http://comigo.com/&...
GridView: ObjectDataSource has no values to insert. Check that the 'values' dictionary contains values.
Hi,
I have a grid view, bound to the following object data source:
<asp:ObjectDataSource ID="_odsMySampleTable" runat="server" SelectMethod="OnSelectAll" TypeName="SampleObjectDataSourceController" DataObjectTypeName="MyItem" InsertMethod="OnInsertItem" ></asp:ObjectDataSource>
My OnInsertItem has the following signature:
[DataObjectMethod( DataObjectMethodType.Insert )]public int OnInsertItem( MyItem item ) { ... }
Now when I make the following call:
_odsMySampleTable.Insert();
I get the following error:
Exception Details: System.InvalidOperationExceptio...
setting a detailsview template field textbox value to the selected date of a calendar control
Is it possible to set the value of a template field textbox to the selected date from a calendar. If possible, please give me a some how detailed clue as i have struggled with accessing template fields for abit too long. I have posted quite a number of posts related to this but upto now no one seems to lead me out.
Thanks. --------------------------------------------------No Project Too Eazy.--------------------------------------------------
Hey Nick,
You can set value of a template field textbox to whatever value in rowdatabound event.
e.Row.Cells(1).Text = "whatva...
checking the value of a parent control in a user control
hi,
how could i check the value of a textbox in the parent form withing the user control page_load event. The page load event in user control loads on postback and i want to check the value then and then either do stuff there
You can expose a property in the user control. And set this property from the parent page.~ Firoz AnsariPune, Indiahttp://www.firozansari.comWhy product testing is important?...
ObjectDataSource 'odsUser' has no values to insert. Check that the 'values' dictionary contains values
Hi All! I am currently trying to pull 2 values from two different sources (Details View & a Session) to use in a Stored Proceedure. I have spent quite a bit of time trying to determine what is occuring without any luck. However, by the Subject Line you can tell that it's not getting anything for some reason? Here are the components:Object Datasource:<asp:ObjectDataSource ID="odsUser" runat="server" DataObjectTypeName="System.Nullable`1[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=************]]"DeleteMethod="RemoveEnrollment...
Looking for a control which can select a value or input a value
As I knew, dropdown list can only allow user to select a value.
Is there any control let user to select a value or input a value?
it depends on your requirement ... you will have to create a custom control ..what are you trying to do ? Please remember to click “Mark as Answer” on the post if this answer helps you.Abdulla AbdelHaqMCTS, MCPDHow to ask a question
What I need is to list about 15 items to let user select.
Also, user can input a item which is not under list.
so .. what is the problem of using textbox and listbox ?or gridview control, use the insert mode and create a ...