asp.net-2.0

how to change the value of a control in a master page

how to change the value of a control e.g. Literal in a user control and that User control is in master page and I want to change the value of that literal from content page. ((System.Web.UI.UserControl)this.Page.Master.FindControl("ABC")).FindControl("XYZ").Text = ""; here ABC is user control and XYZ is Literal control ...

VB.net project upgraded to 2.0 from 1.1 : Controls added to aspx page do not appear in aspx.vb

I have tried using drag n drop to place the control as well as simplely adding it to the page manually but neither results in a web control property being defined in the code behind. Any ideas? ...

What happens with this thread after the method finishes?

In my ASP.NET application, a while down the stack I call the following code: Public Shared Sub Larma(ByVal personId As Integer) Dim thread As New System.Threading.Thread(New ParametrizedThreadStart(AddressOf Larma_Thread)) thread.Start(personId) End Sub Private Shared Sub Larma_Thread(ByVal personId As Integer) StartaLarm(p...

How to add a default value to a custom ASP.NET Profile property

I know you can add defaultValues using the web.config like this: <profile> <properties> <add name="AreCool" type="System.Boolean" defaultValue="False" /> </properties> </profile> but I have the Profile inherited from a class: <profile inherits="CustomProfile" defaultProvider="CustomProfileProvider" enabled="true"> <...

Asp.Net CalendarExtender problem with Google Chrome

Existing website that has a few report pages that take dates as report parameters. These report pages use the CalendarExtender to allow the user an esay way to enter dates (the user selects a date and the text box gets populated). On all of the browsers and different versions of those browsers I have tested (IE, FF, Opera, Safari, mobil...

Visual Studio hangs after I change any file in the App_Code

I have an issue with my visual studio. It was fine for a long time but now every time I make a change in the App_Code it freezes for some time. I checked the resources and it seems like it is compiling the website automatically. It didn't do that earlier and even if it did the studio would still work fine. Any thoughts how can I fix th...

refresh grid without page post back, please advise

I am doing some grid work just like a stock exchange application which will have good data volume and page should be automatically refresh after some mentioned time say 1 min or 30 sec without being post back. What is best way to do this ? Should I use grid with ajax or grid with ajax and web service should be used ? If possible please ...

Get MenuItem in dynamically created Menu in asp.net

Hi All, I am using Menu control in asp.net. I am creating Menu control using xml databinding. Here is the xml file; <?xml version="1.0" encoding="utf-8" ?> <Items Text=""> <Item Text="" ImgPath="./../images/home.gif" Url="" Value="Home" /> <Item Text="" ImgPath="" Url="" Value="Time Entry" > <Item Text="" Va...

sendmail smtp not working

Hi all, I have a web application running on my VS2008 test server; this application has been work fine, when publishing to a IIS 6 running on our local network and everything worked fine. After deploying to a 3rd party server, the System.Net.Mail.SmtpClient doesn't work any longer (i.e. getting some timeout exception) using the same smt...

Unable to access asp.net website after setting asp.net version to 2.0 in IIS 6.0

I have an asp.net website that has been running well in IIS 6.0. I very well remember the sites ASP.NET version was set to version 2.0 in IIS but i just checked and found the version set to nothing. If i click the site asp.net version dropdownlist in IIS, i can see two options(1.1.4322 and 2.0.50727). The problem is i set it back to 2....

Query on ASP.Net Page Control collection

I need to modify aspx page's html to insert few scripts after and tags. I have implemented this by iterating through page's control collection and modifying LiteralControl text. As ASP.NET compiles all HTML elements and readable text that do not require server-side processing into instances of LiteralControl class. Hence the page will ...

Am I using the cache correctly?

I have a page where I am pulling a dataset from the database, a few thousand records. I get it when the page is loaded and store it in the cache. Each time an operation is performed on the page, I check the cache to see if its still there, and if not, go get it again (20 minute expiration); fairly typical setup. When I run the page, the...

Cannot pass a GCHandle across AppDomains

Hi everybody, I have implemented quickfix engine using asp.net and C#. and i am calling quickfix_net.dll which is written in unmanaged C++. but i am getting error like "Cannot pass a GCHandle across AppDomains" when calling quickfix_net.dll. but the same thing is running in console application but not under IIS i.e asp.net please anyb...

Filtering dataset with condition

Hi, I am using asp.net 2.0 and c#. I have a dataset, which is getting the employee info. Now I want to filter the gridview based on the name user has put in the search textbox. I am doing this : DataSet ds = new DataSet("EmployeeInformation"); ........ loading DataSet ds with emploee info string strExpr; ...

How do I filter a generic list in .Net2.0?

Hi, I am using asp.net 2.0 and C#. I have a generic list, List<EmployeeInfo> empInfoList; this list is loaded with the employee information. Now, I want to filter this list with the textbox value. Which is "EmploeeName". I have to filter this list with the employeeName, and bind it to the gridview again. I am not sure how can I...

How to reference absolute path from jQuery in a .NET Application

I have some jQuery that writes some image tags to the browser, but I want to reference them such that I don't have to hardcode the path, and I'm not able to use relative paths either. This is a .NET application, and I am trying to use server side tags. So, I changed the following: $('#IMG_' + myID).attr('src','../images/plus.gif'); ...

How can i convert sqlDatareader to List<>

Hi.. I want to return list which will store the sqldatareader value. how can i do this.. ...

Asp.net Session getting cleared off when trying to access my application using iis.

Hi all, I have a problem when iam trying to access my site url in IIS. Actually when I running in debug mode , it works fine. but When i try to access the url from IIS , my session is getting cleared off and iam getting redirected back to login page. Iam opening the browser and entering my url And In the Loginpage iam entering my cr...

JQUERY DatePicker plugin used with usercontrols --> ASP.NET...??

can i use jquery date picker with usercontrol of ASP.Net..?/ i tried but its not working - but i tried with Default.aspx page, its working normal ?? wat should i do to use with Usercontrol.?? ...

Jquery autocomplete JSON return result from webservice but it is not showing in dropdownlist

I do not know what is wrong with this code. alert shows that data has returned from web service but auto-complete still not showing data. I am using ASP.net 2.0 and google jquery link $(document).ready(function() { $.ajax({ type: "POST", url: "http://localhost/WebService/Service.asmx/getlist2...