Bindhu, on 10 February 2012 - 03:45 AM, said:
Hi,
Thank you for the response.
Can you please try rendering the chart in debug mode and post us the debug information, along with the JavaScript errors that you can see ?
Do I still have to have the flash player settings point to a local copy of the file because that sounds unsafe.
>> Since Flash Player's Global Security implementation blocks JavaScript to interact with charts (Flash charts) when you are running the the web page/application with charts from local file system, you are required to add the folder containing the chart SWF files to Flash Player's Trusted Zone.
If it is feasible for you, please share the stripped down project so that we can test it.
Also, please share the live URL, so that we can test it and look at the JavaScript errors.
Awaiting your response !
How do you do render the chart in debug mode and I incorrectly posted earlier about the Javascript errors because I do not see any. I changed the flash player settings but still do not see the chart from my desktop when running the web app. I cannot share the URL since it is closed network. IUnable to attach file so I will paste some code here:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TwitterPortal.aspx.vb" Inherits="Admin.TwitterPortal" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat = "server"/>
<title>Blog Search Interface </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="Microsoft Visual Studio, see http://msdn.microsoft.com/vstudio/" />
<meta name="Keywords" content="My MetaSearchWebEngine" />
<meta name="Description" content="" />
<meta name="copyright" content="Copyright (c) 2010 My Company. All rights reserved." />
<script type="text/javascript" language="javascript" src="/Scripts/FusionCharts.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.js"></script>
<script language="javascript">
function pageLoad() {
var tabContainer = $find('tabContainer');
var tabs = tabContainer.get_tabs();
for (var i = 0; i < tabs.length; i++) {
var tab = tabs[i];
$addHandler(
tab.get_headerTab(), 'mouseover', Function.createDelegate(tab, function () {
tabContainer.set_activeTab(this);
}
));
}
}
</script>
<style type="text/css">
#form1
{
height: 859px;
}
.highlighted
{}
.highlighted
{}
.ajax_tab_header
{
text-align:center;
}
</style>
</head>
<body bgcolor="White" style="height: 835px; width: 1286px;">
<form id="form1" runat ="server" >
<div>
<div style="background-image: url('/AdminTool/Images/pattern_01.gif'); height: 20px;">
</div>
<div style="background-image: none; background-color: #669999">
<div style="background-image: none; background-color: #808080; height: 20px;">
<asp:Label ID="lblWelcome" runat="server" Font-Bold="True" ForeColor="White" Text=" WELCOME"></asp:Label>
<asp:LoginName ID="LoginName1" runat="server" Font-Names="Verdana"
Font-Size="Small" />
&
nbsp;
&
nbsp;
&
nbsp;
&
nbsp;
&
nbsp;
&
nbsp;
<asp:LoginStatus ID="LoginStatus2" runat="server" Font-Names="Verdana"
LogoutAction="RedirectToLoginPage" LogoutText="Click To Logout"
Font-Italic="False" Font-Size="Small" />
<br />
<br />
<br />
</div>
</div>
<div style="height: 52px; background-color: #FFFFFF;">
<br />
<asp:Label ID="Label2" runat="server" BackColor="White" Font-Names="Arial Narrow"
Font-Size="XX-Large" ForeColor="Maroon" Text="GNIPAdmin"
Font-Bold="True"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Names="Calibri" Text="�"></asp:Label>
<div style="background-color: #C0C0C0; height: 39px; width: 1285px;">
<asp:Menu ID="Menu1" runat="server" BackColor="Gray"
DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Small"
ForeColor="Gray" Height="18px" Orientation="Horizontal"
StaticSubMenuIndent="10px" Width="1282px" EnableTheming="True"
Font-Bold="True">
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
Font-Bold="True" Font-Names="Verdana" Font-Size="Small" ForeColor="White" />
<DataBindings>
<asp:MenuItemBinding />
</DataBindings>
<DynamicHoverStyle BackColor="#FFFFCC" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle Font-Bold="False" Font-Size="Small" />
<Items>
<asp:MenuItem NavigateUrl="~/default.aspx" Text="HOME" Value="HOME">
</asp:MenuItem>
<asp:MenuItem Text="TWITTER"
Value="BLOG SEARCH" NavigateUrl="~/TwitterPortal.aspx">
</asp:MenuItem>
<asp:MenuItem Text="FACEBOOK" Value="JOB QUEUE"
NavigateUrl="~/FacebookPortal.aspx">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="http://.../reportserver" Text="REALTIME REPORTS"
Value="REALTIME REPORTS"></asp:MenuItem>
</Items>
</asp:Menu>
</div>
</div>
</div>
<div>
<br />
<br />
<br />
<asp:ScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ScriptManager>
<br />
<ajaxToolkit:TabContainer ID="tabContainer" runat="Server" ActiveTabIndex="5"
Width="981px" BackColor="White">
<ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="GInstance1">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
</div>
<asp:Label ID="Label33" runat="server" Font-Bold="True" Font-Size="Large"
Text=" .. Instance"></asp:Label>
<br />
<br />
<asp:Table ID="Table1A" runat="server" Width="929px">
<asp:TableRow ID="TableRow15" runat="server">
<asp:TableCell ID="TableCell29" runat="server">
<asp:Table ID="Table1" runat="server" GridLines="Both" Height="135px"
Width="262px" BorderStyle="Solid" CssClass="ajax_tab_header"
BackColor="Silver">
<asp:TableRow ID="TableRow1" runat="server">
<asp:TableCell ID="TableCell1" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Twitter Feed</asp:TableCell>
<asp:TableCell ID="TableCell2" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Rules Count</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow2" runat="server">
<asp:TableCell ID="TableCell3" runat="server">Keyword Search</asp:TableCell>
<asp:TableCell ID="TableCell4" runat="server" Font-Names="Verdana"></asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow3" runat="server" BackColor="Gray">
<asp:TableCell ID="TableCell5" runat="server">Stream Track</asp:TableCell>
<asp:TableCell ID="TableCell6" runat="server"></asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow4" runat="server">
<asp:TableCell ID="TableCell7" runat="server">Stream Follow</asp:TableCell>
<asp:TableCell ID="TableCell8" runat="server"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell ID="TableCell30" runat="server">
 
