Click here to Skip to main content
15,894,405 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to display the gridview content Pin
Sandeep Mewara1-Sep-12 10:38
mveSandeep Mewara1-Sep-12 10:38 
Questionquick answer for me Pin
mamnafih31-Aug-12 0:57
mamnafih31-Aug-12 0:57 
AnswerRe: quick answer for me Pin
Keith Barrow31-Aug-12 1:11
professionalKeith Barrow31-Aug-12 1:11 
AnswerCross post Pin
Wes Aday31-Aug-12 1:40
professionalWes Aday31-Aug-12 1:40 
GeneralRe: Cross post Pin
Keith Barrow31-Aug-12 1:47
professionalKeith Barrow31-Aug-12 1:47 
GeneralRe: Cross post Pin
Wes Aday31-Aug-12 3:38
professionalWes Aday31-Aug-12 3:38 
GeneralRe: Cross post Pin
Shameel31-Aug-12 5:30
professionalShameel31-Aug-12 5:30 
QuestionQuestion about carrying information from a HTML page to a ASP Pin
Diego Carrion30-Aug-12 18:10
Diego Carrion30-Aug-12 18:10 
I'm currently taking an HTML course and I'm seriously kicking myself with this one. Our professor released a very basic form in HTML (I will be including it at the end of the message) and it's pretty much a form to create an account and it asks some basic questions such as age and transport method.

He then released a continuation to that page which grabs all the information and depending on what you answered you get certain information on the screen. Pretty much an if exercise. He had us add a couple more options to test our coding skills and I cannot get the information to carry over.

Form:
<form>
First name: <input type="text" name="firstname" />

Last name: <input type="text" name="lastname" />

Username: <input typ="text" name="user" />

Password: <input type="password" name="pwd" />

<input type="radio" name="sex" value="male" /> Male
<input type="radio" name="sex" value="female" /> Female

<input type="radio" name="mstatus" value="single" /> Single
<input type="radio" name="mstatus" value="married" /> Married

<input type="checkbox" name="vhicle" value"Bike" /> I have a bike
<input type="checkbox" name="vhicle" value"Car" /> I have a car

<input type="checkbox" name="pet" value"dog" />I have a dog
<input type="checkbox" name="pet" value"cat" />I have a cat

<input type="submit" value="Submit" />
<form name="input" action="html_form_action.asp" method="get">

ASP continuation code:
pwd = Request.Form("pwd")
Response.Write("The user's name is " & firstname & "
")
Response.Write("The user's last name is " & lastname & "
")
Response.Write("The username is " & user & "
")
Response.Write("Password: " & pwd & "
")
operacion1=request.form("sex")
if (operacion1="male") then
response.write("Is a man.")
else
response.write("Is a woman.")
end if
operacion2=request.form("age")
if (operacion2="15-25") then
Response.Write("Is young.")
else
Response.Write("Is old.")
end if
operacion3=request.form("vhicle")
if (operacion3="Bike") then
Response.Write("Is cyclist.")
else
Response.Write("Is a driver.")
else
end if
operacion4=request.form("mstatus")
if (operacion4="single") then
Response.Write("Needs a blind date.")
else
Response.Write("Rest in peace.")
end if
operacion5=request.form("pet")
if (operacion5="dog") then
Response.Write("Hates cats.")
else
Response.Write("Hates dogs.")
end if
%>

I'm very new to this and I recognize that is very basic. This is just homework, not worth any points, voluntary for those who don't want to damage their conscience with helping another cheat. I'm taking the course in Spanish so don't b throwned off by some of the odd sounding variables.
GeneralRe: Question about carrying information from a HTML page to a ASP Pin
Deflinek31-Aug-12 4:00
Deflinek31-Aug-12 4:00 
GeneralRe: Question about carrying information from a HTML page to a ASP Pin
Diego Carrion31-Aug-12 4:34
Diego Carrion31-Aug-12 4:34 
GeneralRe: Question about carrying information from a HTML page to a ASP Pin
Deflinek31-Aug-12 5:03
Deflinek31-Aug-12 5:03 
GeneralRe: Question about carrying information from a HTML page to a ASP Pin
Diego Carrion31-Aug-12 5:07
Diego Carrion31-Aug-12 5:07 
GeneralRe: Question about carrying information from a HTML page to a ASP Pin
Deflinek31-Aug-12 22:15
Deflinek31-Aug-12 22:15 
GeneralRe: Question about carrying information from a HTML page to a ASP Pin
Diego Carrion2-Sep-12 5:26
Diego Carrion2-Sep-12 5:26 
QuestionASP.NET Pin
soumyashree sahoo30-Aug-12 17:28
soumyashree sahoo30-Aug-12 17:28 
AnswerRe: ASP.NET Pin
Sandeep Mewara30-Aug-12 18:57
mveSandeep Mewara30-Aug-12 18:57 
Questioncant insert image in table Pin
Michael Portanoba30-Aug-12 16:56
Michael Portanoba30-Aug-12 16:56 
AnswerRe: cant insert image in table Pin
Sandeep Mewara30-Aug-12 18:55
mveSandeep Mewara30-Aug-12 18:55 
QuestionButton event does not execute Pin
netJP12L30-Aug-12 0:58
netJP12L30-Aug-12 0:58 
AnswerRe: Button event does not execute Pin
jkirkerx30-Aug-12 6:41
professionaljkirkerx30-Aug-12 6:41 
GeneralRe: Button event does not execute Pin
archifux2-Sep-12 13:41
archifux2-Sep-12 13:41 
GeneralRe: Button event does not execute Pin
jkirkerx2-Sep-12 17:32
professionaljkirkerx2-Sep-12 17:32 
GeneralRe: Button event does not execute Pin
archifux6-Sep-12 12:23
archifux6-Sep-12 12:23 
Questioni want my one web page to be run on my one client 's pc only Pin
Devang Vaja29-Aug-12 20:15
Devang Vaja29-Aug-12 20:15 
AnswerRe: i want my one web page to be run on my one client 's pc only Pin
Eddy Vluggen29-Aug-12 22:32
professionalEddy Vluggen29-Aug-12 22:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.