Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Asif Rehman

@Asif Rehman
About
Posts
61
Topics
46
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • post list of products instead of single product in post method odata
    A Asif Rehman
       // POST: odata/Products
        public IHttpActionResult Post(\[FromBody\]  product Products)
        {
            ...
        }
    
       // POST: odata/Products
        public IHttpActionResult Post(\[FromBody\]  List Products)
        {
            ...
        }
    

    when I used List I got empty products. How to handle it?

    ASP.NET tutorial question

  • How to post array of objects to oData
    A Asif Rehman

    currently EF do support posting single object (e.g {id: 1, partyCateg: 'Assetts' } )

    // POST: odata/tbl_PartyCateg
    public IHttpActionResult Post([FromBody] tbl_PartyCateg categs)
    {
    return Created(categs);
    }

    What I want is to send array of Objects. tbl_PartyCateg[]

    [
    {
    id: 11,
    PartyCateg: "SomeValue1"
    },
    {
    id: 11,
    PartyCateg: "SomeValue1"
    }
    ]

    When I post above data via postman I got empty categs on server side. Where I'm Wrong.

    Web Development sysadmin data-structures tutorial

  • oracle not allow date field with same name "Date"
    A Asif Rehman

    I'm moving my sql server db to oracle. But oracle seems not to support Date Name with date data type. Looking for solution as changing name from Date to Vdate or bDate requires lot of changes in app code.

    Database database sql-server oracle sysadmin

  • getting JSON data in much smaller way.
    A Asif Rehman

    Is there a good tutorial on compressing the traffic on JSON data.

    JavaScript json tutorial question

  • getting JSON data in much smaller way.
    A Asif Rehman

    Normally JSON data is fetched in the following form from Web API etc. [ {"name" : "Steve", "Age": 76}, {"name": "Jeremy", "Age": 43} ] You can see that "name" and "Age" is repeating with every column. But I've seen a service getting data in this fashion. Which really shorten the JSON object something like that. [ columns: {"name", "age"} data: {"Steve",76},{"Jeremy",43} ] How to do it?

    JavaScript json tutorial question

  • DataList with Product Heads.
    A Asif Rehman

    I want to have list of products. But when their product type changes. I want to put it first then detail of items like that. ProductType1 Product1 Product2 Product3 ProductType2 Product1 Product2 Product3 ... I cannot figure out how to place product type on top then detail of products under that product type.

    ASP.NET tutorial

  • Learning from Apple
    A Asif Rehman

    I think both Pathachiever and Keith Barrow are right. Its really nice to see entirely different aspects of present giants. In my view, Apple has developed a product that make him proud, and he thinks no one is going to dare to develop such product (like iPhone). But here comes the samsung that really kick ass every thing both with price and features. I think we should expect some behavior from apple after that and it did exactly what Keith Barrow has told above. Apple really paid the price for that as his shares drop from $700 to $500+ in just few months. The Bottom line is: Open source will always win in today's world and monopoly will loose at last.

    Running a Business ios mobile hardware sales tutorial

  • crystal reports running total problem.
    A Asif Rehman

    I'm having procedure with following fields e.g.(Previous.Balance, Debit, Credit ) Now in crystal reports. I want report structure like an account statement e.g. bank statement. Description Dr Cr. Balance Opening.. prevBalance transaction 1 10000 prevBalance+Dr-Cr transaction 2 5000 upperBalance+Dr-Cr transaction 3 5000 upperBalance+Dr-Cr How to achieve this type of running total in crystal reports in VS2010. Regards. Asif Rehman

    C# help tutorial

  • ms access afterupdate event in c# textbox
    A Asif Rehman

    I'm unable to get ms access afterupdate event like functionality in c# textbox. What I have done so far is: private void VocNoTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Enter)) MoveToSpecificVocNo(); } and Leave event private void VocNoTextBox_Leave(object sender, EventArgs e) { MoveToSpecificVocNo(); } But the problem is If I press enter and press tab to move to next field. The event is called twice. One for Enter key, another for Leave. Is there any solution? Regards Asif Rehman

    C# csharp help question

  • Get Jquery calandar date from textbox
    A Asif Rehman

    Here is the correct way to write question: I am using Jquery calander control in my project. When i click any button the value in the textbox is cleared. Kindly help me to resolve this issue. I have to take the textbox value and save it in DB.

    <script type="text/javascript>
    $(function() {
    var pickerOpts = {
    showOn: "button",
    buttonImage: 'calendar.gif',
    buttonImageOnly: true,
    changeMonth: true,
    changeYear: true,
    showButtonPanel: true,
    dateFormat: 'dd-M-yy'
    };

    $("#datepicker").datepicker(pickerOpts);
    $.datepicker.setDefaults($.datepicker.regional['']);
    $("#datepicker").datepicker($.datepicker.regional['en']);
    $("#datepicker").val();
    });
    </script>

    <form id="form1" runat="server">
    <asp:Label ID="lblDate" runat="server" Text="Date: ">
    <asp:TextBox ID="datepicker" runat="server" ReadOnly="true" ViewStateMode="Enabled">
    <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" >
    <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" ></form>

    When i try to get value like string AA = TextBox1.Text; It just returns empty.......

    ASP.NET tools help javascript database com

  • authenticate particular page in a directory to particular user or role
    A Asif Rehman

    Hi, I'm using ASP.NET administrative tool to configure security. I want to authenticate page-by-page not directory by directory On the left side in (MANAGE ACCESS RULES), it only shows directories, not pages. How to select particular page and then authenticate in WAT. If not, then what is the alternative. Regards Asif Rehman

    ASP.NET csharp asp-net security tutorial question

  • [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
    A Asif Rehman

    I've developed an app that uses database on pc3 computer. my computer is pc1. My app connects fine with pc3 db from my computer (pc1) though I don't have iis installed. But when I put app on pc2 with iis installed. and try to access it like. (http://192.168.1.3/trackweb/ where trackweb is virtual directory assigned to it. It does not connect with pc3 database and gives above mentioned error. Some of the options I've tried. 1. turn firewall off. allow http port through firewall. 2. change connection string in a different ways. last one I tried.

    Provider=sqloledb;Data Source=192.168.1.5;Initial Catalog=SpyTrack;User ID=sa;Password=psw;

    3. install asp.net on pc3. 4. add local policy, and permit all ip traffic/ all icmp traffice on pc3. but nothing works. Hope someones there to help me. Regrads Asif Rehman

    ASP.NET database help csharp asp-net sql-server

  • asp.net security > access rules apply to whole folder rather than single form
    A Asif Rehman

    can you clarify the issue in more details? Are you using form authentication?If so you can allow user to access a file under secured folder specifying the role. I'm using Form authentication using builtin AWT (security tool). I want to give access to different users under single folder. e.g. Folder A -- file1.aspx allowed to userA only -- file2.aspx allowed to userA,B only -- file3.aspx allowed to userC only Now builtin tool allow folder-based authorization. I don't want to move every file to separate folder as in future authorization may change. How can I put authorization form by form using built-in tool. If its not possible, then how to do it manually or programmatically. Hope I've clarified my point. Regards Asif Rehman

    ASP.NET csharp asp-net security tutorial workspace

  • asp.net security > access rules apply to whole folder rather than single form
    A Asif Rehman

    I need to allow access to particular users for some forms lying in the same folder. I don't know how to do it using builtin ASP.NET Security setup. because new access rule is showing only folder not files (Forms.aspx). Regrads Asif Rehman

    ASP.NET csharp asp-net security tutorial workspace

  • Export data to Excel problem
    A Asif Rehman

    Following code does not handle columns that start with +. for example, '+923339933886' is not rendered well(some kind of charmap characters shown).

        HtmlForm form = new HtmlForm();
        string attachment = "attachment; filename=Employee.xls";
        Response.ClearContent();
        Response.AddHeader("content-disposition", attachment);
        Response.ContentType = "application/ms-excel";
        StringWriter stw = new StringWriter();
        HtmlTextWriter htextw = new HtmlTextWriter(stw);
        form.Controls.Add(gvEmployee);
        this.Controls.Add(form);
        form.RenderControl(htextw);
        Response.Write(stw.ToString());
        Response.End();
    

    Please let me know what is the changes required in this code.

    ASP.NET help tutorial question

  • Export DataGrid to Excel Problem with Code.
    A Asif Rehman

    Following code does not handle columns that start with + e.g. '+923339933886' is not rendered well(some kind of charmap characters shown). here is what it shows.(꺻퍎)

        HtmlForm form = new HtmlForm();
        string attachment = "attachment; filename=Employee.xls";
        Response.ClearContent();
        Response.AddHeader("content-disposition", attachment);
        Response.ContentType = "application/ms-excel";
        StringWriter stw = new StringWriter();
        HtmlTextWriter htextw = new HtmlTextWriter(stw);
        form.Controls.Add(gvEmployee);
        this.Controls.Add(form);
        form.RenderControl(htextw);
        Response.Write(stw.ToString());
        Response.End();
    

    Please let me know what is the changes required in this code.

    ASP.NET help question

  • Showing content pages without MasterPage in DesignView.
    A Asif Rehman

    Because of Masterpage's heaving occupying space, it is difficult to design content pages. Is it possible to switch content page w/t or without MasterPage in DesignView.

    ASP.NET design

  • How to ignore textbox control focus while using TAB.
    A Asif Rehman

    I want to ignore a TextBox Control from getting focus() while pressing TAB key. I know there's no property Tabstop for TextBox control in asp.net. I want to know how to do it in JavaScript. Regards Asif Rehman

    ASP.NET csharp javascript asp-net tutorial

  • Image not shown in masterpage when content page is in sub-folder.
    A Asif Rehman

    Thanks for your little but effective help. How to format server control element in css file. normally we can format html controls like div { ... } but how to format asp:label & other controls. should we write it as asp:label { ... } Regards Asif Rehman

    ASP.NET tutorial question

  • Image not shown in masterpage when content page is in sub-folder.
    A Asif Rehman

    in MasterPage

    if content page is in root folder, It works fine. but for sub-folders, pages not showing image. How to make a Master page standard for root and sub-folder? Regards Asif Rehman

    ASP.NET tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups