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
D

Drofnas

@Drofnas
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Anthem.Net - Multiple Requests at the same time... [modified]
    D Drofnas

    For anyone that is interested, I found the solution to my problem. Instead of setting the "AutoUpdateAfterCallBack" property in the HTML code, you would instead set it after you've updated the value for the text field, for example:

    Partial Class Default
    Inherits System.Web.UI.Page

    Protected Sub btn1\_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn1.Click
        txt1.Text = "Hello World"
        txt1.UpdateAfterCallBack = True
        Threading.Thread.Sleep(1000)
    End Sub
    
    Protected Sub btn2\_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn2.Click
        txt2.Text = "Hello World"
        txt2.UpdateAfterCallBack = True
        Threading.Thread.Sleep(1000)
    End Sub
    

    End Class

    That way the auto updating functionality of Anthem.Net will only update the specific field(s) that you set to update after the callback has occured.

    ASP.NET tutorial announcement csharp html visual-studio

  • Anthem.Net - Multiple Requests at the same time... [modified]
    D Drofnas

    So I have a very simple webpage (see below). When I click on the first button it posts back and updates the value with in the text box just fine, and same with the second one. But if I click on the first button then immediately click on the second one, so that they are both posting back at the same time, it will come back and fill in the data for the firs textbox, after the Thread.Sleep() has completed, then it will blow out the value in the first textbox, and set the value for the second value. So it looks like it grabs the currect viewstate of all of the controls that have "AutoUpdateAfterCallBack" turned on, and there for when the callback is complete it will reset all of the fields, then update the value(s) that you wanted set. Does anyone know how to get this example to work properly with the latest version of Anthem.Net? I only want it to update the fields that I actually modified with in the server side code. [HTML Code]

    <form id="form1" runat="server">
    <div>
    <anthem:TextBox ID="txt1" runat="server" EnableCallBack="true" AutoUpdateAfterCallBack="True">
    <anthem:Button ID="btn1" runat="server" Text="Ajax w/Sleep" EnableCallBack="true" TextDuringCallBack="Processing..." EnabledDuringCallBack="false" />
    </div>
    <div>
    <anthem:TextBox ID="txt2" runat="server" EnableCallBack="true" AutoUpdateAfterCallBack="True">
    <anthem:Button ID="btn2" runat="server" Text="Ajax w/Sleep" EnableCallBack="true" TextDuringCallBack="Processing..." EnabledDuringCallBack="false" />
    </div>
    </form>

    [Code Behind]

    Partial Class Default
    Inherits System.Web.UI.Page

    Protected Sub btn1\_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn1.Click
        txt1.Text = "Hello World"
        Threading.Thread.Sleep(1000)
    End Sub
    
    Protected Sub btn2\_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn2.Click
        txt2.Text = "Hello World"
        Threading.Thread.Sleep(1000)
    End Sub
    

    End Class

    -- modified at 18:43 Thursday 14th September, 2006 I'm using Anthem.Net v1.3.2 with VS.Net 2005 Pro.

    ASP.NET tutorial announcement csharp html visual-studio

  • popup window in mobile web page
    D Drofnas

    Here's some links that might come in handy for anyone that's planning on programming for Pocket IE: http://support.microsoft.com/default.aspx?scid=kb;en-us;q158479[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_dev.asp[^] The best idea I could come up with is to see is there is a way with in javascript that will allow you to see if the window has been minimized, if it has, just run some javascript to log the user out. But if there's no javascript available for that you will either have to have somesort of timeout on the page, say if the user doesn't do anything for 5 minutes automatically log them out. Or if this is an application that it's in the users best interest to logout, then you should just always have a logout button/link available to them, which is probably always a good thing to have. But I haven't really looked into all of the limitations of the javascript support with in Pocket IE. Sorry I couldn't be of more help.

    Mobile javascript architecture help question

  • popup window in mobile web page
    D Drofnas

    To the best of my knowledge this is not possible with Pocket IE, the default browser on Pocket PCs. This browser only allows for a single window open at a time. There are other 3rd party browsers, such as Mobile Opera, that may support what your looking for, but if you want to reach the widest audience you will have to program you site with a single window in mind. so instead of creating a popup page you will have to navigate to the Help page, then on the Help page you would simply have a "back" button that would bring the user back to the place they game from. To make sure you don't lose the functionality you want, you will have to check to see what platform your webpage is currently being viewed on, then display the appropiate site.

    Mobile javascript architecture help question

  • SmartPhone - Simple Profile Manager w/GPS
    D Drofnas

    So I'm looking into creating a simple Profile Manager for my Pocket PC Phone (i-mate JASJAR - with Windows Mobile 5.0), since there is currently no concept of Phone Profiles for this phone. These profiles would follow the same concept as with normal cell phones, allow you to change the ringtone, speaker volume, ringer volume, etc... Plus I also want to create an application, the simple GPS portion of the project, that would work with this Profile Manager, this application would check to see what Cell Tower your currently connected to and change the profile depending on that. That way I could keep track of a list of Cell Towers that my phone connects to while at work and use that information to determine that I'm currently at work and it should change my profile accordingly. So I guess my question is where do I begin. I've never really done any SmartPhone development and limited amounts of Pocket PC applications. I essentially need to do the following: * Find the Cell Tower I'm currently connected too * Ability to set the Speaker and Ringer volumes * Ability to change the ring tone. Can someone point me in the right direction for these bullet points? Plus would I be able to do all of this with the latest .Net Compact Framework 2.0 build, or would I need to learn Embedded C++ in order to perform these tasks? -- modified at 19:33 Tuesday 4th October, 2005

    Mobile question csharp c++ mobile hardware
  • Login

  • Don't have an account? Register

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