User Tries To Hit Backspace Of A Field That Is Read Only And Can't Edit?
Jun 29, 2010
I notice a user tries to hit backspace of a field that is read only and they can't edit, it works like a pressing the navigate back button for some reason.
View 4 Replies
Similar Messages:
Jul 31, 2013
i am implementing a update query module.i am displaying all fields from a table for a term searched. well now i am implementing update option for the record which are displayed, i have like 70 columns in my table, and i want to know how to restrict some selected fields to be only read only while the form can be updated ?Like if user select to update a record then some selected field such as "Timestamp, UID etc some selected fields" remains READ ONLY !
View 1 Replies
Apr 23, 2010
I'm looking for a simple solution to disable the IE functionality of the backspace key behaving like a back button. I have textboxes that are dynamically set to read only depending on certain criteria. If the user hits the backspace key when focus is on a read only textbox it navigates back a page. I would like to disable this functionality.
View 6 Replies
Sep 23, 2010
I am working on an app and have added masked edits to some of the textboxes. On Google Chrome v6.0.472.62 the backspace button is inoperative along with the delete button. I have found no method around this. It also functions incorrectly on the ajax toolkit website: [URL]
Chrome is fairly popular and I doubt I can use this code with this issue.
View 1 Replies
Mar 23, 2010
I have a .doc or .docx file where in after the booking of the hotel room i wanna give the agreement and the receipt in a .doc file. for this i have a text file,
To, [NAME]
[ADDRESS]
Dear....
...Content;;;...
This will be my .doc file. My idea is to read this .doc file and replace the tags, say.([NAME] and [ADDRESS]) with the user's name and address.
View 2 Replies
Nov 19, 2010
I am new to developing. I am trying to defelop an application which deals with reading and editing a document.The updated document was stored in data repository in pdf format and it's path was maintaind in database. To show this document to user I am using ArrayList Which holds Image in binary format and it was assigned to Rad Binary Image "Datavalue Property". So I am getting well and I can able to show that document. Now My task begins... Now User can able to edit(i.e like Web Editor) that document that means commenting on words,MarkUps,Redo,Undo, creating new document,save,save as ..... like this. So how can I achieve this task? Can I do such functionalities on that showed document?
View 2 Replies
Nov 25, 2010
I am using a DetailsView in ASP.net. And I would like that you can edit one field at a time. Is this possible?
Here is my DetailsView
<asp:DetailsView ID="dvProfiel" runat="server"
DataSourceID="odsUserByUserName" AutoGenerateRows="False">
<Fields>
<asp:TemplateField HeaderText="ID">
[Code]....
When I click to edit the First Name, the field Last Name als goes into Edit mode. I just want the field where I clicked the edit button that goes in Edit mode.
View 1 Replies
Oct 17, 2010
I have the following code to populate data into data grid from DevExpress:
View 1 Replies
May 5, 2010
im using gridview to read data from datasuorce(my access) and im editing data using 'enable editing' from smart tag(in design window .aspx), now i want to change the edit text: edit(i hav named it as edit) to 'view' for one particular user whose name:'sunil'?
this is my table(in my access layer and calling this data through datasource of gridview):
[code]....
View 16 Replies
Jul 23, 2010
i have a table.xml file how can i read it perticular field in asp.net?
i want read only name field in hole xml file an d store it in database
file formate is:-
[code]....
View 4 Replies
Jan 26, 2011
Say I have a DetailsView with a bunch of fields, and I want only certain kinds of users to edit a few of them. They're too few to split them into another DetailsView, so what I'm thinking is to find some way to only allow a user to edit them based on some code-behind logic, effectively making them read-only at will.
I feel it's important to mention that the fields are both TemplateFields, not normal BoundFields with ReadOnly properties. For some reason the required functions don't jump at me from reading the documentation. Oh and I need eveyone to see their specific values, I just want to restrict edit access to them.
View 1 Replies
Mar 2, 2010
I have the following code in my ASP.NET project
public sealed class IoC
{
private static readonly IDependencyResolver resolver =
Service.Get("IDependencyResolver") as IDependencyResolver;
static IoC()
{
}
private IoC()
[Code]....
View 2 Replies
Dec 27, 2010
How Can I use JQuery to Add And Edit in Date Field in ASP MVC Page
View 4 Replies
Apr 16, 2010
I use a SqlDataReader to get fron sqlServer a row af a table. This table have a text field where I store a Xml configuration. In one case this Xml grow up to 650Kb. When I get the field from the datareader it cost amost 2 seconds:
INFO 2010-04-16 09:46:40,559 [12] Cms.dataContenido - readed
INFO 2010-04-16 09:46:42,356 [12] Cms.dataContenido - XMLContent
This is my code:
[Code]....
View 1 Replies
Dec 20, 2010
I have a function that will take a file uploaded by a user of my system and store the contents of the file into a varbinary(max) field in a sql server database. I then display the filename of the file in a data grid for the user to see as a link button. When the user clicks on the link button, I want the file to be read from the database and served out to the user as a prompt to download the file. How can this be accomplished? The upload is fine, it is the download I can't figure out. Here is what I have so far.
[Code]....
I get the download to prompt, but it is showing the name of my .aspx page as the file to be downloaded.
View 1 Replies
Mar 22, 2010
I have a radcombobox in radgrid nested inside FormTemplate:
Code:
<telerik:RadComboBox Skin="WebBlue" Width="250px" Height="150px" runat="server"
ID="TitleCombo" OnDataBound="Title_DataBound"
SelectedValue='<%# Bind("Title") %>' AppendDataBoundItems="true"
OnSelectedIndexChanged="Title_SelectedIndexChanged" AutoPostBack="true" />
then i insert an item to the top of list (at zero index):
Code:
protected void Title_DataBound(object sender, EventArgs e)
{
var item = (RadComboBox)sender;
item.Items.Insert(0, new RadComboBoxItem("Select title...", "0"));
}
It works perfect but, IF the Title field is zero and you Click EDIT LinkButton it throws an exception: Selection out of range Parameter name: value I would say that it's expected as zero index does not exist at the moment when i click edit button. I bind the combo from within RadGrid1_ItemCreated event.
View 21 Replies
Feb 24, 2011
I'm trying to allow logged user who are in department XYZ to perform some task for my third party App. I have two SQL tables named Users & UserList. The third party app (GoldMine) graps the USERNAME from the Users table and store it as UserID which I then referecnce SessionID. The UserList table has two columns (GM_UserName & Department) which I'm interested in. When a user login into the 3rd party app (GoldMine), i then compare the USERNAME (from Users table) to GM_UserName (from UserList table) and see whether GM_UserName is in = 'Dept XYZ'. Take a look at the SQL query below.
sqlDept = "SELECT USERNAME FROM Users LEFT JOIN UserList ON UserList.GM_UserName=Users.UserName WHERE UserList.Department ='Dept XYZ'"
I'm able to do this.
If Session("Userid") = "TestUser1" Or Session("UserID") = "TestUser2" Then Do this Else Do that End If
BUT unable to do this...
If user's Department = 'Department XYZ' Then
Do This
Else
Do that
End IF
View 2 Replies
Oct 29, 2012
how to restrict the other user if one works on the particular record.
i am having a table with the name tblProduct and i used to edit the records from the code behind using my website.
When one user login into the site and search for the particular products and edits the product and at the same time other user log in and try to edit the same product, i need to show the alert message, "the user (username) is already working on this. please wait for a while."
View 1 Replies
Oct 26, 2010
I have a gridview which contains a mix of boundfields and hyperlinkfields ..
Using the below code (VB) for testing purposes only :
Dim row As GridViewRow = GridView1.Rows(0)
MsgBox(row.Cells(3).Text.ToString)
if the cell contains a boundfield, the msgbox will contain the cell value
if the cell contains a hyperlink field, the msgbox will always be blank !
View 2 Replies
May 26, 2010
How can I get the login username to be passed to a field in a gridview on edit or insert? Do I need to convert the gridview field to a template? I have been able to pass the login name to the database in a form by using "AddWithValue("UserId", Data.SqlDbType.VarChar).Value = User.Identity.Name" but I can't figure how to bind the login name to a template field.
InsertCommand="INSERT INTO [Address] (AssocId, [AddrType], [PreAddr1], [PreAddr2], [Address1], [Address2], [City], [State], [Zip], [Country], [PreferredAddr], [ActiveStatus], [EditDate], [Editor]) VALUES (@AssocId, @AddrType, @PreAddr1, @PreAddr2, @Address1, @Address2, @City, @State, @Zip, @Country, @PreferredAddr, @ActiveStatus, GETDATE(), @Editor)"
[code]...
View 11 Replies
Apr 6, 2010
I m using textbox inside the gridview with 5 rows. when user click on submit button it should be display alert message if all 5 textbox field is empty "you cant submit message".If user any one of the textbox value he/she submit the data
View 5 Replies
Sep 24, 2010
This is how I edit the profile variables for a currently logged in user:
Profile.variablename = "this";
How can I do the same thing, but specifying the username whose profile variable I want to change, as opposed to just the currently logged in user?
Something like Profile.variablename.("username", "this") is what I'm looking for.
I'm using C# asp.net.
View 1 Replies
Oct 19, 2010
I've got an AutoCompleteExtender on one of my pages, it seems to be working fine aside from this strange behaviour: Let's say I key in 2 characters, the suggestion list would display. When I press on backspace to delete those 2 characters, wait until the suggestion list to disappear, and re-enter those 2 characters, the suggestion list would no longer display (or sometimes would flicker for about a second after losing focus from the textbox) and I'll need to refresh the page just to get it working again.
However, if I do press backspace and delete those 2 characters but not let the suggestion list to disappear and re-enter new characters, it would continue displaying with correct suggestions. This behaviour seems to happen only in IE8, (although it works with IE8 using Compatibility View and Firefox)... My code is almost the same as the sample on this site except for the animations, and the service looks up in a database table.
[Code]....
View 5 Replies
Jun 26, 2010
I'm using a formatting expression with a template field. When the details view goes into edit mode the formatting is applied. It looks great because it applies the currency formatting. It shows up as "$60,000.00" instead of "60,000.0000". But then when I do the update it gets rejected because of the $. Is there a way to keep the formatting for the user to see in edit mode but remove the $ when doing the update so I don't get the error?
The error: Exception Details: System.FormatException: Input string was not in a correct format.
template field:
[Code]....
View 5 Replies
Jul 18, 2010
For ASP.NET, I'm using a DetailsView for insert and edit of a record. For edit mode I don't want to display the primary key field because it should not be changed. For insert mode, I want to display the primary key field because it doesn't exist and the user can specify it via a DropDownList that insures they will pick an unique value. A TemplateField is used in the DetailsView markup for the primary key field (hence the DropDownList for insert mode).
My problem is that I cannot get the primary key field to not display for edit mode and to display for insert mode. In the markup I have:
<asp:TemplateField HeaderText="name" InsertVisible="True" Visible="True">
<InsertItemTemplate>
<asp:DropDownList ID="ddl2NonMembers" runat="server"
Width="155px"
Sourceless="sqlNonMembers"
DataTextField="name"
DataValueField="id_adm"
SelectedValue='<%# Bind("member_grp") %>'>
</asp:DropDownList>
</InsertItemTemplate>
</asp:TemplateField>
With the TemplateField Visible="True", the HeaderText="name" always displays which I don't want for edit mode. With the TemplateField Visible="False", the field never displays which I don't want for insert mode.How can I achieve the display behavior I want for insert verses edit mode. I'm fine with changing some property programmatically rather than relying an a pure markup approach,
View 1 Replies