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
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASCX user control help!!

ASCX user control help!!

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Armandt__
    wrote on last edited by
    #1

    Please could someone help me I want to create a popup window. Now i've created the window in a ascx file. Now what i would like to do is make the control work like other asp controls for e.g.

                ......
    

    what i would like to to is add whatever into the content space. I dont realy know alot about creating my own controls but is this posible??

    D 1 Reply Last reply
    0
    • A Armandt__

      Please could someone help me I want to create a popup window. Now i've created the window in a ascx file. Now what i would like to do is make the control work like other asp controls for e.g.

                  ......
      

      what i would like to to is add whatever into the content space. I dont realy know alot about creating my own controls but is this posible??

      D Offline
      D Offline
      dotnetmember
      wrote on last edited by
      #2

      Yes, u can create ur own user control and use that in ur aspx page like other asp controls. But u have to register ur control (either in each page or in web config). u can use <%@ Register TagName="tagname" TagPrefix="tagprefix" Src="~/usercntrl.ascx" %> in top of the aspx page and use ur user control Hope it helps u :)

      A 1 Reply Last reply
      0
      • D dotnetmember

        Yes, u can create ur own user control and use that in ur aspx page like other asp controls. But u have to register ur control (either in each page or in web config). u can use <%@ Register TagName="tagname" TagPrefix="tagprefix" Src="~/usercntrl.ascx" %> in top of the aspx page and use ur user control Hope it helps u :)

        A Offline
        A Offline
        Armandt__
        wrote on last edited by
        #3

        Thanks for the reply I know how to create and use the ascx controls but i want to add extra functionality to it let me try and explain it in another way. I want to make like for e.g. the asp panel it would be used like this

        now what i want to do is like the same way you use the panel to place something inside , i want to use my custom control just again , its a popup window and i would like to use some sort of place holder where i can place stuff in for e.g. i would want to use the window for error messges or to put in a few textboxes and labels. like this

        C 1 Reply Last reply
        0
        • A Armandt__

          Thanks for the reply I know how to create and use the ascx controls but i want to add extra functionality to it let me try and explain it in another way. I want to make like for e.g. the asp panel it would be used like this

          now what i want to do is like the same way you use the panel to place something inside , i want to use my custom control just again , its a popup window and i would like to use some sort of place holder where i can place stuff in for e.g. i would want to use the window for error messges or to put in a few textboxes and labels. like this

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          If it's a popup, it's a seperate window, not a control.

          Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

          A 1 Reply Last reply
          0
          • C Christian Graus

            If it's a popup, it's a seperate window, not a control.

            Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

            A Offline
            A Offline
            Armandt__
            wrote on last edited by
            #5

            sory about the way my posts are looking , they dont display right on my side, anyways , i know its a different window , i want to use it with the ajaxmodalpopup extender , the way i want to create the control must be like a template of some sorts , I'm putting in a label header which can be changed with the control's properties and then in the middle i want a place holder where i can place buttons or tables and stuff, like this <tst:mycontrol runat ="server" id = "tst1" HeaderText = "Error">       <content>             ....... (maybe table with message in and a button to click ok)       </content> </tst:mycontrol>$

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

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