Web Forms :: Turning Off Saved Passwords/autocomplete?

May 12, 2010

I have an application where I don't want the browser to be able to remember passwords. I can see the AutoCompleteType = disable and that seems to work in IE, but I also need to support FireFox. Setting autocomplete="off" doesn't seem to do anything. Is there anyway for me to kill the autocomplete of a password text box in FireFox?

View 4 Replies


Similar Messages:

Web Forms :: Turning Off The Autocomplete Feature For A Textbox

Jan 13, 2010

One thing I really love about web browsers, is the autocomplete feature they have for different controls, like textboxes in forms. However, some times users get confused with the dropdown appearing. So, we would like to be able to disable the autocomplete feature for some textboxes on some of our ASP.NET WebForms pages. Isn't there a property which controls that? Or is that done through JavaScript?

View 3 Replies

Security :: Reset Passwords / Create User / Recover Passwords On An Intranet

Aug 4, 2010

My issue today is that i have a MySQL Database and am using the security framework provided by the ASP.NET Membership and Role Providers...I override the default methods with my own MySQL.

Now the issue comes in when i someone would like to have their password reset. My application is running entirely on an Intranet so i cannot have their passwords emailed to them. Is there a way i can have this information displayed in any way so that the user can use it to Log Reset, Create Accounts or Recover their lost passwords on an intranet without the administrators intervention?

Recently i had an approach as follows. In my web.config<system.net><mailSettings><smtp deliveryMethod="pickupDirectoryLocation" and my location was a folder on C drive as c:/SavedPasswords. Now i understand this was such a big security threat and thats why i am looking for a better option.

I would have that folder created using my System.IO and then the Mail is dropped into that folder. Then after the process is successful, i tell the user to check into that location and Read its content.

Then there is a global variable that is set to true...meaning that the folder at c:/ has been created. then there is a Method in a certain class that once it sees this variable True, it reads the readers c:/ and deletes that folder "save" if it exists;

View 2 Replies

Security :: Change Existing Clear Passwords To Encrypted Passwords?

Aug 4, 2010

I have a small database, with a very small number of users. The passwords were stored as clear as the database was so small and held no sensitive data. The database is now to be expanded and passwords are required to be encrypted. I can change the Password Format in the web.config, but is there a way to change the existing passwords from clear to encrypted?

View 1 Replies

Web Forms :: Turning Off The Timer?

Mar 8, 2010

I think I know the answer to this, just want to make sure.

Question: there's no way to turn off a timer in ASP.NET on the client side (easily—I've seen the undocumented hacks on the net). Therefore, you have to set up you own logic client side while the timer is running server side, correct?

I went through these examples and understand them:

http://www.asp.net/AJAX/Documentation/Live/tutorials/IntroToTimerControl.aspx

http://www.asp.net/AJAX/Documentation/Live/tutorials/TimerControlWithUpdatePanelsTutorial.aspx

So, the pseudocode for a trigger done programically—so you do something when somebody clicks a button Button1 would be-- after you set up a ScriptManager, UpdatePanel and suitable ASync PostBack triggers in XAML (as per the above links) so that the Ticks event is triggered in the UpdatePanel:

public partial class MyWebForm : System.Web.UI.Page

