473,778 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic droplists

I'm trying to write an asp script that will create a series of drop
lists based on a table like:

canada ontario toronto street name link
canada ontario toronto road name link
canada ontario hamilton road name link
canada alberta calgary street name link
canada alberta edmonton street name link
usa new york buffalo street name link
usa new york rochester road name link
usa california san jose street name link
usa california sacramento road name link
the first drop list will only display the country

canada
usa

once a country is seleceted a second list will appear and display the
provice/state, so if the user picked canada it would only display

ontario
alberta

and the third list which appears once a selection is made in the
second list will display the city based on which state/province that
is selected and on to the 4th list, which once the 4th list item is
selected it will open a link

i can get the code to display the first drop list, but once the
country is selected it won't display the next drop list, it give me a
new url which indicates the information has been passed but the 2nd
list doees not appear, the url will be:

test.asp?Countr y=canada

I am using an access 2000 database to store the information and my
code is pasted below,

<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires content="-1">
<script language="JavaS cript">
<!--
function display(what){
document.getEle mentById(what). selected = true;
}
//-->
</script>
</head>

<body>

<%

Dim strSQL
Dim cnnLinkDB
Dim rstCountry, rstProv_State, rstCity, rstStreet
Dim Country, Prov_State, City, Street

' The form links back to this same file passing back the id
%>
<form action="test.as p" method="get">
<%

' Create ADO data connection object
Set cnnLinkDB = Server.CreateOb ject("ADODB.Con nection")

' Open data connection
cnnLinkDB.Open "DBQ=" & Server.MapPath( "master_table.m db") & ";" _
& "Driver={Micros oft Access Driver (*.mdb)};", "admin", ""

' Build our query for select box 1
strSQL = "SELECT DISTINCT Country FROM Data;"

' Create and open recordset object using existing connection
Set rstCountry = Server.CreateOb ject("ADODB.Rec ordset")
rstCountry.Open strSQL, cnnLinkDB

' Build our drop down box of countries
If Not rstCountry.EOF Then
rstCountry.Move First
%>
Country: <br>
<select name="Country" onchange=submit ()>
<option></option>
<% ' Loop through names
Do While Not rstCountry.EOF
Response.Write "<option value="""
Response.Write rstCountry.Fiel ds("Country")
Response.Write """"
Response.Write ">"
Response.Write rstCountry.Fiel ds("Country")
Response.Write "</option>" & vbCrLf

' Move to next record
rstCountry.Move Next
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstCountry.Clos e
Set rstCountry = Nothing

' If a request for a specific id comes in, then build second select
box

strSQL = "SELECT DISTINCT Prov_State FROM Data= WHERE Country = '" &
Country & "'"

Set rstProv_State = Server.CreateOb ject("ADODB.Rec ordset")
rstProv_State.O pen strSQL, cnnLinkDB

' Build our drop down box of Prov_States
If Not rstProv_State.E OF Then
rstProv_State.M oveFirst
%>
<p>Prov/State: <br>
<select name="Prov_Stat e" onchange=submit ()>
<option></option>
<% ' Loop through names
Do While Not rstProv_State.E OF
Response.Write "<option value="""
Response.Write rstProv_State.F ields("Prov_Sta te")
Response.Write """"
Response.Write ">"
Response.Write rstProv_State.F ields("Prov_Sta te")
Response.Write "</option>" & vbCrLf

' Move to next record
rstProv_State.M oveNext
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstProv_State.C lose
Set rstProv_State = Nothing
' If a request for a specific id comes in, then build second select
box

strSQL = "SELECT DISTINCT City FROM Data WHERE Prov_State = '" &
Prov_State & "'"

Set rstCity = Server.CreateOb ject("ADODB.Rec ordset")
rstCity.Open strSQL, cnnLinkDB

' Build our drop down box of areas
If Not rstCity.EOF Then
rstCity.MoveFir st
%>
<p>City: <br>
<select name="City" onchange=submit ()>
<option></option>
<% ' Loop through names
Do While Not rstCity.EOF
Response.Write "<option value="""
Response.Write rstCity.Fields( "City")
Response.Write """"
Response.Write ">"
Response.Write rstCity.Fields( "City")
Response.Write "</option>" & vbCrLf

' Move to next record
rstCity.MoveNex t
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstCity.Close
Set rstCity = Nothing

' If a request for a specific id comes in, then build second select
box

strSQL = "SELECT DISTINCT Street FROM Data WHERE City = '" & City &
"'"

Set rstStreet = Server.CreateOb ject("ADODB.Rec ordset")
rstStreet.Open strSQL, cnnLinkDB

' Build our drop down box of areas
If Not rstStreet.EOF Then
rstStreet.MoveF irst
%>
<p>Street: <br>
<select name="Street"
onchange="windo w.open(this.opt ions[this.selectedIn dex].value,'_blank' )">
<option></option>
<% ' Loop through names
Do While Not rstDetail.EOF
Response.Write "<option value="""
Response.Write rstStreet.Field s("Link")
Response.Write """"
Response.Write "selected=""tru e"""
Response.Write ">"
Response.Write rstStreet.Field s("Street")
Response.Write "</option>" & vbCrLf

' Move to next record
rstDetail.MoveN ext
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstStreet.Close
Set rstStreet = Nothing


' Close ADO objects we're finished with and free DB variables
cnnLinkDB.Close
Set cnnLinkDB = Nothing
%>

</form>
<br>
<FORM ACTION="test.as p" METHOD=GET>
<INPUT TYPE=submit VALUE="Reset">
</FORM>

</body>
</html>

I am trying to use the lesson at:
http://www.asp101.com/samples/db_pulldown_linked.asp

but this example uses multiple tables and numbers, whereas I am trying
to do it with one table and text values, and I have the feeling that
the text value is part of my problem, and the fact that i don't know
what i'm doing is my other problem :)

however, if anyone can point me in the right direction that would be
greatly appreciated

thanks
Jul 22 '05 #1
5 1867
"C White" <cw****@theatom icmoose.ca> wrote in message
news:7f******** *************** ***@posting.goo gle.com...
I'm trying to write an asp script that will create a series of drop
lists based on a table like:

canada ontario toronto street name link
canada ontario toronto road name link
canada ontario hamilton road name link
canada alberta calgary street name link
canada alberta edmonton street name link
usa new york buffalo street name link
usa new york rochester road name link
usa california san jose street name link
usa california sacramento road name link
the first drop list will only display the country

canada
usa

once a country is seleceted a second list will appear and display the
provice/state, so if the user picked canada it would only display

ontario
alberta

and the third list which appears once a selection is made in the
second list will display the city based on which state/province that
is selected and on to the 4th list, which once the 4th list item is
selected it will open a link

i can get the code to display the first drop list, but once the
country is selected it won't display the next drop list, it give me a
new url which indicates the information has been passed but the 2nd
list doees not appear, the url will be:

test.asp?Countr y=canada

I am using an access 2000 database to store the information and my
code is pasted below,

<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires content="-1">
<script language="JavaS cript">
<!--
function display(what){
document.getEle mentById(what). selected = true;
}
//-->
</script>
</head>

<body>

<%

Dim strSQL
Dim cnnLinkDB
Dim rstCountry, rstProv_State, rstCity, rstStreet
Dim Country, Prov_State, City, Street

' The form links back to this same file passing back the id
%>
<form action="test.as p" method="get">
<%

' Create ADO data connection object
Set cnnLinkDB = Server.CreateOb ject("ADODB.Con nection")

' Open data connection
cnnLinkDB.Open "DBQ=" & Server.MapPath( "master_table.m db") & ";" _
& "Driver={Micros oft Access Driver (*.mdb)};", "admin", ""

' Build our query for select box 1
strSQL = "SELECT DISTINCT Country FROM Data;"

' Create and open recordset object using existing connection
Set rstCountry = Server.CreateOb ject("ADODB.Rec ordset")
rstCountry.Open strSQL, cnnLinkDB

