15,991,020 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 Salman622 (Top 80 by date)
Salman622
3-Sep-19 2:33am
View
Deleted
have you try creating inbound and outbound rules.
Salman622
17-Aug-19 5:15am
View
post your client side code i.e aspx page if you are using asp.net
Salman622
9-Oct-18 7:09am
View
I have posted the answer because may be it would be helpful for others
Salman622
21-Jan-16 8:18am
View
My suggestion would be.
Instead of creating windows application you can create a windows service
you can achieve all you want.
Salman622
21-Jan-16 8:14am
View
try out
SumObject = dtpymnt.Compute("Sum(SevicePriceRup)", "[SevicePriceRup] IS NOT NULL");
Salman622
9-Dec-15 4:03am
View
no it would not happen
until you click the start process button again and if you click it again there would be a error i.e.
This BackgroundWorker is currently busy and cannot run multiple tasks concurrently
to prevent this your can apply a check in your start process click event
Salman622
9-Dec-15 3:23am
View
take a boolean variable at global level in form assign value true to it
and in your background worker do work event
apply a check like below
if(boolVariable)
{
boolVariable=false;
for(int i=0;i<100;i++)
{
longTask();
}
}
and in your RunWorkerComplete event just do that boolVariable to true
thats it
Salman622
8-Dec-15 6:24am
View
In this case you use a backgroung worker in c# to execute the function on button click.
and to stop it on button click you can stop the background worker thats it.
Salman622
5-Dec-15 2:06am
View
what happening in your case is
when first user logs in
your security Class stores the information of first user because the variables are static when the second user logs in the values changes as per the second user
and all the user logged in will use the the values of the user who login last.
so here you have to change your logic of storing the value of dept.
instead of storing the values in static variable you can store the values in session and your problem will be solve
Salman622
5-Dec-15 1:49am
View
Its Only a Logic how he can achieve that.
If any problem exists due to font,font-size,style etc he can sort it out by increasing or decreasing the number of character in the label
Salman622
3-Dec-15 7:12am
View
go to below link
http://www.openjs.com/scripts/events/keyboard_shortcuts/
Salman622
28-Nov-15 1:38am
View
Mr. sergey Alexandrovich actually you get it wrong
i mean to say before shutdown my service should stop but its not stopping and i want to achieved that.
Salman622
16-Nov-15 6:45am
View
in this case you can use barcode reader machine
Salman622
16-Nov-15 2:03am
View
i would suggest to use background worker here
for eg.
as you say you have a form A.
and i am adding to buttons to it.
say for eg. btn1 and btn2
when you click on btn1 it perform some task and wait for btn2 to be clicked
here what you can do is.
on btn1 click give the task to a background worker in while loop.
in while loop you can have if block like if(//boolean variable to check){//your logic}
and on btn2 click set a variable to true.
in this case what happen is your background code will run continously untill the condition meets and after performing a task you can stop the background worker.
Salman622
16-Nov-15 1:51am
View
you can query the data from db in the order you want.
Salman622
6-Nov-15 2:02am
View
Its a simple thing for example if you have multiple gridview on your web form
Like a dash board and all grid take some what time to bind its data.
so here you can use threading were all grid will simultaneously bind its data
and your application speeds up.
Salman622
29-Aug-15 2:47am
View
what is the dataType for WorkHour.EndTime and tblApp.EndDate
in sql
Salman622
27-May-15 5:23am
View
no there is no difference if you are inserting through literal values
but it would be usefull for bulk insertion for that query would like
INSERT INTO TableName1(AccountNo,Customer,ContactNo) select column1,column2,column3 FROM TableName WHERE
coalesce(column1,'')+coalesce(column2,'')+coalesce(column3,'') NOT In (Select distinct coalesce(AccountNo,'')+coalesce(Customer,'')+coalesce(ContactNo,'') From TableName1);
this query would insert only record which are not in TableName1
Salman622
23-Feb-15 10:02am
View
no idea...
Salman622
23-Feb-15 9:59am
View
below is the code for read data
string SourceConstr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + OtherPath.Text + ";Extended Properties= 'Excel 12.0;'";
OleDbConnection con1 = new OleDbConnection(SourceConstr);
con1.Open();
string query = "Select * from [" + OtherSheet.Text + "$]";
DataTable exceltable = new DataTable();
OleDbDataAdapter data = new OleDbDataAdapter(query, con1);
data.Fill(exceltable);
con1.Close();
Its Reading Data PRoper but the problem comes at date column
as i have given example above
Salman622
25-Sep-14 7:21am
View
which architecture u r using....
Salman622
24-Sep-14 4:10am
View
in hobby table Create one column Namely UserRegistrationID assign foreign key to it and in User Details Use ID as Primary key
when fetching data for particular user Use join
structure will be fine and Later there will be no permutations and Combinations
Salman622
15-Sep-14 6:58am
View
paste your GetDt() function
Salman622
10-Sep-14 5:57am
View
verify the version of Crystal report viewer in your tool box by hovering mouse on crystalreportviewer tool
and then do cross checking of version in your GAC (Global assembly cache).
Salman622
26-Aug-14 9:36am
View
Open Rdlc report
then click on view tab at last there is a option for report data
Salman622
21-Aug-14 4:34am
View
Its Simple so you can use like this
with Cte
as
(
select HULLNO from EngineMaster_Duplicates where HULLNO Like HULLNO+'%'
Group By HULLNO
Having (Select Count(HULLNO) as cn from EngineMaster_Duplicates where HULLNO Like HULLNO+'%')>1
)
Select * from EngineMaster_Duplicates s,cte c where s.HULLNO =c.HULLNO order by s.HULLNO
Salman622
21-Aug-14 4:31am
View
You want each and Every record which is duplicate
Salman622
21-Aug-14 4:10am
View
with Cte
as
(
select HULLNO from EngineMaster_Duplicates where HULLNO Like 'SN2066%'
Group By HULLNO
Having (Select Count(HULLNO) as cn from EngineMaster_Duplicates where HULLNO Like 'SN2066%')>1
)
Select * from EngineMaster_Duplicates s,cte c where s.HULLNO =c.HULLNO
this will work definately try and let me know
Salman622
21-Aug-14 3:47am
View
Instead of * you can use Column Names of EngineMaster_Duplicates
Like
s.Seq,s.ENGINENO,s.HULLNO
Salman622
21-Aug-14 3:45am
View
with Cte
as
(
select HULLNO from EngineMaster_Duplicates
Group By HULLNO
Having Count(SUBSTRING(HULLNO,1,6))>1
)
Select * from EngineMaster_Duplicates s,cte c where s.HULLNO =c.HULLNO and s.VoucherNo Like 'SN2066%'
try this
Salman622
21-Aug-14 3:30am
View
what value is there in hullno
is it SN2065 or (SN2065#1 ....)
and what is the primary key of table EngineMaster_Duplicates
Salman622
8-Aug-14 3:17am
View
Problem is with 64-bits machine else application is working fine on 32-bits machine
Salman622
30-May-14 9:22am
View
If that link is not useful to you
then i can Provide you the Code snippet for button to print your ssrs report
Salman622
30-May-14 6:11am
View
numeric fields do not take value with single code
if you know the value is null
then simple pass 0 or Null
eg.
insert into ItemMaster
( ITEM_CODE,
ITEM_NAME,
DRAWING_NO,
WEIGHT_CAST,
WEIGHT_FINISH,
CROSSING_COUNT,
catID )
values('a','a','',0,0,'','')
else you can use
insert into ItemMaster
( ITEM_CODE,
ITEM_NAME,
DRAWING_NO,
WEIGHT_CAST,
WEIGHT_FINISH,
CROSSING_COUNT,
catID )
values('a','a','',Null,Null,'','')
Salman622
30-May-14 5:52am
View
Like and Unlike is a asp control or html control
Salman622
28-May-14 4:47am
View
Your MySqlConnection object is not getting a Connection string
thats why its returning that object refrence not set
for checking
while you are debugging
as your break point comes to conn.Open();
check the connection string in that object
Hope then you will come to know where is the problem
Salman622
17-Apr-14 7:01am
View
try debugging the value returning is not of type integer
Salman622
7-Apr-14 5:30am
View
Thanks
Salman622
7-Apr-14 5:30am
View
Thanks Arun
Salman622
7-Apr-14 5:11am
View
can you provide the basic syntax for catching error if occur during excution and performing rollback or commit
Salman622
15-Mar-14 3:59am
View
welcome
Salman622
7-Feb-14 7:41am
View
you have not get it right what i have said you
browser on which your application is running on that browser javascript may be disable so please check the setting of that browser
Salman622
31-Jan-14 9:56am
View
check the string in lbl_carID it might contain alphabets or symbols
Salman622
31-Jan-14 9:44am
View
have you given a reference of jquery txt file to use $(Document).ready
Salman622
30-Jan-14 4:19am
View
Replace "YourKey" with the Session Key You want to Clear.
Salman622
23-Jan-14 7:14am
View
below karthik has given a nice solution
to use class
Salman622
23-Jan-14 7:10am
View
do you want to retrive that value on the same page or some other page
Salman622
22-Jan-14 10:24am
View
to close javascript aleart() Method pop up there is already a default button namely ok to close that pop up
Salman622
22-Jan-14 7:55am
View
is txtSalary is asp control
Salman622
17-Jan-14 13:39pm
View
can you explain the flow of this page so that i can give you a solution
Salman622
4-Jan-14 1:24am
View
Pop Up is Appearing Bro...
Salman622
17-Dec-13 8:40am
View
is there any condition when it should return a Row index
Salman622
7-Dec-13 6:04am
View
for your kind information solution 1 is wrong according to the question asked
You should have a look to that also.
Salman622
7-Dec-13 5:53am
View
just read the Question above and see the solution below.
and plz don't interfere.
Salman622
7-Dec-13 5:51am
View
do you have eyes
Salman622
4-Dec-13 4:47am
View
can you explain little bit more about your problem
Salman622
29-Nov-13 6:11am
View
wait a minute i have code i have to search
Salman622
29-Nov-13 6:04am
View
Is it web or window application
Salman622
4-Nov-13 3:29am
View
can you provide the complete .cs page
Salman622
15-Oct-13 9:15am
View
write your code in if block not in else part
Salman622
15-Oct-13 9:15am
View
write your code in if block not in else part
Salman622
15-Oct-13 9:13am
View
when the page is post back it lost all its data
and the requirement of R_Coder is label text which is lost because of post back
if he write his code in !ispostback block the label text will not lost
and it will only load once after that it will not enter that block
here this is the solution........
Salman622
3-Oct-13 6:11am
View
plz provide your code
Salman622
2-Oct-13 6:55am
View
what is the actual text is it absent or null
Salman622
23-Sep-13 4:51am
View
use item template to genrate drop down list for a column in grid
Salman622
21-Sep-13 7:23am
View
thank you but i have done by generating connection dynamically in code bihine aspx
Salman622
19-Sep-13 3:39am
View
but thing you have to do is give the size of any thing in your website in percentage instead of pixel
Salman622
19-Sep-13 2:53am
View
can you tell me how will you maintain your property
Salman622
19-Sep-13 2:43am
View
what you want to do......?
Salman622
19-Sep-13 2:23am
View
what is the length of word you have inserted in varchar(20) field
Salman622
17-Sep-13 6:55am
View
are you using sqlDataSource
Salman622
17-Sep-13 6:50am
View
if you solve this plz provide me the solution actully i am also in same situation
Salman622
14-Sep-13 5:08am
View
drag and drop the columns from datatset in detail section of crystalreport then it will able to display all the record of table as well as header
Salman622
14-Sep-13 4:51am
View
i'll recommand you to use else if ladder
because when your code of first if block get false it returns else part
then second return false it give else part and so on .....
thats why its displaying error msg thrice instead of one...
Salman622
13-Sep-13 9:04am
View
what is Error in your code please specify
Salman622
13-Sep-13 6:18am
View
if possible avoid reloading data
Salman622
13-Sep-13 3:15am
View
GETDATA is for auto complete and its working
and item_name_text_Change is for some other purpose that's why is have not put that code the requirement for auto complete on typing in text box is all depend on service method getdata
Salman622
11-Sep-13 7:19am
View
check out the sql query in your function
Salman622
11-Sep-13 4:01am
View
Put where condition after from clauses
Salman622
10-Sep-13 3:27am
View
you have given the label text as Label
what you want to do
weather u want to display as eg:- Label3.... 3 is your dropdown selected text and Label is Label2 text
Show More