Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > best way to get this data to the server?

Reply
Thread Tools

best way to get this data to the server?

 
 
Jim Hammond
Guest
Posts: n/a
 
      11-05-2003
I have figured out how to create a .NET assembly that can run on the client
side and interact with browser controls (much like ActiveX only a pure .NET
solution). This test assembly reads a file from the client's computer and
populates an HTML text box with the results. However, I still have not
figured out the proper way to get that data to my C# code on the server.
Also, I wrote the following code by hand. I have not yet figured out how to
do this using VS and server controls.

-----------

<body MS_POSITIONING="GridLayout">

<OBJECT id="myControl1" height="288" width="312"
classid="ClientSideAssembly.dll#ClientSideAssembly .myControl"
name="myControl1" VIEWASTEXT>
</OBJECT>

<form id="Form1" name="Form1" method="post" runat="server" VIEWASTEXT>
<input type="text" name="txt">
<input onclick="doScript();" type="button" value="Click me">
</form>

<script language="javascript">
// successfully gets the text that the client-side assembly
// read from a client's file
function doScript()
{
Form1.txt.value = myControl1.FileText;
}
</script>

</body>

-------------

Anyone who is interested in how I got a client-side assembly to work will
have trouble finding helpful material, so I have included links to the
material that I used:
http://www.c-sharpcorner.com/Code/20...tiveXInNet.asp
http://www.windevnet.com/documents/s...emp=2n3w--hKCA


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hidden data - best practice, best way, suggestions oldyork90 Javascript 1 09-10-2008 07:46 PM
Best way to get GridView/DataGrid data for Javascript tshad ASP .Net 2 03-04-2008 05:46 PM
best way to get data into a new instance? John Salerno Python 9 09-29-2006 07:04 AM
Best way to get row data in a DataGrid delete handler Alex ASP .Net 1 04-24-2004 02:49 AM
best way to get data: request.form, request.params, controlname.value Christian H ASP .Net 1 07-29-2003 05:27 AM



Advertisments