{
bool myTriggeringBoolean; //used to turn off and on code in the Timer's Tick event [code]....

View 6 Replies

Web Forms :: Using An HTML Editor Without Turning Off Validation For Page?

Mar 8, 2010

I'm wondering if it's possible to be able to use an HTML editor (such as TinyMCE) in an ASP.NET form without turning off validation for the entire page. There are other fields in the page that I want to use validation for. Will those not get validated with validation controls if you set ValidateRequest="false" in the page directive?

View 4 Replies

Forms Data Controls :: Listview Not Turning To Selected Mode?

Jan 8, 2010

I have a listview whit "select" button.... i want when i click this button the listview should show a Delete buttonn What is wrong in my code ..i press select button there is noting hapning??

[Code]....

View 4 Replies

Forms Data Controls :: Turning Off All Instances Of Control In Repeater?

May 20, 2010

As always with .net, there are many ways of achieving the same thing, so what is the easiest way of achieving the following?

<repeater>
<itemtemplate>
<DDL_control OnItemIndexChange="">
</itemtemplate>
</repeater>


In the repeater, there are a number of dropdownlist controls. Each one is hooked up to an event which triggers when changed. When one instance is changed I would like to disable all other instances of the DDL control.

View 1 Replies

Forms Data Controls :: Listview Not Updating Products And Not Turning Back To Itemtemplate

Aug 8, 2010

I have a listview showing the data, and that i will use to Show, Edit, Delete, and Insert data.

I added a ASP.NET Ajax HTML Editor to the EditItem Template.

I click on EDIT button and it turns into the EditItem Template, i modify the data and when i click UPDATE it does nothing.

Neither updating data or turning back to ItemTemplate.

Here is its code:
[Code]....

And the Code behind:
[Code]....

View 2 Replies

AJAX :: Creating Simple Autocomplete / Taking One Textbox Adding Autocomplete Extender?

Sep 29, 2010

I'm creating just simple autocomplete sample.

taking one textbox adding autocomplete extender as

<asp:ScriptManager ID="ScriptManager2" runat="server">
<Services>
<asp:ServiceReference Path="WebService.asmx" />
</Services>
</asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server" EnableTheming="True" ></asp:TextBox>
<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" MinimumPrefixLength="1" ServiceMethod="GetCountryInfo" ServicePath="WebService.asmx" TargetControlID="TextBox1">
</cc1:AutoCompleteExtender>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />

Also creating web services as "WebService.asmx" & code inside this file is that

<%@ WebService Language="C#" CodeBehind="~/App_Code/WebService.cs" %>

------

then in Webservice.cs file i write code as

public class WebService : System.Web.Services.WebService {
MySql.Data.MySqlClient.MySqlCommand cmd = new MySqlCommand();
MySql.Data.MySqlClient.MySqlConnection con = new MySqlConnection();
//MySqlDataAdapter da = new MySqlDataAdapter();
MySqlDataReader dr;
public WebService () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string[] GetCountryInfo(string prefixText)
{
int count = 10;
string sql = "Select * from tbl_patientmaster Where P_NAME like '" + @prefixText + "%'";
con.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["HMSDBConnectionString"].ToString();
con.Open();
MySql.Data.MySqlClient.MySqlDataAdapter da = new MySql.Data.MySqlClient.MySqlDataAdapter(sql, con);
da.SelectCommand.Parameters.Add("@prefixText", MySql.Data.MySqlClient.MySqlDbType.VarChar, 50).Value = prefixText + "%";
System.Data.DataTable dt = new System.Data.DataTable();
da.Fill(dt);
string[] items = new string[dt.Rows.Count];
int i = 0;
foreach (System.Data.DataRow dr in dt.Rows)
{
items.SetValue(dr["P_NAME"].ToString(), i);
i++;
}
return items;
}

this code is not working

View 1 Replies

SQL Server :: Turning 2 Lists, Into 1?

Apr 1, 2011

I'm sort of new to ASP.NET. What i've done here is create a list of Newsletters seperated by University newsletters, and Alpha Newsletters. What I have now been asked to do is make these 2 lists into 1 list. I can't figure a Way to do it without designing the database? Does anyone have any ideas? Take these 2 lists and make 1? Using odsNewsletterAlpha and odsNewsletterUni to create 1 list?

<h2>University Newsletters</h2>

<asp:ListView class="lvUniversity" EnableViewState="true" ItemPlaceholderID="plcItem" DataSourceID="odsNewsletterUni"[code]...

View 3 Replies

Turning An HTML <td> Into A Link .NET MVC?

Aug 17, 2010

I'd like to be able to turn rows of an html table into links to controllers.I figured something like

<td onclick="<%:Html.ActionLink("", "Index", new {id=item.user_id}) %>">

I'm using MVC 2

View 1 Replies

Using JQuery AutoComplete Plugin - Submit On Autocomplete?

Feb 17, 2011

I'm using jQuery AutoComplete Plugin in ASP.Net as outlined in the article below, so that as a user types in a .Net textbox they get a list of options to choose them. This works fine, but what I need to do now is call a server side function when the user has finished typing or has choosen a value, rather than the user having to submit the value by pressing a button.

View 2 Replies

Can Fill An Dropdownlist Or Another Autocomplete On The Id Provided By Autocomplete

Aug 10, 2010

I am using Ajaxtoolkit 3.5.I am using an autocomplete textbox extender.My problem is I have populated Country in the autocomplete textbox.I have to populate city in another dr

View 1 Replies

C# - Turning HTML Div Code Into A Control?

Jan 18, 2010

I have bunch of HTML code I am using to make rounded edge boxes on my controls. Is there a way to take this code and turn it into some kind of control or something so I do not have to keep pasting 10 lines of HTML code around everything I do?

<div id="BottomBody">
<div class="box1024" >
<div class="content1024">[code]....

One additional thing to note, the number HTML tags used inside the inner most DIV will change depending on where I use it in my site. So in some cases I will only have 1 tag and 1 tag but in other cases I could have 1 tag, 1 tag, 3 tags, and a HTML table. How can I make that work?

View 3 Replies

MVC :: Handle HttpRequestValidationException Without Turning Off ValidateInput?

Mar 18, 2011

Is there a way I can handle HttpRequestValidationException without turning off ValidateInput?

What I really want is all HTML posted from a form to be automatically encoded in the model unless a particular property has the AllowHtml attribute set.

If I have to turn off ValidateInput, then what happens to the rest of my model validation? Will it still be validated or do I need to explicitally check ModelState.IsValid?

I'm also catching the exception in a custom model binder class but every time I try to access the offending property from Request.Form, the exception gets thrown. Is there a way to get that value in the model binder?

View 2 Replies

How To Unit Test For Turning Off Request Validation

Dec 20, 2010

I created a little web service to minify JavaScript, and everything was nice, with all my tests passing. Then I noticed a bug: if I tried to minify alert('<script>');, it would throw a HttpRequestValidationException.

So that's easy enough to fix. I'll just add [AllowHtml] to my controller. But what would be a good way to unit test that this doesn't happen in the future?

The following was my first thought:

[TestMethod]
public void Minify_DoesntChokeOnHtml()
{
try
{
using (var controller = ServiceLocator.Current.GetInstance<MinifyController>())
{
return controller.Minify("alert('<script></script>');");
}
}
catch (HttpRequestValidationException)
{
Assert.Fail("Request validation prevented HTML from existing inside the JavaScript.");
}
}

However, this doesn't work since I am just getting a controller instance and running methods on it, instead of firing up the whole ASP.NET pipeline.

What would be a good unit test for this? Maybe reflector on the controller method to see if the [AllowHtml] attribute is present? That seems very structural, and unlikely to survive a refactoring; something functional might make more sense.

View 1 Replies

AJAX :: MaskedEditExtender Mask Not Working Properly After Turning Off Readonly

Sep 24, 2010

I ran into a strange issue with the AJAX MaskedEditExtender control, the extender is used with the Mask="99/99/9999" and MaskType="Date". Initially when the page loads the textbox was set to readonly using textbox.Attributes.Add("readonly", "readonly") in the codebehind. After the page loads if the user clicks on a certain button it would change the textbox to editable using javascript code: textbox.readOnly = false. The strange thing is after that if you start typing in the textbox you can see the entire mask
(__/__/____) shifting to the right as you type. For example it looks something like this: 09__/__/____ instead of the normal 09/__/____.

If the textbox was never set to readonly in the first place this behavior won't happen. So it seems something got messed up when changing from readonly to not. I was able to reproduce this in a barebone aspx page with just the textbox, the mask extender, and a button that when clicked turning off the textbox's readonly. Anyone knows how I can fix this?

I'm using Ajax toolkit v3.0.30512

View 5 Replies

Turning A Single Instance Web Application Into Multiple Instances - Concept?

Feb 11, 2010

Here is a conceptual questions that I was going over the last few days. I have a simple application that I want to turn into a hosted solution.

My take on it is that in a sense each record in the database would have its own ID representing the hosted instance of the application, rather

than installing the application each time a new one is needed. Then I can easily differentiate between the instances, however I don't want to

store the instance ID in a session (bad for URL back links etc.) and don't really want to add it as part of the URL.

What would you suggest ?

Another part of the question would be how to pragmatically create a sub-domain representing the application instance, however that's a

Whole different question J

View 2 Replies

Web Forms :: Decrypt And View Passwords Stored Membership Tables

Jun 3, 2013

How can I view the user passwords store in asp membership table.

I retrieve all user data on gridview but password is encrypted how to dycrypt password.

View 1 Replies

Web Forms :: Prevent Password TextBox From Saving Passwords In Browser

May 7, 2015

When I load the login page & enter user name the textbox of the password is showing the password I want each time I enter the user name, the textbox of the password being empty and I should enter the password myself...

View 1 Replies

AJAX :: ModalBackground - Opacity On Large Page Turning Screen Solid?

Sep 14, 2010

I have a problem with Opacity in my project - it turns the screen a solid colour instead of see-thru.

I am displaying a rotating wheel in a panel and using modalpopupextender.

1) Only happens in IE8

2) Only happens when there is a lot of data displayed on screen (i.e Datagrid displaying a lot of records).

