How to show one form?

http://cheaphotfare.com/index.php

By the way, it is working fine on the above link which is my customer's old site and I am making new Website in ASP.NET for him.

By default, Roundtrip is selected and appropriate FORM is shown.
When other option is clicked, other FORM is show at exactly same position and previous FORM is hidden.

How do I do this in ASP.NET?

Thanks,
Ashok
LVL 13
AshokSr. Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael701Commented:
It has nothing to do with PHP or ASP (these are both server side languages), it's javascript (which is client side)

On the radio buttons use on click to call a javascript function

function select_oneway()
{
  document.getElementById('round_trip').style.display = 'hidden';
}

function select_roundtrip()
{
  document.getElementById('round_trip').style.display = 'visible';
}

PS: use names that make sense, not the existing div1, div2, div3 junk.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AshokSr. Software EngineerAuthor Commented:
so 'round_trip' would be the id for <div>, right?

Thanks
Ashok
0
AshokSr. Software EngineerAuthor Commented:
My new project is in ASP.
Old project is in PHP.

But you are right about clients side JavaScript.

Thanks,
Ashok
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Michael701Commented:
Yes, you'd have the html
<div id='round_trip'>
then the html for the return trip fields
</div>
0
AshokSr. Software EngineerAuthor Commented:
One more question.

Would all the divs would be one after another vertically placed (at design time in VS 2010)?

and

if I have 4 divs
when, where (apsx/aspx.cs/Javascript/which event/which property/html) and how would I make 3 hidden to start with?

An example code would greatly help.

Thanks,
Ashok
0
Michael701Commented:
Yes you can have the divs on after another.

You can setup a css class called 'hidden' and assign it to those divs in the original html.
0
AshokSr. Software EngineerAuthor Commented:
Thanks a lot.

I can manage it now.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.