|
Try
document.getElementById('<%= txtFirstName.ClientID %>').value
|
|
|
|
|
thanks karl.. it worked.
many thanks.
|
|
|
|
|
|
I apologize if this the wrong for this question.
I have a C# app, more of a framework really that does calculations on a large set of proprietary data, the data in its raw form is unreadable, it has to be processed by the framework. I'm wondering if there is a way to create a driver so that applications can query the framework much like you would query a database? I can put the data into datatables and datasets, but I'm not sure how to make it accessible. Any suggestions are appreciated.
|
|
|
|
|
You might consider using/creating a Domain Specific Language (DSL).
General description[^].
Microsoft's take[^].
For more information just google domain specific language.
That's all I know about them though, except that there are some articles here on The Code Project about them. (Use the Articles|Search menu at the top of the page).
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
|
|
|
|
|
We have a remote electricity meter device with a serial to Ethernet converter; I want to catch the data from this meter on a PC using C#. I have a fairly good understanding of the COM port and how to parse a data stream (have done my bit in VB6) in C#, but I have no way how to do it from Ethernet. I do not want to send any data back - it is read only. Any guidance would be welcome. Thanks
"the confused are confused beyond confusion" - Pik Botha (1990)
|
|
|
|
|
Try some of these links[^] for information on how to use sockets in C#. Assuming that you know the protocol to talk to this meter it should not be too difficult a problem.
I must get a clever new signature for 2011.
|
|
|
|
|
pierrecor wrote: We have a remote electricity meter device with a serial to Ethernet converter
Several steps - first you need to refine exactly what "ethernet connector" means.
That by itself doesn't tell you what functionality is available, how to access it nor anything at all about the protocol.
Second presuming that it really means some sort of IP then you would need to learn about UDP and TCP (which ever is relevant) and the appropriate conventions in C# to access each.
|
|
|
|
|
Is it a Current Cost meter? If so, it's not an Ethernet connection, even though the socket on the meter is an RJ45. It's actually an RS232 serial connection through an RJ45 to USB cable, with a "serial to USB" driver needed on the PC. Then you talk to it like a normal COM port.
|
|
|
|
|
hi guys
i want to switch between program run in windows such as alt+tab
but use c#
|
|
|
|
|
You want your application to simulate alt-tab? That will make for a very confusing user experience because you are hijacking system functionality in a way they won't be expecting.
|
|
|
|
|
i have a script in mql4 language in metatrader software that run this url:
http://aaaa.com/Default.asmx/methodname?S=+S+&d=+T;
i want to make a asp.net page(web service) and insert this parameters('s' and 'd')in database.
how can i make this url?
Regards
|
|
|
|
|
Hi,
You can make use of Request.QueryString to extract the values of the varaibles in the querystring.
Request.QueryString["S"] will give you the value of s
same way
Request.QueryString["d"] will give you the value of d.
|
|
|
|
|
but before using these parameters i want to create this url:
http:
these parameters have been sent from mql witn calling this url..
now i have to create this url to make connection between mql and web service.
how can i create this url in visual studio?
i hope to be clear my explain.
modified on Thursday, February 3, 2011 2:27 AM
|
|
|
|
|
The question could have been phrased better. Perhaps something like "Need help reading URL parameters"?
My first thought when I read it was a sarcastic response - "click on that text at the top of your screen, and start typing..."
|
|
|
|
|
But that would have been mean, and we try not to do that here, right???
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Mean? Me? Perish the thought. I would never, ever say anything "mean". Or sarcastic... Or negative. Nope, never, no-way, not me. Or indecisive, for that matter. Well, maybe...
|
|
|
|
|
I found the answer:
with Going to web.config and adding this code in system.web section:
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
good luck.
|
|
|
|
|
If there is a static class with some static data e.g. string in a separate assembly Library.Static and there are 2 application assemblies that use it App1 and App2 do they share that static data or each application has its own Library.Static copy loaded into its memory and global in its own environment?
Чесноков
|
|
|
|
|
When an application runs, it runs in its own process space. This means that any variables for the application runs in that process space, so each application gets its own version of the data. This is a good thing as it helps to prevent from side-effects such as one application changing the data and the other one relying on it being in the original state.
There are ways to share the data, but they need to be considered very carefully.
|
|
|
|
|
That means that 2 copies of the assembly with static data will be loaded to each application the same way as in native dlls and processes using them?
Чесноков
|
|
|
|
|
Yes. Apart from using the .NET runtime, conceptually there are no differences between managed and native dlls. Windows doesn't behave any differently because something happens to run as a .NET application.
|
|
|
|
|
can we create an application in C# so that we put a dll on some other machine and application on some other machine. when we run the application it uses dll of that machine and executes the application smoothly. please help i have no knowledge of the topic and provide some help url if any.
Thanks and regards
|
|
|
|
|
|
A better solution is to use a service, web or windows, this being the current flavour of remoting.
Never underestimate the power of human stupidity
RAH
|
|
|
|