asp.net

Update pannel not working with jquery tabs

HI. I am using JQuery tabs in my aspx page, but update panel is not working. If I do any operation in tab2, after posting back, tab1 is activated. How can i solve this? Thanks in advance. ...

AsyncTaskDelegate Reference missing Asp.Net 4.0

I'm trying to implement "PageAsyncTask" in asp.net 4.0.When i tried to declare "AsyncTaskDelegate" it showed a design time error.I checked the library reference.System.Web and Remoting are referenced but im still not able to figure out why it's missing. And AsyncMethodCaller caller = new AsyncMethodCaller(someMethod); When i tried to ...

What are my options for a search engine database on windows

I have a project to create a high traffic search engine similar to altavista.com. The windows .NET C# will be used for the project. I am looking for a good search engine database that can handle a very high load. I have taken a look at lucene and sql server 2008. I have read that lucene tends to get corrupt when the load is very high. So...

Read mail from mail server

Hi all... I am creating a web application .. Through the application I will send mails to my clients(From e-mail address:[email protected])... If any client reply for my mail(To e-mail address:[email protected]) I want to read that details from [email protected] and insert into sql server database.. Please share your ideas to fix my proble...

Error in ScriptResource.axd: "Object of type 'Sys.Extended.UI.AccordionBehavior' cannot be converted to type 'Sys.UI.Behavior'

I have an asp.net web site where I'm trying to resolve what looks like a problem with ASP.NET AJAX: Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys.Extended.UI.AccordionBehavior' cannot be converted to type 'Sys.UI.Behavior'. Parameter name: instance I've googled around a lot, and looked ...

chaning background color of a text box

i have a dropdown list and text box. i disabled both controls using code behind. now, at one sight we can understand the dropdown list is disabled , because the background color of drop down list is changed automatically. i want to make that same background color to the text box control too. But i dont know what color code is that. i am...

how to show exception variable value in alert box in asp.net using C#

i have the code... try { do something.. } catch(Exception ex) { Response.Write("<script>alert('"+ex+"')</script>"); } but the alert box is not displaying... if i use the code. try{do some thing} catch (Exception ex) { Response.Write("<script>alert(\"an error occur\"...

Need help with error- The name 'lnk1' does not exist in the current context

This is my link button:- <asp:LinkButton ID="lnk1" Text="Set as Default" runat="server" Visible="false" OnClick="lnk1_OnClick"></asp:LinkButton> In Code Behind I am simply making it visible lnk1.Visible = true; I have checked the IDs over n over..whats wrong ? Intellisense wont detect it either..I am doing something really silly..j...

.NET Regular Expression: How to get a text enclosed by two tags

Hello. I am working with ASP.NET and need to manage with a string typed by the user in order to extract some information. The user enters a normal text, words and numbers, but sometimes he may type a mathematical expression in MATHML, these expressions are always an xml string enclosed by the tag. I want to extract from the typed text e...

asp.net mvc 2, select content by routing string

Hello! I am having trouble to what i should name this in the title field... Question is. I want to select a blogpost by entering its title, like this: http://localhost:3254/blog/2010/10/net-programming The title of the blogpost should be ".net programming". So i have setup a route to look for a year a month and finally a string. But h...

URL Rewrite - Destination Page not getting Query String Values

Hi there, I'm trying to implement URL Rewriting into my existing application and have managed to get the page and links working except that my destination page does not get the query string values. My code is based on the example below: http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html Basically I have a d...

How to display tiff, png images in ASP.NET.

How to display tiff, png images in ASP.NET or windows application in IE browser. ...

Session.Clear() vs. Session.RemoveAll()

Is there a difference between Session.Clear() and Session.RemoveAll()? The descriptions and documentation pages seem to say exactly the same thing, but I am assuming there must be some reason for creating two functions, right? Thanks. ...

special case for update panel

i have a button , this button makes a post back for the page(the normal case),, and i have an update panel contains some controls .. when click the button the update panel is not affected by the button,and when adding trigger for this button on the update panel,, the other controls (which are not in the update panel)are n't affected .. ...

ASP.Net, How to ignore the MasterPage does not exist error?

Hi, dear I am working on my CMS project based on ASP.Net MVC2, I have implemented my VirtualPathProvider and VirtualFile for my master page, to use a master page in db. It works as below: I indicate the MasterPageFile in the aspx/ascx file. <%@ Page MasterPageFile="/Content.master" Then override VirtualPathProvider.GetFile to load ...

Error parsing parameters in ASP.Net

I'm having a problem parsing my parameters in ASP.Net Here's what i'm doing Sub ItemCommand(ByVal Sender as Object, ByVal e as RepeaterCommandEventArgs) If e.CommandName = "EditDetails" Then EditDetails() <---- This is where it's dying Else If e.CommandName = "SubmitDetails" Then SubmitDetails() End If ...

How to write a pseudo Code

Using VB.net, C# and SQL Server I want to write a pseudo for my application. pseudo code is like coding or flow chart...? Can any one provide a sample pseudo code for any type of application. ...

Updating a DataRepeater inside updatepanel with IAsyncResult not working!

I am having trouble binding data to data repeater when I use ISyncResult. This is what I am doing. There is a button inside a Update Panel that gets the input from the user and calls a function that returns a dataset that I then bind to data repeater which is also inside a update panel. What I did is that I made a delegate to this functi...

Regular Expression Validator - display block rather than inline when dynamic

Is there any way to make a RegularExpressionValidator render itself using display:block, instead of display:inline in its style attribute, when setting the Display property to "Display='Dynamic'"? I have tried setting it in the stylesheet but this gets overwritten when it is rendered on the page. Thanks ...

NHibernate with NLog or Log4Net or something else?

I want to use NHibernate in my project, and it comes with log4net by default. In my opinion, it would be a wiser choice to go for Nlog as it still gets updates, log4net on the other hand is completely outdated. Is there a best choice because I don't really believe in using outdated technologies in my application. On the other hand, it'...