Well no one answered so I guess I explained it poorly. However I have found a way to get the data displayed the way I want and I am posting for the benefit of anyone else with a similar issue. It might be clumsy and I would love to know a better way. But here's what I have in my code behind...
I have a form of text boxes and radio button lists in C#. The user submits and all is saved to the SQLServer database. But the user can return and make changes to this form. When the user returns I want to retrieve his previously entered values and display them.
I created a DataReader to...
I am trying to pass several variables from a jsp page to a aspx page. This works fine using a link, a redirect, etc as long as my variable does not have @ symbol.
I use Server.UrlEncode () on the string - it still does not work.
I use a Replace on the string (replace @ with %40 - it still...
I am trying to pass 3 parameters in a query string. One of those parameters is an email address. I Server.UrlEncode each parameter but then I get a PNF (404 error). If I take the @ symbol out of the email, all works fine.
Using c# on .NET 3.5. Here's my code behind:
protected void...
OK I got it. Thanks for pointing me in the right direction. I removed the SQLDatasource control and created the code myself. I was then able to control both the file upload and the DB insert.
BTW - I wasn't looking for a "magic all-in-one control", I was just looking for help. Thanks jbenson001...
Thanks for the quick response jmeckley. Actually I am using .NET2.0 so I can use the fileUpload control which eliminates the stream to a file. I am having success uploading the file to a folder. I can also insert my form field to a DB. I just haven't been able to combine the two - I suppose...
Has anyone successfully built an aspx form that will upload a file to the folder structure (asp:fileupload) and at the same insert form fields (like a friendly title of the photo to be uploaded) into a DB? I am not having any success trying to make this work. Any help out there?
Thank you both for your input. I found that I had to delete the class file for the jsp, or make a change and save it, in order for it to regenerat the jsp class file. As for the compile java file, I just renameed it and recompiled for testing. so it looks like you are right, sedj, the container...
Has anyone ever seen this before?
I have a form.jsp which calls a sendmail.jsp which calls my class- send(). The first time I ran the form I found a change I wanted to make inthe class file. Made the changed, recompiled and then ran the form again. Big surprise - I see the same error (typo...
I just copied this into my code and it did not work. My aArr and cArr are identical which means that the strName="" is not working??? I do appreciate how you cleaned up my code - thanks. I do tend to be lazy on that stuff. This is a real pain - and it's probably a simple logic thing that I am...
I have been struggling with this for several days and have tried 3 different methods but to no avail. Perhaps someone can steer me in the right direction.
I have a form with a checklist of software; the users selects what they do not want. I want to find out what is left when you substract the...
Hello,
Have you had any luck in discovering why you were getting the "Item not found.... requested name or ordinal". I have been looking at this error for 48 hours and cannot find the cause. I am doing an INSERT to a Oracle db and this code was working for 2 years. Of course I have...
I'm using VBscript in an .asp page but I was thinking I would need to use Javascript since this seems to be an event driven procedure. I've been looking for something in JS that would either document.clear or reset, erasing all the HTML output for the results of the search. The search calls a...
I have a page with a short form containing 2 input boxes. The user completes the boxes and hits FIND and the results are displayed in the lower half of the screen (outside the form tags). What they want is to enter new data in those 2 fields (overwrite the first input) and have the bottom of...
Just for posterity here's the solution that is working for me:
i=0
dim arrFile(1000,7)
While not theFile.AtEndOfStream
i = i + 1
t = theFile.ReadLine
s = Split(t,Chr(9))
arrFile(i,0)= s(0) 'kit
arrFile(i,1)= s(1) 'version
arrFile(i,2)= s(2) 'state
arrFile(i,3)= s(3) 'date
arrFile(i,4)=...
Actually I've read up on arrays more "than just a little" and first you have locked the array with Dim arrLines(0,7) but that's OK cause I just changed it to redim.
Also if the object theFile was a very long text file then the Redim Preserve within the loop will take a serious toll on...
I've tried your example but I think you meant arrFile(0,8) to be arrLines(0,8) and that looks like it would work, but I get a "Subscript out of range: '1'" error on the line arrLines(i,0)=theFile.ReadLine
I'm assuming that in VBscript the multi-dimension array is reading...
I have an array which was created by reading in lines from my FileSystemObject. Each line has 8 fields and I want to create a 2 dimensional array from the original array so that I can select information based on a column.
Here's what I have:
While not theFile.AtEndOfStream
i=i+1
arrLines(i)...
We just went from Oracle 8.1.6 to 8.1.7 and it appears the update and insert records will not work in my com objects. The Select statements still work so it must be some legacy code snippet that 8.1.7 is not going to tolerate. Anyone else have this problem.
The COM connects using ODBC. WE are...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.