In my .cs page I am setting a value for a variable [count = 12]. count is a var, which I have declared on the aspx page.
Now I have to change the vlaue of the count = 13. which should be written in the !IspostBack event in the Page_Load(). But the issue is this that it's a very small change and I can't re deploy my website for this small change.
Is their any way I can modify the code in the production site whitout re deploying it?
I have create click once application hosted in IIS and its working fine.Now how we deploy or publish it to production server. Just using my local vs2008 might not work.
where i can deploy application to production server which ofcourse does not have visual studio
Our web reference does not seem to be defined in web.config of the website that consumes it. I found that there is a configuration file called "Reference.map" in the "Web References" folder that looks editable, but when I edit them nothing happens. I even renamed the WSDL file in the folder to see if it would get a new one. It did not.
Do I have to do a build just to change the URL of a referenced Web Service?
I'm developping an ASP.NET web applition which will be running on a intranet server. The web application will read and write data from / to an access mdb.
The link to this mdb is specified under the web.config file. However, in this web.config, the connection string points to a absolute path (for ex. c:information.mdb).
Is it possble to change this path after the web application is installed on the server (without having it to open in visual studio)? This is needed, because the application will be installed at other locations too, all pointing towards their own server and mdb (and this mdb file won't be always be on the c: drive).
I tried opening the web.config file with notepad, and changing it. Everything seems to work, but I'm not sure this method is good. Since I assumed you have to rebuild the application if you change somthing in the code...
I have a development machine and a server. problem is that whenever I publish a website I need to change manually debug=false.....its frustrating as I am publish almost everyday new version.
I have an application that runs perfectly fine on my local machine. So it was deployed on production server and the site was running (but with some errors). So I corrected the errors and redeployed the application. But the changes are not reflecting! I am using the IIS to host the same. I tried restarting all the services, the IIS itself, the server, cleared the caches...
In a situation where we accidentally published an asp.net website, without updatability, with one wrong URL, we'd like to just open that DLL and change the URL, to prevent waiting another week for the next publish opportunity.
In oldish native DLLs I knew how to change resources, but how would I attempt this with .NET DLLs? And is there an easy way, or only a hackerish one (I know of ildasm and ilasm)? If it matters, the string is a literal inside an event handler.
I am developing 2 Applications. One WebForms and the other is MVC. How can i secure the code such that when i deploy them to the clients production environment, they cannot be simply picked up, copied and repackaged by someone else?. I simply need a way to protect my intellectual property. Can this be done in Visual Studio 2010?
I am dynamically generating script code to return transaction data to Google Analytics using their ecommerce script. The code that generates the script is fully tested and functional on my development machine and when I view the page code the script, along with any values that were passed to it, can be seen above the </form> tag. Happy days, or so I thought. For some reason the code is not being generated when I test it in a live, hosted environment. I cant figure out why this is the case as the code is quite simple. I simply generate the script code and register it on the client side (see code below)
//Capture the transaction data for analytics ecommerce tracking //Generate the necessary script code string strAnalyticsEcommerceScript = Analytics_Ecommerce_Script_Creator(); //Register the script on the page Page.ClientScript.RegisterStartupScript(this.GetType(), "AnalyticsScript", strAnalyticsEcommerceScript);
The page in question is called "Order-Successfull" and is where customers are sent to when they have succesfully payed for an order. On this page:
-The order is added to the orders database table - The customer is emailed an order confirmation email - The google analytics script is generated and registered
The Sequence is as follows:
[Code]....
Whats really interesting is that if I move the Analytics script creator code before the code that sends the emails, the script is generated and can be seen when I view the page code. If I do this, however, the emails do not get sent. If I lay the code out as per the code I have inserted in this post, the emails get sent but the script code is not placed on the page.. The code to that actually sends the emails is quite standard:
How do you work-around the fact that sessions are dropped every time you deploy certain code files to an ASP.NET website? Sometimes we need to deploy a crucial fix in the middle of the day but don't want to boot off all our users for it.
Can I create an incremental deployment package using either Visual Studio 2010 Web Deployment Projects or Web Deploy (Web Deployment Tool) .
I need to automatically select changed files from a source and destination or a change set on TFS and build a deployment package only with the changed files.
I have an application that I'm deploying via the Publish Wizard from Visual Studio 2008. I've added some code to my application that adds a few registry keys. I'd like to execute some code during the uninstall process to remove these registry keys.
want to change the css class of this div tag from the code
[Code]....
What is the best way to do so?
Currently how i do this is, i create html table with id & runat="server" tag and then from code behind i add rows and columns to this table, is there some better way to do this job?
I am trying to change change the url of current aspx page to the other url on a click of button. Using Request.Url.AbsoluteUri i can get the url but is it possible to modify?. If yes, what actions will it take i mean will it be a new request or a post back.
I need to change the font size of bold thing below. I have a css for use but this bold part needs font changed to 8px instead of 10(css). how to change in Code behind.
I'm struggling once again to get something centered on a page, and fighting with recalcitrant browsers. I can fix the problem for one browser by adding a style. I can fix it for the other browser by NOT adding the style. I can determine which browser I'm using. If I can change the properties of a div in the code behind, I can create a class and apply it to the div as needed. I added an id to the class:
<div id="alignLV2" runat="server">
but in the code behind, alignLV2 doesn't seem to have a class property. Is there a way to add a class or change the style?
I have a business and write websites for my own use from time to time. The last one was a few years ago when I wrote an eCommerce site for my business in osCommerce. I used Dreamweaver MX and it took me a few moinths to change the code and I found the graphics was a struggle. I was planning a new website with eCommerce facility and was considering ASP.NET . I was wondering what learning curve I should expect ( I have a background in programming in the distant past!). Also how easy is it to do SEO on an ASP.NET site? Also the cost of ASP.NET as the downloaded version I got said for evaluation only, whic I assume we have to purchase a copy at some stage. And the last thing how easy is to do a shopping cart in ASP.NET?
I want to change controls visibility on c#, but nothing happens. The controls are in an AspxPopupControl and 3 of them are hidden in design time, 1 of them is visible. I use this code to visible them
I have a web page named MyPage.aspx and two master page named Home.master and BlanK.master. By default MyPage.aspx uses Home.master.But based on some condition I need to change the master page from Home.aspx to Blank.master.So, how to do this from code behind in c#?I mean how change the master page from code behind?