Hi VanAwful,
Please try this way
1. Open file D:\2005\Gallery\CuteSoft_Client\Gallery\Layout\Classic\Code.js
2. Find section below
var titltText=photo.Title;
3. Change to
var titltText=photo.Title;
if(status=="false")
{
titltText = "";
}
4. Text the example below
- <%@ Page Language="c#" AutoEventWireup="false" %>
-
- <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %>
-
- <script runat="server">
- public string Status = "true";
-
- protected void btnChangeStatus_Click(object sender, EventArgs e)
- {
- Status = "false";
- }
- </script>
-
- <script>
- var status="<%= Status %>";
- </script>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>Classic Layout - DotNetGallery</title>
- <link href="Sample.css" type="text/css" rel="stylesheet" />
- </head>
- <body>
- <form id="form1" runat="server">
- <asp:Button ID="btnChangeStatus" runat="server" Text="Change Status" OnClick="btnChangeStatus_Click" />
- <DotNetGallery:GalleryBrowser runat="server" ID="GalleryBrowser1" Width="780" Height="400" />
- </form>
- </body>
- </html>
5. Now you can hide or show the title by string "Status" at codebehind. So you can change the this value according to gallery folder name too.
Regards,
Ken