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
J

Joshua Omundson

@Joshua Omundson
About
Posts
27
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Relation between controller,view and model in asp.net mvc
    J Joshua Omundson

    The view can interact with the model through a feature called model binding. So for example, you have a view that will post back to a controller. If the view is tied to a model then the MVC Framework will loop through all of the form elements and match them up with the properties in the Model, and then pass the filled model over to the controller. I would recommend going through a few tutorials over at www.asp.net[^] so you get a better understanding from a hands on approach.

    ASP.NET asp-net csharp com architecture help

  • What is the advantage of using Tag Helpers in ASP.Net MVC 5
    J Joshua Omundson

    Your sample code has a perfect example. So as it is now you have a form like so

    @model MyProject.Models.Product

    @using (Html.BeginForm())
    {

        @Html.LabelFor(m => p.Name, "Name:")
        @Html.TextBoxFor(m => p.Name)
    
    
    <input type="submit" value="Create" />
    

    }

    Just by looking at this code I don't really know where the form is going to be posted to. Also your standard HTML controls are created using specific C# HTML Helpers, which can make the html a little confusing for some. Now taking a look at the code that uses Tag Helpers, the HTML is much more readable.

    @model MyProject.Models.Product
    @addtaghelper "Microsoft.AspNet.Mvc.TagHelpers"

    <form asp-controller="Products" asp-action="Create" method="post">

        <label asp-for="Name">Name:</label>
        <input asp-for="Name" />
    
    
    
    <input type="submit" value="Save" />
    

    </form>

    I know exactly where this form is going to post back to. And I also know where my HTML elements are and where my C# code is. For me, it makes the view a whole lot easier to read and understand.

    ASP.NET asp-net csharp html dotnet com

  • display the name of current system user
    J Joshua Omundson

    You can use User.Identity.Name

    ASP.NET

  • ASP.NET QUESTION PERSONAL PROJECT
    J Joshua Omundson

    This will help you learn about sending emails in asp.net http://asp.net-tutorials.com/misc/sending-mails/[^]

    ASP.NET question csharp asp-net beta-testing tutorial

  • ASP Buttons event not firing
    J Joshua Omundson

    Posting your code would help. Have you walked through it to make sure the code is following the proper path?

    ASP.NET help javascript sysadmin question

  • ASP Buttons event not firing
    J Joshua Omundson

    If you have CausesValidation set to True and you are not getting a postback, then it's possible that your validation controls are firing and not being displayed. If you have validation controls set up make sure they are displayed properly to a ValidationSummary control. You could also set your CausesValidation property to False to by pass the validation and make sure it's hitting the server.

    ASP.NET help javascript sysadmin question

  • Can you help me in this token? if(this._Item==null){ this._Item = new List<Cart>(); this._dateCreate = DateTime.Now; } }.I do not understand it and why use
    J Joshua Omundson

    I'm not sure what your question exactly is.

    if(this._Item==null)

    This statement checks to see if the list has anything in it. If it doesn't then it will create a new list so you can store Cart objects in it

    ASP.NET csharp linq help question

  • Returning true/false in a boolean function
    J Joshua Omundson

    You have to fill the DataSet before you read from it.

    adapter.Fill(ds6, "Teacher");

    ASP.NET sysadmin question

  • the select control
    J Joshua Omundson

    For your first question, you can use the onselectedindexchanged event. For your second question, if you are storing the option values in a database, you can pull the results based on the person Id and databind it to the drop down list.

    ASP.NET question sysadmin tools tutorial

  • 'System.Web.HttpUnhandledException' Error
    J Joshua Omundson

    Have you tried to set a break point and step through the code? In order to help you with this, we would need to see the code that is generating the error and what you were attempting to do when you received it.

    ASP.NET com design windows-admin data-structures security

  • how to implement google doodles using vb.net
    J Joshua Omundson

    You can use flash for this, and I also believe HTML 5 can handle a lot of this too. I would recommend searching first before asking for the complete source code.

    ASP.NET csharp tutorial

  • news article page
    J Joshua Omundson

    I'm sure the OP is asking if a database would be a good way to store the news articles, pictures, etc.

    ASP.NET question csharp asp-net database announcement

  • How to call java script function after getting result from the server
    J Joshua Omundson

    Instead of trying to call the JavaScript function after you get the server results, you should be using AJAX to take care of everything.

    ASP.NET csharp java asp-net sysadmin tools

  • AJAX ModalPopUpExtender
    J Joshua Omundson

    I don't think you need the btnIntroductionText_Click event since the Popup Extender is already taking care of it when you set the TargetControlID.

    ASP.NET help tools question

  • Fire Validation Summary in textbox blur
    J Joshua Omundson

    I beleive the Validation Summary fires when a post back is attempted. Here[^] is an article that might help. To get around the page alignment issue, I put an asterisk in the RequiredField Validator text property. That way when the onblur even fires, you will have a little red star appear, which shouldn't affect your layout too much.

    ASP.NET help

  • how authenticate aspnet using SQLSERVER
    J Joshua Omundson

    You will want to use Forms authentication. Here[^] is a good starting point

    ASP.NET asp-net database help csharp sql-server

  • How to mix ASP.NET Forms and Windows authentication
    J Joshua Omundson

    I agree that the OP might be able to impliment this to work with their application, but my point is still valid. As the article states "While you might like to just combine Forms and Windows authentication, its not that easy. Each ASP.NET application can only have one authentication type, so you need to pick just one."

    ASP.NET csharp asp-net sysadmin windows-admin security

  • Credit Card Security
    J Joshua Omundson

    You can choose to run this on client side, but you will always want to do it again on client side as well, just in case the user disables JavaScript or messes with the HTML of the page. There is a regular expression that you can use to validate that the credit card number is in a "valid format" and as far as the month and year, your best bet would probably use drop down boxes to restrict their input choices.

    ASP.NET question csharp javascript asp-net sysadmin

  • How to mix ASP.NET Forms and Windows authentication
    J Joshua Omundson

    You cannot mix the two authentication methods. You can only use one authentication method per site, so you have to pick either Forms or Windows. The only thing you can do with a sub folder is change the authorization, which is something separate.

    ASP.NET csharp asp-net sysadmin windows-admin security

  • how authenticate aspnet using SQLSERVER
    J Joshua Omundson

    Do you mean you want authorize users that are listed in your database to access your project folders?

    ASP.NET asp-net database help csharp sql-server
  • Login

  • Don't have an account? Register

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