asp.net

How to get image with its name and any extension?

I am building an asp.net website. I want to show image on the page, but while I know the image name, I don't know the extension. So, I want to open the images directory and get the image by its name whatever its extension. ...

Problem in dynamic grid view

I ve a grid view created dynamically. And each cell of the grid view has textboxes that are created dynamically.. The values for the textbox comes from an xml file and the IDs of the Text Boxes come from database. The problem is, the values(to be displayed in text box) are getting assigned when i check using break points but not gettin...

Recent Windows Updates and Credentials

Hi I recently applied Windows Updates to my server and all of a sudden most of my applications which have credentials such as DefaultNetworkCredentials or hard-coded username/passwords have stopped working. I am unable to get these functioning... is this a known issue? Any work arounds? Thank you. ...

Web site reports xxx does not exist in current context after upgrade to VS2008 Sp1

I just upgraded to VS2008 Sp1, and I have a weird issue going on. I get a lot of errors from my code behind pages indicating that a control doesn't exist in the current context and I am also getting an errors that the pages do not have methods. It seems like ide is trying to compile the c# code without compiling the aspx code. The sit...

ASP controls "shifting" in C# web app

Hello All, I am working on a 2.0 framework C# web application. Recently it was brought to my attention that when an event occurs (button submits in particular) on the page and then the other ASP controls are moused over (textboxes, radio buttons, regular buttons) they appear to shift down, all the while you can see the control in its o...

Firing an event from an ASP.NET calendar control's cell.

I am building an Events Calendar using the ASP.NET/C# framework. I am able to display the summary of events in the respective days cells by data binding manually in the 'OnDayRender' event handler. The clients need the ability to click on the events inside the cells to see the details inside a pop up box. The calendar control provided by...

Autofilter Combo Box for ASP.Net form

I need a control similar to the SharePoint:LookupField, but bindable to any data source. (i.e. dropdown box that allows typing and filters the items based on what is typed so far) Preferably, same look and feel as the LookupField. Any recommendations? Thanks. ...

Which Database is Good for Asp.Net?

I have been using oracle database throughout database courses, and I have programmed there a lot. However, now, I have to develop real life web application in ASP.NET and some people suggested me to use sQL server because it is more compatible with ASP.NET. But I did not like it at all using it, since, I got used to oracle programming, ...

How do I reference a web service in another project using a ScriptManager?

I have a web application project and a web service application project. I'm using ASP.Net AJAX and I want to reference a service called Tickets.asmx from the web service project and call it with JavaScript. (I'm referencing it [or trying to] in a ScriptManager on the page) I've done this before with the web service being part of the asp...

Cross domain session, same application (ASP.NET)

How can i preserve session between domains? They all belong to the same asp.net-application. ...

How do I maintain ModelState errors when using RedirectToAction?

I have some code that saves a ticket in our system. If there is an error it does a RedirectToAction. The problem is that I don't seem to have my errors in the new action. How can I fix this? ModelState.AddModelError("_FORM", "Unable to save ticket"); ModelState.AddModelError("_FORM", "Phone number was invalid."); ModelState.AddM...

ASP.Net Fileupload progressbar

Well the title say is all, is there any tutorial out there on how to write a FileUpload in asp.net with a progress bar? i cant find any of if there is a free component that would also work! ...

ASP.NET DataGrid - DropDownLists in separate rows?

I have a Datagrid with 3 DropDownLists in it. Although it is a DataGrid it will really only have two rows. I am populating the BoundColumns using a DataTable in my code. Normally this is not a problem to setup and create the two rows, hold the two rows of values and retrieve them later. But as it turns out, I have to have different list...

Enterprise Library Exception Handling Application Block and Logging Application Block proper use in ASP.NET

I have a grasp on this application block with ASP.NET, but I feel unsure if I am coding with it properly in ASP.NET. I've looked all over for proper examples of how to use the Enterprise Library Exception Handling Application Block, but only turn up articles for Windows Forms. Could somebody please point me in the right direction for u...

Visual SVN Specify URL with new port

Our SVN server was initially setup to run on port 443, we had to change it to run on port 8443 because it was causing conflicts with IIS. My question is how do I change the repository URL of all my projects to point to the new address? ...

Restricting Web Application usage when Licensing

Hi, I am just putting some finishing touches onto a Licensing solution for a Web Application I have created for SharePoint. I want to be able prevent the page from loading the Web Application Content when the license is invalid. I have tried the following... protected override void Render(HtmlTextWriter writer) { if (Li...

ASP.net: Sqldatasource and Session variable

<asp:HiddenField ID="hfDualInitials" runat="server" Visible="false" OnInit="hfDualInitials_OnInit" /> <asp:SqlDataSource ID="sdsStoreNo" runat="server" ConnectionString="<%$ ConnectionStrings:ConnStr %>" SelectCommand="select * from AccountCancellation_Process where store_num in (select distinct storen...

What is the best way to reference jquery in asp.net?

I watched a pdc session by Stephen Walther and in the presentation he was referencing the JQuery js file like the following: <asp:ScriptManager id="sm1" runat="server"> <Scripts> <asp:ScriptReference Path="~/Scripts/JQuery.js" /> </Scripts> </asp:ScriptManager> Is there a advantage or disadvantage to doing it the above way instead...

The provider is not compatible with the version of Oracle client

I'm trying to use the Oracle ODP.NET 11g (11.1.0.6.20) Instant Client on my ASP.net project as a Data Provider but when I run the aspx page I get a "The provider is not compatible with the version of Oracle client" error message. Any help would be appreciated. I've referenced the Data Provider in Visual Studio 2005 and the code behind ...

How to make visual studio 2008 ASP.NET designer faster?

Visual studio designer for asp.net applications is generally very slow and i would like to know if there are any tips or guidelines for settings in order to get better. The problem is usually noticed when i try to make a change in design or source view, especially in source view it may get non-responding for a couple of seconds. ...