asp.net

Ajax tab container problem

click event of Grid view is not woking(Edit button) inside Tab container ...

asp.net ajax combobox: getting ArgumentOutOfRangeException unexpectedly

I've some tables in my db with the following structure. I've two asp.net ajax comboboxes in the same update panel which is supposed to load data based on the tables mentioned above. <asp:UpdatePanel ID="updatesetloc" runat="server"> <ContentTemplate> <p> <asp:ComboBox ID="cbloc" runat="server" AutoPostBack="Tr...

ASP.NET Application is not working in Published Mode.

My ASP.NET Web Site is working properly in ASP.NET Integrated Server. I have a Data Base Code which return the settings to Global.asax File. But It is not working in Production. Please help me/ ...

Globally changing format of negative currency numbers in C#

We have a large ASP.NET MVC project where all numbers output to the screen are formatted as currency (i.e. ToString("c"). However, negative numbers are showing up with ()'s. For example: decimal d = -8.88m; Console.WriteLine(d.ToString("c")); //outputs $(8.88) This is a bit annoying to our users, particularly since there are in text...

Display file content in browser using ASP.Net

Hi, I want to display a file content (HTML file) inside a web page using ASP. I'm trying to display 2 files and show the differences. So i need to color different rows. I tried with TextBox but i can not color a single row. Something like this but inside a browser. I should be able to easily navigate through rows. (like SetRowColor(row...

Retrieve the asplabel data and include the same in an url

Dear All, Pls help me to sort this issue. I need in display dynamic data in a Chart (Google Charts) I have these datas in an asplabels, I need those datas to be inserted in the Charts url dynamically. Assume the label ids are as follows: I need to use those label values to the following url http://chart.apis.google.com/chart?chf=...

CompareValidator messes up validationgroups in Firefox (ASP.NET)

I used a CompareValidator like so: <asp:CompareValidator ID="cvtxtDOB" runat="server" Operator="DataTypeCheck" ControlToValidate="txtDOB" ErrorMessage="Invalid date format" Text="*" ValidationGroup="GeneralValidations" Type="Date"></asp:CompareValidator> If I enter a date using this format 31/01/10 (for 31 January 2010), Firefox throw...

how can i get div id of my aspx form after submiting the form with target iframe on server side after submit ?

hi, i have use iframe for the submit of the form in aspx page, now i have one div outside the from and i use this div to display message if any server side error is come. but after submitting the form i have assign the message to this div, but cant see the text in the browser. actually is there a different way to access that div when ...

Which versions of ASP.NET gets installed with Visual Studio 2010?

Does Visual Studio 2010 install of ASP.NET 2.0, ASP.NET 3.5, and ASP.NET 4.0? Thanks in advance. ...

Storing a column in a variable

I wanted a formatted text to be converted into unformatted text in the UI . for that I did the following String strInput; String strOutput; strInput = txtEditorAnswer.Text; strOutput = Regex.Replace(strInput, "<[^>]*>", String.Empty).Trim(); txtEditorAnswer.Text = strOutput; txtEditorAnswe...

After migrating a website from vs2005 to vs2010 we get a build error - ASPPARSE: Object reference not set to an instance of an object. ?

Hi, We have a vs2005 solution including 2 websites. We converted the solution to vs2010 and changed all settings in IIS and in the config file to use framework 4.0. We removed the old assembly references in webconfig file and added references to the new versions of the assemblies. And here the problem comes. When we add a refererence to...

Office Application in Silverlight 4

Hi All, I am currently working of automation of Office 2007 application, which is in windows forms .NET 2.0 with Office Interop library. I would like to know, if can I use Silverlight 4 to make it web application and give users a full-fledged web-page where they can edit the document/excel sheet/presentation ? Also, would I be able to ...

Why really short timeout in ASP.NET MVC?

I have an MVC 2 application where the timeout is set to 2880 (minutes as I understand it, but even if it is seconds there's a problem): <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> Now this should then mean 48 hours, or at least 48 minutes (if the value is seconds). But the user...

Add/remove items to/from an HTML select list using jQuery

Could somebody recommend some of the best strategies they've used to populate items in an HTML select list on the client side? I'm using an ASP.NET MVC application and making use of jQuery. The select list in question is simply a collection of strings which will need to be saved with the model. I'd rather not have a server call for ev...

ASP.NET Entity Framework: LINQ2SQL or Stored Procedures ?

Hi, I'm wondering about if there is a difference (in performance) when I use: User usr = (from u in Adapter.User where u.Login == login select u).FirstOrDefault(); or User usr = Adapter.getUserByLogin(login); //stored procedure ? ...

how can fire only one click event even the user clicks button 2-3 times at the same time?

I have a add to list button.when user clicks on button the data in text box gets added in listbox.User can not add same data. but the problem is that is user clicks add button 2-3 times with in a seconds the data is getting added 2 times in list. And if user does not clicks on button like this my javascript validation is working fine but...

sorting a gridview bound to a linq SP

hi there I have a grid bound to a linqed SP thus: Session["results"] = db.spGetCaseByNumberOrSurname(txtCaseNum.Text.Trim(), null).ToList(); gvResults.DataSource = Session["results"]; on the sorting of it, i would like to be able to do this.. protected void gvResults_Sorting(object sender, GridViewSortEventArgs e) { ...

asp.net dropdown list tooltip (title) strange behaviour

I have added a "tooltip" to my dropdownlist using the following codebehind: protected void btnAdd_Click(object sender, EventArgs e) { load_Buttons(1); tblAddCandidate.Visible = true; txtAdd_RegDate.Text = DateTime.Today.ToShortDateString(); foreach (ListItem _listItem in this.ddlAssTutAdd.It...

ASP.NET AJAX NOBOT - is it possible to change the way it retrieves the IP address?

Hi, I want to use the AJAX NOBOT and the option to restrict the number of failed attempts from an IP address. However, access to my site goes through a proxy server so the IP address will always be the same. To get the client IP address an extra entry is added to the request header by the proxy server. Is it possible to change the...

IE bug? Using a IHttpHandler to retrieve images from database, getting random blank images

Hi, I'm using ASP.net/C# and trying to build an image gallery. My images are stored as byte data in the database and im using an axd file like so, getDocument.axd?attachmentID= X, to set an Image object which is then added to the aspx page on page load. In IE most of the images are rendered to the page however certain images arn't rend...