asp.net

Dynamically add textbox to RadDock

I'm Trying to add Text Box to the raddock dynamically.When i add the text box.The textbox appears above the dock not inside the dock.Its part of dock but.Thanks in advance RadDock dock = CreateRadDock();//Creating the rad TextBox txt = new TextBox(); dock.Controls.Add(txt); RadDockZone2.Controls.Add(dock)...

Max length for bound field in gridview in ASP.Net

I have to set maximum length for bound field in an editable gridview. For this i have used data format string property and also given ApplyFormatInEditMode="true" still it accepts invalid input. The gridview does not have template field, it contains bound fields only. I have written OnRowEditing and RowUpdating events. The dataformat str...

Authentication Problem

Hi, I have one project in asp.net using httpModules. But i got one exception while debugging, the error shows like this: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'. I don't know whats the problem in my code, i refereed many ...

View replication within asp:Multiview

Hi guys I am looking forward to get this behavious on asp.net Web Application that lets a user navigate within a organization hierarchy. Every hierarchy level is displayed with an employee's name and function along with a button to see employees assigned to them and a button to send an email to the employee. When clicking an emplyee's m...

Checking 3 random letters from a hashed password

I have a system where I salt and hash passwords before saving them to the database, using FormsAuthentication in asp.net What I want to do is, rather than ask the customer for their password each time, I just want 3 random letters from their password. How can I compare this to the hash in the database? Will hashing still work in this ca...

ASP.NET machineKey config section default location

Where do I find the machineKey config section for ASP.NET? I don't have one in my application Web.config, there isn't one in the root Web.config and there isn't one in my machine.config. Does this mean there is some other default hardcoded into ASP.NET? If so, what are the defaults? (For .NET 2 and 4) Having read this: http://msdn.mic...

Avoid form Re-Submit

I'm developing ASP.NET applications and stuck with a "problem" relating to resubmit behaviour. I'm controling the re-submit using a counter in form submit event which disables the submit if it's already been posted. My application is a 3 step workflow and when the 3rd step is shown the transaction was submited from step2 to step 3. What'...

asp.net wrong password just logs me in

i have a simple website with asp.net membership authentication, so some reason which ever password i type for any user just logs me in. Whether i type fffffffff or 55555555 as the password for any user, am just loggedin. The wasn't behaving this way just 1 day back. Any ideas what could be wrong, or where i should start troubleshooting...

Sending mail from ASP.NET

Hi everyone, I am having a problem while sending mails through code.Actually the code is running perfectly that there is no error,but mails are not reaching to the user whom i am sending.I am pasting my code below. Please check it and tell me the problem. System.Net.Mail.MailMessage msgMail = new System.Net.Mail.MailMessage(); msgMa...

Prevent IIS from reusing worker processes for separate ASP.Net AppDomains

When IIS restarts an ASP.Net (2.0) web application, it can either: Recycle the AppDomain: Unload the AppDomain and load a new AppDomain on the same process (e.g. when HttpRuntime.UnloadAppDomain() is called, when web.config is changed). Recycle the process: unload the AppDomain and load a new one on a new process (e.g. when invoking Re...

infragistics web data tree ie script error

Hello, I work with infragistigs (NetAdvantage 2010.2) and I have a data tree on my page. But with the Internet Explorer (6, 8) the following error message is indicated: "The script break A script on this page causes browser delays. Another version of the script may cause that the computer stops responding." Only in the intert explore...

Asp.net file dialog set default folder

Is there any way to do this? I thought I'd find hundreds of results on google for this but not really finding anything. I want to set it to a location either on the web server or on a mapped networked drive somewhere. I'm talking about with <input type="file" ... /> to clarify. ...

Gridview with DDl selected value

I had gridview which in load it will get data from database .And I added option for user to filter this grid view by DDl I did my code and the grid get data when load but when I selected DDl it didnot get any data and I made break point I noticed that Gridview1.Databind() hadnot any action on grid.So please any one help me protected voi...

What row index has a template checkbox in a datagrid?

I have a datagrid and there is a checkbox which is template in each row. Suppose I am in CheckedChanged event of one of the checkboxes. Is there any way I can tell in which row of the datagrid that check box is in? ...

InitializeCulture change language of domain

I have a MasterPage with a combo with languages, the thing is that I would like to assign a default language the moment a user starts the application, after that the user can change between languages. What I understand is that I have to override InitializeCulture method on all of the pages, the problem is, where I can save the selected l...

Accessing State in ASP.NET

Is System.Web.HttpContext.Current.Session the same as System.Web.UI.Page.Session ? Many thanks in advance. ...

ASP.NET Updating the FormsAuthenticationTicket

Hi, when a user logins into my site i create the following authenticate ticket: // Create the authentication ticket var authTicket = new FormsAuthenticationTicket(1, // Version userName, // Username DateTime.UtcNow, // Creation DateTime.UtcNow.AddMinutes(10080), // ...

Dispay specific items in dropdown list based on condition

I have a dropdown list with four options like: New Reviewed To be Reviewed Presented I need to display only specific items in the dropdown list based on some conditions. I mean sometimes with only 2 items New Review Sometimes with 3 items New Review To be Reviewed and sometimes all items. How can I do this? I am using C#. ...

sample c# code to manage roles with roles provider

i want to implement asp.net role provider to assign users over my LAN to roles and have my asp.net intranet app implement security based on roles. i dont want to use VS to manage this with the built in tools but rather hand this off to users to manage themselves. i want an admin folder with a page(s) for admin roles to be able to create...

Visual Studio 2008 - Compile problem

I am getting this error msg: Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\LODE\Web\web.config 21 I checked IIS on my XP machine and it is configured as an appli...