To check whether the string value has numeric value or not in C#
I am having an string like this string str = "dfdsfdsf8fdfdfd9dfdfd4" I need to check whether the string contains number by looping through the array. ...
I am having an string like this string str = "dfdsfdsf8fdfdfd9dfdfd4" I need to check whether the string contains number by looping through the array. ...
Is it possible to add a wildcard application map in IIS6 from the wix installer package? I know how to add application extensions however can't see any way to add wildcards. This is needed for ASP.Net MVC to function properly. Thanks ...
Ok guys and gals, here is my problem: I've built a custom control that uses a textbox to present data to the user. When the user interacts with the control the value of that textbox is altered with client side javascript. I also have a button on my page. When the user clicks the button I want to take the value from the custom control...
I have a two years of experience of programming in Visual C# and Visual C++. I would like to know some good online sources to start learning ASP.NET or anything else I should/need to learn before diving into ASP.NET. I found some online videos that are proving to be quite useful. Perhaps I would like to know about some open source projec...
I have a couple of dropdown boxes on a normal ASP.Net page. I would like the user to be able to change these and to have the page Pseudo-post back to the server and store these changes without the user having to hit a save button. I don't really need to display anything additional as the dropdown itself will reflect the new value, but ...
Hi I have a tabpanel with a calendar control on the 4th tab but when I select a date, the postback causes the tabpanel to return to the first tab instead of the 4th that it came from. Is there a way to get it to return to the tab that the calendar control is on and not revert back to the first tab ? I know setting autoPostback to true o...
Heres a tricky one . . I have a webpage (called PageA) that has a header and then simply includes an iframe. Lets call the page within the iframe PageB. PageB simply has a bunch of thumbnails but there are a lot so you have to scroll down on PageA to view them all. When i scroll down to the bottom of the pageB and click on a thumbna...
I want to validate the value a user enters in a text box, so that it only enters float numbers. I'm not interested in range. How can I do this, considering also culture localization information (e.g. "." or "," as separators)? ...
ASP.NET 3.5 SP1 adds a great new ScriptCombining feature to the ScriptManager object as demonstrated on this video. However he only demonstrates how to use the feature with the ScriptManager on the same page. I'd like to use this feature on a site where the scriptmanager is on the master page but can't figure out how to add the scripts I...
I noticed that the ASP.NET cache items are inspected (and possibly removed) every 20 seconds (and oddly enough each time at HH:MM:00, HH:MM:20 and HH:MM:40). I spent about 15 minutes looking how to change this parameter without any success. I also tried to set the following in web.config, but it did not help: <cache privateBytesPollTime...
For my website I configured some custom error pages. If I generate a 404, the redirect works fine. When hitting a 400, the "bad request" text shows up instead of the configured URl. As a test I copied the URL from 404 to 400. No change. Then I changed the redirect to a file. No change. Any ideas? ...
I am having an ASP.net Membership I need to verify the User Question and Answer. I dont need to use Password Because its Hashed we cannot validate it MembershipUser msUser = Membership.GetUser("Rasel"); thanks, Lalithambigai ...
I have a class isSearching with a single boolean property in a 'functions' file in my webapp. On my search page, I have a variable oSearchHandler declared as a Public Shared variable. How can I access the contents of oSearchHandler on other pages in my webapp? Code with Session.... 'search.aspx Public Function oSearchString(ByVal oTe...
And this was supposed to be so easy... I have existing business and data access layers that handle the retrieval and update of the data in question. These work great with the existing Winforms application (.Net V2.0) Now, in trying to write a new web-based UI, I'm running into all sorts of problems (last time I wrote asp.net code was ...
So here is the simple code: [System.ComponentModel.DefaultValue(true)] public bool AnyValue { get; set; } I am sure I don't set AnyValue to false again (I just created it). This property is a property of a Page class of ASP.NET. And I am cheking the value in a button event handling function. But somehow it is still false. I w...
For Asp.net web applications, is it best to: trap errors within sql stored procedures and test for a return value in the code or just let the error occur in sql (dont handle it) and rely on ado.net raising the errors within the code. What are the best practises here? ...
I´ve been looking for it yet in stackoverflow without success... Is it posible a connection pooling in asp.net? Is it worthwhile? How? ...
I'm writing code on the master page, and I need to know which child (content) page is being displayed. How can I do this programmatically? ...
I am having an ASP.net page with userid and question and answer I need to verify the userid, answer is correct or not I no need to enablepasswordretrival and my password is hashed how to do ...
We have a custom service that writes to a DB (SQL 2005). This is a full 64-bit environment (DB, .NET service). On one of our servers we crash every morning when we have a spike in our volume of data. On another server we run fine. The only differences that I've been able to notice between the two machines is that the one experiencing...