Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

foahchon

@foahchon
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Popup ads. Why bother?
    F foahchon

    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.

    The Lounge c++ com architecture question

  • Problem with ListView and Request.QueryString [modified]
    F foahchon

    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

    ASP.NET help sysadmin

  • Async. Socket Begin/EndReceive Loop Woes
    F foahchon

    Hi, 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.

    C# help data-structures json
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups