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

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 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

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 2

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

**fetch the record from the datsbase through specified query string ** public void get_student() { if(Request.QueryString["empId"]!=null) { int id = Int32.Parse(Request.QueryString["empId"]); sql = new SqlConnection(con); sql.Open(); string retriew = "select * from emp where emp_id="+id; SqlDataAdapter adapter = new SqlDataAdapter(retriew, sql); adapter.SelectCommand.CommandType = CommandType.Text; hfid.Value = id.ToString(); DataTable dt = new DataTable(); adapter.Fill(dt); emp_name.Text = dt.Rows[0]["emp_name"].ToString(); emp_age.Text = dt.Rows[0]["emp_age"].ToString(); emp_email.Text = dt.Rows[0]["emp_email"].ToString(); emp_phone.Text = dt.Rows[0]["emp_phone"].ToString(); Button1.Text = "Update"; } PropertyInfo isreadonly =typeof(System.Collections.Specialized.NameValueCollection) .GetProperty("IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic); // make collection editable isreadonly.SetValue(this.Request.QueryString, false, null); // remove this.Request.QueryString.Remove("empId"); **after fetching the records i want to update the record but it is not …

Member Avatar
Member Avatar
-1 forum 1

Hi, I'm generating word doc on the fly by using html in asp .net with C#. And I want to add image at top but after creation of word doc I'm not able to see that image. I don't want to use Word or any third party dll. Please Help me out Below is code snippet : [code] strinv = "<html>" + "<body>" + "<div><img src=" + "SnH.JPG" + "alt=" + "Spencer N Hills" +/> </div><br/>" + "<p style=" + "background-color:Silver; border-width:medium; border-style:ridge; border-color:Gray;" + ">" + firstname + middlename + lastname + "</p><br />" + "<p> Position:" + designation …

Member Avatar
Member Avatar
+0 forum 4

why was error Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration' ? you see attach file http://www.mediafire.com/file/jimpgxd88zzfnab/BookShopOnline.rar/file and see file pictures http://www.mediafire.com/view/67di18r0ea4dadg/errorwebconfig.jpg/file

Member Avatar
+0 forum 0

Hi here is code snippet used temprarily on button to debug. This works but i wish to use the 2nd snippet. 1st snippet Dim connString As New SqlConnection connString.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("sql2008r2_857000_dmcsqlConnectionString").ConnectionString Dim cmd As New SqlCommand("select TOP 1 no from members ORDER BY no DESC", connString) Dim reader As SqlDataReader Dim lastNumber As String Using (connString) connString.Open() reader = cmd.ExecuteReader() While reader.Read lastNumber = reader.Item("no") End While End Using Response.Write(lastNumber) 2nd snippet Dim connString As New SqlConnection connString.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("sql2008r2_857000_dmcsqlConnectionString").ConnectionString Dim cmd As New SqlCommand("select max(no) from members ", connString) Dim reader As SqlDataReader Dim lastNumber As String Using (connString) …

Member Avatar
+0 forum 0

i dont know if im suppose to post it here or in the C# form, but since im using it in a ASP.NET projet ... i'll write it here. how can i send an SMS from a PC to a phone, and in details please, explaining EVERY step thanks you. and is it free?

Member Avatar
Member Avatar
+0 forum 5

hi all i have recently purchased a script and im attempting to fix it would anyone know how to solve these 2 errors which appear to be coming from this function [09-Jun-2018 12:40:57 UTC] PHP Warning: Division by zero in /home/public_html/includes/functions.php on line 126 [09-Jun-2018 12:41:19 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/public_html/includes/functions.php on line 135 if(!function_exists('Pagination')){ function Pagination($config=array()){ if($_SESSION['lang']=='L1'){ $firstpage = 'First'; $lastpage = 'Last'; } else{ { $firstpage = 'Trang đầu'; $lastpage = 'Trang cuối'; } } $output = ''; ////FIRST ERROR $rs_maxpage = $config['js_numrows_page']>0?ceil($config['js_numrows_page']/$config['per_page']):0; $eitherside = ($config['showeachside'] * $config['per_page']); $paga = …

Member Avatar
Member Avatar
+0 forum 2

Ok, So I have an instance of **Windows Server 2012 R2** installed to a virtual machine on my local development PC with **IIS** . The idea being I need to practice and learn about how to deploy sites to web servers. I have tinkered around with some of the settings, but I am not entirely sure how to set up this server for **.NET development**. Does anybody have a clear cut translation of what exactly I am supposed to do to set this server up so that I can deploy to it? I am entirely confused right now because I …

Member Avatar
Member Avatar
+0 forum 3

For example, you can order dishes on handheld devices that run on your Iphone, Androi, winphone, restaurant, coffee shop, and so on. Any programming language that runs on the above devices, for example simple you have to share yourself with.

Member Avatar
Member Avatar
+0 forum 4

I am currently experiencing something strange with one of my routes' responses and haven't been able to find any information elsewhere. So, let's say I make a call to a route in my controller with JQuery, like this. It's a POST action and I expect JSON data. // Send the data $.ajax({ type: "POST", enctype: 'multipart/form-data', //'application/json', url: "/Claims/Application/SaveCurrentFormData", data: data, dataType: 'json', // we're expecting back a json processData: false, contentType: 'application/json', cache: false, timeout: 600000, success: function (result) { for (var formCode in result.forms) { var selector = "[data-formcode='" + formCode + "']"; $(selector + " [name='TicketDocumentId']").val(result.forms[formCode]); } …

Member Avatar
Member Avatar
+0 forum 3

Here I present a WebSite containing just Default.aspx. Current snippet code has to do with coloring text in an input field of a web page. The input field is an editable DIV HTML element. While the user writes, there is a partial post (an XMLHttpRequest) to the server. Then the code behind decides which parts of the input should be colored and which color should it be, and returns back to the client the input already formatted with color(s). The code behind must be as fast as possible to interfere as less as possible the user input. After the formatted …

Member Avatar
+0 forum 0

I Have three form Home.aspx and Login.aspx Details.aspx on home.aspx i have two iframe in iframe one i open login.aspx in Login.aspx i have a button btnChangePage now i want to assign src property of second iframe dynamically ( src="details.aspx" ) on btnChangePage_Click Please if u have any suggetions please help me Thanks a lot in advance

Member Avatar
Member Avatar
+0 forum 8

Am a noob to sitecore and learning it .. i have created a webpage from the content editor in sitecore also has paralel webpage in asp.net c# but when i navigate it says document not found !!.. And pops as to check the appropriate prefix added IgnoreUrlPrefixes in webconfig .. can someone help me out as the page is under sitecore procree then how i ignore the url .. please advise ..

Member Avatar
+0 forum 0

Is it possible to make a web page that takes up responsibility for backing up a web applications tables(Oracle DB, and perhaps SQL server I am trying to be multi db supportive)? Essentially I want to create a database backup script that is kicked off by pressing a button on a web page. I have no idea what a dba backup script would look like. Ideally I would place the backup someplace secured, and I can impersonate accounts. I could also use a Quarts .NET cron job, the main hurdle is I don't know anything about DBA tools.

Member Avatar
Member Avatar
+0 forum 12

<pre> hi every one I am working on vs 2012 and mvc 4 ,just small project , i need to apply theme( http://all-free-download.com/free-website-templates/download/magic_city_template_2087.html ) and remove default one ,can any one help me how to do this ?? </pre>

Member Avatar
Member Avatar
-1 forum 1

I makeing a website using VB .net inside visual studio. I have a database where I am storeing names. Than I am displaying these names inside a table. here is a ex: ---------------- | dave | bob | | john | bill | ---------------- I was to add a button called 'delete', inside right click menu. this way user can right click on name, click on delete button. How many I do this? how can i set up context menu or is that just for desktop apps? remember I am makking a website

Member Avatar
Member Avatar
+1 forum 3

Hi every one . i need code for how i set the connection i.e when i execute the project .exe it show me a form in which there is Database name , Server name , User name and Password . And after clicking the OK button it pass these value to connection string and save there. I need simply the code for passing these value to connection string in VB.Net and how save these value there. Thank in advance

Member Avatar
Member Avatar
+0 forum 4

Hello Everyone, I am building multi-web application pages using the Default.aspx, Default.aspx.cs and Confirm.aspx and Confirm.aspx.cs. The problem that I am having is that when I click "Confirm" before clicking "Calculate," the event handler displays the "Click the Calculate button before the confirm" at the bottom of the page. It does that even if the Calculate button is clicked before the Confirm and also displays again when I reload the page. How can I get this to only display if the session state value of SalesPrice is null? Otherwise, it will redirect to the confirm page. Here is Default.aspx.cs: using …

Member Avatar
+0 forum 0

The End.