function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rasmiforcerasmiforce 

getting values from page to controller and view while compiling

Can anyone say how to get the parameter in page to controller so that we can perform some operations in it

<apex:inputText  id="name"/>

in controller i want to get that value

???
Can anyone help me out
Luke@TWSLuke@TWS
as far as I know you do something like:

<apex:inputText  id="name" value="{!txtValue}"/>

and in the controller:

Code:
string txtValue;

private string getTxtValue()
{
    return txtValue;
}

private void setTxtValue(String Value)
{
    txtValue = Value;
}

 
then you can use txtValue in your code