If popups generate a high-enough rate of response/clicks, they continue to be used, just like with any other form of advertisement. So, despite the fact that the majority of modern browsers come equipped with some sort of popup-blocking feature, people are still finding ways to click on them.
foahchon
Posts
-
Popup ads. Why bother? -
Problem with ListView and Request.QueryString [modified]Hi, I'm trying to insert some text from the page's QueryString into a LayoutTemplate inside a ListView, but something so seemingly simple is proving to be very difficult (for me, at least). Here's the code I have for my LayoutTemplate:
<LayoutTemplate> <h1><%# Request.QueryString\["itemtype"\] %> Items</h1> <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder> </LayoutTemplate>
The problem is that only "Items" shows up. I have also tried the <%= tag, but then it tells me the control cannot be modified because it contains code blocks. I'm running out of ideas, so any help would be greatly appreciated. Thanks.
modified on Monday, February 11, 2008 8:46 PM
-
Async. Socket Begin/EndReceive Loop WoesHi, I'm trying to write a receive loop in my socket class that will receive what data is in the buffer, call an event to let the user know that there's new data, and then receive the rest of the data. It kinda almost works; it receives much of the data, but seems to miss the last packet or two. Here is the code in the loop:
private void OnSockReceive(IAsyncResult ar)
{try { int read = socket.EndReceive(ar); if (read > 0) { OnReceive(); } socket.BeginReceive(ReceivedData, 0, ReceivedData.Length, SocketFlags.None, OnSockReceive, null); } catch (Exception ex) { MessageBox.Show(ex.Message, "OnSockReceive", MessageBoxButtons.OK, MessageBoxIcon.Error); }
}
ReceivedData is a global byte array of size 1024. Any help would be greatly appreciated. Thanks.