Search

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

Matching Posts

  • Re: Passing C# variable using RegisterClientScriptBlock

    The best place to bind the variable is during the Load_Complete or the Pre_Render event for the page. This will ensure that you have the latest value after all the change and postback events are fired. This MSDN article will give you a better description and the sequence of events for the page. http://msdn.microsoft.com/en-us/library/ms178472.aspx I hope this helps.
    Posted to Client Side Web Development (Forum) by AMR_PHASE on 5/11/2009
  • Re: How to call body onload from UserControl?

    You can use the RegisterStartupScript() function of the ClientScriptManager. You can find a quick sample here: http://msdn.microsoft.com/en-us/library/z9h4dk8y.aspx
    Posted to Client Side Web Development (Forum) by AMR_PHASE on 5/11/2009
  • Re: Restrict functionality for role

    Depending on the structure of your project, you can do this by checking the user roles via the User object on the page. If User.IsInRole( "Administrator" ) Then ' do something for administrators else if User.IsInRole( "Writer" ) then ' do something for writers else ' do the default action. end if if (User.IsInRole( "Administrator" )) { // Do something for administrators } else if (User.IsInRole( "Writer" )) { // do something for writers } else
    Posted to Security (Forum) by AMR_PHASE on 5/11/2009
  • Re: Need help debugging code with DateTime fields to get total minutes

    Since you are reading data directly from the row you may want to make sure you call HttpUtility.HtmlDecode() to make sure any encoded characters are decoded back into a string. totalMins = DateTime.Parse(HttpUtility.HtmlDecode(e.Row.Cells[6].Text)); This may help solve your parsing issues.
    Posted to C# (Forum) by AMR_PHASE on 5/11/2009
  • Re: Change Ajax response to a regular one

    You may want to consider setting up the PDF button as a PostBack Trigger vs a callback. This will ensure that when the Create PDF button is clicked a full request is sent to the page. This article discusses the async vs postback triggers as well as to how to set them up in markup. http://blog.joelowrance.com/archive/2007/07/24/asyncpostbacktrigger-vs-postbacktrigger.aspx Hopefully this helps you reach a solution.
  • Re: Purchase self study material for VS 2008 study + Exams

    You probably already know this but, the microsoft learning site http://www.microsoft.com/learning has quite a few free resouces that can help you prepare for the exams you are looking for, they have free virtual labs and complete training courses. Also, you can use the topics and search On Demand events for demos and related materials. Of course there are always MSPress books, some of which you can get for free as well... also, the are you certifiable game offers very realistic test questions.
    Posted to Free For All (Forum) by AMR_PHASE on 5/11/2009
  • Re: How to best handle Unique constraint during data insert/update?

    You may want to first identify why the system is attempting to do a second insert with the same information. It is better to address the reason why the second insert attempt is happening vs ignoring or handling the error.
    Posted to Web Forms (Forum) by AMR_PHASE on 5/11/2009
  • Re: How can I get those that ordered more 1 year from another

    SELECT X.CLIENTID, X.TOTALPERIOD1, X.TOTALPERIOD2, CASE WHEN X.TOTALPERIOD2 > X.TOTALPERIOD1 THEN 'Yes' ELSE 'No' END Period2IsGreater FROM ( SELECT CLIENTID, SUM ( CASE WHEN ORDERDATE >= STARTDATE1 AND ORDERDATE <= ENDDATE1 THEN ORDERTOTAL ELSE 0 END ) TOTALPERIOD1, SUM ( CASE WHEN ORDERDATE >= STARTDATE2 AND ORDERDATE <= ENDDATE2 THEN ORDERTOTAL ELSE 0 END ) TOTALPERIOD2 FROM TBLORDERS WHERE CLIENTID = @CLIENTID GROUP BY CLIENTID ) X Something like this may do the
  • Re: How to delete or move those sent files?

    Do you have the stack trace information?
    Posted to Web Forms (Forum) by AMR_PHASE on 11/24/2008
  • Re: GridView disappears after postback.

    I believe it is going a way because you calling the databind method, but you are not setting a datasource, I would suggest replacing GridView1.DataBind() with a call to LoadData() again.... When you set the datasource, and do databind the association goes away once it is bound, that is why datasource shows up as null, so when the databind is called again, there is nothing to bind to.
    Posted to Data Presentation Controls (Forum) by AMR_PHASE on 11/4/2008
Page 1 of 17 (165 items) 1 2 3 4 5 Next > ... Last »