473,789 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to evaluate control

Hello! I need create a server control and dynamicly
determine that control on the form. In JavaScript exist
function eval() which allows to evaluate a control on the
form. For example eval('document. myform'. +
inputcontrol.na me + '.checked=true' ) find out which control
was send as a input parameter.
I know vb.net would not allows control array. Do we have
something that looks like eval() in JavaScript.
Thank you.
Nov 17 '05 #1
0 1104

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

Similar topics

5
2470
by: MN | last post by:
Hi All, I have a string like ... String str1 = "(15*20)+12.5"; I want to evaluate this string to get the mathematical output. Ideally output will be 312.5. How can I do with the .Net?? thanks
8
1035
by: darrel | last post by:
I've been struggling to get a repeater control set up to check a record field, and, depending on what it is, render a different HTML template. I've tried using a simple server-side span: <span runat="server" Visible='<%# DataBinder.Eval(Container.DataItem, "Application").ToString() = "Notice" %>'> <custom html> </span>
2
2787
by: Kamal Ahmed | last post by:
Hi all, I want to execute a String that is generated at Runtime and fills data in DropDownList Controls at Runtime. I want to do this at server side. As Eval functions works as client side function and there is not other function or command to do this example is here.. ("ddlSub" & CStr(nRow) & ".DataSource = dtrSubject") I want to evaluate this string to get name of control at runtime e.g. ddlSub1, ddlSub2, ddlSub3 and so on
2
1444
by: Ray Martin | last post by:
I have created a custom datagridcolumn, and would like to color the cell based on criteria passed as a parm when the column is created. I would like this to be generic so I want to do something similar to the Clipper/dBase function "&", or even the DOTNET Debug.Evaluate methid. So, for example if I wanted the cell in row 5 to be the one to be colored differently I could do something like: mynewcolumn = new...
5
6806
by: Csaba Gabor | last post by:
In Firefox 1.5 (this question is Mozilla specific as I am using greasemonkey) I would like to be able to use document.evaluate to return the first TD entry that shows ^\s*MySearchText\s*$. As I understand it, xpath doesn't yet have regular expressions so I thought to do: function findNode (srch) { var node; var expr="//td"; var RE = new RegExp("\\s*" + srch + "\\s*$");
2
365
by: Bhuvanesh | last post by:
Hi Happy 2006 Anyone please suggest me how to evaluate a string of expression. I have used the same in VBscript and javascript. e.g. stringvariable1 = "TemplateTopUserControl"; stringvariable2 = "\"TemplateTop.ascx\"";
1
2555
by: ApexData | last post by:
Hello I have an UNBOUND textbox Text1 that I want to validate in code. I want to lock the user into the field until Valid Data is entered. I created the following Function: Private Function Validate(MyControl As Control) As Boolean If Len() < 6 Then MsgBox "Password too small" ' Etc..Etc.......
2
7441
by: Björn Langhof | last post by:
Hello. I want to evaluate a XPath-Expression only on a subtree of the whole xml-document. 1. I select a node of the XML-document 2. Then a want to select specific nodes below the node chosen in 1. I thought the parameter contextNode in var xpathResult = document.evaluate(xpathExpression, contextNode,
7
2128
Wing
by: Wing | last post by:
I was wondering if it is possible to evaluate a variable to determine if the variable is a control on the current or other form? Here is what I am currently looking at. I have two date fields that are using a calendar control. Depending upon which date field opened the Calendar Control, I want the date to be passed back to that control. I would prefer not to have two Calendar Controls. Here is what I have attempted so far. Private Sub...
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9506
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.