If I do View Source and open the HTML, I got the correct Client ID too such as:
This is my aspx:
This is my ascx:(wfb_flowchart_UC.ascx)<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="wfb_flowchart_UC.ascx.vb" Inherits="iq.wfb_flowchart_UC" %> <%@ Register TagPrefix="goweb" Namespace="Northwoods.GoWeb" Assembly="Northwoods.GoWeb" %> <goweb:goview id="GoView1" runat="server" bordercolor="Blue" borderwidth="2px" height="275px" width="416px" NoPost="True" ImagePage="GoWebImage.axd" ScriptFile="GoWeb.js" CssFile="none"></goweb:goview>
I got it! The error only happens when sessionState is “StateServer”. Everything works fine if sessionState is “InProc”.
You have to make sure everything is serializable. There are a number of topics in this forum where that has been the factor causing things to fail.
But as you can see, my 2 test pages are extremely simple. Can you give me any suggestion that how to make this simple example work in “stateServer” mode? In my sample, what shall I do to make everything serializable? Thanks a lot.
Make sure all your classes are marked [Serializable] or <Serializable()>.
Here’s what I tried, again, just now: http://www.nwoods.com/forum/uploads/WebSite2.zip
I am looking at it. Thanks a lot.