Subscribe: Personal Site Starter Kit
Added By: Feedage Forager Feedage Grade B rated
Language: English
add row  add  boundfield datafield  boundfield  input text  input  list  row  runat server  server  system web  system  text  web 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Personal Site Starter Kit

All Forums

All Forums

Last Build Date: Sun, 22 Apr 2018 12:14:04 -0700


ASP.NET Webserver from scratch



I was given a brand new Webserver with just the OS. I enabled IIS from Control panel features. Now I am not sure what software should I install to make it a web Server that hosts my ASPNET Web Application. I thought we should use WebPlatform installer to get ASP.NET web Components. not sure where to start

I generally use Visual studio installer as it installs everything if the system needs VS but in this case, its just a web server. Where I should start?

Easy way to do show more items with search in mvc


Hi, i would love to show a list of items from my database and at the bottom of my list a button "SHOW MORE" and if iclick on it i will show the next 25 items..

I also need to be sure that i pass the string of my search..

how to achive this in MVC?

search for records that contain any of the words from an array


I'm looking for questions that their title contains any of the list of keywords that I have

for example: I have the below questions: "What is mvc","what is the capital of USA","how do I make salad",:is Mvc difficult"

my keywords are {"mvc","code","development"}

I want to search through all questions to return questions with any of the keywords so the output result will be "what is mvc","id Mvc difficult"

I have tried the below :

 var relatedQuestions = allQuestions.Where(m => m.Title.Contains(myKeywords)).ToList();

but is wrong. can anyone help please                                 

Few questions about Kestrel


Hello, I need to create an application based on .NET core 2.0 but I stuck on configuring platform. I have some tasks which are milestones in my app so please help.

1) My index.html page contains specified strings (variables) f.e. which I need to replace on runtime each time this file is downloading. So what I need to do is override standard Kestrel file serving with this template: catch request file, open it then change it contents and send to client. I found a partial solution here: but some of the serving files will be larger than 100mb so I need to find better performance solution. Could you help?

2) I noticed that Kestrel copies all static html/js files from folders in solution into wwwroot. The problem is that my static files are very large and I don't want them in wwwroot directory. How can I prevent that behavior?


find sum of column and set the result in the textbox after changing first column input td


hi, i have these codes each row is autocomplete now i want to find sum of column price after chanaging first td input for autocomplete and set the result in the textbox and multiply column price with discount column after changing price or discount and show the result in the column result view Add Row
                          item             price             discount             Result                                                                                                                                                              //add row                 jQuery(function () {                     var counter = 1;                     jQuery('a.add_row1').click(function (event) {                         event.preventDefault();                         var newRow = jQuery('');   &n[...]

Query to check existing data


I am using this code to insert data.

INSERT INTO Store_Exp (ID, Product_Name,Received,Issued,Waste,Alika_Kitchen,Mess,Date,Remarks)
SELECT ID, Product_Name,0,0,0,0,0,GETDATE(),''
FROM Inventory

I want to check if the data pertaining to current date which is inserting is already there in Store_Exp table or not 

if the data is there then not to insert  data again and give a message and exit.

table row auto complete


hi i have these codes to create row autocomplete retrieve data from db into the row depending on first column but when i add another row it doesnt work autocomplete why? view Add Row
                          item             price             discount                                                                                                                                                 //add row                 jQuery(function () {                     var counter = 1;                     jQuery('a.add_row1').click(function (event) {                         event.preventDefault();                         var newRow = jQuery(' ');                         counter++;                         jQuery('table.authors-list1').append(newRow);              &nb[...]



