Eval no c#???

  • Thread starter Thread starter '[] WiRaN
  • Start date Start date
W

'[] WiRaN

He forgives some people who had helped to decide a problem yesterday me, but
I still did not obtain to understand.
I am needing a similar function the Eval the Javascript, somebody can help
me with examples?
'[] WiRaN
 
There isn't really. Instead, you should create an array of whatever you
need. So instead of:

objTextBox = eval('myTextbox' + n);

You could have multiple textboxes, and address them as:

objTextBox = myTextbox[3]; // to reference the 4th one
 
In my case,
need convert a string in object DropDownList.
help me?


Drebin said:
There isn't really. Instead, you should create an array of whatever you
need. So instead of:

objTextBox = eval('myTextbox' + n);

You could have multiple textboxes, and address them as:

objTextBox = myTextbox[3]; // to reference the 4th one

'[] WiRaN said:
He forgives some people who had helped to decide a problem yesterday me, but
I still did not obtain to understand.
I am needing a similar function the Eval the Javascript, somebody can help
me with examples?
'[] WiRaN
 
string strTheItemIWant = this.comboBox1.SelectedText.ToString();

then - manipulate strTheItemIWant however you need? Do you have sample code
of what is not working?


'[] WiRaN said:
In my case,
need convert a string in object DropDownList.
help me?


Drebin said:
There isn't really. Instead, you should create an array of whatever you
need. So instead of:

objTextBox = eval('myTextbox' + n);

You could have multiple textboxes, and address them as:

objTextBox = myTextbox[3]; // to reference the 4th one

'[] WiRaN said:
He forgives some people who had helped to decide a problem yesterday
me,
but
I still did not obtain to understand.
I am needing a similar function the Eval the Javascript, somebody can help
me with examples?
'[] WiRaN
 
Put o code:

protected void EditarGrid(Object sender, DataGridCommandEventArgs e)

{

dtgwordlist.EditItemIndex = e.Item.ItemIndex;

// I need converting a string of objeto textbox in object realy on code.
string nome = txtcmb.Text;

// like this????
DropDownList valor = (DropDownList)nome;




//Function for DataBind() Grid
MontaGrid(Convert.ToInt32(valor.SelectedItem.Value));

}




Drebin said:
string strTheItemIWant = this.comboBox1.SelectedText.ToString();

then - manipulate strTheItemIWant however you need? Do you have sample code
of what is not working?


'[] WiRaN said:
In my case,
need convert a string in object DropDownList.
help me?


Drebin said:
There isn't really. Instead, you should create an array of whatever you
need. So instead of:

objTextBox = eval('myTextbox' + n);

You could have multiple textboxes, and address them as:

objTextBox = myTextbox[3]; // to reference the 4th one

He forgives some people who had helped to decide a problem yesterday me,
but
I still did not obtain to understand.
I am needing a similar function the Eval the Javascript, somebody
can
help
me with examples?
'[] WiRaN
 
Back
Top