Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

Hypermommy

@Hypermommy
About
Posts
64
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Kendo UI for jQuery Combobox noDataTemplate Not Loading
    H Hypermommy

    Hi all, Hope I'm asking this in the right place. I'm using this example from Telerik but am having no luck at all getting the NoDataTemplate to show. Add new item in jQuery ComboBox Widget Demo | Kendo UI for jQuery[^] My cshtml looks like this (there's a form tag higher up in case that's important):

    <div>
    No data found. Do you want to add new item - '#: instance.text() #' ?
    </div>
    <br />
    <button class="k-button" onclick="addNew('#: instance.element[0].id #', '#: instance.text() #')">Add new item</button>

    And my initialization of the combobox looks like this:

    BCA.Configurator.CodeStringSegment.LoadSegmentGroups = function () {

        var crudServiceBaseUrl = BCA.rootUrl + "eConfigurator";
    
        var dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    url: crudServiceBaseUrl + "/PrConf/RetrieveSegmentGroups",
                    dataType: "json",
                    type: "POST"
                },
            },
            schema: {
                model: {
                    id: "Key",
                    fields: {
                        Key: { type: "number" },
                        Value: { type: "string" }
                    }
                }
            }
        });
    
        $("#SegmentGroup").kendoComboBox({
            filter: "startswith",
            dataTextField: "Value",
            dataValueField: "Key",
            dataSource: dataSource,
            placeholder: "Select Pricing Group",
            noDataTemplate: $("#noDataTemplate").html(),
            filtering: BCA.Configurator.CodeStringSegment.CheckForNewSegmentGroup,
        });
    }
    

    When I type "cf" (because I know nothing in the list starts with that combination of letters) absolutely nothing happens that I can see. Any idea why? Thanks in advance, all,

    Denise

    JavaScript javascript html database com design

  • Using JSON functions with Always Encrypted data in SSMS
    H Hypermommy

    Hi there, Thanks for the reply. I was hoping to keep it all in SQL as that's where I was more comfortable with the ability to rollback a transaction in case of failure. I will definitely look into transaction processing in C# and thank you for pointing me in the right direction. Denise

    Denise

    Database database question csharp sql-server cloud

  • Using JSON functions with Always Encrypted data in SSMS
    H Hypermommy

    I have an Azure SQL database that uses the Always Encrypted functionality. In this database I have a column called entryObject. It is an nvarchar field containing JSON data. It is encrypted using a Randomized encryption type. I am currently writing SQL that should us the JSON_MODIFY function to update this data as well as unencrypted data in another table. I would like to have all of this functionality wrapped in a transaction and in a stored procedure. This way, my C# code can call this one stored proc and, if successful, I'll know that all data was updated successfully. However, any time I try to use the JSON_MODIFY function or even JSON_QUERY with my encrypted entryObject column's data, I get an error stating

    Argument data type nvarchar(max) encrypted with (encryption_type = 'RANDOMIZED', ... is invalid for argument 1 of json_query function.

    How can I use JSON_MODIFY to change one of the values in this encrypted JSON? Thanks in advance for any assistance you can give.

    Denise

    Database database question csharp sql-server cloud

  • How to see the payload sent to my Azure web service
    H Hypermommy

    Thanks, y'all! Now it seems I just have to learn how to get my setup right on here so I can see answers. :-) But seriously, I do appreciate the help.

    Hypermommy

    Cloud Computing cloud help tutorial question

  • How to see the payload sent to my Azure web service
    H Hypermommy

    Hi all, I have an app service that works fine for most folks. This one client is having an issue and I'm 95% sure they're sending something wrong. So I need to see exactly what payload they're sending. What's the best way to do this in Azure? I thought about Fiddler but doesn't that need to sit on the same machine as the webserver? Anyway... if you could give me some ideas on how I can see this payload I'd greatly appreciate it. Denise

    Hypermommy

    Cloud Computing cloud help tutorial question

  • TextChanged Event Won't Fire First Time
    H Hypermommy

    Hi all, I've got an issue I've been digging on for a few days and just can't seem to find an answer. I have this textbox that's in a grid. The way this page is set up, when the user enters the page for the first time, the first row of the grid (including my troublesome textbox) is in edit mode. When I change the number from 0 to 10 in the textbox and tab out, I expect the TextChanged event to fire, but it doesn't. But if I click back into the textbox and change the number again and tab out, the TextChanged event does fire. I thought maybe it was in my page load so I put a breakpoint at the bottom of the pageload method. At that point, the textbox.text = 10. I checked the viewstate of the textbox and the value is 0 and IsDirty = true. I'm stumped what to check next. I also don't know what code to send since it looks like everything's set the way it should be but it just doesn't work the first time. Any help you can give would be GREATLY appreciated.

    Hypermommy

    .NET (Core and Framework) help css debugging

  • Learning software design patterns
    H Hypermommy

    Doh! Didn't see it. Any way for a user like me to move a message or shall I just wait for an admin to do it (and probably rightfully chastise me in the process. :-D ). I'll definitely check out the article and thanks!

    Hypermommy

    Algorithms regex design question learning

  • Learning software design patterns
    H Hypermommy

    Hi all, I'm studying software design patterns. Right now I'm going through the various patterns presented on the Wikipedia article at http://en.wikipedia.org/wiki/Software_design_pattern[^] (yeah, I know.. it's wikipedia... but it's free). I feel like I'm understanding the material, but I also feel that some real-world examples would be helpful. Anyone know of a good site to find real-world examples of design patterns? Doesn't even have to contain code... can dig into code when I'm actually ready to implement these. I just want to make sure I understand the concept behind each pattern. Thanks! PS -- not sure if this is the right forum to put this in but it seemed the closest match of the available selections. Thanks again!

    Hypermommy

    Algorithms regex design question learning

  • Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'.
    H Hypermommy

    Looks like what I need. Thanks!!! :-D

    Hypermommy

    Visual Basic help database lounge

  • Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'.
    H Hypermommy

    Really dumb question time here.... we're using SQL Server Management Studio Express here. My guess is the reason I'm not seeing Profiler is because this is Express and as such is not as complete as the full SSMS? :rolleyes: Would you figure that's what it is or maybe I'm just not seeing it?

    Hypermommy

    Visual Basic help database lounge

  • Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'.
    H Hypermommy

    Aiiieeee! I've seen that, now that you mention it. Guess I need to make myself a note to use it more often. Now if you'll excuse me I'm off to investigate it some more. Thanks!

    Hypermommy

    Visual Basic help database lounge

  • Syntax Error (missing Operator) in query expression '07/08/2011 12:00:00 PM'.
    H Hypermommy

    The only reason I've continued building SQL strings instead of using parameters is because I have often found it helpful, when having a problem, to put a breakpoint after the SQL is built but before it's executed. Then I'll cut the fully built SQL string and plop it in my database window so the database can give me a clearer understanding of what is going wrong. I presume there's a way to do this with parameters... to see what the whole SQL statement is and attempt execution in the database... but I've never had time to dig up how to do it. So now with this thread, I just thought I'd ask how that can be done. Thanks.

    Hypermommy

    Visual Basic help database lounge

  • Need help with update SQL with subquery
    H Hypermommy

    That did it! Thanks a million!!!

    Denise Duggan

    Database database help announcement

  • Need help with update SQL with subquery
    H Hypermommy

    Hi all, I'm trying to write an update statement with a subquery and can't quite get it right. Hoping you can help. Overall goal of the stored procedure I'm writing is to merge data and make sure I have no duplicates and that the responses associated with a potential duplicate are re-associated with the original record instead of the duplicate. So...... Basic structure of tables is this: Rosters table - contains all of the rosters in the database RosterEntries table - contains a single record for each person in a roster. FK here is back to the rosters table. ParticipantResponses - contains a record for each response a person gave. FK here is back to the RosterEntries table. I am merging the rosters. So when I'm done, there will be one roster where there were two. During the merge, I need to make sure that no entries in the RosterEntries table is duplicated and also make sure that the responses that are tied to a duplicate record are reassociated with the original, not the duplicate. I have an @Existing table variable. This is a subset of the RosterEntries table and it contains only those records that are associated with the original roster. I have the @Dupes table variable. This is a subset of RosterEntries that contains only those records from the roster to be merged (the one that will be going away) which are duplicates of those already in the RosterEntries table. So, let's say James Kirk is in the RosterEntries table twice, once associated with RosterID1 and once associated with RosterID2. RosterID2 is going away. So James Kirk's first record would be in my @Existing table variable. James Kirk's 2nd record will be in my @Dupes table and this is the one I want to get rid of. But before I do that, I have to associate his responses with that first record (the RosterID1 one) so I don't have orphaned responses. Basically, I'm trying to replace the FK in ParticipantResponses so that it points to Kirk's first record (RosterID1 record) not the 2nd one (RosterID2 record) The SQL statement I've been working on is this:

    update participantresponses pr, @dupes d
    set pr.rostEntID =
    (
    select e.recid
    from @Existing e, @dupes d2
    where
    e.refid = d2.refid
    and e.palias = d2.palias
    and e.palias2 = d2.palias2
    and e.pweight = d2.pweight
    and e.pHandicap = d2.phandicap
    and e.loginID = d2.loginid
    and e.password = d2.password
    )
    where pr.rostEntID = d.recID

    (I know... there's a lot of where clause activity in the subquery, but

    Database database help announcement

  • How to write addin that works in both Powerpoint 2007 and Powerpoint 2010
    H Hypermommy

    I appreciate the answer. Yes, that does sound like a viable solution as long as I can code in VS2010 and it'll work in both of them. The problem I'm finding with coding this add-in is there's a dearth of information about programming for PowerPoint. Lots of info for how to use PP, but not much about programming for it. But thanks for the assist. Any little bit helps. ;-)

    Denise "Hypermommy" Duggan

    Visual Basic help tutorial question

  • How to write addin that works in both Powerpoint 2007 and Powerpoint 2010
    H Hypermommy

    Hi all, I've been tasked with ensuring our add-in works in both Powerpoint 2007 and Powerpoint 2010. We'd really rather not have to keep up with two sets of code - imagine the headaches that might entail. I've searched online and on CodeProject for what I need to do to enable functionality in both versions but apparently I don't have the right search terms. Anyone know of any article(s) or other postings that address this issue? Thanks in advance for your assistance!

    Denise "Hypermommy" Duggan

    Visual Basic help tutorial question

  • PowerPoint slide animations flicker when onscreen text updated
    H Hypermommy

    I've been tasked with figuring out why our slides in PowerPoint are flickering when the text of an onscreen shape is changed through the code. We have a timer that counts down from 30 and occasionally while it's counting all of the objects that have any animation attached to them will flicker -- looks like they're being redrawn. But it's not every time the text in the timer is updated. I have not been able to discern a pattern. Apparently this started happening in PowerPoint 2007 and did not happen in PowerPoint 2003. Anyone come across something like this? Thanks!

    Denise "Hypermommy" Duggan

    Visual Basic regex question

  • LINQ Scope Question
    H Hypermommy

    I think I may have found the info I need. I'm partway through reading this article but it's starting to make some sense now. The article is Simple LINQ to SQL in C#[^] just in case someone else faces the same issue.

    Denise "Hypermommy" Duggan

    LINQ tutorial database question csharp linq

  • LINQ Scope Question
    H Hypermommy

    Hi all, I'm trying to learn how to use LINQ and I'm a bit confused over how I should do something so I'm hoping y'all can help. I have this form and basically the user selects something from the first two dropdowns and these selections determine what's shown in the cboActivity dropdown. Once the user populates the cboActivity dropdown (or changes the selected item) I fill in some text boxes with more detailed info about the activity. I also have a btnSaveChanges so the user can make modifications to the detailed info about the activity and save the changes back to the database. From what I'm understanding, LINQ will help keep track of what's changed and update the database appropriately. But I'm not sure if it'll do that given that I pull the data and populate the textboxes in the OnActivitySelectionChanged routine (which is a delegate called when the cboActivity dropdown is loaded or the selected item changed). I'm thinking I need to define something more at the form level so it can see the changes to the activity details and update the database, but I'm getting a bit confused on the reading I'm doing. Could someone help me understand how I need to arrange these objects? Or point me towards a relevant example/tutorial? I've included the code below. Thanks!

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace SWM_Admin
    {
    public partial class frmByActivity : Form
    {
    dmSWMDataContext db = new dmSWMDataContext();

        public frmByActivity()
        {
            InitializeComponent();
    
            // Initialize the Location Type dropdown
          
            LoadLocTypes();
        }
    
        private void LoadLocTypes()
        {
            var dsLocTypes = (from a in db.lu\_locationtypes
                              orderby a.Description
                              select new { a.id, a.Description }).ToList();
            dsLocTypes.Insert(0, new { id = 0, Description = "Select Location Type..." });
            cboLocationType.DisplayMember = "Description";
            cboLocationType.ValueMember = "id";
            cboLocationType.DataSource = dsLocTypes;
            cboLocationType.SelectedValueChanged += new EventHandler(OnLocationTypeSelectionChanged);
        }
    
        private void GetLocations(Int32 LocType)
        {
            // Remove the event handler so it doesn't fire whe
    
    LINQ tutorial database question csharp linq

  • How to set default access modifier for subs in Visual Studio
    H Hypermommy

    Hi all, In Visual Studio 2008, every time I use the dropdowns to create a new subroutine in my codebehind, VS creates it as private. Which, of course, the page can't read. I've looked for how to change this to a default of protected, but just can find how to do it. Could someone clue me in as to where to make this setting change so that protected is the default? Thanks!

    Denise "Hypermommy" Duggan

    ASP.NET visual-studio csharp tutorial question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups