Search

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

Matching Posts

  • Re: session variable doesn't load on first button click

    It is being declared globally like so: Dim strSQLFilter As String = "" It shouldn't matter if I use the same variable name; one is a global variable and the other is a session variable. This report opens without any issues when called from nearly identical code on a page that has a gridview and a button that opens this report. I need to be able to also open it from a report index page. The issue is why doesn't it load the session variable "strSQLFilter" the first time
    Posted to Web Forms (Forum) by CherylH on 4/14/2009
  • Re: Datatable to Excel or GridView to Excel

    So does mine. I use a master page and my page does not explicitly use "form", but instead has <asp:content...> And it works. Have you tried it? If you have and it's not working then maybe the difference is between asp.net 2.0 and asp.net 3.5.
    Posted to Web Forms (Forum) by CherylH on 4/14/2009
  • Re: Datatable to Excel

    Try using this code converter: http://www.developerfusion.com/tools/convert/vb-to-csharp/ I use to run code the opposite direction quite often and it's very good.
    Posted to Web Forms (Forum) by CherylH on 4/13/2009
  • Re: Datatable to Excel

    I've recently done this. FYI: The open/save dialog box will open automatically and if the user chooses "Save" they will then get the "Save As" dialog box. On the page: < asp : ImageButton ID ="ImageButton1" runat ="server" ImageUrl ="images/excel.jpg" Width ="40" Height ="40" ImageAlign ="Middle" /> In the code behind: Public Overloads Overrides Sub VerifyRenderingInServerForm( ByVal control As Control) End
    Posted to Web Forms (Forum) by CherylH on 4/13/2009
  • session variable doesn't load on first button click

    I am trying to open a report from a page that allows the user to filter the querystring if desired. When clicking the button to run the report Session("strSQLFilter") is always behind by one click. On the page: < asp : Button ID ="lnkStatusRpt" runat ="server" Text ="Run Status Overview Report" OnClick ="openStatusReport" CausesValidation ="false" Visible ="true"></ asp : Button > Code behind: Protected Sub Page_Load
    Posted to Web Forms (Forum) by CherylH on 4/13/2009
    Filed under: session, button click
  • Passing Querystring via HttpUtility.HtmlEncode or Server.UrlEncode

    Hi, I need to be able to pass a querystring that is built dynamically depending on the user's criteria selection to a report. An example of the querystring: strSQLFilter: WHERE Status = 'Closed' I've tried the following: Dim theURL As String = "reports/statusOverviewReport.aspx?strSQLFilter=""" & strSQLFilter & """" Dim theURL1 As String = "reports/statusOverviewReport.aspx?strSQLFilter=""" & Server.UrlEncode
    Posted to Web Forms (Forum) by CherylH on 3/27/2009
    Filed under: query string field, Server.UrlEncode, HttpUtility.HtmlEncode
  • Re: Need to check for DBNull prior to formating field in listview

    Thanks! That was exactly what I needed. Here is the code: <% # IIf(IsDBNull(DataBinder.Eval(Container.DataItem, "conclusionStatement" )), "" , (DataBinder.Eval(Container.DataItem, "conclusionStatement" )))%>
    Posted to Data Presentation Controls (Forum) by CherylH on 3/10/2009
  • Re: Need to check for DBNull prior to formating field in listview

    About VB IIF function: Because the VBScript runtime will evaluate both falsepart and truepart before passing them to the function, both expressions must be valid, even if just one will execute. Now what?
    Posted to Data Presentation Controls (Forum) by CherylH on 3/6/2009
  • Re: Need to check for DBNull prior to formating field in listview

    Thanks, I think it's closer, but I get the following error now. Conversion from type 'DBNull' to type 'String' is not valid. < p > Detail: < blockquote > <% # IIf( TypeOf (Eval( "conclusionStatement" )) Is DBNull, "" , String .Format(Replace(Eval( "conclusionStatement" ), Chr(13), "<br />" )))%> </ blockquote ></ p >
    Posted to Data Presentation Controls (Forum) by CherylH on 3/6/2009
  • Need to check for DBNull prior to formating field in listview

    I have field in a listview that can sometimes be empty. I am replacing the carriage returns with <br /> tags for display on screen. Because this is not a required field it throws this error when the field is empty. Is there a way to do an if/else test to check for DBNull inline? Conversion from type 'DBNull' to type 'String' is not valid. < ItemTemplate > < p > Detail: < blockquote > <% #String .Format(Replace(Eval( "conclusionStatement" ), Chr
    Posted to Data Presentation Controls (Forum) by CherylH on 3/6/2009
    Filed under: dbnull listview formatting
Page 1 of 6 (51 items) 1 2 3 4 5 Next > ... Last »