[code]....

Example of my issue:

I have a screen with a Tab Control with 3 tabs.

Tab 2 and 3 contain a small amount of data on the grid (10 to 20 records), Tab 1 contains 1000+ records.

All this is within an Update Panel - the tabcontrol have AutoPostback set to on.

Now if I click tab 2 -> tab 3 -> tab 2 -> tab 3 etc then the progress show correctly with an opaque screen.

If I click Tab 1 the pop displays but the screen is a solid colour. If I try Tab 2 or 3 again the screen stays a solid colour.

View 8 Replies

Web Forms :: Enable Users Recover Password If Forget Passwords In Web Application

Aug 21, 2012

according to this thread i make login page URL....i have 1 label   1radiobutton and 1 send button now i want when users enter their password,if they enter their password  wrong morethan 3 time it show error that they can't login during 24 hours ,and they cann't enter password in password  textbox . and when they  click on radio button and click on send button it send a massage to my email and after i send them new password 

View 1 Replies

Web Forms :: Getting Name Of Saved File?

May 10, 2010

When saving a file using vb.net:

file.SaveAs("c:/xx/xx/xx/xx/xx/" & file.FileName)

If a file is saved that already exists, is there a way to capture the saved filename?

View 1 Replies

C# - Import MD5 Passwords From A PHP App?

Oct 21, 2010

So I'm in the process of writing an ASP.NET application that requires to import users from a PHP application. The passwords were hashed using MD5 into the database, so the user table records looks more or less like this:

user Password
user1 827ccb0eea8a706c4c34a16891f84e7b
user2 e10adc3949ba59abbe56e057f20f883e

And so on. I have access to the PHP source code and I can see that there is no salt or anything else, it is juts a straight MD5 application. Now, Back on my ASP.NET, I tried to use MD5 using the following logic:

[Code]....

Problem is, that is returning strings like 50-F8-4D-AF-3A-6D-FD-6A-9F-20-C9-F8-EF-42-89-42, which of course is not going to match with the information in the database. What should I do so I don't have to reset 500+ user passwords?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved