Search

You searched for the word(s): userid:609504

Matching Posts

  • FormView:DataBound event run after Page:PreRender?!

    A page contains a FormView, who's datasource is a SqlDataSource control, the datasource is set by FormView's DataSourceID property. With the VS debugger I cannot but see that when I grab the FormView's DataBound event, my masterpage's PreRender event code has already run which is very bad since it depends on data from that particular SqlDataSource. Is this a known bug or what should I look into specifically in my code? I could try do some more brainstorming if someone told me "who" exactly calls
    Posted to Data Presentation Controls (Forum) by dabbi2005 on 12/11/2005
  • a global enumerator for webapp?

    the subject says it all... I want to be able to access a custom enumerator from all pages, without having to instantiate some class that I would otherwise use to contain it?
    Posted to Getting Started (Forum) by dabbi2005 on 12/11/2005
  • Using varible column or table name

    have seen a few posts on settings like SELECT Title FROM @TableName WHERE ... or SELECT @ColumnName FROM Table WHERE ... and it seems the only thing to do is to use a dynamic stored procedure. Now, is that a *final* answer or is there some - faster (dynamic queries take time to compile) and cleaner - ways to do it? What about SQL Server 2005?
  • Control's (object's) default value??

    How or where can I see an asp.net control's default value? Say, for example the Visible property for webcontrols? Would be preferable if I could quickly see it in Visual Web Developer but MSDN online documentation would also be nice. Also how can I do this in general for all .Net objects?
    Posted to Web Forms (Forum) by dabbi2005 on 12/8/2005
  • Re: An event from GridView causing unexpected stack overflow??

    this turns out be quite interesting... 1) the mistake is I'm setting changing button template not the button control itself... So doing ImageButton IB = (ImageButton) DCFCell.Controls[0]; and then IB.ImageUrl = ... stopped the stack overflow. Still I cannot understand why the event is being run twice one the page's first load, I'm 99% there's no double databinding doing this. Actually the gridview is automatically databound by setting DataSourceID="SqlDatasource1" property. This also happens although
    Posted to Data Presentation Controls (Forum) by dabbi2005 on 12/6/2005
  • An event from GridView causing unexpected stack overflow??

    having a GridView with SqlDataSource where one of the columns is an integer UserCount. The RowCreated is an event code for the GridView's OnRowDatabound. It causes a stack overflow and I cannot understand why?? protected void RowCreated(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView DRV = (DataRowView) e.Row.DataItem; int UserCount = Convert.ToInt32(DRV.Row["UserCount"]); DataControlFieldCell DCFCell = (DataControlFieldCell)e.Row.Cells[0];
    Posted to Data Presentation Controls (Forum) by dabbi2005 on 12/6/2005
  • On what point exactly is user logged in to site?

    I have my own Membership provider and need to ask a question about it. Since I set a Session["UserID"] variable each time an user is logged in, I add it to the overridden ValidateUser(...) method. However, I have former experience of User not actually being logged in to web site even though he has been validated - the Session cookie doesn't seem to be set until some later. So would I be wrong to assume the user is always logged in by setting the Session at that level?
    Posted to Security (Forum) by dabbi2005 on 12/5/2005
  • Bind to multiple tables from stored procedure

    I know a sql stored procedure can return >1 tables. How can I use .Net 2.0 to read these tables one at a time, for example the first one could iterate Forum entries and the second one all internal links used in these forums... The idea is to use fewer backtrips to the sql server?
  • JOIN with ORDER BY clause?

    like so often my Forums database design (in its simplest form) is: Forums -ForumID -Title -Category ForumsMsgs -fmID -DateIn -AuthorID -Message I need to create a sql query which returns all forum titles along with some data for 1) the first message entry (date created and author) and 2) the last one. So how can I do a JOIN query which joins with a ORDER BY clause so that the top/bottom entry only is joined from the messages table?
Page 1 of 9 (81 items) 1 2 3 4 5 Next > ... Last »