Hi, I have to pass string entered in the input text to server method calling through jquery ajax. But its not going through. can please somebody tell me what i m doing wrong here. Below is the code: [CODE]$.ajaxSetup({ cache: false //timeout: 1000000 }); function concatObject(obj) { strArray = []; //new Array for (prop in obj) { strArray.push(prop + " value :" + obj[prop]); } return strArray.join(); } //var Eid = "stephen.gilroy1"; function testCAll() { //var ntid = $('#Eid').val(); $.ajax({ type: "POST", url: "Testing.aspx/SendMessage", //data: "{'ntid':'stephen.gilroy1'}", //working data: "{'ntid': $('#Eid').val()}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(result) { alert(result.d); resultData …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am John and pursuing graduate, my question is why Java or oops language does not use multiple inheritance? This is nightmare for me. My exam is coming soon. Please provide me a good answer

Member Avatar
Member Avatar
+0 forum 4

How to use partial view as modal popup?

Member Avatar
+0 forum 0

I Write code to send e-mail from an ASP.NET application..Is this correct for that or need some changes..any changes in the code will be happilly acceptable.. MailMessage mailMess = new MailMessage (); mailMess.From = "abc@gmail.com"; mailMess.To = "xyz@gmail.com"; mailMess.Subject = "Test email"; mailMess.Body = "Hi This is a test mail."; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send (mailMess); I am beginner in this field recently join Online Dot Net training course so I want to clear my doubt

Member Avatar
Member Avatar
+0 forum 3

Hello Coders, I am working on ASP.NET Web Forms. In my page there is a GridView which should have a feature to upload multiple files at the same time to the server. Can you help me in implementing this feature. I want: 1. The files should be uploaded from the GridView on the button click. 2. The upload button should be located on the footer of the GridView. 3. I want to do it in 2 ways - page postback pay and through AJAX. Thank you....

Member Avatar
+0 forum 0

Hi all, I am wondering what is the best way to setup Ninject, ASP.NET Identity and Entity Framework? Normally (without Ninject) I would create my solution by separating the MVC project from Data project and things would work just well, but I can't really figure out the best way to add Ninject there. Is there any good example out there? I would like to handle user authentication with roles on my ASP.NET MVC project and handle the data access via EF. Thank You

Member Avatar
Member Avatar
+0 forum 2

Does anyone here know MVC well enough to teach me or know of a great tutorial I can read? I'm a Senior C#, ASP.NET Web Developer at my core but since I've been under employed for a few years I have not had the chance to learn MVC. Also interested in React or similar javascript libraries as well as Boot Strap.

Member Avatar
Member Avatar
+0 forum 4

How to get next request pipeline in case of token success . suppose i need to get data from action result get request by post man Code: [HttpGet(Contracts.ApiRoutes.Security.GetUserMenus)] public IActionResult GetUserMenu(string userId) { string strUserMenus = _SecurityService.GetUserMenus(userId); return Ok(strUserMenus); } i write on postman link as then select get then write on header key : authorization value :eeerrttyyyyy when invalid access token then it will show message invalid token if valid access token it will continue execution and get result from action this is actually i need on next but cannot do it . Code: public async Task InvokeAsync(HttpContext context, …

Member Avatar
Member Avatar
+0 forum 1

How to initialize any logger at one place to use it in multiple controller

Member Avatar
+0 forum 0

##**What can you tell us about XSD file in C# ?? Explain in Details..**##

Member Avatar
Member Avatar
+0 forum 1

Previously the program was written on VS2005, now I use VS2010 to run the program normally but when I publish the web site I get an error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. error CS0433: The type 'webapp4U.UI.Controls.Controls_MenuLeft' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nhadat\42a77785\d1e96df3\App_Web_danhmucbds.ascx.cc671b29.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nhadat\42a77785\d1e96df3\App_Web_quangcaoleft.ascx.cc671b29.dll'...

Member Avatar
+0 forum 0

How to log handled error using elmah?

Member Avatar
Member Avatar
+0 forum 1

hi brothers , i work on a ASP.NET MVC Project, please i try to get a cookie who created already using server side C# , and in a pure HTML page not .CSHTML i talk now about .HTML page , in this page i want to using javascript to read the value of the cookie that i created using C# . i wish if anyone can help me and thanks so much in advance.

Member Avatar
Member Avatar
+0 forum 1

Hello, i'd like to capture the content of an ext:panel or a screenshot of the whole browser from a client, but i'm having troubles. In localhost, i can do it with CopyfromScreen method, but since the system is in a server and the user acessing it via web, it gives me an error. Does anyone know how I can get through this?

Member Avatar
Member Avatar
+0 forum 1

DataSet ds = new DataSet(); string pattern = @"(</?)(\w+:)"; //[XMLText] is a string variable containing XML downloaded from a WebServices API. StringReader sr = new StringReader(Regex.Replace(XMLText, pattern, "$1")); ds.ReadXml(sr); return ds;

Member Avatar
-1 forum 0

System.Windows.Markup.XamlParseException HResult=0x80131501 Message='Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.' Line number '31' and line position '101'. Source=PresentationFramework StackTrace: at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) at System.Windows.Application.DoStartup() at System.Windows.Application.<.ctor>b__1_0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, …

Member Avatar
Member Avatar
+0 forum 1

Hello to you all. I want to import an excel with four spreadsheets into 4 grid views. So far so good. But I also wan the grid view on load to check if the line values already exist on the database. What's the best apprach to add this collumn to the grid view? Regards, RL

Member Avatar
+0 forum 0

You see the example below why the error not found namespace or class ? [url]http://www.mediafire.com/file/iiak7w5nhhab3ju/Namespace_asp_net.rar/file[/url]

Member Avatar
Member Avatar
+0 forum 2

I'm fetching client records from the database and after concatenating the model class properties(FirstName and LastName) I converted these records in JSON string. My goal is to display these records in Jquery Datatable. I observed at debugging, all these records are in a single string causing the error **"Requested unknown parameter"**. At first, I tried to return a simple JSON return method return `Json(ClientList)` but it did not concatenate the model class properties. Thus, I used `JsonConvert.SerializeObject()` to convert all the details by passing ClientList object and now scratching my head how to use this JSON String in Jquery Datatable …

Member Avatar
Member Avatar
+0 forum 3

Hello, [Click Here](https://i.imgur.com/47YUdmn.png) My problem is in the Edit view, it gets all the information except the logo.. my edit get controller is : // GET: Billers/Edit/5 public ActionResult Edit(string id, HttpPostedFileBase logo) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Biller biller = db.Billers.Find(id); if (biller == null) { return HttpNotFound(); } return View(biller); } ///THE VIEW <div class="form-group"> @Html.LabelFor(model => model.Logo, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> <!--<input type="file" class="form-control" name="logo" accept="image/png,image/jpg,image/jpeg" />--> @Html.EditorFor(model => model.Logo, new { htmlAttributes = new { @class = "form-control", type = "file", accept = "image/x-png, image/gif, …

Member Avatar
+0 forum 0

Hello I am getting 3 errors (same errors for all 3 lines) in my Visual Studio 2017 Web Forms project: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load pnlFormFields.Visible = False pnlThankYouMessage.Visible = True LblDate.Text = ReturnDate() End Sub pnlFormFields, pnlThankYouMessage, and LblDate, are not declared. In my aspx file, I have: <body> <asp:Label ID = "LblDate" runat="server" CssClass="dateStyle" Text="Label"></asp:Label> <asp:Panel ID="pnlFormFields" runat="server"> <form id="form1" runat="server" method="post"> and <asp:Panel ID="pnlThankYouMessage" runat="server" CssClass="panel" Visible="False"> Thank you. Your message has been sent. </asp:Panel> What am I coding wrongly, please? Thank you.

Member Avatar
Member Avatar
+0 forum 4

Suppose I create an asp.net website project that loads data into griview from the class library, declaring the library to use loading data for griview //file: ChitietSP.aspx using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Diagnostics; // Debug using connectSQL; // warning public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LoadData(); } } string sSQL; private void LoadData() { sSQL = "SELECT * FROM TABKHACHHANG "; sSQL += "ORDER BY MASOPHIEU;"; GridView1.DataSource = ClsConnecSQL.FillDatatable(sSQL); //warning } } //file: …

Member Avatar
+0 forum 0

These few lines will allow you to email as html an aspx page from your site or in fact any web page you want (though i wouldnt recommend any with lots of scripts etc in it). It is very useful for email forms to customers etc from your site. Personally I create an plainer version of the form just for email. I remove any menu functions and other things that are there as part of the website and are not useful in the email - but that is a personal preference. I have also created an emailer class which i …

Member Avatar
Member Avatar
+0 forum 5

i have made leaves managment system ,now i want to mentioned leaves days in attendance register if employee take leave from 1-1-2019 to 4-1-2019 then 5 day display in attendance register as a (L) . kindly guide me how it will get done. here is my attendance register query in pivot table. SELECT DISTINCT ReportingDate INTO #Dates FROM EmployeesAttendance WHERE (ReportingDate BETWEEN @StartDate AND @Enddate) ORDER BY ReportingDate DECLARE @cols NVARCHAR(4000) SELECT @cols = COALESCE(@cols + ',[' + CONVERT(varchar, DATEPART(DAY, ReportingDate), 112) + ']','[' + CONVERT(varchar,DATEPART(DAY, ReportingDate), 112) + ']') FROM #Dates ORDER BY ReportingDate -- Building the query with …

Member Avatar
+0 forum 0

Hi All, My first post in a LONG time (got a prompt from admin). I have a fully working ASP.Net website that handles dimensions in metric. The customer now wants to extend the website to allow Americans to use it using imperial measurements!!!?? (Yes, I have tried to talk them out of it!). I think the way to do this would be to keep everything in metric as far as possible and convert to imperial (feet & inches instead of metres) on the fly. So, when displaying the values I convert from metres to feet/inches After accepting input I convert …

Member Avatar
+0 forum 0

Hi, I have been programming C# for some time, and i recently learned about constructors and objects, but didn't fully understand. Can anyone please help me understand this, and please spell it out. I have tried googling it, but couldn't really find anything, that made me understand it. -What is a constructor? -What is a object? -When should i use a constructor? -When should i use a object?

Member Avatar
Member Avatar
+0 forum 1

SummaryProblem ============= How to get label text from table reference on database based on TableName and FieldName dynamically from database and show on view createEmployee . Details Problem Meaning i need to get label text dynamically from database not static from model SO that Every Time i need to change text of label i will change it from database depend on reference table AND No need to change from code . ===============Goal From I post I need function or any thing general let me get text of label from database because Title of labels on my suituation changed more) ===============Tools …

Member Avatar
+0 forum 0

Greetings, I'm kinda new to ASP.NET so I'm unsure as to how to proceed with accomplishing this task. I have a webpage that contains a GridView and controls associated to that such as Add, Issue Equipment, Edit, Delete. What I'm trying to do is when I click on a cell on the gridview the row will be selected then when I click Edit, the modal popup for editting will display with the values and details of that gridview item that Ive selected. How do I pass that gridview item and its values to that Edit modal popup? I use a …

Member Avatar
Member Avatar
+0 forum 2

How can we apply Themes to an asp.net application?

Member Avatar
Member Avatar
+0 forum 1

What are the different event handlers that can have in Global.asax file?

Member Avatar
Member Avatar
+0 forum 2

The End.