' Build our drop down box of countries
If Not rstCountry.EOF Then
rstCountry.Move First
%>
Country: <br>
<select name="Country" onchange=submit ()>
<option></option>
<% ' Loop through names
Do While Not rstCountry.EOF
Response.Write "<option value="""
Response.Write rstCountry.Fiel ds("Country")
Response.Write """"
Response.Write ">"
Response.Write rstCountry.Fiel ds("Country")
Response.Write "</option>" & vbCrLf

' Move to next record
rstCountry.Move Next
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstCountry.Clos e
Set rstCountry = Nothing

' If a request for a specific id comes in, then build second select
box

strSQL = "SELECT DISTINCT Prov_State FROM Data= WHERE Country = '" &
Country & "'"

Set rstProv_State = Server.CreateOb ject("ADODB.Rec ordset")
rstProv_State.O pen strSQL, cnnLinkDB

' Build our drop down box of Prov_States
If Not rstProv_State.E OF Then
rstProv_State.M oveFirst
%>
<p>Prov/State: <br>
<select name="Prov_Stat e" onchange=submit ()>
<option></option>
<% ' Loop through names
Do While Not rstProv_State.E OF
Response.Write "<option value="""
Response.Write rstProv_State.F ields("Prov_Sta te")
Response.Write """"
Response.Write ">"
Response.Write rstProv_State.F ields("Prov_Sta te")
Response.Write "</option>" & vbCrLf

' Move to next record
rstProv_State.M oveNext
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstProv_State.C lose
Set rstProv_State = Nothing
' If a request for a specific id comes in, then build second select
box

strSQL = "SELECT DISTINCT City FROM Data WHERE Prov_State = '" &
Prov_State & "'"

Set rstCity = Server.CreateOb ject("ADODB.Rec ordset")
rstCity.Open strSQL, cnnLinkDB

' Build our drop down box of areas
If Not rstCity.EOF Then
rstCity.MoveFir st
%>
<p>City: <br>
<select name="City" onchange=submit ()>
<option></option>
<% ' Loop through names
Do While Not rstCity.EOF
Response.Write "<option value="""
Response.Write rstCity.Fields( "City")
Response.Write """"
Response.Write ">"
Response.Write rstCity.Fields( "City")
Response.Write "</option>" & vbCrLf

' Move to next record
rstCity.MoveNex t
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstCity.Close
Set rstCity = Nothing

' If a request for a specific id comes in, then build second select
box

strSQL = "SELECT DISTINCT Street FROM Data WHERE City = '" & City &
"'"

Set rstStreet = Server.CreateOb ject("ADODB.Rec ordset")
rstStreet.Open strSQL, cnnLinkDB

' Build our drop down box of areas
If Not rstStreet.EOF Then
rstStreet.MoveF irst
%>
<p>Street: <br>
<select name="Street"
onchange="windo w.open(this.opt ions[this.selectedIn dex].value,'_blank' )">
<option></option>
<% ' Loop through names
Do While Not rstDetail.EOF
Response.Write "<option value="""
Response.Write rstStreet.Field s("Link")
Response.Write """"
Response.Write "selected=""tru e"""
Response.Write ">"
Response.Write rstStreet.Field s("Street")
Response.Write "</option>" & vbCrLf

' Move to next record
rstDetail.MoveN ext
Loop
%>
</select>
<%
End If

' Close ADO objects we're finished with and free DB variables
rstStreet.Close
Set rstStreet = Nothing


' Close ADO objects we're finished with and free DB variables
cnnLinkDB.Close
Set cnnLinkDB = Nothing
%>

</form>
<br>
<FORM ACTION="test.as p" METHOD=GET>
<INPUT TYPE=submit VALUE="Reset">
</FORM>

</body>
</html>

I am trying to use the lesson at:
http://www.asp101.com/samples/db_pulldown_linked.asp

but this example uses multiple tables and numbers, whereas I am trying
to do it with one table and text values, and I have the feeling that
the text value is part of my problem, and the fact that i don't know
what i'm doing is my other problem :)

however, if anyone can point me in the right direction that would be
greatly appreciated

thanks


This link may be of some interest:
http://www.quirksmode.org/js/options.html
Jul 22 '05 #2
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:c7******** ************@co mcast.com...
"C White" <cw****@theatom icmoose.ca> wrote in message
news:7f******** *************** ***@posting.goo gle.com...
I'm trying to write an asp script that will create a series of drop
lists based on a table like:

