asp.net

Cannot use GetLocalResourceObject inside InstantiateIn

I'd like to localize my aspx-page. This should include dynamically created LinkButtons in a GridView inside of InstantiateIN (amendment 1: implementation of the System.Web.UI.ITemplate.InstantiateIN method to manipulate the appearance of a GridView) (amendment 2: first six lines of code added to better indicate location of other code)...

C# ASP.NET : Dynamically constructing an url query string

Hello all, I need to dynamically construct a url by appending new parameter to the current url. I know how to do this in the long way by getting the current url and check if there is any QueryString, if no add "?" if yes add "&". Also check is the parameter is already exist. If yes change the value. But is there any build in .NET func...

Asp.Net GridView EditIndex race condition?

This is a bit of a hypothetical question that has sent me off down the garden path... Say I have a gridview that I'd like to edit... given a method that binds the data.. private void BindGridFirst() { var data = new List<string>() { "A","B","C","D","E","F" }; gridView.DataSource = data; gridVi...

How to use the VIPS dll ?

I have just started learning C# and ASP.NET for my project and i need to use the VIPS(VIsion based Page Segmentation) DLL but i don't know how to go about doing that as im new to C# and ASP.NET.I know how to create and use a simple DLL using C# but then i want to know how to find out the names of the classes and/or functions inside the V...

Validation for Asp:DataList

I have an asp DataList as follows.Here I am having a Checkbox and i need to input a number for the corresponding textbox,if I clicked the checkbox.How can I validate it. If I clicked a checkbox I must enter some value(int) to the textbox. Need to validate only for those clicked.Thanks in advance ! <asp:DataList ID="dlstEnergyItems"...

asp.net error : Column ambiguously define, when migrate to other server

I have ASP.Net application, It using mix .net framework, there are project with ,net framework 1, 2.0 and 3.5. buat they are in separated project / location. And its running well before. I have a problem when I migrate my application from old development server to new one, FYI, my old server is windows server 2003 32 bit with oracle 10g,...

Developing a Custom Asp.net Control with Nested Repeaters

I've never created a custom control, so barring that in mind here is my question: Is it possible to create a custom control with nested repeaters? The usage would be something like this: <tag:NestedRepeater id="foo" runat="server" levels="6"/> I currently have 6 identical repeaters nested within each other. I then use the ItemDataB...

dropdownlist selected index changed in asp.net using C#

i have 2 drop down list.. first for city and second for state i want to fill the state list when the city is selected... m using the code protected void Ddl_SelectedIndexChanged(object sender, EventArgs e) { String sqlQuery="select SM.StateId,StateName From StateMast SM,CityMast CM where CM.StateId=SM.StateId AND CM.CItyId='"+...

Dropdown controls get higher precedence in visibility when overlapped by any other control on page.

i have a css and javascript based horizental menu bar in master Page. I have a content page which has multiple textbox and dropdownlist. the problem is that when i run this page in mozila it runs successfull but when i run it in IE than horizental menu list items is overlapped by dropdownlist means dropdownlist hide the horizental menu ...

Image from usercontrol won't display on webform

I added this code in my ascx file http://jsfiddle.net/xkRcN/8/ ..When it was aspx file..the image(location is "Images" folder in my project now..was flickr earlier) would display alright..but when I made this page into a user control and added it in my webform, the image's vanished..I have tried changing the path many times but its not w...

gridview problem

Hi guys, i have a problem with my gridview contains a textbox to set a date. <asp:gridview ID="Gridview1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" CellPadding="8" ForeColor="#333333" GridLines="None" CellSpacing="5" Height="361px" Width="748px">...

Logging username with Elmah for WCF Webservices

We are using the approach described here to log our webservice errors with Elmah. And this actually works, but sadly the username beeing logged is empty. We did some debugging and found, that when logging the error in the ErrorHandler the HttpContext.Current.User has the correct User set. We also tried: HttpContext context = HttpCont...

text-align attribute causing error in IE

in my asp.net application if I add text-align:right; to any text box , the focus is not coming on that textbox.what shoul I do? ...

Need to display 2 diff banner sprites on same page based on the value of a control of Master Page

there's a label control on the master page..if its value is "Value1" ,I want this CSS Sprite to display on my webform..if the Value is "Value2"..the CSS sprite should use some different image..just the image needs to be changed ..nothing else in that Sprite.. I found out that I can use "FindControl" method to find out what value that La...

selection index change is not working of drop down list

i have only one element in drop downlist so selection index change is not working... the datasource is given to run time... if it was on designing time i can give the select one list item... but at run time what should i do???????? ...

ASP.net Usercontrol Base and child how to initialize Base controls ????

HI , 1.create Base usercontrol which contains a label and sets text of it to be "test1" this is set in the ascx page. 2.Create a user control which inherits from the base user control. 3. Now on the page load of the child control i try to do: protected override void Page_Load(object sender, EventArgs e) { //Exception thro...

ASP.NET Build path and deployment

Hello, Technology: C# ASP.NET WebForms VS2010 I have been trying to create sub web applications that build into a main web application i.e. build path is the main web application as described here: http://blogs.msdn.com/b/webdevtools/archive/2006/07/01/652986.aspx The aim is that I can separate all my website 'apps' separate web appli...

how to disable custom errors only for a specific IP address

Hi, Does anyone have any idea how to disable asp.net custom errors only for a specific ip address? this will ease debugging exceptions on my server from my office.. Thanks in advance ...

<!-- #include virtual="/footer.asp"--> in ASP.NET application

I need to include a header and footer currently located in an asp page. The page takes the language ID and gives you the correct header for the page you are viewing. I was going thru this: http://forums.asp.net/t/1420472.aspx and this particular fragment seemed to explain it better tho I could not wrap my mind around it. Hi, instead...

Finding selected item of Ultralistview

What is alternative to ListView's SelectedIndices property in Infragistics UltraListview? FYI: SelectedIndices Property gets index of Selected Item in List View. For more info please refer: http://stackoverflow.com/questions/325241/finding-the-selected-item-of-list-view Please reply Thanks ...