I have creted a form for a job submision it has a number of text boxes / date pickers / text edittor and async file uploader, onload it creates a random string and stores it in a text box (this becomes the job id) this id is also used to create a folder (of the same name) to store any file uploaded, I have tried to store the file location so I can add it to the database but the textbox/lbl remain empty.Secondly I would like to submit this form to a database I am using asp.net 3.5 with rules / membership / state on sql I would like to be able to post the user role / name as part of the data store if this is possible.I have attached my code the asyncfileUploader was converted from C# Demo and modified using suggestions found via google.
aspx file:
[Code]....
aspx.vb file:
[Code]....
the code seems to function fine apart from not returning the uploaded file location (so it can be downloaded via a link later)
How can i upload a file using fileupload control from an asp.net form and store it in systems harddisk and just have a tag of that file in sql database... and also how to retirve that file for download.
After filling all the required information in any registration form, I want to capture the Date of submitting the form in Sql Server 2005 how to achieve this using Asp.net C#?
I am develping an application that integrates with an RFID kit. The problem is, the kit comes with an .cs class that accepts data stored in a byte array however, each information stored in the array respresents an int. I wanted to store String information in each array but, my research suggest that a String itself can be converted to a byte array and not a byte....here the code from the .cs class:
I am working in a school and we recently installed a new server running WinServer 2008R2. I want to be able to point people to a URL on our intranet and have them fill out a simple registration form and have this data written to a database. It would also be nice to have some data auto-populate (such as their name).
Is it overkill to set up a sharepoint server and try to do this with Access Webforms? Could I use something like dotnetnuke and find a module that works? Or how about options for writing custom forms?
var params:Object = {}; //params["stack"] = e.stackTrace.slice(0, 542); //length 542 = works //params["stack2"] = e.stackTrace.slice(1, 543); //length 542 = works (just to show that it's not about the content itself) params["stack3"] = e.stackTrace.slice(0, 543); //length 543 = fails
I also seem to be able to create many form fields (with 542 length) so that it's not a limit of the request itself but of the form field:
I have two asp.net applications webapp1 and webapp2, in each application i have a asp.net form Deafult.aspx
I want to do a form submit from Default.aspx in webapp1 and recieve the value in webapp2.
I tried to do it with simply setting action ="webapp2 location" but it is throwing the bellow error
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
I even added the machinekey element to web.config
but it is still showing the same error.
This is the code for webapp1 form which sends data to webapp2
I had another thread on this problem but I wanted to start this one so no one had to look at the code I posted in the other thread. I have a successful connection but want to display data from the SQL database on my website in my Windows form application. Here's the code I have so far. Used some of the ADONET Tutorial1 here. The table Ray Rover Activation has a number of different columns but to start out I just wanted to see if I could display data for the EmailAddress column.
Code:
[code]....
If I comment out the Sub DoStuff I don't get any errors but neither is anything displayed other than the messagebox message. If I don't comment out DoStuff then I get an error, "Incorrect syntax near the keyword 'FROM'". Maybe someone could enlighten me some on what I need to do get the data in the column EmailAddress to display.
I need to create a asp .net web application which should have several forms to get the survey data, When the user is out of the wifi or don't have internet access to connect to the server even though the user should have access to the forms or any other tools to input data and store them locally and sync to the database later. What are the options available to do this kind of tasks in asp.net / C# / Sql Server
I have an application that will upload files from my client to a web server using HttpWebRequest (with the function suggested here: [URL]
My problem is that when the file (about 10 mb in size) is being posted the whole application freezes (e.g. "application is not responding" when I try to move the window).
Do I need to put the uploading in a separate thread, or is there any other simple way solve this?
there are some way of generating the application form source code for an database tables in c#, but i not need a dynamic application form like Scaffolding i need the source code of application form
Is it better to store images directly in a database or to just store the name of the file in the db and display that file? I would think that just storing the filename of the image would keep the db size low...
I created a Textbox named VisitorName. The visitor puts in their name and it goes in VisitorName.Text
There is a Label that says "Which do you own?"
There is a RadioButtonList. It has Cat, Dog and None.
There is a button that says Add to list.
The button needs to add the results of the above items and put them in the list.
Now you keep adding people and their pets.
Once there are all entered you press send and I get the results for everyone entered during that session via email.
I have no database access and the information does not need to be stored in such a way.
I would like to use a datatable or datalist or something to that sort.
Oh and I would like the visitor to be able to click on a name in the table and edit the data using the form controls not in the datalist or datatable itself.
I'm building an application that processes application forms. I'm hoping I can get an advice on how to approach it properly. There are 4 forms right now but it will have a possibility of having more. Most of them have the same fields but each have 4 or 5 items not existing within other forms.
What is the best way for me to store this data (and what sql data type) for me to easily retrieve and update it. I am using SQL Server 2005.
I am a student with non IT back ground. I got a request from my client to develop a simple form with 10 data elements and store it in oracle table.I have to use ASP.net to develop this application.
Not sure if this is the correct section to ask this but this is regarding storing datatype problem.im trying to convert an image file retrieve from a folder and convert it to Byte so that i can save into database
In below function i retrieve and convert the image from a folder to byte