16,016,463 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10523130 (Top 44 by date)
Member 10523130
15-Feb-14 0:06am
View
i have saved my table.and i can see that column in my table
Member 10523130
15-Feb-14 0:05am
View
CREATE TABLE [dbo].[login] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[name] NCHAR (10) NULL,
[midname] NCHAR (10) NULL,
[surname] NCHAR (10) NULL,
[username] NCHAR (15) NULL,
[password] NCHAR (16) NULL,
[contact] NUMERIC (18) NULL,
[dob] VARCHAR (50) NULL,
[email] NVARCHAR (50) NULL,
[address] NVARCHAR (50) NULL,
[occupation] NCHAR (10) NULL,
[ltype] NCHAR (10) NULL,
[status] INT DEFAULT ((1)) NOT NULL,
[image] VARCHAR (50) NULL,
PRIMARY KEY CLUSTERED ([Id] ASC)
);
this is my table
Member 10523130
14-Feb-14 9:34am
View
no.the problem is in where condition but i dont know what else will be the code for where condition
Member 10523130
14-Feb-14 7:11am
View
no i am not getting any error but data is also not getting inserted.i have checked the values for inserting in database.and i was getting this problem before adding this image file upload.i have just added this field in insert query.and it is not working now.I am not getting where is the problem
Member 10523130
14-Feb-14 6:56am
View
datatype is varchar.and still it is giving me same problem
Member 10523130
14-Feb-14 6:53am
View
datatype for image is varchar.but still it is giving me this problem
Member 10523130
14-Feb-14 5:58am
View
okay.Thanx.I change my qury.and selected id.it worked.
Member 10523130
14-Feb-14 5:57am
View
thanx.It worked
Member 10523130
14-Feb-14 5:46am
View
and i have not mentioned id in select because i do not want to display id in gridview.
Member 10523130
14-Feb-14 5:46am
View
i checked it.Both are matching.In my table also column name is id.then what is the problem?
Member 10523130
14-Feb-14 5:45am
View
i checked it.Both are matching.In my table also column name is id.then what is the problem?
Member 10523130
11-Feb-14 0:35am
View
thanx a lot.It worked.. :)
i was trying for so long.
Member 10523130
24-Jan-14 2:45am
View
i tried..It is not working..what is mean by rt1?
Member 10523130
24-Jan-14 2:43am
View
yes..menu should appear to the right side of page.what shud i do?
Member 10523130
24-Jan-14 1:38am
View
Hey it worked :).. Thanx a lot
Member 10523130
24-Jan-14 1:31am
View
and how can i increase the width?
Member 10523130
24-Jan-14 1:25am
View
I tried that but no images are displayed..where should i write div code in javascript or outside of javascript?.. I have written it in javascript code
Member 10523130
22-Jan-14 1:16am
View
i tried that it is not entering data into database but it is not showing alert msgs for any of the empty text boxes.
Member 10523130
22-Jan-14 1:16am
View
i tried that it is not entering data into database but it is not showing alert msgs for any of the empty text boxes.
Member 10523130
21-Jan-14 2:18am
View
no.it is not resolved. and yes all the ajax controls are there in my toolbox..then what is the problem?
Member 10523130
21-Jan-14 2:13am
View
i have just included ajaxcontroltoolkit.dll file in my project. But it is telling that assembly reference is missing.and may be bacause of that i am also getting error in web.config at <assemblies>. what shud i do?
Member 10523130
21-Jan-14 2:10am
View
Other standard controls are getting recognized.. But i am having problem with ajaxcontrol toolkit..
Member 10523130
21-Jan-14 1:52am
View
ok..It is also giving error as "the type or namespace name ajax control toolkit could not be found in the global namespace".. what should i do?
Member 10523130
21-Jan-14 1:32am
View
textbox,label that i have used in aspx file.. It is giving error for all textbox,labels as "textbox1 could not be found in current context"
Member 10523130
21-Jan-14 1:32am
View
textbox,label that i have used in aspx file.. It is giving error for all textbox,labels as "textbox1 could not be found in current context"
Member 10523130
17-Jan-14 9:47am
View
i have one more query related to sql databse..i have set primary key id to auto increment..bt after 8 record it shows id 1069..why is it so?
Member 10523130
17-Jan-14 9:45am
View
hey thanx it worked
Member 10523130
17-Jan-14 9:41am
View
ok..I have not included using system.data(). it is not giving error but it is not working also
Member 10523130
17-Jan-14 9:34am
View
yes it is giving error..but how can check if that count is not 0??
Member 10523130
17-Jan-14 9:27am
View
It is not working.. I think my if statement is wrong..??
Member 10523130
17-Jan-14 4:51am
View
but where shud i call this function???means the above validation function i have called on onClientClick..this wiil be the second function so where shud i call?
Member 10523130
17-Jan-14 4:27am
View
i tried it is not working.. ;(
Member 10523130
17-Jan-14 4:26am
View
hey thanx it worked fine for empty fields. But now I have to check for Only characters in firstname,middlename and etc..how shud i check?pls help
Member 10523130
17-Jan-14 3:37am
View
Deleted
<td colspan="2">
<asp:Button ID="signupbtn" runat="server" Text="Sign Up" onclick="signupbtn_Click" OnClientClick="return Validateform();" Class="button" />
<asp:Button ID="cancelbtn" runat="server" Text="Cancel" onclick="cancelbtn_Click" Class="button" />
</td>
Member 10523130
17-Jan-14 3:36am
View
I need to validate firstname,middlename,surname,contact no,date,also i need to validate duplicate username.
the code given on link w3source is different than what i have used.I am not getting it.It is complicated.is there any other solution?
pls help
Member 10523130
17-Jan-14 3:28am
View
here is my signup.aspx file code in which i have written javascript
<head runat="server">
<script type="text/javascript">
function Validateform() {
var msg = "";
if (document.getElementById("txtfirst").valueOf == "") {
msg += "Enter Firstname\n";
}
else {
var ex = /^[a-zA-Z]/;
if (ex.test(document.getElementById("txtfirst").valueOf == false)) {
msg += "please enter only characters in first name\n";
}
}
</script>
if (msg == "") {
return true;
}
else {
alert(msg);
return false;
}
<td colspan="2">
<asp:Button ID="signupbtn" runat="server" Text="Sign Up" onclick="signupbtn_Click" OnClientClick="return Validateform();" Class="button" />
<asp:Button ID="cancelbtn" runat="server" Text="Cancel" onclick="cancelbtn_Click" Class="button" />
</td>
Member 10523130
16-Jan-14 12:47pm
View
yes it is the id of surname textbox
Member 10523130
16-Jan-14 12:22pm
View
i have not written any code for surname textbox..what shud i write?
Member 10523130
16-Jan-14 11:58am
View
this is my signup.aspx code
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Invalid Surname" Enabled="True" ControlToValidate="txtsur" ForeColor="Red" ValidationExpression="\b[A-Za-z]+\b" Display="Dynamic" SetFocusOnError="True">
Member 10523130
16-Jan-14 11:14am
View
I have used asp.net validation control regular expression and i have given above expression. and i have not written any code on button clk for this validation.what shud i do
Member 10523130
16-Jan-14 10:47am
View
yes my validation expression is-
^[a-zA-Z\\s]+$
what is meant by button click functionality? I didn't get it
Member 10523130
14-Jan-14 10:35am
View
Using Response.Redirect i will be redirected..But have to redirect to welcome admin or teacher or student page after login.And I am using radio button list on Sign up page.How i can check that value at the time of login? according to that user will be redirected. please help
Member 10523130
14-Jan-14 10:30am
View
How to store value in session? I have written following code in signup page
Session["type"]=typeButtonList1.SelectedValue;
and i have written foll code in login page
cmd = new SqlCommand("select username,password,ltype from login where username='" + txtusr.Text +"' and password='"+txtpass.Text+"'" , con);
dr = cmd.ExecuteReader();
if (dr.Read())
{
if (Session["type"] == "Admin")
{
Response.Redirect("welcomeadn.aspx");
}
}
But it is not working.please help
Member 10523130
14-Jan-14 10:10am
View
But I am not using login control.Is there any other way?
Show More