jquery - Jqgrid file upload path -


I am using code like this for file upload. After clicking the Edit button in the event fire in the ashox page. And also read the value from the form.get method. But I can not be able to get the file upload path Please help me to get it.

  jQuery ("#Grid") JqGrid ({url: 'handler.ashx', datatype: 'jason', mitief: 'gET', colNames: ['serial number', 'script name', 'script location', 'host url', 'protocol' 'Ramp Time', 'User Number', 'Loop', 'Delay'], Colomodel: [{Name: 'Sr_no', Index: 'sr_no', Width: 55, Editable: Wrong, Editing Options: To: true, size: 10}, hidden: true}, {name: 'script_name', index: 'script_name', width: 100, editable: correct, editorial: {required: wrong}, editing options: { Size: 10, more Tm length: 15}}, {name: 'script_loc', index: 'script_loc', width: 100, editable: true, editrules: {required: false}, edittype: 'file', editoptions: {enctype: "multipart / form-data "}}, {name: 'host_url', index: 'host_url', width: 100, editable: true, editrules: {Required: true}, editoptions: {size: 10, maxlength: 25}} , {name: 'protocol', index: 'protocol', width: 100, editable: true, editrules: {required: true}, editoptions: {Size: 10, maxlength: 10}}, {name: 'rampup_time' Edit: Optional: {defaultValue: '0', Size: 2, Max length: 4}}, {name: '' rampup_time '', width: 100, editable: true, editrules: noof_users', index: 'nof_users', f DAI: 100, Editable: True, editrules: {expected: wrong}, editoptions: {Size: 4, maxlength: 8}}, {name: 'loops', index: 'loops', width: 100, editable : True, editrules: {expected: true}, editoptions: {defaultValue: '1', size: 1, maximum length: 2}}, {name: 'delay', index: 'delay', width: 100, editable : True, editorial: {expected: true}, editing options: {default value: '0', size: 1, maximum length: 4}}], post data: {}, line number: 20, line list: [20, 40,60], height: 200, Autowth: true, daily: correct, pager: '#pager', sortname: 'sr_no', 'r Cordes', 'blank record', loadonus: wrong, load full: function () {},})    

Here's how I used jqgrid in my code to use this code as reference. I do not say that this is the right way but it can be used for you. In my Junkyard script I have specified the url as the URL: 'Controller.aspx? P = load '

  jQuery ("# ​​jQGridDemo"). JqGrid ([url: 'controller.aspx? P = load', datatype: 'jason', mtp: 'post', kovalam: ['job order #', 'part #', 'operation #' ...], CallModel: [...] ... ....}};   

In my Controller. ASPX page:

  Protected Zero Page_Old (object Sender, EventErgues e) {Answer ("Content-Type", "Text / JavaScript"); if (Request.Par [[P]]. Equal ("Load") {Bulls Success = True; OrderIntext [] arrReturn = order.getOrderArere (0, -1); int arry_size = arrReturn.Length; st Ing data = JsonConvert.SerializeObject (arrReturn); String Rate = "{Data:" + Data + ", \ n"; Rate + = "Type the record: 'object'}"; if (data == empty) {Success = False; Response.Write ("0");} If (success == true) {Response.Write (data);}}}   

On this example jqgrid-handler example See in the question

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -