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
S

sunsher

@sunsher
About
Posts
44
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Img Collection
    S sunsher

    Hi,

    In my ASP.NET Webform page, I have a fileuploader and a div. On single selection of image, the selected image is added to the div. All works fine. Now, I would like to add a checkbox or some sort of selection and then save the selected images to the server folder. Please can someone help on how to do it?

    Thanks

    ASP.NET csharp asp-net sysadmin help tutorial

  • Enable Image Zoom only
    S sunsher

    Hi, Is there a way to disable page zoom and enable only image zoom of the page in a touch screen? Thanks

    ASP.NET question

  • Repeater and BulletList
    S sunsher

    Hi,

    I was given just one table with many information in it. The requirement is as follows.

    Table:
    I have added columns that are only required.

    UId(string) Class(string) Primary Subclass(string)

    1. Select Min(UId), Max(UId), Class
    2. Display in a box Min-Max and Class
    3. List the distinct Primary subclasses when clicking 'View More', as it is one to many
    4. Each list item link to further details in another page.

    I have created a Repeater and inside the ItemTemplate, I added two literals for UID and Class, and a BulletedList to display the distinct Primary subclass. However, I cannot get the text of the clicked list as it is inside the ItemTemplate. How can I achieve this? Please help.

    Thanks

    Visual Studio 2015 & .NET 4.6 question help

  • Min and Max or Range
    S sunsher

    From all the expert adivces I get here, I think I should not do what I intend to do. As it is a ASP.NET Webforms application using VB.NET, I retrieved all the records from the table, and inserted into a dictionary, then played with it. So now I get the result I want.

    C# database

  • Min and Max or Range
    S sunsher

    Hi, I have a table in SQL like so

    UId Class
    1 Apple
    2 Apple
    3 Apple
    3a Apple
    4 Orange
    4a Orange
    4b Orange
    5 Orange

    I am trying to get the min and max of the UId column for each class as below.

    1 - 3 Apple
    4 - 5 Orange

    Is it possible to do so, as the UId is varchar. Thanks

    C# database

  • Replicate a form
    S sunsher

    Hi, I am given a hard copy consent form that needs to be in a web page including an area for signature. What's the best way to accomplish this? Thanks

    Visual Basic question

  • Advice on Partial View
    S sunsher

    Hi, I am creating an Asp.Net MVC5 application where I have two areas called Teacher and Parent. I want to display a Child's home page based on the area, that is, both the teacher and parent have their own page layout. I can pull the child data using json. How can display it as a partial view in both parent and teacher home page? Thanks

    ASP.NET csharp asp-net json question

  • Advice on Partial View
    S sunsher

    Hi, I am creating an Asp.Net MVC5 application where I have two areas called Teacher and Parent. I want to display a Child's home page based on the area, that is, both the teacher and parent have their own page layout. I can pull the child data using json. How can display it as a partial view in both parent and teacher home page? Thanks

    C# csharp asp-net json question

  • Refresh Partial View
    S sunsher

    Hi, I am developing a Web Application with Asp.NET MVC5. As I dont have much experience, I am stuck with a functionality using JQuery and Partial View. I have a Side Menu as a partial view in a page. This partial view contains a DropdownList which is populated from model, and it works fine. However, I want to display a list of items from the db when the dropdown is selected, based on the selection, which is not working.

    Partial View (_UserPartialView)
    $('#dropdown').change(function(){
    var item = $(this).val();
    $.get("/Controller/GetItems/" + item, function(data)
    {
    ('#target').html(data);
    });

    Controller

    public ActionResult (int id)
    {
    var test = db.Users.Where(e => e.cId = id);

    return PartialView(" _UserPartialView", test);
    }

    Please help. Thanks

    C# help csharp javascript html asp-net

  • Multiple checkbox
    S sunsher

    Teacher is a new table and hence TeacherId. I added code in the Controller as below Public ActionResult Educator() { int curId = (int)Session["UserId"]; var centres = from c in db.Centres where c.AdminId == curId select c; return View(); } And in View, I have @html.Label("First Name") @Html.EditorFor() @html.Label("Last Name") @Html.EditorFor() @html.Label("Email") @Html.EditorFor() Next, I want a collection of Checkboxes from the Centres result. When I click submit, this record goes to the Users table and also the Teachers table. Thanks

    C# question csharp asp-net help

  • Multiple checkbox
    S sunsher

    Hi, I am working on ASP.NET MVC5. I have a two class that has many fields. In a different view, I want to insert two fields from on table and a list of one field from the other class. Table A CentreId AdminId (UserId) CentreName Address Phone Table B UserId FirstName LastName Email Password The view will have fields like below First Name Last Name Email Centres -------List the centres based on the UserId------- Button Save When the save button is clicked, I wish to add the details to another table like below Table C TeacherId AdminId CenterId How can I accomplish this? Please help Thanks

    C# question csharp asp-net help

  • Side bar
    S sunsher

    Hi, I am new to ASP.NET. I would like to know how to create a page with a side bar, which is tree like. There are two tables with a one to many relation. So I get all records from table A that matches the Id of table B. I want to display this list in the side bar. Also, use the Create New page in the body content. Is this possible in ASP.NET? Please help. Thanks

    ASP.NET csharp asp-net data-structures help tutorial

  • Queried result to ListBox in PartialView
    S sunsher

    Hi, I am new to ASP.NET MVC. I would like to get some help on getting custom data from controller to view. I have queried and concatenated the result of a table from model based on a criteria. I want this to be viewed as a partial view in the Index page. For this, I pass the queried result as follows

    return PartialView(rds.ToList())

    The purpose is to display a listview of these items in the Index view as partial. I don't know how to grab this data from the partial view. Please help. Thanks

    C# asp-net csharp database architecture help

  • Queried result from cotroller to PartialView into Listbox
    S sunsher

    Hi, I am new to ASP.NET MVC. I would like to get some help on getting custom data from controller to view. I have queried and concatenated the result of a table from model based on a criteria. I want this to be viewed as a partial view in the Index page. For this, I pass the queried result as follows [CODE]return PartialView(rds.ToList())[/CODE] The purpose is to display a listview of these items in the Index view as partial. I don't know how to grab this data from the partial view. Please help. Thanks

    ASP.NET asp-net csharp database architecture help

  • Call JavaScript function from c# code in cshtml
    S sunsher

    I have a list passed on to the view from the controller through a viewbag. so if the viewbag has the list, then execute a javascript function that is defined in the script section of the page. what is the other option?

    ASP.NET csharp javascript tools

  • Call JavaScript function from c# code in cshtml
    S sunsher

    Is it possible to call a javascript function in a cshtml, in the @{} section, and the javascript function is defined in the script section of the cshtml. Thanks

    ASP.NET csharp javascript tools

  • Edit not working
    S sunsher

    Hi, I created a mvc web project with scaffolding that displays well in the Index page. When I edit, I do not want any of the fields in the edit page to edit. Instead, I added a textbox whose value I calculate and save the rest of the fields to the database. I cannot get this to work, as the model in the HttpPost is null. Please help. Thanks

    ASP.NET database asp-net json architecture help

  • Web API integration into MVC
    S sunsher

    Oh Sorry!

    The Lounge asp-net json architecture help tutorial

  • Web API integration into MVC
    S sunsher

    Hi, I am part of a MVC Web application that contains a Web API. Unfortunately, as I am new to MVC, could the experts out there help me how to integrate the WebAPI into my MVC please? Thanks

    ASP.NET asp-net json architecture help tutorial

  • Web API integration into MVC
    S sunsher

    Hi, I am part of a MVC Web application that contains a Web API. Unfortunately, as I am new to MVC, could the experts out there help me how to integrate the WebAPI into my MVC please? Thanks

    The Lounge asp-net json architecture help tutorial
  • Login

  • Don't have an account? Register

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