15,915,501 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 Python 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 Gitanjali Singh (Top 103 by date)
Gitanjali Singh
17-Feb-14 4:10am
View
Try this.
double amount = double.Parse(txtAmount.Text);
double persons = double.Parse(txtPerson.Text);
Refer:http://stackoverflow.com/questions/19049906/input-string-was-not-in-a-correct-format-in-double-parse
Gitanjali Singh
17-Feb-14 3:35am
View
Use Parse instead of TryParse.
double amount = Double.Parse(txtAmount.Text);
double persons = Double.Parse(txtPerson.Text);
Gitanjali Singh
17-Feb-14 3:22am
View
Please Check updated solution.This is working fine on my end.
Gitanjali Singh
17-Feb-14 3:14am
View
Debug and check the value of textbox txtAmount.What error you are getting?
Gitanjali Singh
17-Feb-14 3:01am
View
check updated solution.
Gitanjali Singh
17-Feb-14 1:09am
View
Check solutions.
Gitanjali Singh
17-Feb-14 0:56am
View
Debug and check what value is coming in regdate?
Gitanjali Singh
17-Feb-14 0:53am
View
What is the datatype of RegDate?
Gitanjali Singh
15-Feb-14 12:53pm
View
These links also have better explanation.Glad to know that you get the answer.
Gitanjali Singh
14-Feb-14 11:31am
View
Refer:http://msdn.microsoft.com/en-us/library/z9h4dk8y(v=vs.110).aspx
Gitanjali Singh
14-Feb-14 6:17am
View
Put debugger and check value of image1.ImageUrl and also ckeck datatype of column in which you are inserting the value of image url table.
Gitanjali Singh
13-Feb-14 1:52am
View
Thanks for links.Need some good description with examples.
Gitanjali Singh
31-Jan-14 6:08am
View
Please post the code of function AddNewRow().
Gitanjali Singh
31-Jan-14 6:05am
View
For Handling link button in nested gridview
Refer:http://forums.asp.net/t/1918709.aspx
Gitanjali Singh
31-Jan-14 6:02am
View
Welcome :)
Gitanjali Singh
31-Jan-14 5:56am
View
Ok.Where you are calling the method DownloadFile();?
Gitanjali Singh
31-Jan-14 3:37am
View
Please post your code.
Gitanjali Singh
31-Jan-14 2:19am
View
Welcome :)
Gitanjali Singh
31-Jan-14 1:58am
View
Please post you code.
Gitanjali Singh
29-Jan-14 6:34am
View
Please post your code.
Gitanjali Singh
20-Jan-14 2:09am
View
Thanks Sampath :)
Gitanjali Singh
20-Jan-14 1:48am
View
Please accept it as solution.:)
Gitanjali Singh
20-Jan-14 1:48am
View
Deleted
Please accept it as solution.
Gitanjali Singh
20-Jan-14 1:34am
View
Your question is not clear.
Gitanjali Singh
20-Jan-14 1:30am
View
Replace
<asp:HiddenField ID="inpHide" runat="server" />
with
<input id="hiddenControl" type="hidden" runat="server" />
Gitanjali Singh
20-Jan-14 1:26am
View
Please share your code for saving data to database.
Gitanjali Singh
17-Jan-14 4:55am
View
you can call it after checking null of textboxes.Please do some google.
Gitanjali Singh
17-Jan-14 4:42am
View
Use this function
function IsNumericOrCharacter(strString)
{
//valid string
var strValidChars = "0123456789.-~`@#$%^&*(){}[]:;'<>? ";
var strChar;
var returnResult = true;
if (strString.length == 0) return false;
// test strString consists of valid characters listed above
for (i = 0; i < strString.length && returnResult == true; i++)
{
strChar = strString.charAt(i);
if (strValidChars.indexOf(strChar) != -1)
{
//document.getElementById('+ id +').value="";
alert("Numeric or special characters or spaces are not allowed");
returnResult = true;
}
}
return returnResult;
}
Gitanjali Singh
17-Jan-14 3:44am
View
Try like this. this one is simple.
function validateForm()
{
var Firstname = document.getElementById("txtFname").value;
var Lastname = document.getElementById("txtLname").value;
var Username = document.getElementById("txtUserName").value;
var e = document.getElementById("ddlUserRole");
var Role = e.selectedIndex;
var currentProject =document.getElementById("lbCurrentProject").value;
var Password = document.getElementById("txtPassword").value;
var Confirmpassword = document.getElementById("txtConfirmPassword").value;
if (Firstname == "First Name" || Firstname == "")
{
alert("Firstname must be filled out");
return false;
}
if (Lastname == "Last Name" || Lastname == "")
{
alert("Lastname must be filled out");
return false;
}
if (Username == "User Name" || Username == "")
{
alert("UserName must be filled out");
return false;
}
if (Role == 0 || Role == "")
{
alert("Select your role");
return false;
}
if (currentProject == null || currentProject == "")
{
alert("Select your current projects");
return false;
}
if (Password == null || Password == "")
{
alert("Password must be filled out");
return false;
}
if (Confirmpassword == null || Confirmpassword == "")
{
alert("Confirmpassword must be filled out");
return false;
}
if (Password != Confirmpassword)
{
alert(" Passwords must match");
return false;
}
//alert("You are registered successfully!!!!! Login Now....");
return true;
}
Gitanjali Singh
17-Jan-14 2:06am
View
Disable Intellitrace (historical debugger) - it enable jumping "back in time" during debug but it slows down debugging.
You can disable it from the options->intellitrace
Gitanjali Singh
15-Jan-14 2:13am
View
Yes, let me know if it works.
Gitanjali Singh
15-Jan-14 2:01am
View
Refer:http://www.aspdotnet-suresh.com/2011/06/creating-windows-service-in-c-or.html
Gitanjali Singh
15-Jan-14 0:59am
View
welcome :)
Gitanjali Singh
14-Jan-14 0:25am
View
@Computer Wiz99-Please check the updated solution.
Gitanjali Singh
14-Jan-14 0:24am
View
Thanks TrushnaK for pointing.
Gitanjali Singh
13-Jan-14 6:17am
View
welcome :)
Gitanjali Singh
13-Jan-14 6:10am
View
Thanks KARTHIK :)
Gitanjali Singh
13-Jan-14 5:59am
View
Try Google,you will get many links and samples too. Try those samples,if you stuck on those,ask here.
You can start from here
http://msdn.microsoft.com/en-us/library/ff649096.aspx
Gitanjali Singh
13-Jan-14 4:20am
View
Please post your code,what you done yet.
Gitanjali Singh
13-Jan-14 3:55am
View
Thanks BillWoodruff!
Gitanjali Singh
13-Jan-14 3:34am
View
In web application there is no picturebox control, it is a class named as PictureBox in web application.Try to use it as shown in 3rd link.
Gitanjali Singh
13-Jan-14 3:10am
View
If this will help ,please accept the solution:)
Gitanjali Singh
13-Jan-14 3:06am
View
check the third link in solution.
Gitanjali Singh
12-Jan-14 23:48pm
View
Thanks Prasaad and Anurag.
Gitanjali Singh
10-Jan-14 0:23am
View
Agree!!
Gitanjali Singh
9-Jan-14 23:53pm
View
is this the error you are getting?
Gitanjali Singh
9-Jan-14 23:50pm
View
Thanks for pointing,will update my solution.
Gitanjali Singh
9-Jan-14 12:20pm
View
Updated the solution .please try this.
Gitanjali Singh
9-Jan-14 7:41am
View
if (TextBox1.Text != String.Empty)
Try this
Gitanjali Singh
9-Jan-14 6:17am
View
Refer:http://www.yiigo.com/guides/csharp/how-to-generate-barcode.shtml
This may help.
Gitanjali Singh
9-Jan-14 5:46am
View
Try the example given in the above link.
Gitanjali Singh
9-Jan-14 4:44am
View
check the updated solution.
Gitanjali Singh
9-Jan-14 3:21am
View
i have just improved your question structure by putting code in C# tag.
Gitanjali Singh
9-Jan-14 2:58am
View
please post you code.
Gitanjali Singh
9-Jan-14 2:45am
View
where do need selection of Mutiple Checkboxes?
Gitanjali Singh
9-Jan-14 0:37am
View
have you added btnUpload_Click event in code behind?
Gitanjali Singh
8-Jan-14 5:55am
View
Refer:http://stackoverflow.com/questions/20741343/how-to-display-image-inside-gridview-template-field-without-using-handler-class
Gitanjali Singh
8-Jan-14 5:26am
View
Have you tried like operator?
Gitanjali Singh
8-Jan-14 3:25am
View
just a filename or would you like to open it?
Gitanjali Singh
8-Jan-14 1:33am
View
As your file is uploaded successfully,that's why its showing this message.What else do you need?
Gitanjali Singh
8-Jan-14 0:37am
View
value=float.Parse(TextBox1.Text, CultureInfo.InvariantCulture.NumberFormat);
Refer:http://stackoverflow.com/questions/11202673/converting-string-to-float-in-c-sharp
Gitanjali Singh
7-Jan-14 22:47pm
View
where you have declared dtoutput?
Gitanjali Singh
7-Jan-14 22:43pm
View
have you written any code for this?please post your code.
Gitanjali Singh
7-Jan-14 1:14am
View
FileUpload doesn't support asynchronously uploading file with UpdatePanel.
you ca use IFrame to achieve uploading file without refreshing.
Please check this video and demo: http://www.asp.net/learn/videos/video-254.aspx
Gitanjali Singh
7-Jan-14 0:50am
View
Refer:http://stackoverflow.com/questions/17316317/jquery-select-current-table-row-values
This may help
Gitanjali Singh
7-Jan-14 0:39am
View
where do you need this table id,can you post your code?
Gitanjali Singh
6-Jan-14 6:48am
View
Refer:http://stackoverflow.com/questions/16710027/buttonclick-and-postback-issue
Gitanjali Singh
3-Jan-14 6:08am
View
If it helps you ,accept it as solution :)
Gitanjali Singh
3-Jan-14 3:16am
View
As per http://www.codeproject.com/KB/cs/tinguusingstatement.aspx, the .NET CLR converts
using (MyResource myRes = new MyResource())
{
myRes.DoSomething();
}
to
{ // limits scope of myRes
MyResource myRes= new MyResource();
try
{
myRes.DoSomething();
}
finally
{
// Check for a null resource.
if (myRes!= null)
// Call the object's Dispose method.
((IDisposable)myRes).Dispose();
}
}
Note that it's not necessarily a matter of the object being disposed correctly, but more of whether it is disposed in a timely manner. Objects implementing IDisposable which hold on to unmanaged resources like streams and file handles will also implement a finalizer that will ensure that Dispose is called during garbage collection. The problem is that GC might not happen for a relatively long time. using makes sure that Dispose is called once you're through with objects.
Gitanjali Singh
3-Jan-14 2:35am
View
Add it after Getdata () function and try
Gitanjali Singh
3-Jan-14 0:50am
View
Have u tried window.location.reload();
Gitanjali Singh
2-Jan-14 10:54am
View
it should be inside script tag.
Use "have a question or comment" for question,as this is not a solution.
Gitanjali Singh
2-Jan-14 10:44am
View
please elaborate your question.
Gitanjali Singh
30-Dec-13 1:44am
View
Put debugger and check.
Gitanjali Singh
27-Dec-13 5:48am
View
Got your point,working on the same, will update soon.
Gitanjali Singh
27-Dec-13 4:47am
View
you can set flag for that record in database on click of delete button,and populate records in grid view accordingly.
Gitanjali Singh
27-Dec-13 4:43am
View
http://hardcodedblog.blogspot.in/2009/10/obtaining-browser-visited-url-history.html
Try this
Gitanjali Singh
27-Dec-13 2:33am
View
Done
Gitanjali Singh
27-Dec-13 2:14am
View
http://www.tutsstore.com/how-to-insert-retrieve-image-in-sql-server/
Try this link for winforms
Gitanjali Singh
27-Dec-13 1:21am
View
welcome :)
Gitanjali Singh
27-Dec-13 1:12am
View
updated the solution,try updated one.
Gitanjali Singh
27-Dec-13 0:31am
View
Welcome
Gitanjali Singh
26-Dec-13 2:54am
View
what's the error?
Gitanjali Singh
24-Dec-13 8:31am
View
Please elaborate your question.where you get stuck?
Gitanjali Singh
20-Dec-13 4:36am
View
In the line .. If myReader.Item("username") = UserName.Text Then.., why you have added .. after and before line?
If you have added it by mistake , remove this.
Gitanjali Singh
12-Dec-13 2:41am
View
its duplicate question.you can remove this question and improve previous qusetion.
Gitanjali Singh
11-Dec-13 5:43am
View
Try NavigateUrl in place of ??
Gitanjali Singh
2-Dec-13 14:08pm
View
Really appreciate the way of guidance .Will take care of mentioned points .Thanks -SA
Gitanjali Singh
21-Oct-13 8:45am
View
ok
Gitanjali Singh
21-Oct-13 8:31am
View
Welcome :)
Gitanjali Singh
8-Oct-13 2:52am
View
[Required]
[Display(Name = "Start DateTime")]
[RegularExpression("^(([0-2]?[0-9]|3[0-1])/([0]?[1-9]|1[0-2])/[1-2]\d{3}) (20|21|22|23|[0-1]?\d{1}):([0-5]?\d{1})$", ErrorMessage = "Invalid date")]
public string DateTimeStart { get; set; }
you can try regular expression for specified range.
Gitanjali Singh
3-Oct-13 8:02am
View
you can use join for this.
Gitanjali Singh
3-Oct-13 3:52am
View
ok try by replacing KontaktFormular with soluiton name , under which your project is built.
Gitanjali Singh
19-Sep-13 9:48am
View
welcome :)
Gitanjali Singh
16-Sep-13 11:09am
View
in web.config inside connection string class.
Gitanjali Singh
16-Sep-13 3:25am
View
http://www.codeproject.com/Questions/653847/How-to-use-EventHandler-for-dynamic-textbox
try this
Gitanjali Singh
9-Sep-13 6:03am
View
After upadting data inside gridview,we need to bind it to datasource again.
Gitanjali Singh
9-Sep-13 5:51am
View
Thanks:)
Gitanjali Singh
6-Sep-13 10:36am
View
that is not join.
Gitanjali Singh
6-Sep-13 10:17am
View
Welcome
Gitanjali Singh
27-Aug-13 2:47am
View
Deleted
Do you need to sort records based on last modified date?
Gitanjali Singh
12-Aug-13 4:19am
View
Can you tell me is that all the drop down in present in your gridview contain same vaules?
Thanks
Gitanjali Singh
12-Aug-13 3:22am
View
yes it is possible.This can be done using fileupload control or custom multiple file upload control.Which control do you need?
Show More