Use Normal Asp Inputs Instead Of Telerik's Automatically Generated Ones?
Oct 26, 2010
How can I change
<telerik:RadTextBox runat="server" ID="txtUserName" Width="238px" EmptyMessage="Lütfen 'Kullanıcı Adı' nızı giriniz.">
</telerik:RadTextBox>
in normal asp input form because in teleriks format I can not use
onFocus="javascript:toggleMsg('msg-2')" or
onBlur="javascript:toggleMsg('msg-2')
View 2 Replies
Similar Messages:
Jan 31, 2011
In my application, there is only a login page and a report page. When the user enters his login credentials he will be redirected from the login page to the reports page. I am using forms authentication for this purpose.
On the reports page I will be displaying various reports (using Telerik reporting) based on user inputs for various fields.
Now here is the funnier part; My application works correctly in all browsers (including Safari on windows platform). But when I open it in an Ipad I am getting the below error,
"Potentially dangerous request.form value was detected from the client " This error occurs when the forms authentication redirection happens from the login page to the reports page.
I tried a variety of solutions like setting ValidateRequest="false" & requestValidationMode="2.0" , but none of them helped. I also tried removing the forms authentication and that also didn't
View 1 Replies
Sep 2, 2010
I need to save all the inputs to my MS SQL DB from the ASP.Net page inputs...
When i save this information, It has to check whether exists or not...
If its exists then it shows The Customer already exists..
If it does not exists it needs to show like , Thank You for register with us.. , and after 5 secs it automatically redirect to some other pages...
This all can be done under update panel...
Here i am using,
tr_exists.InnerHtml = "Thank you for register with us..";
View 5 Replies
Jan 25, 2011
Currently I have to click the Spell check button on RadEditor's toolbar to see the word suggestions. Is there any way for that? I did find a way to run Spell Checker on Submit Button click but how do I get what I want? I have gone through forums but in vain. Need help please. Thanks
Telerik people have not replied. It's been three days now so asking here. Anybody who is familiar with Telerik controls please help me out.
edit:
Anybody in here who is familiar with Telerik controls.
View 1 Replies
Mar 13, 2011
I have a couple of tables I ported over to a new database. Everything is exactly the same from the legacy one to the new one. The back-end code that submits the user generated data to the database is also the same. When I submit changes to the database, all of the submitted information populates the correct columns but the column that stores the GUID populates with all 0's. When I enter in the columns manually using SQL Server Management Studio, the GUID gets populated as it does in the legacy version.
View 2 Replies
Mar 25, 2010
I facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?
View 6 Replies
Feb 18, 2010
I'm new to this forum, Ok here is the problem. I tried to implement the user profile pattern that provided by ASP.Net 2.0, first I added this couple of tags to the web.config
<system.web>
<anonymousIdentification
enabled="true"/>
<profile>
<properties>
<add
name="Name"
allowAnonymous="true"/>
<add
name="Age"
allowAnonymous="true"
type="System.Int16"/>
<group
name="User">
<add
name="Category"
allowAnonymous="true"/>
<add
name="MemberSince"
allowAnonymous="true"
type="System.DateTime"/>
<group>
<properties>
<profile>
Then I buit the project and moved to the page code behind, the surpise is that I didn't have the Profile object in the intellisense.
View 3 Replies
Feb 20, 2011
I have site culture in URLs like this:
routes.MapRoute(
"Default",
"{language}/{controller}/{action}/{id}",
languageDefaults,
languageConstraints)
And it works like a charm with a little help from custom MvcHttpHandler that sets current thread's UI culture on every request based on route value. My problem is how do I automatically add the language route value from current request to all outgoing links? E.g. when page /EN/Foo/Bar is requested, I would like this
<%=Html.ActionLink(
"example link",
MVC.Home.Index()) %>
To automatically generate the same result as this:
<%=Html.ActionLink(
"example link",
MVC.Home.Index()
.AddRouteValue(
"language",
this.ViewContext.RouteData.Values["language"]) %>
And of course the same for all other helpers like BeginForm() etc. In my current code base there are already > 1000 occasions where these helpers are used, and requiring .AddRouteValue every time is very fragile as some developer will forget to use it with 100 % certainty. I hope the only solution is not creating custom Html helpers for everything?
View 1 Replies
Mar 16, 2010
I just started learning WCSF,but I encounterd a problem on the menu which the application automatically generated. But I don't know how to reorder the menu.
View 2 Replies
May 7, 2015
I would like to inquire about the delete the data in gridview with automatic number parameter ..when I edit a field with auto parameter number, how do I delete a field that does not automatically sort ..ex:
1. ROBERT
2. EMILIA
3. JOSE
When I remove the column to 2 EMILIA, then display in gridview 1. ROBERT 3. JOSE.
Coding that I got when I remove emilia then display in gridview 1.ROBERT 2.JOSE .. (sequence automatically)
private void Bindemptydt() {
//Declare a datatable for the gridview
DataTable dt = new DataTable();
//Add Columns to the datatable
dt.Columns.Add("COLUMN");
dt.Columns.Add("TEXT");
[Code] .....
View 1 Replies
Jan 28, 2011
I have converting some pages into the PDF/Documents.
My requirement
1)Generate dynaimaclly document (Done already)
2)Save the file (Not done)
3)Mail the saved files as an Email to the user (Not done)
View 3 Replies
Oct 22, 2010
I have a HTML.BeginForm() to change user's data (email, password etc) but I want to separate the contents at the same page, I mean that there will be:
MainContent with submit button and also
- a HTML.BeginForm() with fields to change password + submit button
- a HTML.BeginForm() with fields to change email + submit button
the thing is, I want to allow user to change his password without sending all form data to the controller, only data from the password fields.That View inherits from my buisness object with properties (Login, Password, Email etc)
View 1 Replies
Feb 4, 2011
do have a very particular question and if you want to answer it go straight to the end. But I do welcome comments and advices hence the lengthy post. we deal with a lot of forms and some of these forms are quite lengthy and have many fields. We also have a requirement - in addition to top level fields - to be able to have variable number of repating rows - as we call them. For example, let's think of a customer which has name, surname and age while it can have zero or many addresses (say 0 to 10) so the user must be able to add or remove contacts from the form while filling it in.
View 4 Replies
Sep 29, 2010
I have upto 16 calculators(I mean 16 stored procedures) in one database.How do I log all inputs for each calculater(each stored proc)?.Most of the variables are not populated in the output table so it became hard to reproduce.The variables are not consistant across all the 16 procs . Do I need to set up new table for these inputs?
View 2 Replies
Mar 30, 2010
I'm setting up a radiobuttonlist where registrants to my site will be telling me how they found out about my site. What is the best way to store those answers in an MS SQL database?
Should I embed the radiobuttonlist in a control that I could then "connect" to my database (should I use DetailsView? FormView? I'm assuming not GridView or ListView---because I only want to display one record at time?)
Or should I not use an ASP.NET control---and just write a script in VB that binds this control to my database (even though I'm only just learning VB, and would prefer to use ASP.NET controls as much as possible).
Again, all I want to execute is a simple way to display options with corresponding radio buttons---and then store the results for each individual user into the SQL record that corresponds to the user's UserId.
View 5 Replies
Jan 4, 2011
With the following htlm:
<html>
<body>
<form action="#">
<p><input type="text"></input></p>
</form>
</body>
</html>
[code]...
View 3 Replies
Feb 20, 2010
I have a requirement that user can input HTML tags in the ASP.NET TextBox. The value of the textbox will be saved in the database and then we need to show it
on some other page what he had entered. SO to do so I set the ValidateRequest="false" on the Page directive. Now the problem is that when user input somthing like :
<script> window.location = 'http://www.xyz.com'; </script>
Now its values saved in the database, but when I am showing its value in some other page It redirects me to "http://www.xyz.com" which is obvious
as the javascript catches it. But I need to find a solution as I need to show exactly what he had entered. I am thinking of Server.HtmlEncode. Can you guide me to a direction for my requirement
View 8 Replies
Jun 18, 2010
I'm using the css sprite technique to hold all the buttons on the site in one PNG Image.
This technique works fine on all browsers on your normal Style Buttons, however for IE 7/8 it shows a border and a red x on any input where I use a css class to define the image. This technique works fine for Firefox. Am I missing something here ?
HTML:[URL]
CSS:[URL]
Comparison:[URL]
View 2 Replies
Mar 17, 2010
I am validator controls to validate all of the my inout controls.
My requirement is i need to validate all of the inputs before saving and updating. I have no problem in that because by default all of the input conrols are validating based on the validation rule.
I have the Copu flag option in dropdown, when i am in the the Copy option i dont need to validate some of the input controls or dont need to validate all of the input controls when i clicked Save or Update button.
View 1 Replies
Dec 13, 2010
I am trying to validate dynamically created text inputs. I have been following tutorials about how to do jquery validation using the validation library, but I cannot seem to get this to work.
Heres the code where I generate the inputs.
[Code]....
View 7 Replies
Dec 30, 2010
I've written a 'register' aspx page and it works fine. Except, while testing it, if I start typing a name in the textbox, and a name with the same 1st letter already has been typed in there before, it keeps showing of and I would like it not to. Its like the autocomplet option of a combobox in winforms VB.
to turn of this feature so no one can see what a previous user has typed in the textboxes?
View 6 Replies
Apr 21, 2010
Whats the easiest method of hiding all buttons but not all inputs (say drop down lists, text input boxes) in CSS that works with IE6. The purpose of this CSS file is for printing (using the media="Print" tag in the HTML).
View 2 Replies
Jul 27, 2010
I am trying to update the database with the edited data. However, it did not manage to read the edited data from the textbox. It returned the retrieve data that I have done in the Page_Load instead. Is there any part of the code that I have written wrongly? I did manage not to use <EditItemTemplate> in my past project and manage to update the database with the same logic.
<aspx>
<!-- This DataList is created to view Personal Information -->
<asp:DataList ID="personal_dl" runat="server"> <ItemTemplate>
<table> <tr> <td style="width: 100px; text-align: left;">
<asp:Label ID="first_lbl" runat="server" ForeColor="Black" Font-Size="11px" Text="First:"></asp:Label></td> <td style="width: 350px">
<asp:TextBox ID="first_tb" runat="server" Width="341px" Font-Size="11px" Text='<%# Eval("FIRST") %>'> </asp:TextBox> </td> </tr> <tr>
<td style="width: 100px; text-align: left">
<asp:Label ID="name_lbl" runat="server" Font-Size="11px" ForeColor="Black" Text="Name:"></asp:Label> </td> <td style="width: 350px">
<asp:TextBox ID="name_tb" runat="server" Width="341px" Font-Size="11px" Text='<%# Eval("NAME") %>'> </asp:TextBox> </td> </tr> <tr> <td style="width: 100px; text-align: left;">
<asp:Label ID="id_lbl" runat="server" ForeColor="Black" Font-Size="11px" Text="ID:">
</asp:Label> </td> <td style="width: 350px">
<asp:TextBox ID="id_tb" runat="server" Width="341px" Font-Size="11px" Text='<%# Eval("ID") %>'> </asp:TextBox> </td> </tr> <tr> <td style="width: 100px; text-align: left;">
<asp:Label ID="contact_lbl" runat="server" ForeColor="Black" Font-Size="11px" Text="Contact No.:"> </asp:Label> </td> <td style="width: 350px">
<asp:TextBox ID="contact_tb" runat="server" Width="341px" Font-Size="11px" Text='<%# Eval("TELEPHONE_HP") %>'> </asp:TextBox> </td> </tr> <tr> <td style="width: 100px; text-align: left;"> <asp:Label ID="add_lbl" runat="server" ForeColor="Black" Font-Size="11px" Text="Address:"> </asp:Label> </td> <td style="width: 350px">
<asp:TextBox ID="add_tb" runat="server" Width="341px" Font-Size="11px" Text='<%# Eval("ADDRESS") %>'> </asp:TextBox> </td> </tr> </table> </ItemTemplate> </asp:DataList>
<br /> <div style="text-align: center; color: Red; width: 460px;">
<asp:Label ID="errorMsg_lbl" runat="server" />
<asp:Button ID="edit_btn" runat="server" Text="Update" />
<asp:Button ID="createBtn" runat="server" Text="Insert" /></div>
<aspx.vb>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'display information in datalist
Dim login As String = Session("login")
Dim id As String = Session("id")
bindDataList(personal_dl, getPersonalContent(login, id))
'display necessary DataList
personal_dl.Visible = True
'declare fields
Dim i As Integer
Dim first_tb, name_tb, id_tb, contact_tb, add_tb As New TextBox
For i = 0 To personal_dl.Items.Count - 1
first_tb = personal_dl.Items(i).FindControl("first_tb")
name_tb = personal_dl.Items(i).FindControl("name_tb")
id_tb = personal_dl.Items(i).FindControl("id_tb")
contact_tb = personal_dl.Items(i).FindControl("contact_tb")
add_tb = personal_dl.Items(i).FindControl("add_tb")
'set fields as ReadOnly - cannot edit
first_tb.ReadOnly = False name_tb.ReadOnly = False id_tb.ReadOnly = False
contact_tb.ReadOnly = False add_tb.ReadOnly = False Next
End Sub
Protected Sub edit_btn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles edit_btn.Click 'declare fields
Dim i As Integer Dim first_tb, name_tb, id_tb, contact_tb, add_tb As New TextBox
Dim id As String = Session("id")
For i = 0 To personal_dl.Items.Count - 1
first_tb = personal_dl.Items(i).FindControl("first_tb")
name_tb = personal_dl.Items(i).FindControl("name_tb")
id_tb = personal_dl.Items(i).FindControl("id_tb")
contact_tb = personal_dl.Items(i).FindControl("contact_tb")
add_tb = personal_dl.Items(i).FindControl("add_tb")
Next Dim myConnection As OleDbConnection = dbConnection()
Dim cmd As New OleDbCommand
Dim sqlStatement As String
Dim condition As String
condition = "UPDATE staff " + _
"SET ((FIRST= @FIRST), (NAME = @NAME), (ID= @ID), (TELEPHONE_NO = @CONTACT_NO), (ADDRESS = @ADDRESS)) " + _
"WHERE (ID= @id)" sqlStatement = condition cmd.CommandText = sqlStatement
cmd.CommandType = CommandType.Text cmd.Parameters.AddWithValue("@FIRST", first_tb)
cmd.Parameters.AddWithValue("@NAME", name_tb)
cmd.Parameters.AddWithValue("@ID", id_tb)
cmd.Parameters.AddWithValue("@TELEPHONE_NO", contact_tb)
cmd.Parameters.AddWithValue("@ADDRESS", add_tb)
cmd.Parameters.AddWithValue("@ID", id)
cmd.Connection = myConnection
Try myConnection.Open()
cmd.ExecuteNonQuery() Catch ex As Exception
Finally If myConnection.State = ConnectionState.Open Then
myConnection.Close()
End If
End Try
'display information in datalist
Dim login As String = Session("login")
bindDataList(personal_dl, getPersonalContent(login, id))
End Sub
View 12 Replies
Jan 25, 2011
I am trying to find a way to limit the inputs on a webpage to a variety of different sequences, and although I have worked through the regular expression library, I am still confused on how to allow decimal places and a maximum value. I initially used rangevalidators, but as you know, these only limit the inputs to a range, and have no control over the decimal places entered. A variety of limits i have been asked to implement are:
1. Range 0-45, 0 decimal places
2. Range 0-20, 2 decimal places
3. Range 16-65, 0 decimal places
4. Range 0-99, 2 decimal places
5. Range 0-1500000, 0 decimal places
6 Range 0-200, 1 decimal place
For 1 and 5 respectively, I have used
([0-9]|[0-9]d|45)$
([0-9]|[0-9]d|1500000)$
but want to be sure that I have understood the pattern correctly. How do I then go about creating a pattern for the other examples?
View 3 Replies
Jan 5, 2011
I am using Asp.net and requirement specifies i use html input to post files to server rather than asp:fileupload.[ Reason : Add more html input file controls similar to CPanel file manager.(i.e) clicking on link adds another file input from which user can select another file*.But when ever i post back Request Files collection is always empty.*
HTML FORM:
<form method="post" enctype="multipart/form-data" action="documents.aspx">
<div>
<input type="file" name="attachment" id="attachment" onchange="validate(this)" />
<span class="none">Filename should be within (1-25) letters long. Can Contain only letters
& numbers</span>
<div id="moreUploads">
</div>
<div id="moreUploadsLink" style="display: none;">
<a href="javascript:addFileInput();">Attach another File</a></div>
<input type="submit" id="btnSubmit" />
</div>
</form>
Javascript:
var upload_number = 2;function addFileInput() {
try {
var fileUpload = document.getElementById("attachment");
var elemSpan = nextElement(fileUpload).cloneNode(true);
var elemDiv = document.getElementById("moreUploads");
var d = document.createElement("div");
var file = document.createElement("input");
file.setAttribute("type", "file");
file.setAttribute("id", "attachment" + upload_number);
file.setAttribute("onchange", "validate(this)");
d.appendChild(file);
d.appendChild(elemSpan);
elemDiv.appendChild(d);
upload_number++;
} catch (err) { alert(err);}}
the validate(this) is a function that validates file types on client.When validation succeeds then the link to add more file inputs is enabled. Could someone throw somelight on this.
View 1 Replies