473,320 Members | 2,098 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,320 software developers and data experts.

Returning Data back from Dynamically created fields(javascript)

115 100+
Hi

Once again i am faced with an issue. I must allow a user to add as many pieces of data as they wish. I have therefore employed some javascript from an tutorial

http://www.mredkj.com/tutorials/tableaddrow.html

I would now like to return the data from the dynamic fields through the c#(.cs page) but i have no idea how. Could anybody point me to an example that i could apply or give me a push in the right direction

cheers truez
Apr 5 '10 #1
1 1490
Frinavale
9,735 Expert Mod 8TB
The easiest way to do this is to use an ASP.NET HiddenField control.

The HiddenField can be accessed and set via your JavaScript...and when the page is sent to the server you can access the value in the HiddenField that was set by your JavaScript code in your C# (or VB.NET) server side code.

You could also use Cookies but this gets a bit trickier.

-Frinny
Apr 6 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gowhera Hussain | last post by:
Use This for Learning Only .... Do Not Try To Act Smart HACKING WITH JAVASCRIPT Dr_aMado Sun, 11 Apr 2004 16:40:13 UTC This tutorial is an overview of how javascript can be used to bypass...
0
by: Daniel | last post by:
how to change the value of Request.ServerVariables on the ser ver? if not possible is there some way to change it by sending back javascript to the client and having the client automaticaly do...
2
by: Cliff R. | last post by:
Hello, I have a form that has a few required fields and also an "agree to terms" checkbox that must be required. I have used Javascripts for both functions individually, but I need a little help...
5
by: Stuart | last post by:
Hi We have a dynamically created javascript menu (from ASP), which is customised per user (Have already taken all the static code out into separate cached .js file) The size of the 'dynamic'...
3
by: Angel | last post by:
Hi, I have a page which shows a matrix of names and grades for given period. All the grades fields must be editable and they can be up to 200 fields (20 students with 10 grades each) Since...
1
by: fastrobby | last post by:
Hi, I have a an array var thisform = document.getElementById(arg1); // We have the form var ttlPrice = 0; var diveType = new Array(); // Company1, Company2, Company3 etc. diveType = "0"; ...
1
by: bsprogs | last post by:
I am currnetly programming a file hosting website in PHP and I am slowly integrating AJAX into the website. Here is my problem: The user uploads the file. The server processes the file and...
1
by: mangust404 | last post by:
Hi, i suppose this project could be helpfull to people who make a web-applications with a horde of javascript-includings. This project is Prototypejs-based and it consists from prototype.js itself...
6
by: tgmcnaughton | last post by:
I have a javascript running on a page hosted by googlepages at: http://tgmcnaughton.googlepages.com/map2.htm It uses the google map api to draw a map and plot a marker at a particular latitude and...
3
by: CpVermont | last post by:
Well this should be a fiarly simple question to those of you who are experts at php. I have some Javascript on the Client side that uploads a file to a php on my server through a hidden Iframe. I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.