Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Help with a new project
Old 04-01-2006, 11:45 PM Re: Help with a new project
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Hi Johntech,

You are ahead of the game! This should work..
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
 
Register now for full access!
Old 04-07-2006, 01:35 PM Re: Help with a new project
Johntech's Avatar
Average Talker

Posts: 24
Trades: 0
Hi Chip

Now if I want to make a popup window on the screen instead of having a new screen pop up, I would just put the code in here (code shown below) to create the popup window.... correct

<%
While Not objRS.EOF

' >>>>>>>Code entered here to create the popup window<<<<<<<<

Response.Write objRS("PartNo")
Response.Write " - "
Response.Write objRS("Description")
Response.Write " - "
Response.Write objRS("Location")

objRS.MoveNext
Wend
%>

If thats all that I have to then the rest is down hill

Thanks again

John
Johntech is offline
Reply With Quote
View Public Profile
 
Old 04-07-2006, 03:12 PM Re: Help with a new project
mxrider's Avatar
Experienced Talker

Posts: 42
Trades: 0
well my best suggestion is to use frame outlines.. i am not sure if t hats the answer your looking to tho
mxrider is offline
Reply With Quote
View Public Profile
 
Old 04-08-2006, 01:08 AM Re: Help with a new project
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Hi Johntech,

Yes you are on the right track. It is going to take a little more than what you are showing. Probably a <br /> to seperate the lines. And you will need to decide what is going to be the linked text that will go inbetween the anchor tags..
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 04-12-2006, 09:17 PM Re: Help with a new project
Johntech's Avatar
Average Talker

Posts: 24
Trades: 0
Quote:
Originally Posted by ChipJohns
Hi Johntech,

Yes you are on the right track. It is going to take a little more than what you are showing. Probably a <br /> to seperate the lines. And you will need to decide what is going to be the linked text that will go inbetween the anchor tags..
Hi Chip

If I use the ASP code I have sent before to display the part info what do I need to do to close the window. If I close the window and try to view another parts info it will not open the info window again. Here is the code for the part info window

================================================== =

<<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBS CRIPT" CODEPAGE="1252"%>
<%
' Program name - Partslist4.asp

' Beginning of ASP code
'Use to make sure ALL variables are dimentioned
Option Explicit
'Set up the Dim statements for your connection and the sql statement
Dim objConnection, objRS, strQuery
Dim strConnection
'Dimention the receiving string
Dim sPart
'sPart is the receiving part number
sPart = Request.QueryString("part")
' change YourDSN to the name you gave the DSN datasource
set objConnection = Server.CreateObject("ADODB.Connection")
'The data source is PARTS as created in the Data Source in the control panel
strConnection = "Data Source=Parts;"
'Open the connection to the database
objConnection.Open strConnection
'Set the connections for the recordset
Set objRS = Server.CreateObject("ADODB.Recordset")
Set objRS.ActiveConnection = objConnection
'Build the SQL statement to access the RecordSet
strQuery = "SELECT * FROM tblPartsList Where PartNo = '" & sPart & "'"
'Run the query
objRS.Open strQuery
'End of ASP code
%>
<!--- Beginning of HTML code --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Part Information</title>
</head>
<body>
<!--- End of HTML code --->
<%
'Beginning of ASP code
Response.Write "Part No. : "
Response.Write objRS("PartNo")
Response.Write "<br> Discription : "
Response.Write objRS("Description")
Response.Write "<br> Quantity : "
Response.Write objRS("Quantity")
Response.Write "<br> Cabinet Location : "
Response.Write objRS("Location")
Response.Write "<br> Comments : "
Response.Write objRS("Comments")
'End of ASP code
%>
<br><br>
<A href="javascript: self.close ()">Close</A>
<a href="javascript: parent.refresh()"></a>
</body></html>
Johntech is offline
Reply With Quote
View Public Profile
 
Old 04-12-2006, 09:26 PM Re: Help with a new project
Johntech's Avatar
Average Talker

