PDA

View Full Version : Can Someone Help me with Views?


chobo2
08-29-2007, 06:07 AM
Hi

I been trying for a week now and I just can't figure out how to do it so can someone please make me a working example in asp.net 2.0 with C# that does what I want or if it is not possible just tell me.

What I my grand scheme will have.

I am trying to build a form that the user goes through and chooses from a list of Japanese Characters. They will see the Image of the character and then they can choose what they want(through a checkbox).

As I get everything working I will add more and more character sets(so it will keep expanding). After they have chosen what they want they will go to the next page that will randomly take one of these images chosen and display it then they will have to type in what they think it is.

I have basically all this code written and it works. The part that is getting me is I want to have the illusion that is all on the same page so when they go from choosing the characters to the random image only that section will change and not the whole will re load up.

I know AJAX does stuff like this but I want to stay away from AJAX for one simple reason I am not that great at asp.net and C# so I want to get good at those before I start 100 languages and suck at all of them. This is why I am trying to get the multi views and views to work.

Now what I want you to build.

All I want is this. You first will have a multiview with views(3 views but the code should be able to expand to 100 or 10 since my site would keep expanding and these would contained in this one multi view(unless you think they should not be contained in this but then you will have to explain why since I always though you had to have the views in a multiview).

View 1

- Will just have this "Intro message" and a next button

View 2
- Will create a dynamic checkbox(just one) and an imagebox above it(image can be anything).

View 3
- Will take the checkbox that has been checked and display its id into a label to show that it can make it from view 2 to view 3 without be lost on the way.

Also I want the code the to only run when it should run. So for view 2 I want the dynamic checkbox to be made only when view 2 is being run and Same with view 3 code I only want it to run when view 3 happens.

This is has been what is been causing me all the trouble since I can't figure out a way that will make the code only run when it should and be able to keep track of which checkboxes have been checked since the ways I been trying to stop the code to run only when it is on that view stops the checkbox from being recreated and then the checked values never get updated into view state so I also get false as checked back.

So please can someone do any example of this that does what I want here and maybe explain how it is done since I can't figure it out. Please don't refer me to articles I just need the code and how it works not 10 different articles that will just confuse me even more.

nikkiH
08-29-2007, 07:39 PM
Please elaborate on View 2 and the idea of "dynamic".
Is there some reason you are creating them from scratch instead of using a databound checkboxlist?

Brandoe85
08-29-2007, 07:42 PM
In short, no; nobody is going to do this for you, for free anyhow.
What I suggest to you is that you ask specific questions on what you are having problems with, show some effort that you want to learn how to do it. What you have given is a list of demands...not questions.