How To Put Validate Control For Person
Jul 22, 2010i want to put validation contorl for textbox.
it should accept only characters and digits only.
i want to put validation contorl for textbox.
it should accept only characters and digits only.
I would like to know how to use jQuery's Validate plugin to add rules to validate controls in ASCX custom user control?
View 4 RepliesI've ready everything I can find on the built-in validators but can't figure out how to do the sort of validation I need on theclient-side (I can do it on the server-side). Business rule I want to enforce (review the gridview snippet below) is if user checks the CheckBox_EditLifeCycleRpt control but doesn't enter a value in the TextBox_LifeExpectancy control then the validation should fail.
[Code]....
Like I said I can get this done on the server-side but thought it would be a good opportunity to learn how to use one of the compare validators. Also (FYI) I'm not too good at authoring Javascript but I can copy/modify other people's code fairly well.
Is it necessary to give Control to Validate control in Custom Validator?
If yes then why this will happen?
I was trying to incorporate a functionality in my ASP.NET such that a DIV tag which contains the Profile Navigation Menu should only be visible if a person is logged in. I know the condition on how to if the person is logged in or not but wanted to know the method to toggle the div tag on/off based on person's logged in status.
if(loggedin==yes)
{
//?
}
I am creating a userprofile type of thing in my site i want to show all user SKYPE status whether online or offline how to do
View 1 Replies to get all photos by a persons name through the Picasa Web Albums Data API?
All examples I can find, shows how to get photos by an albumid.
I have a web site published to a Windows 2008 R2 server running IIS 7.5. The web site accesses a SQL 2008 database on a different server. The web site is accessed from an intranet.
In global.aspx users are logged in by retrieving their Windows.Identity which is passed to a stored procedure that checks they have rights to access the system. All the people trying to access the system have rights to the system and if I run the stored procedure with their various Windows.Identities passed as the parameter - it returns that they are authorized.
I have admin rights on the web server. If I browse the site from my box it works okay. If another user who has admin rights on the server browses the site (at the same time as me - or on their own) it works okay.
If someone without admin rights to the server browses the site - and they are the only person 'on' the site - it works okay. If a second person tries to browse the site at the same time as the first person is logged in ... nothing happens. The progress bar in the browser just sits there forever. No errors etc.
So, no-one using the site ... Fred types http://server1/system1/ into his browser and the site works okay.
Jim types http://server1/system1/ into his browser and nothing happens.
Fred logs off and Jim tries the site again. Works fine for Jim this time.
This is my query
Dim s_Person = From Person In db.People Join ProspectStatus In db.ProspectStatus On Person.Id Equals ProspectStatus.Prospect_ID Where (Person.Organization_ID = s_Organization_ID)Select Person.
I only want to return DISTINCT values of Person.ID. Right now, it returns the same person multiple times because there are several entries in the status table.
Dim s_Person = From Person In db.People Join ProspectStatus In db.ProspectStatus
I wrote small wcf service. Its working fine. I have one doubt if i want to share the address in lan to other person so he can consume the service of mine he can build the application. how can he access the service in local lan.
View 1 Repliesi am working on a personal website, so obviously it's not a company website which have exchange server or anything like that
I know how to setup SMTP but what details should i give for SMTP service ? i mean my yahoo/hotmail/gmail account will work, setting up SMTP is really important for the website i am working on to recieve and send e-mail how to do that for a personal website when there is no exchange server ?
I am using the asp.net membership on my website and I have a user called DemoUser for someone who has not joined and wants to try out the site. All they can do is look around and search records. Nothing more. If more than one person logs in with this username, will all of these people be counted in how many are online? Or will that username only be counted once even though 20 people might be using it?
View 3 RepliesI want to create a function that takes person full name as string and return its firstname and lastname.
View 7 RepliesI'm working with the AJAXControlToolkit in an ASP.NET 3.5 application. I've got a textbox on the page to take the person's social security number, and I've put an masked edit extender and an masked edit validator, force the user to enter the whole SSN, but it doesn't work. I'm not sure what I'm doing wrong, or have left out. Here's the relevant code:
[Code]....
I have a page which can only be seen by the members...no guest can Access tht page ...m using asp.net wid c# can i get an basic idea how do i redirect tht person to login page if they r not logged...and wid a condition tht if they r loggin already thn no need to show the loggin page they can directly access to the private page
View 2 RepliesHow can we find the ip address of a person who has logged in?
View 1 RepliesI hide some controls on my page if a specific condition is true. if the control is not visible i dont want to validate it, if it is visible i would like to , how can i do this?
View 5 RepliesI have one FileUpload Control on my webform. It should be validated with the following:
1.File should be "*.doc"
2.File should be more than 0 KB.
If it is satisfied with above conditions, the file should be rename with "sampledata.doc" and should be uploaded into remote server
i want to validate dropdownlist(asp.net controll) at client side without any post back
View 2 Repliesi have two controls in one page, grid control and a form control, inside the grid control there is a textbox control. my question is when ever click update in the gridcontrol, the validation control in the form control get fired and the page does not post to the server.
View 2 RepliesI am a beginner with ASP.Net and I am trying to build a Web site which searches a MS SQL database for a person by name using a search form. I have decided to do this project in two steps. Step one was to develop the functionality in basic .aspx page, and then step two is to transfer the working code into the 'business starter kit' template provided with Visual Studio Express 2008. During step 1, I have created the search form, a results page, and also a detailed results page which all work exactly as desired. However, I have now been working on step 2 and trying to place the search form portion of generic page into a page created within the actual web site created using the business starter kit and this is where i am running into problems.
My search form will not work and gives me no results when I enter in a person's name. I have checked, double-checked, and qtriple checked all of the controls I am using, the database connection, the gridview settings, etc... and everything appears correct. I can create simple .aspx pages, not utilizing the masterpage.master file, and copy and paste my search from code into that and again everything works perfectly, but it does not work within my actual Web page being used for the site. Thus, this leaves me to believe the probelm has something to do with the masterpage.master page. Can someone take a look at my code and see if they see anything which may be causing my problem(s)? I have been working on this since sunrise this morning and it is getting quite frustrating that I cannot figure out what the problem is.
search.aspx page code
[Code]....
masterpage.master page code
[Code]....
results.aspx page code
[Code]....
I want ip address of the person who is viewing my pages. I am using following code. But i am getting :::1
currently using code :-
string strHostName = System.Net.Dns.GetHostName();
string ip = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();
what is wrong or what i need to change?
Can I cache an function individually for each person? Is it possible?
View 4 RepliesI try to create a webbased application with vb 2010 and asp.net 4.
I have a main loginpage, from there users are redirected based on their roles, I have 2 subdirectories and a admin page. User are being redirect so that is not the problem, but when for example, I am on subdirectory 2 and type in the addressbar the mainpage of subdirectory 1, I am redirected to the loginpage and still being loggedin (I see the login page but also my username in the upper right corner). What suppose to happen, is when a user types an unauthorised url, they should get a 403 access denied page (because it should not be possible to go directly to an other sub folder) and return to their previous page.
In every subdirectory folder I have a web.config with authorization on allow and deny access.
When the page loads I am able to click the add button and it moves the selected person from one dataset to the next. If I then try to move another person I get the error message 'Cannot find table 0'. I have changed the text to bold where the error occurs.
Here is my code
[Code]....