Click here to Skip to main content
15,916,215 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
JokeRe: .net application hangs under vista Pin
Paul Conrad1-Dec-08 13:41
professionalPaul Conrad1-Dec-08 13:41 
GeneralRe: .net application hangs under vista Pin
#realJSOP11-Dec-08 6:33
professional#realJSOP11-Dec-08 6:33 
GeneralRe: .net application hangs under vista Pin
Paul Conrad11-Dec-08 6:35
professionalPaul Conrad11-Dec-08 6:35 
QuestionPage lifecycle confusion Pin
k6661-Dec-08 5:52
k6661-Dec-08 5:52 
AnswerRe: Page lifecycle confusion Pin
Paul Conrad1-Dec-08 5:57
professionalPaul Conrad1-Dec-08 5:57 
GeneralRe: Page lifecycle confusion Pin
k6661-Dec-08 6:04
k6661-Dec-08 6:04 
GeneralRe: Page lifecycle confusion Pin
Paul Conrad1-Dec-08 6:07
professionalPaul Conrad1-Dec-08 6:07 
GeneralRe: Page lifecycle confusion Pin
k6661-Dec-08 6:24
k6661-Dec-08 6:24 
<br />
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>]]><br />
<br />
<br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
    <title>Untitled Page</title><br />
</head><br />
<body><br />
    <form id="form1" runat="server"><br />
    <div><br />
    <br />
        <asp:gridview id="GridView1" runat="server" datasourceid="ObjectDataSource1" xmlns:asp="#unknown"><br />
        </asp:gridview><br />
        <asp:objectdatasource id="ObjectDataSource1" runat="server" xmlns:asp="#unknown"><br />
            onselecting="ObjectDataSource1_Selecting" SelectMethod="getItemList" <br />
            TypeName="WebApplication1._Default"><br />
            <selectparameters><br />
                <asp:parameter name="SortExpression" type="String" /><br />
            </selectparameters><br />
        </asp:objectdatasource><br />
    <br />
    </div><br />
    </form><br />
</body><br />
</html><br />
<br />


<br />
using System;<br />
using System.Collections;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Linq;<br />
using System.Web;<br />
using System.Web.Security;<br />
using System.Web.UI;<br />
using System.Web.UI.HtmlControls;<br />
using System.Web.UI.WebControls;<br />
using System.Web.UI.WebControls.WebParts;<br />
using System.Xml.Linq;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
<br />
namespace WebApplication1<br />
{<br />
    public partial class _Default : System.Web.UI.Page<br />
    {<br />
        private int __x = 1;<br />
<br />
        protected void Page_Load(object sender, EventArgs e)<br />
        {<br />
            __x = 2;<br />
        }<br />
<br />
        protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)<br />
        {<br />
<br />
        }<br />
<br />
<br />
        [DataObjectMethod(DataObjectMethodType.Select, true)]<br />
        public List<int> getItemList(string SortExpression)<br />
        {<br />
            if (__x != 2)<br />
            {<br />
                throw new DataException("__x is < 1");<br />
            }<br />
<br />
            List<int> rc = new List<int>();<br />
            rc.Add(1);<br />
            rc.Add(2);<br />
            return rc;<br />
        }<br />
<br />
    }<br />
}<br />
</int></int></int>


Throws the data exception because __x is 1, not 2.
GeneralRe: Page lifecycle confusion Pin
k6661-Dec-08 6:48
k6661-Dec-08 6:48 
GeneralRe: Page lifecycle confusion Pin
Paul Conrad1-Dec-08 7:09
professionalPaul Conrad1-Dec-08 7:09 
GeneralRe: Page lifecycle confusion Pin
k6661-Dec-08 7:27
k6661-Dec-08 7:27 
GeneralRe: Page lifecycle confusion Pin
Paul Conrad1-Dec-08 7:34
professionalPaul Conrad1-Dec-08 7:34 
GeneralRe: Page lifecycle confusion Pin
k6661-Dec-08 9:09
k6661-Dec-08 9:09 
GeneralRe: Page lifecycle confusion Pin
Samer Aburabie2-Dec-08 12:58
Samer Aburabie2-Dec-08 12:58 
GeneralRe: Page lifecycle confusion Pin
k6663-Dec-08 3:30
k6663-Dec-08 3:30 
GeneralRe: Page lifecycle confusion Pin
k6665-Dec-08 9:26
k6665-Dec-08 9:26 
GeneralRe: Page lifecycle confusion Pin
k6665-Dec-08 9:42
k6665-Dec-08 9:42 
QuestionAsssmbly Size reduced after strong naming Pin
rinkurathor1-Dec-08 1:23
rinkurathor1-Dec-08 1:23 
QuestionVisual Studio 2005+ style interfaces Pin
Ian Winter1-Dec-08 0:30
Ian Winter1-Dec-08 0:30 
AnswerRe: Visual Studio 2005+ style interfaces Pin
Simon P Stevens1-Dec-08 0:55
Simon P Stevens1-Dec-08 0:55 
AnswerRe: Visual Studio 2005+ style interfaces Pin
Mark Churchill1-Dec-08 13:42
Mark Churchill1-Dec-08 13:42 
GeneralRe: Visual Studio 2005+ style interfaces Pin
Simon P Stevens1-Dec-08 22:54
Simon P Stevens1-Dec-08 22:54 
QuestionAudio/Acoustic Fingerprinting Pin
Brandon X.29-Nov-08 19:04
Brandon X.29-Nov-08 19:04 
AnswerRe: Audio/Acoustic Fingerprinting Pin
Mark Churchill30-Nov-08 15:18
Mark Churchill30-Nov-08 15:18 
QuestionPlease help!! Pin
Umangj29-Nov-08 18:42
Umangj29-Nov-08 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.