<asp:Panel ID="Panel13" runat="server">
<asp:Literal ID="Literal1" runat="server" OnInit="UploadChart">
</asp:Literal>
</asp:Panel>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<br />
<asp:Panel ID="Panel11" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label4" runat="server" BorderStyle="None"
Text="Add Terms to Feeds" CssClass="ajax_tab_header" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label5" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server" Height="42px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Fan Page Search</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label6" runat="server" Text="Add File"></asp:Label>
<asp:FileUpload ID="FileUpload1" runat="server" />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
<br />
<asp:Panel ID="Panel1" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label7" runat="server" BorderStyle="None"
Text="Get List of Current Terms" CssClass="static highlighted"
Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label8" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList2" runat="server" Height="46px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Stream Follow</asp:ListItem>
<asp:ListItem>Stream Track</asp:ListItem>
</asp:DropDownList>
<
br />
<br />
<br />
&
nbsp;
<asp:Button ID="Button1" runat="server" Height="35px" style="margin-left: 59px"
Text="Fetch" Width="154px" />
</asp:Panel>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="GInstance2">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
</div>
<asp:Label ID="Label18" runat="server" Font-Bold="True" Font-Size="Large"
Text=" ... Instance"></asp:Label>
<br />
<br />
<asp:Table ID="Table7" runat="server" Width="929px">
<asp:TableRow ID="TableRow16" runat="server">
<asp:TableCell ID="TableCell32" runat="server">
<asp:Table ID="Table2" runat="server" GridLines="Both" Height="105px"
Width="262px" BorderStyle="Solid" BackColor="Silver">
<asp:TableRow ID="TableRow5" runat="server">
<asp:TableCell ID="TableCell9" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Twitter Feed</asp:TableCell>
<asp:TableCell ID="TableCell10" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Rules Count</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow6" runat="server">
<asp:TableCell ID="TableCell11" runat="server">Keyword Search</asp:TableCell>
<asp:TableCell ID="TableCell12" runat="server" Font-Names="Verdana"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell ID="TableCell31" runat="server">
 
