|
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>My Feed Reader</title>
<style type="text/css">
.watermark
{
color: #999999;
}
.progresspanel
{
background-color: RED;
color: White;
top: 1px;
color: white;
position: absolute;
right: 16px;
z-index: 999;
}
.LeftPanel
{
width: 200px;
background-color: #99CCFF;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel2"
DisplayAfter="0" DynamicLayout="True">
<ProgressTemplate>
<div class="progresspanel">
Loading…
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<table width="100%">
<tr>
<td colspan="2">
<asp:TextBox ID="txtFeed" runat="server" Width="320px"></asp:TextBox>
<ajax:TextBoxWatermarkExtender ID="txtFeed_TextBoxWatermarkExtender" runat="server"
Enabled="True" TargetControlID="txtFeed" WatermarkCssClass="watermark" WatermarkText="Enter the Url of a feed and click 'Add feed'">
</ajax:TextBoxWatermarkExtender>
<asp:Button ID="btnAdd" runat="server" Text="Add feed"></asp:Button>
<asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td valign="top" class="LeftPanel">
<asp:TreeView ID="TreeView1" runat="server" SelectedNodeStyle-BackColor="#000066"
SelectedNodeStyle-ForeColor="White">
</asp:TreeView>
</td>
<td valign="top" style="width: 100%;">
<asp:TextBox ID="txtFilter" runat="server" Width="200px" Style="display: none;"></asp:TextBox>
<ajax:TextBoxWatermarkExtender ID="txtFilter_TextBoxWatermarkExtender" runat="server"
Enabled="True" TargetControlID="txtFilter" WatermarkText="Type search item and hit Enter"
WatermarkCssClass="watermark">
</ajax:TextBoxWatermarkExtender>
<asp:ListView ID="ListView1" runat="server">
<LayoutTemplate>
<table runat="server" id="table1" runat="server">
<tr runat="server" id="itemPlaceholder">
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr runat="server">
<td id="Td1" runat="server">
<asp:Panel ID="lblTitle" runat="server" BackColor="#99CCFF" ForeColor="white" Width="100%">
<%#Eval("Title.Text") %>
[<a href='<%#Eval("Links(0).Uri.AbsoluteUri") %>' target="_blank">link</a>]</asp:Panel>
<asp:Panel ID="pnlContent" runat="server">
<asp:Label ID="lblContent" runat="server" Text='<%#Eval("Summary.Text") %>' /></asp:Panel>
</td>
</tr>
</ItemTemplate>
<EmptyDataTemplate>
<div class="watermark">
Not items found.</div>
</EmptyDataTemplate>
</asp:ListView>
</td>
</tr>
<tr>
<td colspan="2">
<asp:LinkButton ID="btnClear" runat="server">Clear</asp:LinkButton>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a senior software developer at Avanade - a global IT consultancy dedicated to using the Microsoft platform.
I also own and operate several websites and blogs and love to play around with new technologies and take on new challenges.
Before Avanade, I was a consultant leading small to medium sized teams on projects of varying sizes. You can find more information about me on my website at emadibrahim.com
Finally, here is a mind exercise: In the series O, T, T, F, F, S, S, E, __ which is next?