In the ASP.NET Master Page (.Master) there is a text-box that should filter the content in a website. To do it I would like to call the function GetMessageLogs in the .aspx.cs file.
Site.Master:
<button onclick="containCatText()" class="catbtn">Category</button>
<div id="myDropdownCat" class="catdown-content">
<input type="text" placeholder="Search.." id="myCat" onkeyup="filterFunction()">
</div>
<script>
var myCat = document.getElementById("myCat").value;
</script>
Feeds.aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Feeds.aspx.cs" Inherits="ReportTool.Users.Feeds" %>
Feeds.aspx.cs:
namespace ReportTool.Users
{
public partial class Feeds : System.Web.UI.Page
{
Inov.ReportTool rt = new Inov.ReportTool();
MessageLogs = rt.GetMessageLogs(null, Server.MapPath("/ReportTool/Photo") + "\\", Server.MapPath("/ReportTool/Video") + "\\", new DateTime(2016, 09, 15),DateTime.Now, "%J%","Tr");
My question is simply how do I replace the "%J%" in the Feeds.aspx.cs from the variable myCat from Site.Maste?