<asp:Panel ID="Panel14" runat="server">
</asp:Panel>
<asp:Literal ID="Literal2" runat="server"></asp:Literal>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<br />
<br />
<asp:Panel ID="Panel2" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label1" runat="server" BorderStyle="None"
Text="Add Terms to Feeds" CssClass="ajax_tab_header" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label9" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList3" runat="server" Height="42px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Fan Page Search</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label10" runat="server" Text="Add File"></asp:Label>
<asp:FileUpload ID="FileUpload2" runat="server" />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
<br />
<asp:Panel ID="Panel3" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label11" runat="server" BorderStyle="None"
Text="Get List of Current Terms" CssClass="static highlighted"
Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label12" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList4" runat="server" Height="46px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Stream Follow</asp:ListItem>
<asp:ListItem>Stream Track</asp:ListItem>
</asp:DropDownList>
<
br />
<br />
<br />
&
nbsp;
<asp:Button ID="Button2" runat="server" Height="35px" style="margin-left: 59px"
Text="Fetch" Width="154px" />
</asp:Panel>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel4" runat="server" HeaderText="GInstance3">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
</div>
<asp:Label ID="Label19" runat="server" Font-Bold="True" Font-Size="Large"
Text=" ... Instance"></asp:Label>
<br />
<br />
<asp:Table ID="Table8" runat="server" Width="929px">
<asp:TableRow ID="TableRow17" runat="server">
<asp:TableCell ID="TableCell33" runat="server">
<asp:Table ID="Table3" runat="server" GridLines="Both" Height="105px"
Width="262px" BorderStyle="Solid" BackColor="Silver">
<asp:TableRow ID="TableRow7" runat="server">
<asp:TableCell ID="TableCell13" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Twitter Feed</asp:TableCell>
<asp:TableCell ID="TableCell14" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Rules Count</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow8" runat="server">
<asp:TableCell ID="TableCell15" runat="server">Keyword Search</asp:TableCell>
<asp:TableCell ID="TableCell16" runat="server" Font-Names="Verdana"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell ID="TableCell34" runat="server">
 
<asp:Panel ID="Panel15" runat="server">
</asp:Panel>
<asp:Literal ID="Literal3" runat="server"></asp:Literal>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<br />
<br />
<asp:Panel ID="Panel4" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label13" runat="server" BorderStyle="None"
Text="Add Terms to Feeds" CssClass="ajax_tab_header" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label14" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList5" runat="server" Height="42px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Fan Page Search</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label15" runat="server" Text="Add File"></asp:Label>
<asp:FileUpload ID="FileUpload3" runat="server" />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
<br />
<asp:Panel ID="Panel5" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label16" runat="server" BorderStyle="None"
Text="Get List of Current Terms" CssClass="static highlighted"
Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label17" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList6" runat="server" Height="46px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Stream Follow</asp:ListItem>
<asp:ListItem>Stream Track</asp:ListItem>
</asp:DropDownList>
<
br />
<br />
<br />
&
nbsp;
<asp:Button ID="Button3" runat="server" Height="35px" style="margin-left: 59px"
Text="Fetch" Width="154px" />
</asp:Panel>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel3" runat="server" HeaderText="GInstance4">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
</div>
<asp:Label ID="Label20" runat="server" Font-Bold="True" Font-Size="Large"
Text=" .... Instance"></asp:Label>
<br />
<br />
<asp:Table ID="Table9" runat="server" Width="929px">
<asp:TableRow ID="TableRow18" runat="server">
<asp:TableCell ID="TableCell35" runat="server">
<asp:Table ID="Table4" runat="server" GridLines="Both" Height="105px"
Width="262px" BorderStyle="Solid" BackColor="Silver">
<asp:TableRow ID="TableRow9" runat="server">
<asp:TableCell ID="TableCell17" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Twitter Feed</asp:TableCell>
<asp:TableCell ID="TableCell18" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Rules Count</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow10" runat="server">
<asp:TableCell ID="TableCell19" runat="server">Keyword Search</asp:TableCell>
<asp:TableCell ID="TableCell20" runat="server" Font-Names="Verdana"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell ID="TableCell36" runat="server">
 
<asp:Panel ID="Panel16" runat="server">
</asp:Panel>
<asp:Literal ID="Literal4" runat="server"></asp:Literal>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<br />
<br />
<asp:Panel ID="Panel6" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label21" runat="server" BorderStyle="None"
Text="Add Terms to Feeds" CssClass="ajax_tab_header" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label22" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList7" runat="server" Height="42px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Fan Page Search</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label23" runat="server" Text="Add File"></asp:Label>
<asp:FileUpload ID="FileUpload4" runat="server" />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
<br />
<asp:Panel ID="Panel7" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label24" runat="server" BorderStyle="None"
Text="Get List of Current Terms" CssClass="static highlighted"
Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label25" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList8" runat="server" Height="46px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Stream Follow</asp:ListItem>
<asp:ListItem>Stream Track</asp:ListItem>
</asp:DropDownList>
<
br />
<br />
<br />
&
nbsp;
<asp:Button ID="Button4" runat="server" Height="35px" style="margin-left: 59px"
Text="Fetch" Width="154px" />
</asp:Panel>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel5" runat="server" HeaderText="GInstance5">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel6" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
</div>
<asp:Label ID="Label26" runat="server" Font-Bold="True" Font-Size="Large"
Text=" .... Instance"></asp:Label>
<br />
<br />
<asp:Table ID="Table10" runat="server" Width="929px">
<asp:TableRow ID="TableRow19" runat="server">
<asp:TableCell ID="TableCell37" runat="server">
<asp:Table ID="Table5" runat="server" GridLines="Both" Height="105px"
Width="262px" BorderStyle="Solid" BackColor="Silver">
<asp:TableRow ID="TableRow11" runat="server">
<asp:TableCell ID="TableCell21" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Twitter Feed</asp:TableCell>
<asp:TableCell ID="TableCell22" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Rules Count</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow12" runat="server">
<asp:TableCell ID="TableCell23" runat="server">Keyword Search</asp:TableCell>
<asp:TableCell ID="TableCell24" runat="server" Font-Names="Verdana"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell ID="TableCell38" runat="server">
 
<asp:Panel ID="Panel17" runat="server">
</asp:Panel>
<asp:Literal ID="Literal5" runat="server"></asp:Literal>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<br />
<br />
<asp:Panel ID="Panel8" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label27" runat="server" BorderStyle="None"
Text="Add Terms to Feeds" CssClass="ajax_tab_header" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label28" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList9" runat="server" Height="42px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Fan Page Search</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label29" runat="server" Text="Add File"></asp:Label>
<asp:FileUpload ID="FileUpload5" runat="server" />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
<br />
<asp:Panel ID="Panel9" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label30" runat="server" BorderStyle="None"
Text="Get List of Current Terms" CssClass="static highlighted"
Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label31" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList10" runat="server" Height="46px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Stream Follow</asp:ListItem>
<asp:ListItem>Stream Track</asp:ListItem>
</asp:DropDownList>
<
br />
<br />
<br />
&
nbsp;
<asp:Button ID="Button5" runat="server" Height="35px" style="margin-left: 59px"
Text="Fetch" Width="154px" />
</asp:Panel>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="TabPanel6" runat="server" HeaderText="GInstance6">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div>
</div>
<asp:Label ID="Label32" runat="server" Font-Bold="True" Font-Size="Large"
Text=" .... Instance"></asp:Label>
<br />
<br />
<asp:Table ID="Table11" runat="server" Width="929px">
<asp:TableRow ID="TableRow20" runat="server">
<asp:TableCell ID="TableCell39" runat="server">
<asp:Table ID="Table6" runat="server" GridLines="Both" Height="105px"
Width="262px" BorderStyle="Solid" BackColor="Silver">
<asp:TableRow ID="TableRow13" runat="server">
<asp:TableCell ID="TableCell25" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Twitter Feed</asp:TableCell>
<asp:TableCell ID="TableCell26" runat="server" BackColor="#333333"
Font-Bold="True" Font-Names="Verdana" Font-Size="Medium" ForeColor="White">Rules Count</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow14" runat="server">
<asp:TableCell ID="TableCell27" runat="server">Keyword Search</asp:TableCell>
<asp:TableCell ID="TableCell28" runat="server" Font-Names="Verdana"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
<asp:TableCell ID="TableCell40" runat="server">
 
