Skip to content Skip to sidebar Skip to footer

I Am Getting Null Value From Ascx File

I am getting null value from Plaka .How can I solve this problem.pages created dynamically inside the ascx file . javascript part: var myFunction = function() {

Solution 1:

Gonna take a wild guess here, i don't know much about ascx files.

Question: Is this the part you use to upload?

    $("#<%=FileUpload1.ClientID%>").uploadify({
    'uploader': 'Upload.ashx',
    'swf': 'uploadify/uploadify.swf',
    'script': 'Upload.ashx',
    'cancelImg': 'images/cancel.png',
    'folder': 'upload',
    'multi': true,
    'method': 'post',
    'buttonText': 'RESIM SEC',
    'fileExt': '*.jpg;*.png;*.gif;*.bmp;*.jpeg',
    'auto': false,
    'formData': { 'id': 'id', 'Plaka': Vp, 'Foo':'foooo'},
    onAllComplete: function (event, data) {

Meanwhile try this:

var upload;
var myFunction = function()
 {
       Vp=  {txtPlaka}.getValue();
       upload()
 };



$(document).ready(function () {

    varVp ="";
    $('#btnMusteriEkle').click(myFunction);

    upload = function(){
        $("#<%=FileUpload1.ClientID%>").uploadify({
        'uploader': 'Upload.ashx',
        'swf': 'uploadify/uploadify.swf',
        'script': 'Upload.ashx',
        'cancelImg': 'images/cancel.png',
        'folder': 'upload',
        'multi': true,
        'method': 'post',
        'buttonText': 'RESIM SEC',
        'fileExt': '*.jpg;*.png;*.gif;*.bmp;*.jpeg',
        'auto': false,
        'formData': { 'id': 'id', 'Plaka': Vp, 'Foo':'foooo'},
        onAllComplete: function (event, data) {

        }

    });
  }

});

Post a Comment for "I Am Getting Null Value From Ascx File"