ascx... this time the real problem !

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: ascx... this time the real problem !

    You can't use a user control from another domain. If you have a control that
    needs to be used across domains you'll have to create a server control
    instead.

    Here's a good article:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwebformscontroldevelopmentbasics.asp[/url]

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Quentin" <Quentin.Casasnovas@wanadoo.Fr> wrote in message
    news:%23U7SVsFWDHA.2360@TK2MSFTNGP12.phx.gbl...
    > Hi,
    >
    > Ok first i'm sorry it's now the third or fourth message talking about my
    > ascx problem... I got an error when i load the *.ascx control :
    >
    > MyUserControl.LoadControl("file.ascx")
    >
    > The error (translated by me... so i hope you'll understand) is : "The
    > virtual path "/file.ascx" corresponds with an other application, that is
    not
    > authorised..." (in french if my english is not understood : "Le chemin
    > d'accès virtuel '/test.ascx' correspond à une autre application, ce qui
    > n'est pas autorisé."
    >
    > Can anybody help me pleaaase ? Un gros énooorme merci d'avance
    >
    >

    S. Justin Gengo Guest

  2. Similar Questions and Discussions

    1. Real-time streaming problem (mic)
      Hi all, We are now developping an online communication platform and we're having difficulties with real-time sound stream. Let me explain: if for...
    2. 3D real Time
      I have this problem to solve: I want to interconnect a control system with a computer to display a 3D image of a room in a screen. The control...
    3. Real Time 3D for TV
      Hi. I was wondering if Shockwave3D is suitable for interactive TV. The project consists of a TV show where people can interact through sms. The...
    4. Real-Time RSS Feed
      I have an RSS feed written in ColdFusion that is currently scheduled (in CF Administrator) to update every 3 hours. Instead, I plan to have it...
    5. Real time converted to Unix time
      I have seen many request to go from unix to GM time, but I have not seen the reverse. Anyone know what the formula would be to convert a US...
  3. #2

    Default Re: ascx... this time the real problem !

    Thank you so much for your response ! Should i make a server control or
    should i make my class in the same project as my ascx user controls ?

    thank you again for your response ! it helps me a lot !

    "S. Justin Gengo" <sjgengo@aboutfortunate.com> a écrit dans le message de
    news: [email]uIJW0rfWDHA.1736@TK2MSFTNGP10.phx.gbl[/email]...
    > You can't use a user control from another domain. If you have a control
    that
    > needs to be used across domains you'll have to create a server control
    > instead.
    >
    > Here's a good article:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm[/url]
    l/cpconwebformscontroldevelopmentbasics.asp
    >
    > Sincerely,
    >
    > --
    > S. Justin Gengo, MCP
    > Web Developer
    >
    > Free code library at:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Quentin" <Quentin.Casasnovas@wanadoo.Fr> wrote in message
    > news:%23U7SVsFWDHA.2360@TK2MSFTNGP12.phx.gbl...
    > > Hi,
    > >
    > > Ok first i'm sorry it's now the third or fourth message talking about my
    > > ascx problem... I got an error when i load the *.ascx control :
    > >
    > > MyUserControl.LoadControl("file.ascx")
    > >
    > > The error (translated by me... so i hope you'll understand) is : "The
    > > virtual path "/file.ascx" corresponds with an other application, that is
    > not
    > > authorised..." (in french if my english is not understood : "Le chemin
    > > d'accès virtuel '/test.ascx' correspond à une autre application, ce qui
    > > n'est pas autorisé."
    > >
    > > Can anybody help me pleaaase ? Un gros énooorme merci d'avance
    > >
    > >
    >
    >

    Quentin Guest

  4. #3

    Default Re: ascx... this time the real problem !

    Quentin,

    It all depends on how often and where you are going to use your code. If you
    are only going to use it on a single web site (You've already said you
    aren't.) then I would just make a user control. If you are going to reuse
    your control across two or more sites make a server control.

    I hope this helps.

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Quentin" <Quentin.Casasnovas@wanadoo.Fr> wrote in message
    news:u%2306z4gWDHA.2024@TK2MSFTNGP12.phx.gbl...
    > Thank you so much for your response ! Should i make a server control or
    > should i make my class in the same project as my ascx user controls ?
    >
    > thank you again for your response ! it helps me a lot !
    >
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> a écrit dans le message de
    > news: [email]uIJW0rfWDHA.1736@TK2MSFTNGP10.phx.gbl[/email]...
    > > You can't use a user control from another domain. If you have a control
    > that
    > > needs to be used across domains you'll have to create a server control
    > > instead.
    > >
    > > Here's a good article:
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm[/url]
    > l/cpconwebformscontroldevelopmentbasics.asp
    > >
    > > Sincerely,
    > >
    > > --
    > > S. Justin Gengo, MCP
    > > Web Developer
    > >
    > > Free code library at:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Quentin" <Quentin.Casasnovas@wanadoo.Fr> wrote in message
    > > news:%23U7SVsFWDHA.2360@TK2MSFTNGP12.phx.gbl...
    > > > Hi,
    > > >
    > > > Ok first i'm sorry it's now the third or fourth message talking about
    my
    > > > ascx problem... I got an error when i load the *.ascx control :
    > > >
    > > > MyUserControl.LoadControl("file.ascx")
    > > >
    > > > The error (translated by me... so i hope you'll understand) is : "The
    > > > virtual path "/file.ascx" corresponds with an other application, that
    is
    > > not
    > > > authorised..." (in french if my english is not understood : "Le chemin
    > > > d'accès virtuel '/test.ascx' correspond à une autre application, ce
    qui
    > > > n'est pas autorisé."
    > > >
    > > > Can anybody help me pleaaase ? Un gros énooorme merci d'avance
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139