How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Steven Caliendo Your Own Question

Steven Caliendo
Steven Caliendo, Computer Software Engineer
Category: Computer
Satisfied Customers: 116
Experience:  Over 15 years professional experience as a software development engineer. 8 US Patents.
629026
Type Your Computer Question Here...
Steven Caliendo is online now

re: Visual Studio Express for web 2012. I have two web forms

Resolved Question:

re: Visual Studio Express for web 2012.
I have two web forms and I want to copy text from form1, textbox 1, to form2 textbox 1 but I get "Textbox is inaccessible as it is protected". How can I unprotect these textboxes under a "Protected Sub" event handler
Kind regards
Ian
Submitted: 2 years ago.
Category: Computer
Expert:  Steven Caliendo replied 2 years ago.
How/When are you trying to copy this text? (I mean like after form1 is navigated away from or when the other form is loaded)?

Best Regards,

Steve
Customer: replied 2 years ago.

Hi Steve, when the second form is loaded. If you go to www.ibpsystems.co.uk/TBDForm1.aspx you will see what I mean.


After the selection is made and submit is clicked, the thankyou form appears, but I want this thankyou form to contain a textbox with the email address entered on the first form textbox.

Expert:  Steven Caliendo replied 2 years ago.
Ok. Programming a web site is somewhat different than a standard desktop app.

The reason that these things can't be shared is because the server, which is actually running the application, has no knowledge of what happened on the client when a new form is loaded.

You need to pass this information to the server so that it can be stored and used throughout all of your other forms and functions.

To do this with a web application, you can use session variables.

Before transferring to the second web form, store the information that you care about like this:

In your "Submit" button code, add lines like:

Session("TextICareAbout1") = Textbox1.Text
Session("TextICareAbout2") = Textbox2.Text
...

Then, on the form load of webform2, assign like this:

Textbox1.Text = Session("TextICareAbout1")
Textbox2.Text = Session("TextICareAbout2")
...

Try it out and let me know how it goes.

Best Regards,

Steve
Steven Caliendo, Computer Software Engineer
Category: Computer
Satisfied Customers: 116
Experience: Over 15 years professional experience as a software development engineer. 8 US Patents.
Steven Caliendo and 5 other Computer Specialists are ready to help you
Customer: replied 2 years ago.

Thanks Steve, unfortunately I am going out for the evening so I won't be able to try until tomorrow.


I will contact you again tomorrow.


Many thanks


Ian

Expert:  Steven Caliendo replied 2 years ago.
Ok, sounds good.

Best Regards,

Steve
Customer: replied 2 years ago.


Thank you so much steve, it all works fine. I have tried for hours to solve this problem, and you did it in 5 minutes.


Kind regards


Ian

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer
< Previous | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C.
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C.
 
 
 

Meet The Experts:

 
 
 
  • Kamil Anwar

    Kamil Anwar

    Computer Support Specialist

    Satisfied Customers:

    156
    8+ Years of Experience. / CCNA (S), CCNA (W), CCNA (RS), MCTS, MBCs.
< Previous | Next >
  • http://ww2.justanswer.com/uploads/JA/JACUSTOMERf8udkdxk/2013-8-3_15150_323738101505074393259301621172992o.64x64.jpg Kamil Anwar's Avatar

    Kamil Anwar

    Computer Support Specialist

    Satisfied Customers:

    156
    8+ Years of Experience. / CCNA (S), CCNA (W), CCNA (RS), MCTS, MBCs.
  • http://ww2.justanswer.com/uploads/WI/Windowspcfix/2013-8-19_153826_ja12.64x64.jpg James K.'s Avatar

    James K.

    Consultant

    Satisfied Customers:

    93
    Technical Director of IT Company
  • http://ww2.justanswer.com/uploads/JO/JonTech/2011-10-25_111835_A2c.64x64.jpg Jon-Tech's Avatar

    Jon-Tech

    IS Manager

    Satisfied Customers:

    61
    20 yrs: Computers, Networking
  • http://ww2.justanswer.com/uploads/JA/jamieratliff/2012-2-8_194551_jamie.64x64.jpg jamieratliff's Avatar

    jamieratliff

    Information Systems Manager

    Satisfied Customers:

    21
    Jamie has worked in the Information Technology field for over a decade.
  • http://ww2.justanswer.com/uploads/JA/JACUSTOMERleg4q7o8/2012-3-6_203036_meja.64x64.png TheDoctor's Avatar

    TheDoctor

    Software Engineer

    Satisfied Customers:

    16
    Experienced Software Engineer
  • http://ww2.justanswer.com/uploads/FI/FisherEngineering/2012-1-18_194422_Fisher375Headshotcompressed239K.64x64.jpg Bill Fisher's Avatar

    Bill Fisher

    Computer Engineer

    Satisfied Customers:

    1
    Computer system design, networks, integration, general support.
  • http://ww2.justanswer.com/uploads/ZE/zeyank/2014-12-9_221254_zeyank.64x64.png Ryan H.'s Avatar

    Ryan H.

    Computer Support Specialist

    Satisfied Customers:

    1739
    A+ Certified Technician - 10 Years experience working with all types of computer systems.