I have an urgent issue which is baffling me for a while now and I need to get it resolved. Here is the issue: I have a ASPNET web application using standard ASPNET tables which I inherited. The application uses ASPNETUSERS table to manage users and everything works fine. I need to add roles to the application. So I added all the standard configuration (shown below). The issue is all activities when I create a new role is being recorded in ASPNET_USERS and ASPNET_Roles and ASPNETUSERS are invisible to role management. I am trying to avoid moving all the code to ASPNET_USers table (and frankly don't know how). I am not sure if this is a MVC or WebApp issue. I am using Microsoft.Owin library. Any suggestion or assistance is greatly appreciated. Here is configuration information. Role Management using the following classes using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; but registration using the following using System; using System.Linq; using System.Web; using System.Web.UI; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Owin; using MyApp.AppCode; using MyApp.Models; namespace MayApp.Account { public partial class Register : Page { protected void CreateUser_Click(object sender, EventArgs e) { var manager = Context.GetOwinContext().GetUserManager(); var signInManager = Context.GetOwinContext().Get(); var user = new ApplicationUser() { UserName = Email.Text, Email = Email.Text, FirstName = FirstName.Text, LastName = LastName.Text, Address = Address.Text, City = City.Text, State = StateDropDownList.SelectedValue, ZipCode = Zip.Text, PhoneNumber = Phone.Text, AltPho[...]

How can I get access to the html tags in c# code behind with Core2?


In web forms,, I could get grab a tag from the html file by using the following:

HtmlGenericControl divTemp = FindControl("divListView");

Then I could change css attributes of the tag.

How do I do that with core2?

mvc digram explanation



please ref his

please explain the digram  flow, i am  confusing about it.

 thanks and regards


row auto complete


hi i have these codes to create row autocomplete retrieve data from db into the row depending on first column but when i add another row it doesnt work autocomplete why? view Add Row
                          item             price             discount                                                                                                                                                 //add row                 jQuery(function () {                     var counter = 1;                     jQuery('a.add_row1').click(function (event) {                         event.preventDefault();                         var newRow = jQuery(' ');                         counter++;                         jQuery('table.autho[...]

Edit Update Gridview and also calculate the values while updating


In my Web i am using this code to edit update data in gridview.




 When i open Visual Studio 2012 Configuring Web http://localhost:1392/ for Asp.Net 4.6 failed. You must manually configure

this site for Asp.Net 4.6 in order for the site to run correctly. Asp.Net 4.0 has not been registered on the Web Server.

You need to manually configure your web server for 4.0 in order for your site to run correctly.


Creating A Clear Button That Can Clear Textbox in a GridView


Forgive me, as I am a total programming beginner. I am trying to create a button that will clear all the textboxes that exist inside of a GridView control. Here is my code. The textbox ID is "qty" in the "seachAllInventory" control.  I have tried using a plaid html reset button, but that does not work. I have also tried using the ASP control button, but that also does not work. Any help appreciated.
" value="<%#Eval("supplyId")%>"> change the user agent


I have made a class that inherits from IHttpModule and set an event like below:

        public void Init(HttpApplication app)
            app.BeginRequest += new EventHandler(BeginReq);
        public void BeginReq(object sender,EventArgs e)

            NameValueCollection headers = HttpContext.Current.Request.Headers;
            headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko");

but when I check the user agent in my  default.aspx page:

            string agent = Request.UserAgent;

It is still not what I have manually set.

what did I do wrong?

thanks in advance.

how to create cascading dropdown List


Hi All

please help me for create  a cascading drop-down in mvc .for example in my View i have 2 drop down .

the one fill with Country information and another on show city information.  

also i want when the country drop-down changes , my city drop-down changes according to the country drop-down


How to prevent image stretching in slider in ASP.NET


Hi Guys,

I Created one slider, that is 430px height and 1170px width,i want to fit image according to that height and width,any size of image must need fit according to that to do that ? i fallowed several methods but i couldn't prevent that image stretching, i used image in between div tags  and flex ..etc

how to do this?

If Textbox data change show button without postback



In my aspx page I have one dropdownlist If i select that dropdownlist it bind data in textbox

for example Textbox1 data is Apple

now if user change data then i want to show button visible true

how to do so without postback..

Waiting for 2.0 C# code


JQuery syntax signalR Call


Hi,   On an MVC application I want to lock records that are being edited. (see also my previous question ) I realize now that I need to keep a list of Locked records on the server for this. I am doing this in memory since only a few users will be working with the application at the same time. So this is my Lock list: public class  LockList     {         static List _LockList;           static LockList()         {             _LockList = new List();         }                   public static void Add(long id, string psn)         {             Lock l = _LockList.SingleOrDefault(x => x.Id == id);             if(l==null)             {                 Lock lo = new Lock();                 lo.Id = id;                 lo.Set = DateTime.Now.ToString();                 lo.By = psn;                 _LockList.Add(lo);             }                     }           public static void Remove(long id)         {             Lock l = _LockList.SingleOrDefault(x => x.Id == id);             if (l != null) _LockList.Remove(l);         }           public static bool Contains(long id)         {             Lock l = _LockList.SingleOrDefault(x => x.Id == id);             return l != null;         }           public static List GetLockList()         {             return _LockList;         }             public class Lock         {             public long Id { get; set; } //The Id of the locked record             public string  Set { get; set; } //The date and time of the lock             public string By { get; set; } // the userId         }     }   And this is my hub:   public class HandOverHub : Hub   &[...]