Compatibility with .asp code

Last post 08-17-2004, 2:01 PM by goat. 4 replies.
Sort Posts: Previous Next
  •  08-17-2004, 12:42 PM 1522

    Compatibility with .asp code

    I am wanted to add the gallery thumbnails within a asp page that has asp code in it. Do I need to convert this asp code to .net and if so, where should it go. If I put code anywhere I get an error. If I put all my code in a "Sub page_load(Source as Object, E as EventArgs)" then it works. Well sorta. Otherwise it doesn't work at all.

     
    Also, is there anyway to define the link for Fullscreen. I would like to be able to load it into a new window as full screen on these pages will still show surrounding page info.
     
    Thanks.
     
    By the way, great product, keep up the good work.
  •  08-17-2004, 1:24 PM 1525 in reply to 1522

    Re: Compatibility with .asp code

    goat,

     
    Thanks for the nice words.
     
    I am afraid you need to convert you asp code to asp.net.
     
    DotNetGallery is an ASP.NET server control which only works for the asp.net environment.
     
    >>Also, is there anyway to define the link for Fullscreen. I would like to be able to load it into a new window as full screen on these >>pages will still show surrounding page info.
     
    That makes good sense.
     
    Right now DotNetGallery only open the same windows. We will implement this feature in the future release.
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-17-2004, 1:26 PM 1526 in reply to 1525

    Re: Compatibility with .asp code

    Thanks

     
    Also, how can I define to show the batch build and upload options ONLY after a certain session variable is set. A simple if then else doesnt seem to work.
     
    Thoughts?
     
    Thanks
  •  08-17-2004, 1:45 PM 1527 in reply to 1526

    Re: Compatibility with .asp code

     
    DotNetGallery is highly Customizable.
     
    Please use the following code as a template:
     
    void Page_Load(object sender, System.EventArgs e)
    {
        ...  
        AccessLevel accesslevel = ...//get from somewhere
     
        switch (accesslevel)
        {
             default:
             case AccessLevel.visitors:
                 gallery1.ShowBatchBuild = false;
                 break;
             case AccessLevel.moderators:
                 gallery1.ShowBatchBuild = true;
                 break;
             case AccessLevel.admin:
                gallery1.ShowBatchBuild = true;
                break;  
         }  
    }

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-17-2004, 2:01 PM 1528 in reply to 1527

    Re: Compatibility with .asp code

    How silly of me.

    I am trying to limit things in the page itself when I can simply call the properties themselves.
     
     
    Thanks. that should work great
View as RSS news feed in XML