UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Asp And C# Sudoku    
 
   
accesslost
post Mar 20 2012, 02:22 PM
Post #1

UtterAccess Addict
Posts: 199
From: Indiana



Building a sudoku puzzle. I want to lock textboxes where there is an entry in the box allowing the user to enter only in empty boxes.

On my load the initial values I supply to the user lock fine, and the empty cells are unlocked, but on valuing be added afterwards I am experiencing some of the empty textboxes locking but not all.

I have a hint option that will display a value in an empty texbox and background color it green and the box locks (done in the same subroutine) but again some of the additional empty boxes lock. and I also have an button to allow the user to create a new puzzle which it does but on the 1st hist of another button the program creates a new puzzle. I am getting the feeling all the above problems are related but I am not sure how and looking for some ideas. This is a scholl project so I can not put the code out here. sorry.
Go to the top of the page
 
+
rbianco
post Mar 20 2012, 02:52 PM
Post #2

UtterAccess VIP
Posts: 1,730
From: Carrollton, TX



While I am sure there are knowledgable people here with ASP.net...
you mentioned:
QUOTE
This is a scholl project


You will want to review this link as to posing your questions and what you can expect in way of assistance.
Go to the top of the page
 
+
jleach
post Mar 21 2012, 08:45 AM
Post #3

UtterAccess Editor
Posts: 6,726
From: Capital District, NY, USA



QUOTE (rbianco @ Mar 20 2012, 03:52 PM) *
While I am sure there are knowledgable people here with ASP.net...
you mentioned:


You will want to review this link as to posing your questions and what you can expect in way of assistance.


I will quote the link's contents, as I believe the post itself is not accessible by all.

QUOTE
Instead of asking for an answer to a question, or asking whether the answer you have posted is right, why not explain WHY you think you have the right answer. Efforts at explanation would give us some confidence that you have made the effort to understand your assignment, not just copy and paste from a reference.

Here are some reasons most of us think this is so very important to you:

You are a student, and the whole basis of being a student is to learn something new. Learning is NOT just copying answers onto a quiz or homework assignment. Learning means putting that information into your brain in an organized, logical and complete understanding of the materials. It does NOT mean copying answers from one place to another so you can submit a piece of paper for a grade. I hope that you are mature enough to be able to understand that distinction. We would love to help you learn, but we are loath to help you slide by with no real effort towards learning.

Moreover, you, or someone close to you, is paying tuition for the opportunity to participate in this class. Whoever is footing that bill undoubtedly expects you to reap some benefit from it. We assume that getting value for your tuition dollars is also important enough to you to justify the effort at learning it implies. Copying answers is NOT the best use of your tuition money.

And finally, there is the matter of self-esteem (although that is a much abused term in itself). I see no reason whatsoever for you to just give up on yourself and ask others to do it for you. Do you really think you are unable to do this on your own? Learning--really learning--is just not that hard. True, it can be time consuming and frustrating, but the feeling of accomplishment you'll experience when you finally "get it" is something that you should not cheat yourself out of.

I don't speak for anyone else, but I do think that it would be wrong for us to cheat you of that sense of accomplishment by taking over and doing your homework for you. You deserve the chance to succeed on your own. Grab it.


Please also refer to the UA Guidelines, whose link can be found in the top banner, directly underneath the "Forum" text in the top right of the website.
Go to the top of the page
 
+
accesslost
post Mar 21 2012, 02:00 PM
Post #4

UtterAccess Addict
Posts: 199
From: Indiana



Being a student means asking questions, if you do not understand what I am asking, it shows you have a lack of understanding. The reason I thought for this forum was to ask questions so one can learn, but I guess you do not get that.

This post has been edited by accesslost: Mar 21 2012, 02:02 PM
Go to the top of the page
 
+
jleach
post Mar 21 2012, 02:38 PM
Post #5

UtterAccess Editor
Posts: 6,726
From: Capital District, NY, USA



You have posted a vague question, stated it was was for a school project, and left us with just enough information so the only way to possibly offer an answer would be with either a) a conceptual overview of how to handle the situation, which you should already have, or b) a complete working solution, which we will not give.

If you are having problems with specific details of your application, we are certainly willing to help, but we have not seen anything regarding details on the problem, how you've tried to approach it, why you think you've been having the errors, or any other actions which would show a significant effort on your part before coming to us.

We treat school project questions differently than other questions here, for the reasons quoted, and here is a case where regardless of whether it's a school project question or a personal/business related question, we simply do not have enough information to form any sort of answer. I believe that there is plenty of detail that can be given to show your efforts without posting code, but as of yet we have none.

Thank you for your understanding.

Regards,
Jack Leach - Moderator
Go to the top of the page
 
+
accesslost
post Mar 23 2012, 08:08 AM
Post #6

UtterAccess Addict
Posts: 199
From: Indiana



Ok lets try this again.

Here is where I am now stuck (solve my original question with my co-workers).

My puzzle on 1st load runs fine on all functions. I have now added a button to allow the user to request a new puzzle having it run thru the same steps as 1st time loaded. The puzzle paints correctly, but if I enter data into one of the textboxes and press one of my original buttons I loose the data I just enter, the button I press does what it should I just loose my data. Now after I have pressed the button and lost my data I can now key data and the program works as it should.

My question is this even though I have the program running the same C# code as 1st run is there a difference in what the ASP is doing behing the scenes as to what it does on 1st load and a postback (button for new puzzle) that would impact what is happening to my entered data between new puzzle button and the next button? I am using the page load function to setup the puzzle on initial load and on the new puzzle button to process the same steps and in debugger the C# code is stepping thru the same code for both.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 12:46 PM