Hi there I have a dropdown
<select name="OrganisationID" size="1" class="text300"
onChange="javascript:document.forms[0].submit();">
and a set of div tabs.
<td id="cardActivitySchemeTab" class="selectedTab"...
Hi there I would like to append a value to the submit action, depending on which DIV tab is clicked. Here are the DIV tabs
<tr class="tab">
<td id="cardActivitySchemeTab" class="selectedTab" onclick="moveTabSectorSkillsReports(this.id, 'cardActivityScheme');">Card Activity by...
I have a tabbed menu, to demostrate this correctly I have created a test account on our website
http://demo.myskillsrecord.co.uk/sectorskills/login.asp
ID : 8863
username : test
password : test
Click on sector skills reports
and you can see a tabbed menu. The problem is when I go to the third...
Hi there I'm trying to assign a default value to the parameter @EndDate but I keep getting this error when I execute the procedure and pass no parameter to the @endate
Msg 241, Level 16, State 1, Procedure p_GetAllCardsIssuedByOrganisation, Line 0
Conversion failed when converting datetime from...
Hi there I have several fields on which a user can search on. I have set up my webform as you can see from this screenshot.
http://www.mayoor.co.uk/screenshot.jpg
I would like to write a SQL query where by if anyone types any combination of entries into the fields the query will retun all...
Hi there I have a javascript array which is populated by the database
<script language="Javascript" type="text/javascript">
<!--
var subTextArray = new Array();
var subValueArray = new Array();
subTextArray[4] = new Array();
subValueArray[4] = new Array();
subTextArray[4][1] = "4.1...
Hi there I have a query which is used to search a database for judgements. Each judgements can have many Categories and each category can have many subcategories.
select j.id, sc.[description] as subcategory, sc.[id] as subcatid, c.[description] as category, c.num as catid,
j.file_no_1 + '...
Hi there I have a category and subcategory dropdown on my form as follows
http://www.mayoor.co.uk/cat1.jpg
However I want to have another 4 of these with different ID's. The code used to set the selected item is as follows
If Not ds.Tables(2).Rows.Count = 0 Then...
It is entering the loop because I have put a breakpoint where that piece of code starts and it loops through all the code fine. The problem is with the postback. Let me show you.
the page load calls
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
Nope thats now giving
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details...
Right the reason why its failing is because its trying to compare 0 which is what the array loop starts on with a listbox item reference which doesnt exist.
the listboxitems selected are
119
120
ok tried that no its saying
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception...
Ok have changed the i to type ListItem
and it's now got a problem with the array "arySelectedSubcategoryItems". It's saying "Value of type string cannot be converted to System.Web.UI.Webcontrols.ListItem"
and it underlines "arySelectedSubcategoryItems" on the line For Each i In...
I have a multi select listbox on a form which posts to the server and then returns to the form prepoulated with the items it just posted.
I have the following code to populate the dropdown (subcategory) but for some reason it only highlights the first row, when actually ive selected 4 or 5...
ok guys i now have something which I think is close
If Not Request(subcategory.ID.ToString).Equals(String.Empty) Then
arySelectedSubcategoryItems = Request(subcategory.ID.ToString).ToString().Split(",")
For Each i In arySelectedSubcategoryItems...
Ahhh right ok.. Right ive got something like this.
If Not Request(subcategory.ID.ToString).Equals(String.Empty) Then
aryTextFile = Request(subcategory.ID.ToString).ToString().Split(",")
For Each i In aryTextFile
if i = ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.