canada ontario toronto street name link1
canada ontario toronto road name link2
canada ontario hamilton road name link3
canada alberta calgary street name link4
canada alberta edmonton street name link5
usa new york buffalo street name link6
usa new york rochester road name link7
usa california san jose street name link8
usa california sacramento road name link9
the first drop list will only display the country

canada
usa

once a country is seleceted a second list will appear and display the
provice/state, so if the user picked canada it would only display

ontario
alberta

and the third list which appears once a selection is made in the
second list will display the city based on which state/province that
is selected and on to the 4th list, which once the 4th list item is
selected it will open a link


[snip]

This isn't what you want but it may give you some ideas.

It has a hardcoded list (as above).

I've change "link" references to "link#.htm" .

Test as-is; watch for word-wrap.

<html>
<head>
<title>droplist .htm</title>
<script type="text/javascript">
var i = 0;
var list = new Array();
list[i++] = "canada^ontario ^toronto^street name^link1.htm" ;
list[i++] = "canada^ontario ^toronto^road name^link2.htm" ;
list[i++] = "canada^ontario ^hamilton^road name^link3.htm" ;
list[i++] = "canada^alberta ^calgary^street name^link4.htm" ;
list[i++] = "canada^alberta ^edmonton^stree t name^link5.htm" ;
list[i++] = "usa^new york^buffalo^st reet name^link6.htm" ;
list[i++] = "usa^new york^rochester^ road name^link7.htm" ;
list[i++] = "usa^california ^san jose^street name^link8.htm" ;
list[i++] = "usa^california ^sacramento^roa d name^link9.htm" ;
var text = new Array("","","", "");

function opts(that,what) {
var k = 1;
var item;
var temp = "";
if (that != "") {
if (what == 1) {
text[0] = that.options[that.selectedIn dex].text;
text[1] = "";
text[2] = "";
text[3] = "";
document.form1. StateProv.optio ns.length = 0;
document.form1. City.options.le ngth = 0;
document.form1. Street.options. length = 0;
} else if (what == 2) {
text[1] = that.options[that.selectedIn dex].text;
text[2] = "";
text[3] = "";
document.form1. City.options.le ngth = 0;
document.form1. Street.options. length = 0;
} else if (what == 3) {
text[2] = that.options[that.selectedIn dex].text;
text[3] = "";
document.form1. Street.options. length = 0;
} else if (what == 4) {
text[3] = that.options[that.selectedIn dex].text;
var indx = that.options[that.selectedIn dex].value;
item = list[indx].split("^");
alert(text[0] + " : " + text[1] + " : " + text[2] + " : " + text[3] + " : "
+ item[4]);
// comment out alert (above).
// enable link (below); if it's a real page.
// location.href = item[4];
}
}
for (var j=0; j<list.length; j++) {
item = list[j].split("^");
if (what == 0) {
if (temp != item[what]) {
temp = item[what];
document.form1. Country.options[k++] = new Option(temp, j);
}
} else if (what == 1) {
if (text[0] == item[0] && temp != item[what]) {
temp = item[what];
document.form1. StateProv.optio ns[k++] = new Option(temp, j);
}
} else if (what == 2) {
if (text[0] == item[0] && text[1] == item[1] && temp !=
item[what]) {
temp = item[what];
document.form1. City.options[k++] = new Option(temp, j);
}
} else if (what == 3) {
if (text[0] == item[0] && text[1] == item[1] && text[2] ==
item[2] && temp != item[what]) {
temp = item[what];
document.form1. Street.options[k++] = new Option(temp, j);
}
}
}
}
</script>
</head>
<body onload="opts('' ,0)">
<form name="form1">
&nbsp; <b>Country:</b> &nbsp;
<select name="Country" onchange="opts( this,1)" style="width:10 0px">
<option value=""></option>
</select>
&nbsp; <b>State/ProvinceCity:</b> &nbsp;
<select name="StateProv " onchange="opts( this,2)" style="width:10 0px">
<option value=""></option>
</select>
&nbsp; <b>City:</b> &nbsp;
<select name="City" onchange="opts( this,3)" style="width:10 0px">
<option value=""></option>
</select>
&nbsp; <b>Street:</b> &nbsp;
<select name="Street" onchange="opts( this,4)" style="width:10 0px">
<option value=""></option>
</select>
</body>
</html>

