User Profile

Collapse

Profile Sidebar

Collapse
billybob206
billybob206
Last Activity: Jul 29 '14, 06:14 PM
Joined: Jun 25 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • VB.NET Selecting Items In CheckBoxList

    Hello:

    I have a form that is used to update user's profile. The user can have multiple roles that I'm trying to display using a CheckBoxList.

    When initially selecting a user the code below works. If I select another user, the checkboxes in my form are not filled out (all are unselected). Additionally, if I update a user and then select another user, the checkboxes are filled correctly.

    Below is the code I am...
    See more | Go to post
    Last edited by NeoPa; Mar 10 '14, 09:06 PM. Reason: Tidied up the code to make it readable

  • I was off this issue for a week due to other projects' deadlines, but I was back on it today.

    With Rabbit's suggestions, using a cursor and temp table I was able to find a solution.

    Basically, the cursor grabs all the column names in the order I want and the IF help fill my temp table with DISTINCT column headings. From there the pivot table uses my temp table for it's column headings.

    Just remember the text...
    See more | Go to post

    Leave a comment:


  • So there would be no way to do an Order By Priority then, correct?...
    See more | Go to post

    Leave a comment:


  • billybob206
    started a topic Distinct Columns In Pivot Table Order By

    Distinct Columns In Pivot Table Order By

    Hello:

    I created a pivot table that I need to order the distinct columns by a Priority field in a view.

    Normally it could come after my Where in @cols (Order By Priority) but I get an error saying it can't do that because of the DISTICT.

    The code below is the procedure I call to create the pivot table.

    Thanks in advance for the help.

    Code:
    BEGIN
    	SET NOCOUNT ON;
    ...
    See more | Go to post

  • billybob206
    started a topic Crystal Reports Query Question

    Crystal Reports Query Question

    Hello all.

    I'm just trying to find some leads to my issue.

    I have a 2008 Crystal Report added to my asp.net project. I did create the report using a wizard.

    Now, on a webpage I have a button that will redirect the user to the report and I want to feed the report a custom query that I will provide.

    How would I start coding this?

    Thanks in advance for your help.
    See more | Go to post

  • billybob206
    replied to String Validation
    Sorry. This is actually a ASP.NET issue. Not ASP classic.
    See more | Go to post

    Leave a comment:


  • billybob206
    started a topic String Validation

    String Validation

    Hello:

    I am trying to validate the length of a string in a text box.

    I just need the string to be between 1 - 50.

    I have tried RangeValidation and RegularExpressi onValidation and everytime I go to test the Validator fires even though the string is in the acceptable range.

    Below is the code for my check, both Range and Reg. Ex.

    Thanks in advance for your help.

    ...
    See more | Go to post

  • billybob206
    replied to Formview and Labels
    Got it.
    Code:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim lblDummy As Label
        lblDummy = (object).FindControl("X")
        lblDummy.Text = Session("Y")
    End Sub
    See more | Go to post
    Last edited by Frinavale; Jun 17 '11, 03:24 AM. Reason: Added code tags.

    Leave a comment:


  • billybob206
    replied to Formview and Labels
    Thanks for the reply.

    The code behind is in VB.NET

    In the code is in the Page_Load in the code-behind.
    See more | Go to post
    Last edited by Frinavale; Jun 14 '11, 08:43 PM.

    Leave a comment:


  • billybob206
    started a topic Formview and Labels

    Formview and Labels

    Hi.

    I'm trying to make the text of a label that of a session variable.

    Here's an attempt I have tried for the code-behind, which does not work.

    Code:
      Dim lblDummyLabel As Label
      lblDummyLabel = DirectCast(fvAddRate.FindControl("lblUserEval"), LABEL)
      lblDummyLabel.Text = Session("User")
    Can anybody help me with this?

    Thanks in advance....
    See more | Go to post
    Last edited by Frinavale; Jun 14 '11, 02:08 PM. Reason: Formatted code so that it is easier to read.

  • billybob206
    started a topic SQL Facited Search Tools

    SQL Facited Search Tools

    Are there any facited search tools that search a SQL server that is NOT programmed in Java? (Ex: Solr)
    See more | Go to post

  • billybob206
    started a topic Noise Words And Symbols

    Noise Words And Symbols

    Hello:

    I am using a SQL statement using ContainsTable. Below is an example of the SQL code that I'm using.

    Code:
    Select x.F1,x.F2,c.Rank
            From TableX x
            JOIN ContainsTable c (Z,Text, "Steel" AND "e- mail") AS c ON c.Key = x.F1
            Order By c.Rank
    The results come back with everything with Steele and mail. (leaving out the e-)

    Issue:...
    See more | Go to post

  • billybob206
    replied to Disappearing Gridview
    Sorry. The solution was obvious (in my view). Just go into the Events property section of the gridview and then select the function (or procedure) that fills the gridview in the PageIndexChange d and Sorted fields.
    See more | Go to post

    Leave a comment:


  • billybob206
    replied to Disappearing Gridview
    Is that done in the GridViewSortEve ntHandler?
    See more | Go to post

    Leave a comment:


  • billybob206
    started a topic Disappearing Gridview

    Disappearing Gridview

    Hello:

    I'm developing a search page that will display the results in a gridview. The codebehind (in VB.NET) uses a SQL command to fill the gridview.

    The gridview does have paging and sorting enabled. Once the search button is clicked the initial results are displayed, if the user clicks on a sorted column or wants to advance a page the gridview disappears. Enable Sorting And Paging Callbacks is set to True. Enable ViewState...
    See more | Go to post

  • Found it

    Under "Behavior" in Properties there is an option called "Default Mode." You can start the form in Edit or Insert.
    See more | Go to post

    Leave a comment:


  • Visual Studio ASP.NET FormView Insert Item Templete Question

    Howdy,

    Is there a way to make the Insert Item Templete in the FormView in VS ASP.Net the default view of a webpage.

    (The purpose is I'm trying to create a new user page without having to search for an ID 1st.)

    Thanks in advance for your help.
    See more | Go to post

  • billybob206
    replied to Using an alises in the WHERE clause
    Found a work-around the alises to fix this issue.

    SELECT DISTINCT REPLACE(HOME_PH ONE,'-','')
    FROM X
    WHERE HOME_PHONE IS NOT NULL AND DO_NOT_CALL IN ('Y','X','1') AND REPLACE(HOME_PH ONE,'-','') NOT IN
    (SELECT DISTINCT PHONENUMBER FROM X WHERE PHONENUMBER IS NOT NULL)
    See more | Go to post

    Leave a comment:


  • billybob206
    replied to Using an alises in the WHERE clause
    No. HOME_PHONE is the field. PHONE is the alises I'm using in the SELECT statement.

    I can explain alittle more. The reason for the REPLACE function is that in the 1st table some of the phone numbers have -'s in them where in the 2nd table (in my sub-query) they do not.
    See more | Go to post

    Leave a comment:


  • billybob206
    started a topic Using an alises in the WHERE clause

    Using an alises in the WHERE clause

    Hi,

    I'm working in a SQL Server 2008 enviroment trying to get the code below to work.

    The error I get is "Invalid column name 'PHONE'."

    Thanks in advance for your help.

    SELECT DISTINCT TOP 5 REPLACE(HOME_PH ONE,'-','') AS PHONE
    FROM X
    WHERE HOME_PHONE IS NOT NULL AND DO_NOT_CALL IN ('Y','X','1') AND PHONE NOT IN
    (SELECT DISTINCT PHONENUMBER FROM X WHERE PHONENUMBER...
    See more | Go to post
No activity results to display
Show More
Working...