15,892,059 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 Sumit Jawale (Top 29 by date)
Sumit Jawale
4-Feb-15 7:00am
View
Hi, What exactly you want to do ? What i understood from your comment is if hod approves leave, then you need to update the remaining record count.Correct ??
If you dont want to use trigger then you can write two update statments to update leave status and to update remaining leaves.
Sumit Jawale
4-Feb-15 2:15am
View
Deleted
Select tbl1.col1,tbl1.col2, tbl2.col1,tbl2.col2 from tbl1 inner join tbl2 on tbl1.id = tbl2.id
Sumit Jawale
4-Feb-15 0:32am
View
Here you can take @LeaveStatus as varchar and you cna check if (@LeaveStatus == 'Approve')
Sumit Jawale
2-Feb-15 3:46am
View
Hi, What is the issue in this?
Query is looking fine and it will fetch the record using userID ..
Sumit Jawale
21-Jan-15 4:06am
View
your PERFORMANCE is not depend on NOLOCK.. Please try to optimise your query.. There are so many ways to optimise it..
Sumit Jawale
15-Jan-15 7:07am
View
can you please elaborate your problem more ? Exactly what is the scenario and what is the issue ?
Sumit Jawale
8-Jan-15 23:37pm
View
In your table add one more column for ImagePath and while saving image in table save it's physical path. So you will get direct path form DB and for deleting you can use
string path = //Path fetched from query + "/" + file_name ;
FileInfo file = new FileInfo(path);
if (file.Exists)//check file exsit or not
{
file.Delete();
}
also please make sure that you have given permission to your image folder.
Sumit Jawale
8-Jan-15 5:06am
View
What is this??? What do want to ask ?
Sumit Jawale
8-Jan-15 2:26am
View
dont you think will be wrong ?? If user selected only three text box 1,3,6 then it will show 1-6. As per my understanding it is wrong. Beacause 1-6 means 1 to 6 (in other words user selected all checkbox from 1 to 6 ) .
please clarify your exact need.
Sumit Jawale
8-Jan-15 2:06am
View
Hi,
Do you want label to show in comma separated sequence or Min Value and Max Value of selected Check boxes ?
EX : 1,2,3,4 or 1-4 ???
Is that so then what if user select check box 3,5,8,6 ?? what do you expect in thi s scenario ??
Sumit Jawale
7-Jan-15 0:09am
View
Ok.. Can you please tell me where exactly your Image folder is ?? Server.MapPath works only if your folder is present where your project is deployed.
I can suggest one more solution, While saving image info in DB, try to save its physical address also. It will help you to get direct physical path from DB (no need to find file path again)
Sumit Jawale
6-Jan-15 7:21am
View
ok.. then it is difficult to identify exact cause. :(
Try to find out exact cause by yourself.and please share if you find it. :)
Sumit Jawale
6-Jan-15 6:39am
View
if scenario is not clear, then why you voted my answer 1 ?
Sumit Jawale
6-Jan-15 6:29am
View
Yes, but I think the question is for getting increment varchar value. So while user want to increase it he will simply call the Function. And thi swill work fine in this scenario.
Sumit Jawale
5-Jan-15 7:39am
View
In your other Function, are you calling same procedure "HasPrimaryKey" ??
Sumit Jawale
5-Jan-15 4:35am
View
ok. Use ISNULL in your select
ISNULL((case [IsReturned] when (0) then datediff(minute,dateadd(day,[Time],[StartDate]),getdate()) end),delay)
Sumit Jawale
5-Jan-15 4:12am
View
then use your column as it is.. I guess delay is your column which you want to keep as it is.
(case [IsReturned] when (0) then datediff(minute,dateadd(day,[Time],[StartDate]),getdate()) else delay end)
Sumit Jawale
4-Jan-15 23:44pm
View
You can try one more thing, instead of taking int variable for result try it with string.
public bool HasPrimaryKey(string TableName)
{
string result = "";
using (SqlConnection connection = new SqlConnection(connection_string))
{
connection.Open();
SqlCommand command = new SqlCommand(HasPrimaryKey, connection);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(@TableName, SqlDbType.VarChar).Value = TableName;
result = convert.ToString(command.ExecuteScalar());
connection.Close();
}
if (result == "1")
return true;
else
return false;
}
Sumit Jawale
4-Jan-15 23:34pm
View
Hi Deepak,
Try to debug your code. Please see what path it is stored in path variable (For line string path = Server.MapPath("Img//" + file_name);)
And please try to hit that path, whether it is giving you a right path or not..
Please let me know your result of debugging.
Sumit Jawale
2-Jan-15 1:28am
View
Correct solution.
Sumit Jawale
31-Dec-14 3:49am
View
Can you please elaborate your exact need ?? Its not clear to understand what exactly you want.
Sumit Jawale
30-Dec-14 0:59am
View
This issue may not be realated with post back. Please try to debug your code to get exact reason for this issue.
Sumit Jawale
7-Nov-11 6:48am
View
I dont want to send mail, i want to send a sms to mobile through my application... The solution given by you is for sending e-mail not for sending sms.
Sumit Jawale
7-Nov-11 6:40am
View
I was trying to implement that code, but it throws the exception.
Sumit Jawale
7-Nov-11 3:58am
View
I already checked the link before but i don't want to use another window for sending SMS.
In my application, i am sending an email to particular user( information of user is stored in database). Now i also want to send sms to that user. Thats my problem. How can i send that???
Sumit Jawale
3-Nov-11 9:40am
View
my data grid is not on the window.
it is on the user control. I want to refresh it when i close the window. How should i do that???
Sumit Jawale
3-Nov-11 9:37am
View
sory for late reply but please help me..
I have data grid on user control in WPF.
And i have another window which is open after i click on one 'edit' button in data grid.
now, when i close the window, i want my data grid should re- bind means it should show new updated values.
How can i suppose to do that??
Sumit Jawale
3-Nov-11 9:36am
View
I have data grid on user control in WPF.
And i have another window which is open after i click on one 'edit' button in data grid.
now, when i close the window, i want my data grid should re- bind means it should show new updated values.
How can i suppose to do that??
Sumit Jawale
3-Nov-11 9:36am
View
I have data grid on user control in WPF.
And i have another window which is open after i click on one 'edit' button in data grid.
now, when i close the window, i want my data grid should re- bind means it should show new updated values.
How can i suppose to do that??
Show More