SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

HTTP Post Problem Options
kev43barrie
#1 Posted : Wednesday, November 16, 2011 10:08:22 AM
Rank: Newbie

Groups: Registered

Joined: 11/16/2011
Posts: 4
Location: Home

I am trying to pass over some parameters to a HTTP post that is used with my slickup load.

cshtml -

<form action="/MyForms/Attachments" enctype="multipart/form-data" id="uploadForm" method="post" onclick="Sys.Mvc.AsyncForm.handleClick(this, new Sys.UI.DomEvent(event));"
onsubmit="Sys.Mvc.AsyncForm.handleSubmit(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, updateTargetId: &#39;divConfirmation&#39;,onSuccess: Function.createDelegate(this, attachmentSuccess), onFailure: Function.createDelegate(this, attachmentFailure) });" >
<input type="hidden" id="filledFormId" value="@Model.FilledFormId" />
@Html.KrystalwareRazor(new SlickUpload()

{


c# -

[HttpPost]
public PartialViewResult Attachments(UploadSession uploadSession, int? filledFormId)
{

 

However the input type is not getting passed.

Any ideas?

New to all this!

Thanks

Kev.

Axosoft
#2 Posted : Wednesday, November 16, 2011 11:16:56 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

That looks like it should work. Can you send me the .cshtml, controller, and web.config so I can pop them into a test harness here and see what's going on? chrish@krystalware.com

Also, what version of SlickUpload are you using?

Users browsing this topic
equipmentequipm, Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.