<asp:Panel ID="Panel18" runat="server">
</asp:Panel>
<asp:Literal ID="Literal6" runat="server"></asp:Literal>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<br />
<br />
<asp:Panel ID="Panel10" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label34" runat="server" BorderStyle="None"
Text="Add Terms to Feeds" CssClass="ajax_tab_header" Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label35" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList11" runat="server" Height="42px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Fan Page Search</asp:ListItem>
</asp:DropDownList>
<br />
<br />
<asp:Label ID="Label36" runat="server" Text="Add File"></asp:Label>
<asp:FileUpload ID="FileUpload6" runat="server" />
<br />
<br />
<br />
<br />
</asp:Panel>
<br />
<br />
<asp:Panel ID="Panel12" runat="server" BackColor="Silver" BorderStyle="Outset"
Height="158px" Width="387px">
<asp:Label ID="Label37" runat="server" BorderStyle="None"
Text="Get List of Current Terms" CssClass="static highlighted"
Font-Bold="True"></asp:Label>
<br />
<br />
<asp:Label ID="Label38" runat="server" Text="Choose Feed"></asp:Label>
<asp:DropDownList ID="DropDownList12" runat="server" Height="46px"
style="margin-left: 60px" Width="154px">
<asp:ListItem>Keyword Search</asp:ListItem>
<asp:ListItem>Stream Follow</asp:ListItem>
<asp:ListItem>Stream Track</asp:ListItem>
</asp:DropDownList>
<
br />
<br />
<br />
&
nbsp;
<asp:Button ID="Button6" runat="server" Height="35px" style="margin-left: 59px"
Text="Fetch" Width="154px" />
</asp:Panel>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</div>
</form>
</body>
</html>
Imports System.IO
Imports System.Net
Imports System.Web
Imports System.Xml
Imports System.Text
Imports System.Collections
Imports System.Configuration
Imports System.Collections.Specialized
Imports System.Threading
Imports System.Data.SqlClient
Imports System.IO.Compression
Imports System.Text.RegularExpressions
Imports System.Data
Imports System.Net.Sockets
Imports InfoSoftGlobal
Public Class TwitterPortal
Inherits System.Web.UI.Page
Private Shared max As Integer = 0
Private Shared currentRules As New ArrayList
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim url As String = String.Empty
Dim urlList1 As New ArrayList
Dim urlList2 As New ArrayList
Dim urlList3 As New ArrayList
Dim urlList4 As New ArrayList
Dim urlList5 As New ArrayList
Dim urlList6 As New ArrayList
urlList1.Add("https://.....rules.xml")
urlList1.Add("https://....rules.xml")
urlList1.Add("https://....rules.xml")
urlList2.Add("https://......./rules.xml")
urlList3.Add("https://......1/rules.xml")
urlList4.Add("https://...../1/rules.xml")
urlList5.Add("https://......./1/rules.xml")
urlList6.Add("https://....s/1/rules.xml")
For i As Integer = 0 To urlList1.Count() - 1
getDefaultValues(urlList1.Item(i))
Table1.Rows(i + 1).Cells(1).Text = max
Next
max = 0
currentRules.Clear()
For i As Integer = 0 To urlList2.Count() - 1
getDefaultValues(urlList2.Item(i))
Table2.Rows(i + 1).Cells(1).Text = max
Next
max = 0
currentRules.Clear()
For i As Integer = 0 To urlList3.Count() - 1
getDefaultValues(urlList3.Item(i))
Table3.Rows(i + 1).Cells(1).Text = max
Next
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim filepath As String = "C:\"
Dim downloadFile As String = DropDownList2.SelectedItem.Value.ToString & ".txt"
Dim response As System.Web.HttpResponse = System.Web.HttpContext.Current.Response
response.ClearContent()
response.Clear()
response.ContentType = "text/plain"
response.AddHeader("Content-Disposition", "attachment; filename=" + downloadFile + ";")
response.TransmitFile(filepath)
response.Flush()
response.[End]()
Dim outfile As New StreamWriter(downloadFile)
For Each item In currentRules
outfile.WriteLine(item)
Next
outfile.Flush()
outfile.Close()
End Sub
Private Function getDefaultValues(ByVal url) As String
Dim response As HttpWebResponse = Nothing
Dim responseData As String = Nothing
Dim username As String = ".....com"
Dim password As String = ".....case"
If url.contains(".....") Or url.contains(".......") Then
username = "......"
End If
Try
Dim request As HttpWebRequest = DirectCast(WebRequest.Create(url), HttpWebRequest)
request.UserAgent = "....."
request.Referer = "....."
request.Accept = "text/javascript, text/html, application/xml, text/xml, */*"
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "en-us,en;q=0.5")
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip,deflate")
request.Headers.Set(HttpRequestHeader.AcceptCharset, "ISO-8859-1,utf-8;q=0.7,*;q=0.7")
request.Headers.Add("Keep-Alive", "115")
request.KeepAlive = True
request.Headers.Add("X-Requested-With", "XMLHttpRequest")
request.Headers.Add("X-Prototype-Version", "1.6.1")
request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"
request.Credentials = New System.Net.NetworkCredential(username, password)
request.Method = "GET"
response = DirectCast(request.GetResponse(), HttpWebResponse)
Dim reader As New StreamReader(response.GetResponseStream())
Dim tmp As String = reader.ReadToEnd()
max = getCurrentRulesCount(tmp)
Catch e As WebException
If e.Status = WebExceptionStatus.ProtocolError Then
response = DirectCast(e.Response, HttpWebResponse)
'appLogs.constructLog(e.Message.ToString & " @ RequestRules @ " & DateTime.Now.ToString, True, True)
Else
'appLogs.constructLog(e.Message.ToString, True, True)
End If
response.Close()
Catch e As Exception
If response IsNot Nothing Then
response.Close()
End If
'appLogs.constructLog(e.Message.ToString & " @ RequestRules @ " & DateTime.Now.ToString, True, True)
End Try
Return max
End Function
Private Function getCurrentRulesCount(ByVal data As String) As Integer
Dim count As Integer = 0
Dim xdoc As New XmlDocument
Dim sample As String = String.Empty
currentRules.Clear()
Try
xdoc.LoadXml(data)
Dim entry As XmlNodeList = xdoc.GetElementsByTagName("value")
For i As Integer = 0 To entry.Count - 1
sample = entry(i).InnerText
currentRules.Add(entry(i).InnerText.ToString)
Next
count = entry.Count()
Catch ex As Exception
' appLogs.constructLog(ex.Message.ToString & " @ GetRuleCount @ " & DateTime.Now.ToString, True, True)
End Try
Return count
End Function
Public Function UploadChart()
Dim sqldr As SqlDataReader
Dim col1 As New DataColumn
Dim dsTable As New DataTable
Dim dsCounts As New DataSet
Dim comm2 As New SqlCommand
Dim conn2 As New SqlConnection
Dim query As String = String.Empty
Dim xmlData As New StringBuilder
conn2.ConnectionString = "Data Source=......;Initial Catalog=....Feeds;Password=......;Persist Security Info=True;User ID=....."
comm2.CommandType = CommandType.Text
comm2.Connection = conn2
conn2.Open()
xmlData.Append("<graph yAxisName='Post Counts' caption='RealTime Post Counts' xAxisName='Time (15min interval)' useRoundEdges='1' showValues='0'>")
query = "select top 100 convert(TIME,pollDate) as HourMin, boxCount from RealTimePostCounts where boxFeed='1a' and pollDate > getdate() - 1 and pollDate < getdate()"
dsTable.Columns.Add(col1)
Try
comm2 = New SqlCommand(query, conn2)
sqldr = comm2.ExecuteReader
While sqldr.Read
xmlData.Append("<set name='" & sqldr.Item(0).ToString & "' value='" & sqldr.Item(1).ToString() & "' />")
End While
sqldr.Close()
conn2.Close()
comm2.Dispose()
xmlData.Append("</graph>")
Literal1.Text = FusionCharts.RenderChart("/FusionCharts/FCF_Line.swf", "", xmlData.ToString(), "chart1", "500", "300", False, False)
Catch ex As Exception
End Try
Return 0
End Function
End Class