?
Solved

Get information from ASP .NET div/Panel control and have it sent back to the form without losing form information and updating the form.

Posted on 2011-03-11
4
Medium Priority
?
377 Views
Last Modified: 2012-05-11
So here is what I am doing...  

1) It is a calculator and let's say that there are a total of 10 text boxes on the main form.
2) Based on your company type, selected by a check-box, a Panel pops up with certain form elements that perform a calculation and then send the computation back to the first form element (text box) as the first form element, depending on the type of business you are, is computed differently so will have a different number for the overall calculator based on the calculations for the selected business type.
3) Once the calculation for the text-box is completed and the first text-box is populated, the Panel will/should disappear so that can occur again if necessary for other text-boxes.

I would like to understand the process first along with maybe some concept way/ways to handle this (obviously different ways to do it).

The more specific the better and I'm DEFINITELY willing to share my simple code.

The issue is that I code in PHP, C, and many other languages but it's been a while since I developed and now I am, somehow, the defacto developer here at my company so I'm trying to learn C# VERY quickly... If anyone has any suggestions with that, TOO, that would be AMAZING!!!

Thank you SO MUCH!!!!!!!!
0
Comment
Question by:urbnmediadotcom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Webmonkey earned 2000 total points
ID: 35120034
Based on my understanding of your description, I think you should follow these steps:

1) It is a calculator and let's say that there are a total of 10 text boxes on the main form.

Ok...

2) Based on your company type, selected by a check-box, a Panel pops up with certain form elements that perform a calculation and then send the computation back to the first form element (text box) as the first form element, depending on the type of business you are, is computed differently so will have a different number for the overall calculator based on the calculations for the selected business type.

To do this, add a HiddenField to your panel.  When the panel is opened, write the name of the textbox (to which the calculation value should be returned) into the HiddenField.  When the button on the panel submits the page:
1. Write the calculation value to the approriate textbox
Page.FindControlById[HiddenField1.Text].Text = intCalculation // where intCalculation is the appropriate value

3) Once the calculation for the text-box is completed and the first text-box is populated, the Panel will/should disappear so that can occur again if necessary for other text-boxes.

Panel1.Visible = false;  
0
 
LVL 6

Expert Comment

by:Webmonkey
ID: 35156516
Bump
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35944482
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question