Form Background Image within a Site.Master

I have tried everything to get an image to display as a background. I have it working on my local visual studio express install but when I upload to internet host server it will not render properly. I had the same problem with a header background image but found a solution that works, but same solution will not work with form background.If I place the same background image style tags in the div class="page", it will render on both my development environment and internet host servers, but I want my page over top of this image (i.e. my application code pages are on top of...

VIsual Studio 2017 NuGet package installs well but is not recognized

I have Solution A which has a .NET Core 1.1 class library project. In the Package properties I filled all NuGet fields and selected to create the NuGet upon successful build. This project builds just fine and the NUPKG is created. BTW How can I automatically copy the generated NUPKG to a local directory (my own repository)?Then I have Solution B which is an ASP.NET Core 1.1 web application. In it I browse to my local repository (where I have manually copied the NUPKG built by Solution A) and install my SolutionA.MyPackage into the web application. VS.2017 says it was succes...

ASP .NET Panels visible true/false working only after double clicking in breakpoint mode

I have a strange problem. There are two panels in my Page. On click of a button one becomes visible and other gets hidden. Following is my code. <asp:Panel ID="pnlIDProof" runat="server" Visible="true"> ID Proof Panel markup here...... </asp:Panel> <asp:Panel ID="pnlRegister" runat="server" Visible="false"> Registration Panel markup here..... </asp:Panel> protected void btnIDCheck_Click(object sender, EventArgs e) { if (candidate.IsDuplicateIDProof()) CallExist(); else CallRegistration();...

Add Expire headers in Asp.net

I am using YSlow to grade the performance of my application and I got an D grade for the Add Expires Header aspect.I am using IIS express, so I found this code online and added it into the web.config file but it doesnt work; the grade is still D.I did it in the web.config file. Any idea how to improve the grade of "Add Expires Header" ? <system.webServer> <staticContent><clientCache cacheControlMaxAge="30.00:00:00" cacheControlMode="UseMaxAge"/></staticContent> Please try the below:IIS -> Expand Sites -> Select your site -> Click 'HTTP Respon...

How to apply class for any control type in div?

In my forms has many <asp:Label>, I want apply Height for all there, but I not want set height one by oneIs possible set they height by a class in it parent div?<div class="FormContent"> <h1 class="title">Cadastro de Cliente</h1> <div class="row"> <div class="col-md-6"> <asp:Label Text="Nome" Height="10px" runat="server" CssClass="h4" /> <asp:TextBox runat="server" ID="Nome" CssClass="form-control" placeholder="Ex: João da Silva Cunha" /> </div> </div> <div class="...

IIS: published asp.net app replace ip with domain name

I have already rent an online server.I'm installing IIS on it, hosting a website on it.to access the site from internet, I must type: {ipaddress}/siteAppNameMy question is how to use a name instead of ip address? should I buy and register a new domain name? if that the case how could I configure this ip with a new domain name?More Details:I am renting a dedicated server... so I have full access to the server as I'm hosting my website on it. but I don't have a domain name. either from local machine or remotely I can successfully access the hosted website using the ip address...

setting gridview header color

i am working in asp.net and c#i have a grid view. i have 10 columns in that grid view. I have some problems with grid view header text color.some of the columns header have link (for sorting). the color of such header text is a light blue.after clicking the blue color change to another color.some of columns header does not have link. the color of such header text is gray. i want to make the color of entire header text to single color like gray. after clicking the link it must be in same color.thanks in advance You may define css class in your css file. After defined your...

Can you host multiple tenants on a single ASP.NET application instance over SSL?

I have an ASP.NET application that will host multiple tenants (Software-as-a-Service style). Each tenant will have their own domain name (www.mydomain.com, www.yourdomain.com) and their own SSL certificate.Is there a way to host the application such that all of the tenants are on the same application instance?I know you can have multiple IIS web sites pointing to the same shared location, but that won't work - it's not the same instance. That's different instances of the same application.I also know you can use SSL host header mapping with wildcard certificates, but that wo...

Why doesn't my ASP.net page display until fully finished?

I'm using .net 2.0. This is a project that I have taken over for another developer.I have a aspx page that can take a long time to display under certain condition due to loading items from the database. What I want to do is to show a loading animation or something to let the user know the page is loading, so I tried to use the JQuery .ready() method, however, I can only see the results after the page is fully loaded. What I mean is that when I click on a link to my aspx page, nothing is drawn until all of the work is done. The work is done on the server side in Page_Load.I'...

Why is appcmd.exe unlock config not working on Azure emulator?

I've recently upgraded to the Azure 2.1 SDK, and I'm now encountering a problem with part of my web.config in a web role when running on the compute emulator. My web.config contains this:<location path="api"> <system.webServer> <security> <access sslFlags="Ssl, SslRequireCert, SslNegotiateCert" /> </security> </system.webServer> <system.web> <authorization> <allow users="*" /> </authorization> </system.web></location>I need this because everything under the /api/ path requires ...

DataSet not defined?

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim AppName As String = Session("App_Name").ToString() Dim username As String = Session("username").ToString() Dim password As String = Session("password").ToString() Dim ds As DataSet = GContactsImport.GetGmailContacts(AppName, username, password) GridView1.DataSource = ds GridView1.DataBind()End Subhow do i fix it??This is my class fileImports Microsoft.VisualBasicImports Google.GData.ContactsImports Google.GData.ClientImports Google.GData.ExtensionsImports Googl...

Change the content of a Css Class through Code Behind in asp.net

I need to change the CONTENTS of a css class through asp.net code behind. The reason why I need to do this is because i have an external user control that uses a property called "stylefolder" instead of the normal cssclass.I'm really out of ideas, I tried to open the css file and replace text, but then after i also need to save it. So the css file is permantly modified which I don't want.Please help The way you are trying to tackle your problem does not seem logical. Temporarily modifying css depending on the stylefolder property seems crazy. Could you not use inline sty...

Could not load file or assembly 'System.ValueTuple, Version=0.0.0.0

I have an ASP.NET MVC .net Framework 4.7 web application targeting a .net Standard 2.0 library that utilizes EntityFrameworkCore. I am getting this error when trying to run the project. I have tried to enable the auto binding redirects and inserting manual binding redirects. The manual ones at least gave me that it was looking for a different version number but still same error. Any idea on how to fix this? I upgraded my .NET from 4.7 to 4.7.1 that is installed on my computer. This seems to have fixed the issue [XXX]

Asp.net skin file Dynamically change classes

I need to change all classes dynamically in asp.net (visual basic) based on some condition. Using a skin file seems logical, but I am not sure how to assign it. Just to clarify, I need something like below(pseudo code):if(button.clicked)change class="makeRed makeBold"toclass="makeBlue makeBold"Thanks in advance! My understanding is you want to change theme at runtime which is a little bit tricky. One solution can be:Create one session variable which will hold current theme value On button click event assign value to session variable.During Page_preInit Event assign th...

changing the forecolor at runtime of label which is present in template field of gridview in asp.net

I am creating one application using gridview of asp.net. Grid view containing one template which having 3 to 4 labels which bind from database values.One label of gridview tamplate forecolor is blue but after selecting row i want to change color to white to selected row label to white but my problem is all other label colors is changed but that blue color label color is remaining.I am using following code to change color of all labels At gridview selectedindex changed event.For i As Integer = 0 To GridView1.Rows.Count - 1 If i = GridView1.SelectedIndex Then G...

Populating Domain objects with data in a Domain Driven Design architecture

I am a bit confused about the Domain layer in the Domain Driven Design architecture.I understand that the four layers are Presentation, Application, Domain and Infrastructure, where Infrastructure contains the data repositories.I also understand that the Domain layer is responsible of the business rules. In the now dated anemic model, the domain objects didn't have any behavior. In DDD, we are supposed to move the behavior and business rules from services to Domain.Before, I would inject repositories to the services layer. So my question is - is it okay to inject repositori...

Page 1 of 142  |  Show More Pages:  Top Prev Next Last