asp.net

Refering to controls through javascript function

Hi, I have a radiobutton column in a gridview, inside many nested asp tables. I want radios enable two buttons upon click. so I added this the following function an javascript but it cannot find my controls although I turned ClientIDMode="Static" for those buttons. It returns null. <asp:GridView ID="gridView_stLists" runat="server" Auto...

.Net SqlDataSource tag SelectCommand

Hi, My question is in regard to the SelectComman in the <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:conStr %>" SelectCommand="SELECT * " + "FROM myTable"> </asp:SqlDataSource> Obviously I have given an example but why won...

queue asp.net UpdatePanel postbacks

is there a way to queue postbacks with UpdatePanel? I have a form with many textboxes. each textbox is wrapped inside it's own UpdatePanel with AutoPostBack set to true. so, when textbox changes, postback occurs. viewstate is disabled (so do not need to worry about it). the problem appears when user changes one text box and then quick...

Product Exhibition Asp.Net Website (Open source and Free)

Hi, I am looking for a web site where I can create categories and put my products pictures with some information related to products. it should have an admin page so I can upload pictures and submit products over it. It should be made with Asp.net and ms sql server (if it includes a db) Thanks in advance... ...

How to trigger windows Print dialog from server side (asp.net) ?

I want to generate a PDF file on server side, and then in response want to send that file (buffer,fileName- whatever may work) and show a print dialog to ask user to print the generated PDF file. I tried something like below. But it does not trigger window.print() dialog. public static void ForcedPrint(HttpResponse response, byte[] ...

(ASP.NET) Automatic way to put all code-behind classes in a namespace.

I just converted a WebSite to a Web application and put in a new namespace. I now need to put all code behind files in this namespace. is there an automatic way to do it or am I going to have to go to each page and do it manually? ...

Empty response during ajax request in Chrome but not IE nor FF

Hi! I am receiving an empty response when calling a web method using asp.net in Chrome but not IE nor FF. I get this behavior using the ASP PageMethod.func as well as using jquery ajax call. I can 'fix' the symptom by adding a delay sleep call on the server which makes me believe code is just plain wrong somewhere. I have the webkit...

mini project topic in asp.net

i have an assignment in my collage 2 make a web-based application in asp.net... can anyone suggest me any project topic other than management information system? ...

how to clear a textbox with calendar extender in javascript?

i have a textbox associated with a calendar extender and a masked edit extender in a asp.net 3.5 project. i would like to clear the texbox when OnBlur...i have tried using the code below but it not working! any ideas guy? document.getElementById('txtDtTo').value =""; ...

Special Characters in web.config file

My password contains special characters like '&' and VS giving error on this like Password=abcdef!@hh&held How can I use special characters in my web.config file? ...

Does ASP.NET MVC Handle *#%":?<> Characters In The URL?

I am new to ASP.NET MVC. I am getting an error when i use these characters - *#%":?<> - in URL. My question is - Does ASP.NET MVC handle *#%":?<> characters in the URL? ...

Is it best to handle SQL Exceptions or rather use a customError page and the Application_Error method in Global.asax?

I am using ASP.Net 2.0. I found myself in an awkward situtation because I could not find the cause of an error. Up until now I have been using this idiom when it comes to accessing data. try { access data } catch (SqlException exception) { Response.redirect("error.aspx"); } finally { Dispose of connections, commands etc } Now I ...

sending mail along with embedded image using asp.net

sending mail along with embedded image using asp.net I have already used following but it can't work Dim EM As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage(txtFrom.Text, txtTo.Text) Dim A As System.Net.Mail.Attachment = New System.Net.Mail.Attachment(txtImagePath.Text) Dim RGen As Random = New Random()...

asp.net with java backend

I currently have a full java web application stack (J2EE web app using Spring and Hibernate with a RIA client using dojo). I have to move technology stacks for the UI to be asp.net but am allowed to keep the server components in java. Any ideas on best practice here - and yes, I have to adopt this hybrid tech stack. Initial thoughts are:...

How to create SEO friendly paging (in Digg.com style) using ASP.Net 2.0(C#)?

Hi, I have created a digg.com style pagination for my ASP.Net 2.0 (with C#) website's gridview control using this article: http://kpumuk.info/asp-net/gridview-with-custom-digg-like-pager/ In order to achieve digg.com style, the author of the above mentioned article has customized gridview control and created a C# control named as Grid...

Does an 'Account Activation' workflow exist for ASP.NET MVC

I need to implement the common 'New Account' pattern (in .net MVC) where: user information is collected; my system sends an email; and the user if required to reply to the email to activate the account. Is there a best practices recognized or sample site that can guide my way? thx much EDIT: Note that i'm trying to drill into a dee...

How to set navigation variables in MVC Masterpages

I need to have some navigation options, that require keys that are specific to the current user, that reside in a masterpage. I need some advice on best practise. In have the following links in a left nav in a masterpage http://www.example.com/manageShop/123 http://www.example.com/addProductToShop/123 http://www.example.co...

ASP.NET, steps to deploy a website

I have recently inherited an ASP.NET website to look after. I have a copy of all the files but coming from a PHP background I am not sure how to make changes and deploy it. After I make changes to the site I presume I need to compile it. But can I then simply copy the site onto the server or do I need to create a setup package and 'ins...

ASP.NET files necessary for development

I am just getting started in ASP.NET and have some existing projects to maintain. I have read that ASP.NET projects include a folder called app_data, a code behind DLL, .sln project files, .proj files etc Which of these files are necessary for the continued development of a ASP.NET website? Also, are there others which are key to buil...

Using ASP on ASP.Net site

I have a client that currently has a shopping cart written in ASP that he wants to keep using. We are looking at upgrading the rest of the site to DotNetNuke which is based on ASP.Net. Does anyone have any guidance on how to use asp pages in an asp.net application? IFrames? I did a little ASP just before dotnet came out, so I"m not t...