|
Technical Interview Questions
Visual Basic Interview Question
.NET Web Interview Questions
.NET
Interview Questions
C#
Interview Questions
.........More
Source Codes
Asp .NET Source Codes
Asp VB Script Source Codes
.........More
Soft Skills
Communication Skills
Leadership Skills
.........More
|
|
Asp/VB Script Source Codes
Display a chart using ASP
<P>In the example below we will display the latest daily stock chart for a given
company . A form will be displayed to the user allowing them to enter a valid
stock symbol for a company . Typical symbols are MSFT for Microsoft and SUN for
Sun.</P>
<P>The first part checks to see if there has been an entry on the form , if not
the form is displayed again .</P>
<P><%<BR>If Request.Form("ticker") = "" Then<BR>%><BR><html><body><BR><form
action = <%= Request.ServerVariables("SCRIPT_NAME") %> method = post><BR>
Enter
your ticker symbol :<input type = text name = ticker size = 6><br><BR><input
type = submit value = "show chart"><BR></form><BR></body></html><BR><%
</P>
<P>If a user does enter a ticker symbol then the appropriate chart is displayed
using the code in the second section.</P>
<P>else<BR>%><BR><html><BR><head><BR></head> </P>
<P><img border="0" src="http://ichart.yahoo.com/t?s=<%=
Request.Form("ticker")%>"><BR></body>
<BR></html><BR><%<BR>
End
If<BR>%></P>
<P>The complete code is displayed below</P>
<P><%<BR>If Request.Form("ticker") = "" Then<BR>%><BR><html><body><BR><form
action = <%= Request.ServerVariables("SCRIPT_NAME") %> method = post><BR>
Enter
your ticker symbol :<input type = text name = ticker size = 6><br><BR><input
type = submit value = "show chart"><BR></form><BR></body></html><BR><%
<BR>else<BR>%><BR><html><BR><head><BR>
</head> </P>
<P><img border="0"
src="http://ichart.yahoo.com/t?s=<%=
Request.Form("ticker")%>"><BR></
body><BR></html><BR><%<BR>
End
If<BR>%><BR></P>
<<<----- Return to
Asp/VB Script Source
Code Questions Page.
Have a Question ?
post your questions here. It
will be answered as soon as possible.
Check
Microsoft .Net Interview Questions
for more Microsoft
.Net Interview Questions with Answers.
Check
.Net Database Interview
Questions for more .Net Database Interview Questions with answers
Check
Job Interview Questions
for more Interview Questions with Answers
|