Click here to Skip to main content
15,909,437 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: response Pin
Sathesh Sakthivel18-Oct-06 18:40
Sathesh Sakthivel18-Oct-06 18:40 
AnswerRe: response Pin
Guffa18-Oct-06 18:44
Guffa18-Oct-06 18:44 
QuestionHow to handle this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback Pin
chandu4codeproj18-Oct-06 18:11
chandu4codeproj18-Oct-06 18:11 
AnswerRe: How to handle this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to post Pin
Tad McClellan18-Oct-06 18:26
professionalTad McClellan18-Oct-06 18:26 
GeneralRe: How to handle this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to post Pin
chandu4codeproj18-Oct-06 18:30
chandu4codeproj18-Oct-06 18:30 
QuestionResponse.Redirect Pin
avahia18-Oct-06 18:01
avahia18-Oct-06 18:01 
AnswerRe: Response.Redirect Pin
Guffa18-Oct-06 18:50
Guffa18-Oct-06 18:50 
QuestionMore on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 14:45
Ennis Ray Lynch, Jr.18-Oct-06 14:45 
I have recieved no answer from my previous query but I do have more information so hopefully I someone may have some more information for me. (For a quick reminder I am creating an ASP.NET control to upload n number of files and as part of that I am using Javascript to dynamically generate file inputs through the DOM)

When uploading a file through ASP.NET the encoding type of the form must be "multipart/form-data" which I already knew, however, it must be the HtmlForm for the page that is set and not just any form. (http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlform.aspx, and http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlinputfile.aspx)

A simple loop through Page.Controls reveals the HtmlControl for the page if there is one. (Surprise there is no method to return it! so you must roll your own) With this set I am still unable to upload files!

Now here is where it gets really interesting: If I add <input type="file" id="thisIsATest" runat="server"/> somewhere in my user control everything works even though I am not using the thisIsATest element for the upload. I can't find any meaningful difference in the HTML source between the two.

Any ideas?


On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Charles Babbage

AnswerRe: More on file uploading Pin
minhpc_bk18-Oct-06 15:36
minhpc_bk18-Oct-06 15:36 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 15:44
Ennis Ray Lynch, Jr.18-Oct-06 15:44 
GeneralRe: More on file uploading Pin
minhpc_bk18-Oct-06 15:45
minhpc_bk18-Oct-06 15:45 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 15:56
Ennis Ray Lynch, Jr.18-Oct-06 15:56 
GeneralRe: More on file uploading Pin
minhpc_bk18-Oct-06 16:23
minhpc_bk18-Oct-06 16:23 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.18-Oct-06 16:31
Ennis Ray Lynch, Jr.18-Oct-06 16:31 
GeneralBTW Pin
Ennis Ray Lynch, Jr.18-Oct-06 16:32
Ennis Ray Lynch, Jr.18-Oct-06 16:32 
GeneralRe: BTW Pin
minhpc_bk18-Oct-06 16:39
minhpc_bk18-Oct-06 16:39 
GeneralRe: BTW Pin
minhpc_bk18-Oct-06 16:49
minhpc_bk18-Oct-06 16:49 
GeneralRe: BTW Pin
Ennis Ray Lynch, Jr.18-Oct-06 16:55
Ennis Ray Lynch, Jr.18-Oct-06 16:55 
GeneralRe: More on file uploading Pin
Ennis Ray Lynch, Jr.19-Oct-06 4:12
Ennis Ray Lynch, Jr.19-Oct-06 4:12 
GeneralAha: Those that don't know everything may be interested Pin
Ennis Ray Lynch, Jr.19-Oct-06 7:13
Ennis Ray Lynch, Jr.19-Oct-06 7:13 
QuestionForms Authentication Question [modified] Pin
Rob Walter18-Oct-06 12:05
Rob Walter18-Oct-06 12:05 
AnswerRe: Forms Authentication Question Pin
minhpc_bk18-Oct-06 15:43
minhpc_bk18-Oct-06 15:43 
QuestionRe: Forms Authentication Question Pin
Rob Walter22-Oct-06 15:51
Rob Walter22-Oct-06 15:51 
AnswerRe: Forms Authentication Question Pin
minhpc_bk23-Oct-06 5:49
minhpc_bk23-Oct-06 5:49 
Questionexe file Pin
hamzah123418-Oct-06 11:04
hamzah123418-Oct-06 11:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.