×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2013
    Location
    chennai, TN
    Posts
    56

    Post Error in textbox

    hi guys,

    i need to know how to set values for texbox from response

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2012
    Location
    Bilbao
    Posts
    53

    Re: Error in textbox

    Hi Murugan...

    What you want to do exactly? We need a bit more of information to help you... can you best describe your scenario, problema and what you want to accomplish?

    Thank you very much!

  3. #3
    Registered User
    Join Date
    Jul 2013
    Location
    chennai, TN
    Posts
    56

    Re: Error in textbox

    Hi jos

    Thank you..

    I have some values in separate profile.cs (not a xaml file)

    i.e.. username: Murugan
    email: murugan@windows.in

    The thing is I needed the above username and email values from the profile.cs needs to displayed in the welcome.xaml file textbox. ie., username: Murugan (Assume username as textblock and murugan as textbox)

    Please guide me.
    Last edited by Murugan india; 2013-08-01 at 07:00. Reason: to understand clearly

  4. #4
    Registered User
    Join Date
    Dec 2012
    Location
    Zagreb, Croatia
    Posts
    73

    Re: Error in textbox

    Well, in your XAML you give your TextBox control a name:
    Code:
    <TextBox x:Name="txtName" .../>
    and you refer to it from C# code behind like this:
    Code:
    txtName.Text = "...";
    If you are using data binding, you can do it in a different way.
    XAML:
    Code:
    <TextBox Text="{Binding Name}" .../>
    and you refer to it from C# code behind like this:
    Code:
    viewModel.Name = "...";
    You also need to create a class for the view model and set the data context for the page. You can search around for more examples.

  5. #5
    Registered User
    Join Date
    Jul 2013
    Location
    chennai, TN
    Posts
    56

    Re: Error in textbox

    hi to_pe

    thank you... i tried in many ways but still im not getting output ... im getting error like this

    System.Windows.Data Error: 35:
    BindingExpression path error: 'FirstName' property
    not found on project .... would you know how to solve this error

    please guide me.

  6. #6
    Registered User
    Join Date
    Dec 2012
    Location
    Zagreb, Croatia
    Posts
    73

    Re: Error in textbox

    You need to create a view model class and set an instance of it as the data context for the given page. This will give you more information Windows Phone Data Binding.

  7. #7
    Registered User
    Join Date
    Jul 2013
    Location
    chennai, TN
    Posts
    56

    Post Values is not displaying in a textbox

    hi... guys

    I have an problem that values is not displaying in a textbox.

    detailed information:

    In edit.xaml file i have an button if i click that button, im having some values in viewmodel.cs file that need to be displayed in another welcome.xaml file textbox

    i.e example: In viewmodel.cs, im having values like
    murugan , developer

    that need to be displayed in welcome.xaml file textbox i.e ( user : murugan, position : developer ) user as textblock , murugan as textbox.

    if i click a button in edit.xaml file, values should display in welcome.xaml textbox so

    please guide me.

  8. #8
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    292

    Re: Error in textbox

    Quote Originally Posted by Murugan india View Post
    hi guys,

    i need to know how to set values for texbox from response
    Hello Murugan,

    Could you please give us examples of your code ? the view model part and the binding part.

    Yassine,

Similar Threads

  1. Displaying variable values at runtime
    By carlyle in forum Symbian
    Replies: 13
    Last Post: 2009-12-08, 17:06
  2. displaying no of images in textbox
    By rahul.shalik.makode in forum Symbian
    Replies: 1
    Last Post: 2009-09-11, 20:59
  3. Displaying Textbox In Canvas
    By satyarajasekhar in forum Mobile Java General
    Replies: 1
    Last Post: 2007-12-28, 18:25
  4. displaying pixel values to screen
    By gaurav17281 in forum Symbian User Interface
    Replies: 9
    Last Post: 2005-12-15, 11:13
  5. Replies: 2
    Last Post: 2005-09-03, 18:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •