%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% If request("txtMediaSearch")<> "" then strSQL="select * from wcbol.tbl_article where title like '%"& request("txtMediaSearch") &"%' or subtitle like '%"& request("txtMediaSearch") &"%' or content like '%"& request("txtMediaSearch") &"%' order by dateposted desc" Elseif request("selCategory")="" then If Session("mainid")="" then Session("mainid")=request("mainid") End If strSQL="SELECT distinct wcbol.tbl_Article.id, wcbol.tbl_Article.title, wcbol.tbl_Article.dateposted FROM wcbol.tbl_Article LEFT OUTER JOIN wcbol.tbl_ArticleCat ON wcbol.tbl_Article.ID = wcbol.tbl_ArticleCat.Article_ID RIGHT OUTER JOIN wcbol.tbl_Category ON wcbol.tbl_ArticleCat.Category_ID = wcbol.tbl_Category.ID where Maincategory="& Session("mainid") &" order by dateposted desc" Else If Session("category")="" then Session("category")=request("selcategory") End If strSQL="SELECT distinct wcbol.tbl_Article.id, wcbol.tbl_Article.title, wcbol.tbl_Article.dateposted FROM wcbol.tbl_Article LEFT OUTER JOIN wcbol.tbl_ArticleCat ON wcbol.tbl_Article.ID = wcbol.tbl_ArticleCat.Article_ID RIGHT OUTER JOIN wcbol.tbl_Category ON wcbol.tbl_ArticleCat.Category_ID = wcbol.tbl_Category.ID where wcbol.tbl_ArticleCat.category_ID="& Session("category") &" order by dateposted desc" End if response.Write(strSQL) Set rsArticle = Server.CreateObject("ADODB.Recordset") rsArticle.ActiveConnection = dsnWCBOL rsArticle.Source =strSQL rsArticle.Pagesize=10 rsArticle.Cachesize=10 rsArticle.CursorType = 0 rsArticle.CursorLocation = 3 rsArticle.LockType = 1 rsArticle.Open() Set rscategory = Server.CreateObject("ADODB.Recordset") rscategory.ActiveConnection = dsnWCBOL rscategory.Source ="select * from wcbol.tbl_category where maincategory="& request("mainid") &" order by category" rscategory.CursorType = 0 rscategory.CursorLocation = 2 rscategory.LockType = 1 rscategory.Open() If not rsArticle.bof and not rsArticle.eof then If Len(Request("pagenum")) = 0 Then rsArticle.AbsolutePage = 1 Else If CInt(Request("pagenum")) <= rsArticle.PageCount Then rsArticle.AbsolutePage = Request("pagenum") Else rsArticle.AbsolutePage = 1 End If End If Dim abspage, pagecnt abspage = rsArticle.AbsolutePage pagecnt = rsArticle.PageCount End if %>
District | Legislator | Committee | Topic
There are currently no articles to display.
<%Else %>| Date Posted | Headline |
| <% =rsArticle("dateposted") %> | "> <% =rsArticle("title") %> | <% 'Next Response.Write "
<% ' Now showing first, next, back, last buttons Response.Write "


Use the clickable map* below to help identify
your district or click here to
enter your address
*Each # on the map represents 1 of the county's 17 legislative districts: |