473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Eval no c#???

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
Nov 15 '05 #1
4 1180
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" <br*****@terra.com.br> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #2
In my case,
need convert a string in object DropDownList.
help me?
"Drebin" <tR*************@hotmail.com> escreveu na mensagem
news:KT**********************@newssvr28.news.prodi gy.com...
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" <br*****@terra.com.br> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
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


Nov 15 '05 #3
string strTheItemIWant = this.comboBox1.SelectedText.ToString();

then - manipulate strTheItemIWant however you need? Do you have sample code
of what is not working?
"'[] WiRaN" <br*****@terra.com.br> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
In my case,
need convert a string in object DropDownList.
help me?
"Drebin" <tR*************@hotmail.com> escreveu na mensagem
news:KT**********************@newssvr28.news.prodi gy.com...
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" <br*****@terra.com.br> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
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



Nov 15 '05 #4
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" <tR*************@hotmail.com> escreveu na mensagem
news:D9**********************@newssvr28.news.prodi gy.com...
string strTheItemIWant = this.comboBox1.SelectedText.ToString();

then - manipulate strTheItemIWant however you need? Do you have sample code of what is not working?
"'[] WiRaN" <br*****@terra.com.br> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
In my case,
need convert a string in object DropDownList.
help me?
"Drebin" <tR*************@hotmail.com> escreveu na mensagem
news:KT**********************@newssvr28.news.prodi gy.com...
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" <br*****@terra.com.br> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
> 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
>
>



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Reply Via Newsgroup | last post by:
This might sound sad... someone requesting a disertation on the 'eval' statement... but... I've been reading someone else's post - they had a huge calander like script and a handful of folk cursed...
11
by: sneill | last post by:
I have read a number of posts on the use of eval() in Javascript, and I agree that its use is questionable. But it does beg the following question: "How arbitrary does a string need to be before...
0
by: Michelle Keys | last post by:
Subject: DataBinder.Eval Error! Server Error in '/MSPOS' Application. ------------------------------------------------------------------------ -------- DataBinder.Eval:...
18
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My...
15
by: manstey | last post by:
Hi, I have a text file called a.txt: # comments I read it using this:
3
by: Pauljh | last post by:
Hi All, I'm running some javascript over a server side generated web page and have multiple generated empty select statements, that I want to populate when the page is loaded. As HTML doesn't do...
4
by: Jm lists | last post by:
Hello members, I want to know does the "eval" in python have the same features as in Perl (capture errors)? For example,in perl I can wrote: $re = eval { 1 / 0 }; Though 1/0 is a fatal...
6
by: RandomElle | last post by:
Hi there I'm hoping someone can help me out with the use of the Eval function. I am using Access2003 under WinXP Pro. I can successfully use the Eval function and get it to call any function with...
5
by: wendallsan | last post by:
Hi all, I'm running into a situation where it seems that JS stops executing as soon as I call an eval in my script. I have an Ajax.Request call to a PHP page that builds a JS object and returns...
10
by: Gordon | last post by:
I have a script that creates new objects based on the value of a form field. Basically, the code looks like this. eval ('new ' + objType.value + '(val1, val2, val3'); objType is a select with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.