Hi there,
i am trying to learn c#.net to program a web app.
And having learned that stackoverflow uses C#.net I am happy to discover it.
I noticed that at the home page or at the questions section, whenever i refresh the page. The page always returns me the latest information without fail and at acceptable speeds.
I am not sure how ...
can you explain w3wp ,,attaching to w3wp while debugging asp.net internal layers is good
...
Hi
I am looking for a way to allow users to download a file from my site using ajax. The reason why i need to do this is because the files are quite big (50 megs normally). So when the user clicks the download button it actually looks as if the page is not responding because it has to stream the file from my Amazon S3 to the user.
So i...
i have the requirement to show a nicely formatted error-message on top of the page (or control).
therefore i implemented the render method of a new created server control. the new created control inherits from ValidationSummary.
public class AgValidationSummary : ValidationSummary
{
protected override void Render(System.Web.UI.Htm...
Basically I want to build a web app that will try windows authentication and if authentication fails then will provide the user with a login form ?
I do not want to have different web apps for different authentication modes.
Is this possible ? Did I missed some points about this ?
...
i have one sitemap file
this is a part of sitemap file
My resource file name is globalres.resx
any one tell me how to do this
...
Hi,
I have a web application built in asp.net, which uses resource files to support multiple languages. The problem I have is that I can only add a new language file in Visual Studio, and I have to rebuild the whole application to have a the new language included. After searching the net I've found out that the compilation of the resour...
I wish to become a good developer in c# (especially .NET environment (i.e both windows app & web app))
Suggest me the way to achieve the same..... It may be
Books,Magazines,Journals,Code Samples,etc
Thanks
...
I have a piece of code in a User controls that normally should be put in the Page_Load (initializes other components such DropDowns etc.) but I need this to happen before the Page_Load of the page that hosts this control.
I tried to put this in Page_Init:
protected void Page_Init(object sender, EventArgs e)
{
if (!IsPostBack)
{
...
I am going gahgah here! I'm hosting an ASP.Net MVC app over at discountASP then I got a very well desired traffic spike yesterday and the server starts to buck and sending out http 503: Service unavailable intermittently.
Please does anyone know what I need to do to make things better? The folks at DASP say they have 'doubled my connect...
I have a server with German windows on it, but the DateTime values are stored on a mysql server in English format. How do i force every DateTime.ToString() method (like DateTime.Now.ToString()) to output an 'English' DateTime by default?
...
I have a set of functions I want to be available to my web pages and user controls in my c# .net 3.5 web project. My standard approach for pages is to create a "base page" that extends the System.Web.UI.Page class and then have my pages inherit from this, rather than directly from the Page class.
I now want to expose some of these funct...
I have Ajax.ActionLink with htmlAttribute param
<%= Ajax.ActionLink("cool", "ViewCategory", new { id = elem.ID }, new AjaxOptions { UpdateTargetId = "score_" + elem.ID.ToString() }, new { myAttr = 123 } )%>
How can I read this attribute in controller method?
...
I have a service reference on my local dev environment to a WCF service hosted elswhere on our LAN, and it will just stop working at times with an error along the lines of "The document at the url was not recognized as a known document type."
A system reboot doesn't fix it, rather it starts working again on its own several minutes later...
I have a Gridview control in asp.net in which there is column called Amount.i need to add 2 particular amounts.how can i do this?
I need to edit the Gridview control according to my needs.After editing,i need to add these amounts. I have another column called Ratecode in which the values are R1,R2,R3.
Again, i have four records in whi...
I have a Repeater inside the TemplateField for a GridView. GridView is bound to datasource1 and the repeater to datasource2. How can i access datasource1 from the ItemTemplate of repeater in data binding syntax (<%# %>) of repeater itemtemplate?
...
I want to ensure ensure nothing untoward gets into the referrer on an error page.
What should I be checking in order to validate the http header.
below is my current code:
// Ensure the referrer header is good
if (this.Request.UrlReferrer.IsWellFormedOriginalString() &&
this.Request.UrlReferrer.Host.Equals(this.Request.Url.Host))
...
Hello Friends,
I am having a web server with install of WINDOWS 2003 Server and SQL SERVER 2005 Currently and i try to do a job schedule with the use of some control that i created. every thing is working properly but when it starts the job (in job i have written T-SQL Command for Backup Database) it will gives following error. i alread...
Hi
I need to Copy folder C:\FromFolder to C:\ToFolder
Below is code that will CUT my FromFolder and then will create my ToFolder.
So my FromFolder will be gone and all the items will be in the newly created folder called ToFolder
System.IO.Directory.Move(@"C:\FromFolder ", @"C:\ToFolder");
But i just want to Copy the files in FromFo...
I am very new to web application (ASP.NET). I have source code and database for a complete project.
ASP.NET (Authentication) control is used for login. I don't know the password right now but i can get the login name and password in encrypt format from the database table.
How could I login to the application with only this little inform...