Search:

Type: Posts; User: Ms.Longstocking

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. VS 2019 Re: Add column to AspNetUserRoles table and apply custom authorization

    Hey guys,

    Any suggestions on how I can resolve this little SNAFU?
    Does my potential solution hold water?

    @jmcilhinney
    I've been contemplating your suggestion:


    Are you suggesting a cookie...
  2. VS 2019 Re: Add column to AspNetUserRoles table and apply custom authorization

    Firstly, it's been a while and it's good to see that you're still active on this website! I remember you and your input with fondness! You and the rest of the contributors on this site helped me out...
  3. VS 2019 Add column to AspNetUserRoles table and apply custom authorization

    Hey guys,

    Been years since I posted here.... back in the game.

    The title of my post may not accurately reflect what my end goal is, so I'll elaborate as little before the discussion begins.
    ...
  4. Replies
    1
    Views
    3,091

    Add DKIM to Mail header

    Hi gents,
    I've got a tough one for ya.
    My webapp is geared to send off occasional emails to users on demand.
    In an effort to improve the likelihood that these messages reach their destination...
  5. Replies
    1
    Views
    672

    Re: Function on INSERT

    I redefined my table and rewrote the related SPROCS.
    The TransactionId column is now an IDENTITY column.

    Problem solved.
  6. Replies
    1
    Views
    672

    [RESOLVED] Function on INSERT

    I am in a major SNAFU.

    I have a table whose primary key is generated via function:



    FUNCTION [dbo].[NewTransactionId]()
    RETURNS char(16)
    AS
    BEGIN
  7. Model Validation - Integers only - null accepted

    Hiya,

    My attributes for a field in one of my models are:

    [Range(1,8)]
    [Display(Name = "Max Number of Soda")]
    public int? MaxSoda { get; set; }


    This model accepts values within 1 to 8...
  8. Re: Async thread within JSon Function - Failing only in Production

    SOLUTION:

    http://tech.trailmax.info/2014/06/asp-net-identity-and-cryptographicexception-when-running-your-site-on-microsoft-azure-web-sites/
  9. Re: Async thread within JSon Method - Failing only in Production

    At first, I called it within SqlReader.
    I them moved it outside the reader and still got the same error.

    I'm starting to suspect more and more that it is the environment that is the culprit.
    The...
  10. Re: Async thread within JSon Function - Failing only in Production

    "Thread" may have been a misnomer. :)

    Anyway, I solved the issue.
    I moved the "await" outside the JsonResult class.


    private async Task GetCode(string Id)
    {
    var code = await...
  11. [RESOLVED] Async thread within JSon Function - Failing only in Production

    ASP.NET
    MVC
    C#
    SQL Server 2012

    At my wit's end, gentlemen.

    I'm sure it's happened to the best of you, so you can relate to my situation.
    I have supposedly two identical systems.
  12. Text submission - Security concerns

    ASP.NET
    MVC 5
    Target Framework 4.6.1

    Throwing a broad net at this topic is necessary seeing that my expertise in this area is basic at best.
    My application allows a user to send a message to...
  13. Replies
    0
    Views
    1,763

    Image Re-orientation and file size

    Check out this block of code:


    private static RotateFlipType GetOrientationToFlipType(int orientationValue)
    {
    RotateFlipType rotateFlipType =...
  14. Replies
    7
    Views
    1,981

    Re: forms and images

    Excellent.
    First hurdle is done.

    Now, I can't for the life of me figure out why the image rotation is failing!

    Select an image (taken from a mobile device) whose orientation is askew.
    The...
  15. Replies
    7
    Views
    1,981

    Re: forms and images

    UPDATE --

    I tried clearing the form (multipart/form-data) when the dialog box is recalled, thinking that because it's a multipart form that the images were being queued up.

    Did not work.


    ...
  16. Replies
    7
    Views
    1,981

    Re: forms and images

    If this helps....

    https://jsfiddle.net/MsLongstocking/ktt0wLqu/

    Instead of adding a link to the library, I pasted it into code window.
    jsfiddle was telling me of a potential error.......
  17. Replies
    7
    Views
    1,981

    Re: forms and images

    I'm not that jsfiddle-savvy.
    I tried recreating the functionality there but am having problems getting the js to work at all. I can't even get an "alert" to fire.
  18. Replies
    7
    Views
    1,981

    forms and images

    I have a simple file upload control that is designed to upload a single image and am trying to implement some image orientation functionality for images that are taken by mobile devices.

    My back...
  19. Re: INSERT multiple rows from temp table

    Thanks for the help guys.
    I've been awake for too long.
  20. [RESOLVED] INSERT multiple rows from temp table

    I'm sure it's something inane as my SQL skills are weak...
    Here what I need to do:

    I am passing a structured variable over to my SPROC in Sql Server like so:
    ...
  21. Re: ExecuteNonQuery - INSERT a row AND INSERT many rows with one SPROC

    Closing this thread.

    I had it right it seems in:
    cmd.Parameters.AddWithValue("@TheTable", System.Data.SqlDbType.Structured).Value = dt;

    Error on the SQL INSERT side of things.
    Will start...
  22. Re: ExecuteNonQuery - INSERT a row AND INSERT many rows with one SPROC

    I think that I should start from the beginning and provide more detail to my problem.
    There seems to be a slight disconnect. :)

    Here we go:
    -- ASP.NET Web app (MVC 5)
    -- Sql Server 2014

    I...
  23. Re: ExecuteNonQuery - INSERT a row AND INSERT many rows with one SPROC

    ADDENDUM

    I forgot to add a link to my post.
    This is/was the solution that I had attempted and failed:

    http://www.c-sharpcorner.com/UploadFile/ff2f08/table-value-parameter-use-with-C-Sharp/
  24. Re: ExecuteNonQuery - INSERT a row AND INSERT many rows with one SPROC

    --PARAMETERS FOR SINGLE RECORD
    @cid varchar(50),
    @did varchar(50),
    @sid varchar(50),
    --PARAMETERS FOR INSERT MULTIPLE RECORDS (from datatable on serverside)
    @uid varchar(50),
    @sname...
  25. [RESOLVED] ExecuteNonQuery - INSERT a row AND INSERT many rows with one SPROC

    I have to start off by saying that SQL Server and all of its associated happyfuntimes is my weakest programming skillset, so I ask that you have some patience with me.

    My goal is this:

    I would...
  26. Re: Sorting a table column OF dropdowns

    Hey guys,

    The issue I was having was trying to lock down a plugin that would get the selected values of the dropdown for each item in the column and sort alphabetically.

    Most failed. However,...
  27. [RESOLVED] Sorting a table column OF dropdowns

    I've looked at numerous plugins and have yet to find one that will sort a column of dropdowns (based on selected="selected")

    Each dropdown is built like so:


    <select id="Select17">
    ...
  28. Re: Windows Forms - ComboBox in DataGridView

    You hit the nail on the head.
    DataPropertyName needed to be filled. See image.

    138117

    With the DataPropertyName fields populated, the working code is now trimmed down to:


    DataTable...
  29. Re: Windows Forms - ComboBox in DataGridView

    I'm clear on everything except #2. There is a complete disconnect for me here.

    By default, every column in a DataGridView is of type DataGridViewTextBoxColumn.

    You had mentioned, "If the column...
  30. Re: Windows Forms - ComboBox in DataGridView

    After attempting to follow the example outlined in your code bank, I have these questions/snafus:

    1) Is it necessary to use a binding source?
    2) When I attempt to assign a DisplayMember,...
  31. [RESOLVED] Windows Forms - ComboBox in DataGridView

    My goal is to display a DataGridView with records from a db[table 1].
    The last column of the dgv should display a combobox with a list of items[table2] (Also populated form the db).

    I am having...
  32. Re: ExecuteNonQuery return value

    Right you are.
    It's a simple INSERT.
    It succeeds (No PK violation)
    Or it doesn't (PK violation).

    Should I keep an eye out for any other error types?
  33. [RESOLVED] ExecuteNonQuery return value

    I have a simple procedure that inserts a record into a table.
    The table has a primary key.
    If primary key violation occurs, an exception is thrown.
    We're ok up until this point, boys and girls.
    ...
  34. Replies
    4
    Views
    511

    Re: DropDown

    LOL
    Ok, I think we can mark this one as resolved!
  35. Replies
    4
    Views
    511

    Re: DropDown

    Too vague a question.
    Are the list items static? Is the data coming from an XML file? Database?
    Will it cascade? Part of a model?
    Are hamsters truly the best pets ever?
  36. Replies
    0
    Views
    333

    [RESOLVED] Handling Error Pages

    MVC 5
    C#

    Can someone provide me with a comprehensive reference that outlines the best practices on handling errors for my ASP.NET website?

    I've been perusing the net for a couple of hours now...
  37. Re: Entity Framework Connection string

    I found the culprit.
    Turns out that the syntax of my example is just fine.
    The problem is found in my model:

    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
    ...
  38. [RESOLVED] Entity Framework Connection string

    To sum it up, I need to do this:
    http://david.gardiner.net.au/2015/04/entity-framework-6-connection-string.html
    .... Entering my existing Connection String Name instead of the connection string...
  39. Re: T-SQL - Set Variable Value

    Nvmd.
    Found the issue. Bizarro.
    It had to do with a listbox value.

    In my C# code, I had originally had:
    string cid = listBox1.SelectedValue.ToString();
    My STOREDPROC parsed this correctly and...
  40. [RESOLVED] T-SQL - Set Variable Value

    Hi,

    I realize that this is not an SQL forum per se, but perhaps close enough? :)

    I have a stored proc that I am sending 2 values(strings) to (C#, windows form, SQL Server).

    The first, @cid,...
Results 1 to 40 of 399
Page 1 of 10 1 2 3 4



Click Here to Expand Forum to Full Width