Web Forms :: Check For Sign Before Numbers?
Feb 23, 2010I have a textbox which accept the quantity of any material ,it could be in decimal also,my problem is how to prevent sign such as +,_ before quantity numbers ,like -2 or -2.5.
View 3 RepliesI have a textbox which accept the quantity of any material ,it could be in decimal also,my problem is how to prevent sign such as +,_ before quantity numbers ,like -2 or -2.5.
View 3 RepliesI have a salary TextBox and an associated CompareValidator, which is setup as follows:
<asp:CompareValidator ... Operator="DataTypeCheck" Type="Currency" />
I fill the TextBox with a formatted string out of the database:
txtSalary.Text = myObject.Salary.ToString("N2")
When a user accesses the page using a French culture (such as fr-ca), the ToString method will put 80 000,00 in the textbox, which is fine.However, any number with a space in it causes the validator to fail, which is not fine. Is there any way to make the CompareValidator work properly with non-US formatted numbers?
I would like to to make a UI with a panel of numbers, and when hovered above one of them ten the number becomes larger. something like that:
[URL]
I want that when I press a numbers it shows it's value in some other textbox. In which .NET technology is it possible to do it? Windows Forms? WPF? other?
I have a detailsview with an update button one of the update fields is a checkbox which when is checked I want to automatically update a date field of when the checkbox was checked, am I going the right way with this code....... as I am getting a number of errors
Dim i As Integer
For i = 0 To detailsview2.Rows.Count - 1 Step i + 1
Dim row As GridViewRow = GridView1.Rows(i) [code]....
i have a UP and DOWN buttons ouside a gridview and a checkbox inside the templated field .I will check the checkbox to sleect a row , after that if i click on UP button the checkbox above the selected checkbox should be selected.
same with when i click on DOWN button the checkbox below the selected checkbox should be selected.
I have a check box in the grid.IF IsChecked has a value checkbox should be checked else not.Should i check the check box in the ItemDataBound event or will it get checked automatically.
<asp:DataGrid Runat="server" ID="gridProduct" AllowPaging="True">
<Columns>
<asp:TemplateColumn HeaderText="Employee Name">[code]....
I have a grid view with two columns...one column has a no. like (123) and a check box....which user can checked or unchecked......all I need to do is that I need to disable the man handling of that check box......rather I would like to see a seperate grid view with the same no. of rows as of the first and in this gridview I may allow to type in or scan the no. and if this scanned or typed number matches any no. in the first gridview number then the corresponding check box should be checked/unchecked.
View 1 Repliesi want to put $ sign in textbox, and when some one enter some value the that sign should keep visible. See the picture below for details [URL]
View 4 Replieswhen we select a check boxes creat dynamic check boxes. I have a main catagory check box when we select this main catagory check box creat subcatagory check boxes related to main catagory dynamically.
View 1 Repliesi generated dynamic checkbox n placed it in table cell( <td runat='server' id="trial"></td>) ,
i am not able to check whether check is checked when i click a button.
i recieve exeception :System.NullReferenceException was unhandled by user code
[Code]....
I have a querystring created that contains + character. This is not a space character but an actual + sign in an encrypted string. Below is one example...
[Code]....
My code when reads above QS, I am losing + character in it if I use URLDecode. If I remove URLDecode, and just read as Querystring method, I lose the '=' character... and it gets replaced by %3d or like charcters...
What I am looking for is to save above QS in a variable... the way it is.. PAXGR52H8SS4bSWTn+HyZg==
How can I save QS as is in a variable?
There are 10 check boxes in one page. How to code to allow user only check one?
View 2 RepliesI have this tutorial on Single Sign On with forms authentication.The following link:
[URL]
I did item number 1 which is "SSO for parent and child application in the virtual sub-directory" and it works fine BUT I can't seem to stay logged in because each time I leave and reenter the application I get redirected to the login page.
Is this an inherent feature of forms authentication?
What happened to authorized cookie generated by forms authentication?
While waiting for responses, I will look for answers.
I'm now working with a project of document management system using asp.net web forms. I want to handle the checkout/in concept , I don't know how to make it, how to download the file to user local machine in the checkout , and then upload from his local machine again to the server in the check in. ِAny body can tell me how this works?
View 8 RepliesI have a table in which I have the box amount.How would the table have been added to the + sign.- 10.00 OK, it works.+10.00 - The signs "+" indicatesShows only 10.00 - I do not want to.I would like to table the recorded information +10.00
View 4 RepliesI've had no problems implementing CAS however I have hit an issue with its timeout. It appears my Uni has the timeout set to about 15 minutes. Some forms (specifically ones for our HR department) take a lot longer than 15 minutes to fill out. The result being that when they click the Save/Submit/whatever button, CAS refreshes its login, sends them back to the same page, and resets the page to default (since it's essentially reaccessing it).
Is there any easy way to force my SSO to refresh at set intervals? I tried to use another page (embedded in an iframe that I added to all .Master pages) whose page load contained:
[Code]....
I am going to create application, in that application, i need feature of single sign on application.if i am login with 1 application, i suppose to login with others application.ex. if i login in gmail, then i automatically login with You Tube...
View 1 RepliesHow can i use single sign on.. Am having vs2012. I downloaded identity and access control. And I created an application for local sts... all the other options are asking money for getting space in cloud. Need creating an application other than local sts as i need to implement it for two different domains..
View 1 RepliesI'm currently doing sign up page where customer can sign up to use my website.however, when they type username, they will prompt that username is taken.how to check in database if the username is already been taken? i got 2 sign up page. 1st page is where the customer type their username, and password.2nd page is where they type thier personal particulars and then it will store in database..
below are my codes fot my 1st page
protected void btnNext_Click(object sender, EventArgs e) {
if (!Page.IsValid) {
return;
} Session["username"] = tbNewId.Text;
Session["password"] = tbConfirmPassword.Text;
Response.Redirect("~/SignUp2.aspx"); }
this is my codes for second page
protected void btnNext_Click(object sender, EventArgs e) {
SqlConnection con = new SqlConnection();
con.ConnectionString = ConfigurationManager.ConnectionStrings["Connection"].ConnectionString;
String sql = "Insert into Customer (Name, Phone, Email, Address, Username, Password) ";
sql = sql + "Values (@Name, @Phone, @Email, @Address, @Username, @Password)";
[code]....
How to add the quantity in the drop down dynamically from 0 to 100.
I tried
for (int i=0; i<=100;i++) {
ddl.datatextfield=i
ddl.datavaluefiled=i
ddl.bind()
}
But there is some thing wrong ....
I want to write down like 6th I want th should be in small letters
example
6th
How to write this one ?
I created a website, i create a Login panel in "Homepage(default.aspx)" using CSS & Serverside control(ASP.NET, C#), my question is when user login into my website, the default.aspx(homepage) login will be disable or hide. is there any way to do this? i used DIV tags to make a panel. do i use PANEL control to group the login panel?
View 4 RepliesThe users add their birthdate when they sign up on the page. So now I need to view their age on their profile. But when I get this error
Object reference not set to an instance of an object. on this line: if (DateTime.TryParse(birthdate.ToString(), dk, DateTimeStyles.None, out birthday))
[Code]....
I am trying to login with third party Authencation to my site (c#4.0 ). have visited [URL] ....
But after authentication it will redirect me to: [URL] .... and gives error resource cannot be found.
Instead of my default page page [URL] .....
I have downloaded and added all the ddl have done all setting in web.config accordingly.
I have visited [URL] .... but unable to solve ...
Asp.net 2 or 4.0
We have a controlled list of the users (It s an Extranet solutions for our collaborators)
We need to develop some new web pages (not all) some of which require the user accessing the web page to fill out some form and sign it using his digital signature/certificate. Each customer has their own certificate which he has on his computer (either as a local desktop file or the certificate may be probably integrated into the browser certificates via browser advanced options).
In other words:
1- Allow a client visiting some of the web pages to digitally sign the form before submitting it to our web server (the signature is his specific certificate)
2- Send either the form and the certificate or the html encrypted with his certificate to the web server
3- Read and identify the certificate on the web server (C# code)