User Profile

Collapse

Profile Sidebar

Collapse
aamersaeed2368
aamersaeed2368
Last Activity: Dec 6 '16, 03:10 PM
Joined: Dec 2 '11
Location: Islamabad
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to call functions written in controller on button click in angularjs

    Hi I am new to angularjs and stuck in a problem. please see the attached screen shot I have a dropdown in which there is an ok button and on click of this button I want to call functions that are written in different controller i.e controller name : GetChargesContr oller or GetPaymentsCont roller
    Code:
    app.controller("FillDropDownController",function($scope,GetService,$rootScope){
    
    $rootScope.loading = true;
    ...
    See more | Go to post

  • aamersaeed2368
    started a topic how to filter double url in iis7
    in IIS

    how to filter double url in iis7

    Today i typed my website url in the browser like i am giving example http://www.listing.com/ourcompany.aspx/images/ourcompany.aspx and it gives no error and return ourcompnay.aspx page in my browser i was very shocked i thought it should give me a 404 error that page not found........th en i open some other websites and try their url's to be double for example http://www.sikkerhet.c om/ourcompany.aspx/test/ourcompany.aspx and http://www.sikkerhet.c om/ourcompany.aspx/images/ourcompany.aspx...
    See more | Go to post

  • Hi brother this is very easy task using jquery. Here is the code:
    Code:
    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head runat="server">
    
        <title></title>
    
        <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"
    ...
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    replied to DateTime Exception
    Dear Adriancs,

    Please see the below mentioned code actually it is a function which will recursively get the list of files from FTP server.

    Code:
     
    struct DirectoryItem
        {
            public Uri BaseUri;
     
            public string AbsolutePath
            {
                get
                {
                    return string.Format("{0}/{1}", BaseUri, Name);
                }
    ...
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    started a topic DateTime Exception

    DateTime Exception

    Dear All,

    The below mentioned line throw an exception that "The string was not recognized as a valid DateTime. There is an unknown word starting at index 0."

    Code:
     DateTime dateTime = DateTime.Parse(date);
    Actually this error is shown in my home pc where i am using window xp and visual 2010........... .........howeve r in my university lab on window 7 it works fine by passing second parameter...
    See more | Go to post

  • How to check that directory exist on ftp server or not?

    Dear All,

    I want to write a function of bool type to check whether a directory exist on ftp server or not..........I' ve googled it so much but couldn't get the solution......C urrently i am using
    Code:
    WebRequestMethods.Ftp.GetDateTimestamp;
    but this function return false in both cases either directory exist or not............ ..And another function
    Code:
    WebRequestMethods.Ftp.PrintWorkingDirectory;
    which return true...
    See more | Go to post

  • aamersaeed2368
    started a topic Make Directory on Ftp!

    Make Directory on Ftp!

    Hi All,

    I am writing a code to make directory on ftp using c# and everything seems right.....But i am getting and error "The remote server returned an error: (550) File unavailable (e.g., file not found, no access)." and i don't know why. I am pasting the code here can anyone help????????

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    ...
    See more | Go to post

  • aamersaeed2368
    replied to write and append xml file
    Hi,

    Yes you are right that XmlDocument does allow nested tags but you see in my example that closing tags i.e </Folder> are at the end(4 of them). And if i use XmlElement to create new element then it will close like this <Folder>ABC</Folder> i.e right after the text it will close but i want them to be close at the end. Like the tag which is open first will be close at the end.Hope you understand the scenario....
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    replied to write and append xml file
    Hi,

    First of all thanks to you that you give time to my problem from your busy schedule....Sec ondly i do acknowledge that nobody has much time to devote here so one more time i am thankful to you.
    Now
    1.The problem using XmlDocument class is that it does not give me that result which i am getting from XmlTextWriter class.Because the copy code copies the nested directories so i want to write the file tags to be nested...
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    replied to write and append xml file
    The information i want to write is the record of folders and files which are copied from source to destination.The problem is that how can i append the xml for new entry because when the first time program will execute it will create xml file and the next time we need to append it.???????????? ?/

    This is the code for XML class:

    Code:
     class ClassXml
        {
            
            public static XmlTextWriter textWriter;
    ...
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    replied to Delegates and pointers in C#
    Hi,

    Delegate in c# are like pointers in c++ which take the memory address of the location and as a result the execution of the functions is fast.


    thanks,
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    replied to write and append xml file
    Hi Paul,

    There are two classes in the code one with name "CopyDir" to copy files from source to target directory and i've added another class with name "ClassXml" which write the xml file........Act ually i am sending two objects from "CopyDir" to "ClassXml".

    can i post the whole code here??????????? ??

    Thanks
    See more | Go to post

    Leave a comment:


  • aamersaeed2368
    started a topic write and append xml file

    write and append xml file

    Hi,

    I have a code which copy nested folders and files from one directory to another and now i want to write xml file for that and when a new folder or file is copied it's entry will be appended in the existing xml file........I have worked on it by using "XmlTextWri ter" class but the problem is that how can i append it and i've also tried "XmlDocumen t" class with that i am unable to even write the xml correctly...
    See more | Go to post
No activity results to display
Show More
Working...