This is strictly client-side though perhaps the array could be built by ASP.

ASP could be used to build an "include"; for example,

<script type="text/javascript" src="droplist.j s"></script>

Where "droplist.j s" contains; (removed from above):

list[i++] = "canada^ontario ^toronto^street name^link1.htm" ;
list[i++] = "canada^ontario ^toronto^road name^link2.htm" ;
list[i++] = "canada^ontario ^hamilton^road name^link3.htm" ;
list[i++] = "canada^alberta ^calgary^street name^link4.htm" ;
list[i++] = "canada^alberta ^edmonton^stree t name^link5.htm" ;
list[i++] = "usa^new york^buffalo^st reet name^link6.htm" ;
list[i++] = "usa^new york^rochester^ road name^link7.htm" ;
list[i++] = "usa^california ^san jose^street name^link8.htm" ;
list[i++] = "usa^california ^sacramento^roa d name^link9.htm" ;
Jul 22 '05 #3
That looks great!!!
Thanks a lot, it looks like exactly what I have been driving myself nuts
searching for the last few days.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #4
I finally got around to putting your example to work, and it did the
job. Thanks.

I've been fiddling around for the last day trying to get it to open the
link a new window, and I'm not having much luck, I figure it has to do
with the line

location.href = item[4]

but I'm not having any luck whatsoever finding a way to do this. Can
you point me in the right direction?

Thanks again

Jul 22 '05 #5
<cw****@theatom icmoose.ca> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
I finally got around to putting your example to work, and it did the
job. Thanks.

I've been fiddling around for the last day trying to get it to open the
link a new window, and I'm not having much luck, I figure it has to do
with the line

location.href = item[4]

but I'm not having any luck whatsoever finding a way to do this. Can
you point me in the right direction?

Thanks again


Are you invoking via a URL; for example,
http://localhost/droplist.htm

It won't work if you invoke it via:
C:\temp\droplis t.htm

Here's a better version:

<html>
<head>
<title>droplist .htm</title>
<script type="text/javascript">
var i = 0;
var list = new Array();
list[i++] = "canada^ontario ^toronto^street name^link1.htm" ;
list[i++] = "canada^ontario ^toronto^road name^link2.htm" ;
list[i++] = "canada^ontario ^hamilton^road name^link3.htm" ;
list[i++] = "canada^alberta ^calgary^street name^link4.htm" ;
list[i++] = "canada^alberta ^edmonton^stree t name^link5.htm" ;
list[i++] = "usa^new york^buffalo^st reet name^link6.htm" ;
list[i++] = "usa^new york^rochester^ road name^link7.htm" ;
list[i++] = "usa^california ^san jose^street name^link8.htm" ;
list[i++] = "usa^california ^sacramento^roa d name^link9.htm" ;
var text = new Array("","","", "");

function opts(that,what) {
var goto = "";
var item;
if (that != "") {
var okay;
if (what == 1) {
text[0] = that.options[that.selectedIn dex].text;
text[1] = "";
text[2] = "";
text[3] = "";
document.form1. StateProv.optio ns.length = 0;
document.form1. City.options.le ngth = 0;
document.form1. Street.options. length = 0;
} else if (what == 2) {
text[1] = that.options[that.selectedIn dex].text;
text[2] = "";
text[3] = "";
document.form1. City.options.le ngth = 0;
document.form1. Street.options. length = 0;
} else if (what == 3) {
text[2] = that.options[that.selectedIn dex].text;
text[3] = "";
document.form1. Street.options. length = 0;
} else if (what == 4) {
text[3] = that.options[that.selectedIn dex].text;
var indx = that.options[that.selectedIn dex].value;
if (indx != "") {
item = list[indx].split("^");
okay = "Okay?\n";
okay += "\nCountry : " + text[0];
okay += "\nState/Province : " + text[1];
okay += "\nCity : " + text[2];
okay += "\nStreet : " + text[3];
okay += "\nLink : " + item[4];
if (confirm(okay)) location.href = item[4];
}
}
}
// Build selection lists
if (what < 4) {
var k = 1;
var temp = "";
for (var j=0; j<list.length; j++) {
item = list[j].split("^");
if (what == 0) {
if (temp != item[what]) {
temp = item[what];
document.form1. Country.options[k++] = new Option(temp,
j);
}
} else if (what == 1) {
if (text[0] == item[0] && temp != item[what]) {
temp = item[what];
document.form1. StateProv.optio ns[k++] = new Option(temp,
j);
}
} else if (what == 2) {
if (text[0] == item[0] && text[1] == item[1] && temp !=
item[what]) {
temp = item[what];
document.form1. City.options[k++] = new Option(temp, j);
}
} else if (what == 3) {
if (text[0] == item[0] && text[1] == item[1] && text[2] ==
item[2] && temp != item[what]) {
temp = item[what];
document.form1. Street.options[k++] = new Option(temp,
j);
}
}
}
}
}
</script>
</head>
<body onload="opts('' ,0)">
<form action="" method="get" name="form1">
&nbsp; <b>Country:</b> &nbsp;
<select name="Country" onchange="opts( this,1)" style="width:10 0px">
<option value=""></option>
</select>
&nbsp; <b>State/Province:</b> &nbsp;
<select name="StateProv " onchange="opts( this,2)" style="width:10 0px">
<option value=""></option>
</select>
&nbsp; <b>City:</b> &nbsp;
<select name="City" onchange="opts( this,3)" style="width:10 0px">
<option value=""></option>
</select>
&nbsp; <b>Street:</b> &nbsp;
<select name="Street" onchange="opts( this,4)" style="width:10 0px">
<option value=""></option>
</select>
</form>
</body>
</html>
The previous version:

1) was missing the </form> tag
2) had "State/ProvinceCity:"
3) did not have "if (what < 4) {}"
4) did not have the "confirm()"

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1891
by: Roel Wuyts | last post by:
CALL FOR CONTRIBUTIONS International Workshop on Revival of Dynamic Languages http://pico.vub.ac.be/~wdmeuter/RDL04/index.html (at OOPSLA2004, Vancouver, British Columbia, Canada, October 24-28, 200) Organization committee: Roel Wuyts (primary contact - roel.wuyts@ulb.ac.be), Gilad Bracha, Wolfgang De Meuter, Stéphane Ducasse and Oscar Nierstrasz.
0
1078
by: Matt Clements | last post by:
I'm having a small issue with databound droplists. I have a droplist that is connected to a datareader and I want to be able to select the first item in the list. Unfortunately selecting the first item in the list results in nothing happening even though AutoPostBack is set to true. If I select any other items in the list I get an autopostback and things work correctly, I can then select the first item in the list and it will work. Is...
6
2982
by: Materialised | last post by:
Hi Everyone, I apologise if this is covered in the FAQ, I did look, but nothing actually stood out to me as being relative to my subject. I want to create a 2 dimensional array, a 'array of strings'. I already know that no individual string will be longer than 50 characters. I just don't know before run time how many elements of the array will be needed. I have heard it is possible to dynamically allocate memory for a 2
3
1312
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example below... --
7
3391
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always either AND or OR but never mixed together. We can use Northwind database for my question, it is very similar to the structure of the problem on the database I am working on. IF(SELECT OBJECT_ID('REPORT')) IS NOT NULL DROP TABLE REPORT_SELECTION
0
2073
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab, System and Software Engineering Lab), ULB (deComp) and the Belgian Association for Dynamic Languages (BADL) are very pleased to invite you to a whole day of presentations about the programming languages Self, Smalltalk and Common Lisp by experts in...
7
22497
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We added an entry to the executable's .exe.config file to specify the URL, and under the 1.1 framework this worked well. Unfortunately, this is not working under the 2.0 framework. I see in the Reference.cs file under the web service reference the...
7
1687
by: Roarke | last post by:
Forgive me if this is too long/too simple - I am new to this! I have an htm page with a "post" form. This has 2 droplists, the variables of which are posted to a php page. This page queries a mySQL database and echoes in rows any matching records. At present each result row lists the info from the database fields name, location and type. I had put an "a href=" around these results so if a row is clicked, it opened a seperate htm page...
5
2585
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization algorithm to solve a certain messy problem, and many different things. For that I often use several general modules that I have written, like implementation of certain data structures, and small general "utility" functions/classes, plus of course...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10292
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.