Posts: 24
Trades: 0
Hi Chip

Her is the code that calls the other code above

------------------------------------------------------------

<<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBS CRIPT" CODEPAGE="1252"%>
<%
' Program name - Partslist4.asp

' Beginning of ASP code
'Use to make sure ALL variables are dimentioned
Option Explicit
'Set up the Dim statements for your connection and the sql statement
Dim objConnection, objRS, strQuery
Dim strConnection
'Dimention the receiving string
Dim sPart
'sPart is the receiving part number
sPart = Request.QueryString("part")
' change YourDSN to the name you gave the DSN datasource
set objConnection = Server.CreateObject("ADODB.Connection")
'The data source is PARTS as created in the Data Source in the control panel
strConnection = "Data Source=Parts;"
'Open the connection to the database
objConnection.Open strConnection
'Set the connections for the recordset
Set objRS = Server.CreateObject("ADODB.Recordset")
Set objRS.ActiveConnection = objConnection
'Build the SQL statement to access the RecordSet
strQuery = "SELECT * FROM tblPartsList Where PartNo = '" & sPart & "'"
'Run the query
objRS.Open strQuery
'End of ASP code
%>
<!--- Beginning of HTML code --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Part Information</title>
</head>
<body>
<!--- End of HTML code --->
<%
'Beginning of ASP code
Response.Write "Part No. : "
Response.Write objRS("PartNo")
Response.Write "<br> Discription : "
Response.Write objRS("Description")
Response.Write "<br> Quantity : "
Response.Write objRS("Quantity")
Response.Write "<br> Cabinet Location : "
Response.Write objRS("Location")
Response.Write "<br> Comments : "
Response.Write objRS("Comments")
'End of ASP code
%>
<br><br>
<A href="javascript: self.close ()">Close</A>
<a href="javascript: parent.refresh()"></a>
</body></html>
Johntech is offline
Reply With Quote
View Public Profile
 
Old 04-12-2006, 09:39 PM Re: Help with a new project
Johntech's Avatar
Average Talker

Posts: 24
Trades: 0
Sorry Wrong code





<html>
<head>
<meta name="Generator" content="Microsoft FrontPage 5.0">
<title>
Hi-Cap Part Description and Location
</title>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, Parts)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, Parts, 'width=400,height=200,left=400,top=200,scrollbars= no');
return false;
}
//-->
</SCRIPT>
</head>
<body>
<MAP NAME="HiCap Feeder">
<AREA SHAPE="RECT" COORDS="97,166,114,180" HREF="http://localhost/DisplayPart.asp?part=8484243"
onClick="return popup(this, 'Parts')" TITLE="8484243">
<AREA SHAPE="CIRCLE" COORDS="562,158,25" HREF="http://localhost/DisplayPart.asp?part=Y286002"
onClick="return popup(this, 'Parts')" TITLE="Y286002">
<AREA SHAPE="POLY" COORDS="557,119,647,71,647,71,653,81,653,81,564,12 9,564,129,557,119"
onClick="return popup(this, 'Parts')" HREF="Popup" TITLE="Shaft">
<AREA SHAPE="POLY" COORDS="58,164,58,188,87,203,99,200,102,195,102,18 5,64,161"
onClick="return popup(this, 'Parts')" HREF="http://localhost/DisplayPart.asp?part=Y280054" TITLE="Y280054">
<AREA SHAPE="CIRCLE" COORDS="520,147,18"
onClick="return popup(this, 'Parts')" HREF="http://localhost/DisplayPart.asp?part=Y280022" TITLE="Y280022">
<AREA SHAPE="CIRCLE" COORDS="445,550,17"
onClick="return popup(this, 'Parts')" HREF=""http://localhost/DisplayPart.asp?part=Y284089" TITLE="Y284089">

</MAP>
<IMG SRC="HicapFeeder.gif" USEMAP="#HiCap Feeder" BORDER="0" width="900" height="657">

</body>
</html>
Johntech is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with a new project

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44697 seconds with 11 queries