mrburnttoast's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Members
Active Posts:
19 (0.02 per day)
Joined:
28-December 11
Profile Views:
1,027
Last Active:
User is offline Nov 19 2014 08:11 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   mrburnttoast has not set their status

Posts I've Made

  1. In Topic: C# Button taking you to another page

    Posted 12 Nov 2014

    Problem is that Response.Redirect and Server.Transfer are ASP.NET ways of navigating pages. I don't use WPF or Silverlight but I am assuming you are so I had to google this but you NavigationContext.Navigate seems to be the correct way to navigate.
  2. In Topic: Calculating Phone Plans

    Posted 10 Nov 2014

    Ok it might be helpful for you to read your if/else aloud to yourself. You are not ever hitting your elseif condition because PhonesAmount is not assigned. Get rid of this line:
    ElseIf PhonesAmount = CDec(txtPhones.Text) Then
    
    
    You need to assign it like
     PhonesAmount = CDec(txtPhones.Text) 
    
    instead of checking if it is assigned. Let me know if this doesn't make sense and I can give you a better example.
  3. In Topic: Calculating Phone Plans

    Posted 8 Nov 2014

    I didn't read through all of your code but I assume the problem is that on line 32. You are saying that if the textbox is empty then the number of phones is 1 but you don't have an else condition assigning the value if it isn't empty. What you should be doing there is passing in the text property of the textbox to your FamilyPhones. You will also need to convert the string to a decimal. A couple of pointers for you to consider once you get your code working. First, you shouldn't be working with the textbox in your functions. You really should just assign to a variable and pass the variable into a function as needed. Also, read up on using a radiobuttonlist control instead of a radiobutton control. That way you can just get the value of the selected button rather than doing an if statement on each button. Let me know if you need any clarification.
  4. In Topic: Get value of an integer from another page

    Posted 8 Nov 2014

    Well you are passing a query string in the link so on the target page you need to assign that value to a variable. You can do that like this
    string id = request.QueryString["id"]; 
    
    Now you will have the id from one page available to the second page.
  5. In Topic: ASP.NET WITH VB.NET FOR DUMMIES

    Posted 21 Feb 2014

    I don't think there is any way to easily just "convert" your application to asp.net because the web uses http and client and server code. This means that some classes that you may use in vb.net winforms such as messagebox will no longer work in asp.net because they need to run in your browser rather than on a server. Also, do you already know html? If so this will help you lay out your form more easily as this is done differently on the web. How large is your winform application? By this I mean approximately how many forms, code behind pages and class files do you have currently? If it is relatively small then I would create a new asp.net webforms project in whatever .net framework version you normally use. Then try to create the form controls with the same Id as in your current winform project. You should just be able to copy/paste a lot of the code from your current application into the code behind pages of the webform project. Build the application and then research the errors and go from there. I have converted a few small applications in a similar fashion but keep in mind that this may not be ideal because web applications tend to work better when they were built originally with the web in mind.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

mrburnttoast hasn't added any friends yet.

Comments

mrburnttoast has no profile comments yet. Why not say hello?