I have an ASP.NET MVC application. I have come to an idea of generating autoincremented values to be used as unique element ids. The question is, how can I have and work with a global variable which should be there for the duration of a request (page generation) but no longer?
I thought of using TempData for this shared variable and the...
Recently our newest web designer asked me why we use ASP.NET for our website. Reading through his question to the real one, I started thinking about it myself. Why are we using ASP.NET for web development?
The problem we find so far is colaboration between the design team and developers. Typically our designers create some snazzy coo...
I'm using a ContentPlaceHolder and would like to move the onload="Carousel()" from the body tag of of the .master page
body onload="Carousel()"
but I don't know where to put it in the content page.
I'm trying to implement this
http://www.dynamicdrive.com/dynamicindex14/carousel.htm
...
I want to use an asp repeater to generate the html for the items I pull back in a custom class Queue. In other words
Queue x = otherClass.getCustomClassObjects();
And then bind this to a repeater.
And on the OnRepeaterItemDataBound
assingn the html values appropriately to what is in the queue.
Is this possible ?
...
I have an asp.net mvc application that I'd like to use forms authentication with two other asp.net apps that don't have the same machine key. Any thoughts on this? I don't have control of the machine keys for the other apps and they aren't the same.
...
I am looking for a way to allow a user on my web site to log into another external web application (for example: gmail, jira,etc..) and redirect them successfully to the landing page.
I found this article which provides some code for posting the log on info, but doesn’t discuss what other actions I need to take (For example I believe I...
We are working on an asp.net 2.0 web app that emails users an ical to save to their outlook 2003 calendar. We noticed none of the code to update or delete an item seem to work even though the ical 2.0 spec supports it. We are curious if Outlook 2003 just ignores this? Does Outlook 2007 act differently?
We have situations where an eve...
I have a client interested in a real time chat application for a SharePoint intranet portal to enable online interview style chat sessions.
Has anyone got reccomendations for a product on the Microsoft Stack that does this? Something that is integrated into SharePoint would be prefferable, but any ASP.NET product would suffice.
The sol...
How do you get the .resx file the page is currently using? For example, if I set culture to fr-FR on Default.aspx, it should give me Default.aspx.fr.resx or Default.aspx.fr-FR.resx or Default.aspx.resx depends on which one exists.
Do they have something like that in ASP.NET or I have to write it myself?
...
How do you get the text inside the new HTMLEditor in ASP.Net Ajax Control Toolkit?
...
I've deployed a .NET website to a 2008 (IIS7) server and the site seems to fly for up to 30-50 concurrent users. When load testing it the site comes to a grinding halt sometime after 100 concurrent users. Page loads go from 1.5 seconds to 90+
w3wp hits 100% and stays that way until I stop the load test. SQL on the other hand idles at...
I am getting the following error which deploying my code in the production server. Code is working fine in development.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file...
I have a function that creates multiple controls. Mainly input fields and an imagebutton with dynamic data for an Amazon payment button.
How can I add these controls to a placeholder so they are rendered on the page?
I tried creating a placeholder inside the function, adding controls and returning the placeholder.
plhCart = returned...
In VS 2008, I have an ASP.NET content page having one master page. I would like to add JavaScript functions for client side validation etc. for this page. My questions are:
Should I write these scripts in a separate .js file, or embedded within the .aspx file.
Does this choice affect the performance of the website?
Are there any rules...
I have a web service, defined(WSDL) and implemented in PHP. This one is relatively simple, important bits defined as the following:
<message name='registerAccountRequest'>
<part name='key' type='xsd:string'/> <!-- key -->
<part name='data' type='xsd:array'/> <!-- account data -->
</message>
<message name='registerAccount...
I'm using a Gridview to hold records that user can click on the checkbox in each record for indication that he/she want to save that record(after editing the data) and user can select as many records as they want and save them all at once.
In the code behind, I'll loop thour the gridview and look for the checkbox to save the record. If ...
Hi I tried to read a page using HttpWebRequest like this
string lcUrl = "http://www.greatandhra.com";
HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(lcUrl);
loHttp.Timeout = 10000; // 10 secs
loHttp.UserAgent = "Code Sample Web Client";
HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetRespons...
How to insert an event to the aspx.cs page. I have one asp:button and i wish to add an event of that button in the aspx.cs page. how it done
...
I've been writing a small notice board site in ASP.NET and nothing i do will make it work properly in IE6. The main page has a header DIV, with the content region below it. Within this region are three further regions, a search facility in the top left, a list of notices below it, and the currently displayed notice to the right of these ...
How do you prefer to manage the contents of your site ,
XSLT , SQL , Sharepoint or ... or maybe a mixed version ,
For example you have articles , products , blogs
I saw in different codes that every developer used a different mechanism to store their data ,
What is yours ? what do you prefer in different cases ? what is the reason ?
...