15,895,956 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 Nilesh Patil Kolhapur (Top 195 by date)
Nilesh Patil Kolhapur
23-Feb-13 4:25am
View
Yes sir u can try. just write client side event like onkeypress directly in server side control script.
try this
Nilesh Patil Kolhapur
16-Feb-13 8:11am
View
sir sorry but i tried like <asp:TextBox ID="txtValue2" runat="server" onblur="GetT1ValueAndSetT2(this)" >
and its working fine
sorry if i am wrong....
Nilesh Patil Kolhapur
16-Feb-13 7:49am
View
you should try Sandeep Mewara's answer
Nilesh Patil Kolhapur
9-Nov-12 0:19am
View
Reason for my vote of 5
it helps me
Nilesh Patil Kolhapur
28-Sep-12 3:50am
View
Reason for my vote of 3
Good One
Nilesh Patil Kolhapur
3-Aug-12 3:01am
View
rollback it using rollback command
Nilesh Patil Kolhapur
3-Aug-12 2:46am
View
can u show html source to get better solution?
Nilesh Patil Kolhapur
22-Jul-12 8:01am
View
check updated solution
Nilesh Patil Kolhapur
22-Jul-12 7:37am
View
Thanks mehdi sir i solved it using recursive function
Nilesh Patil Kolhapur
22-Jul-12 7:36am
View
Thanks sir but it return {1234},1234 i want both values i.e 1234 and 2212
Nilesh Patil Kolhapur
22-Jul-12 7:11am
View
sorry sir but its not full fill my requirement it returns {1234} and i want two values i.e 1234 and 2212
Nilesh Patil Kolhapur
22-Jul-12 6:45am
View
function disp() {
var a = "Formula Expr {1234}*{2212}+2";
alert(a.match("\{\d+\}"));
}
i want 1234 and 2212 in arrays
note-this string is not fixed its dynamic
Nilesh Patil Kolhapur
22-Jul-12 6:38am
View
not working it returns null
Nilesh Patil Kolhapur
18-Jul-12 8:33am
View
try this insert into Db2.dbo.table1(col1,col2,col3)(select col1,col2,col3 from Db1.dbo.table1 where colDate=getdate())
Nilesh Patil Kolhapur
18-Jul-12 3:49am
View
try this
insert into dbo.Db2.table2(col1,col2,col3)(select col1,col2,col3 from dbo.Db1.table1 where colDate=getdate())
Nilesh Patil Kolhapur
16-Jul-12 7:47am
View
u have to change connectionstring to do this.
Karthik Harve's ans create new table every time check it out
Nilesh Patil Kolhapur
16-Jul-12 6:49am
View
welcome accept so other can get exact solution
Nilesh Patil Kolhapur
16-Jul-12 6:10am
View
ok then thats fine sir
Nilesh Patil Kolhapur
16-Jul-12 6:03am
View
please improve your question
Nilesh Patil Kolhapur
16-Jul-12 6:00am
View
this is a wrong way because this uses all textboxs
Nilesh Patil Kolhapur
13-Jul-12 2:58am
View
Reason for my vote of 5
Nice Work Boss
Nilesh Patil Kolhapur
13-Jul-12 2:57am
View
Deleted
Reason for my vote of 5
Nice Work Boss
Nilesh Patil Kolhapur
18-Jun-12 10:00am
View
user stored procedure instead of inline query
Nilesh Patil Kolhapur
5-Jun-12 2:39am
View
Hello Jimmy i dont want age i want birthdate using age
Nilesh Patil Kolhapur
1-Jun-12 5:52am
View
Thanks for answer
Nilesh Patil Kolhapur
26-May-12 3:31am
View
nice answer
Nilesh Patil Kolhapur
26-May-12 3:27am
View
Open Your Project in VS then copy this folder right click on projectName and paste it simple
Nilesh Patil Kolhapur
26-May-12 3:24am
View
if this is correct answer for your Question then accept this solution ok.
this will helps to others. ok
Nilesh Patil Kolhapur
26-May-12 3:21am
View
ok thanks sir
Nilesh Patil Kolhapur
25-May-12 3:31am
View
wait i ll update my solution
Nilesh Patil Kolhapur
25-May-12 2:41am
View
write this code on picturebox click event
Nilesh Patil Kolhapur
24-May-12 6:00am
View
Error in NavigateUrl='<%# Eval("unqID", "GetAttachment.aspx?ID={0}") %>' what comes in unqID?
Nilesh Patil Kolhapur
24-May-12 5:55am
View
nice
Nilesh Patil Kolhapur
24-May-12 2:20am
View
rathijeya1 mail me ur Problem on ndpatil999@gmail.com
Nilesh Patil Kolhapur
24-May-12 2:12am
View
Mp4 and webcam files supported only
Nilesh Patil Kolhapur
23-May-12 9:01am
View
i try this in ie its work for me boss
Nilesh Patil Kolhapur
23-May-12 8:58am
View
why u want to set value to file upload control
Nilesh Patil Kolhapur
23-May-12 8:45am
View
Dont use Session its heavy use HiddenField it is a control u can easily handle it on page
Nilesh Patil Kolhapur
23-May-12 8:42am
View
my also 5+
Nilesh Patil Kolhapur
23-May-12 6:40am
View
yes add .toString() at end
Nilesh Patil Kolhapur
23-May-12 0:45am
View
not clear improve question
Nilesh Patil Kolhapur
22-May-12 5:11am
View
u need to write static web methods for this to asynchronously call server side code, and understand sql cache concept in .net
Nilesh Patil Kolhapur
22-May-12 3:07am
View
good Answer jim lahey
Nilesh Patil Kolhapur
22-May-12 2:59am
View
dont post any thing ok? remove this
Nilesh Patil Kolhapur
22-May-12 2:33am
View
nice answer
Nilesh Patil Kolhapur
5-May-12 0:36am
View
I Agree with u Tejas
Nilesh Patil Kolhapur
4-May-12 1:05am
View
give your code what you are trying
Nilesh Patil Kolhapur
4-May-12 0:46am
View
check updated solution
Nilesh Patil Kolhapur
3-May-12 0:45am
View
please improve your Question
Nilesh Patil Kolhapur
30-Apr-12 9:04am
View
Reason for my vote of 1
bad quesstion
Nilesh Patil Kolhapur
30-Apr-12 8:49am
View
accept the solution's if its working for u. so it will help others
Nilesh Patil Kolhapur
30-Apr-12 8:46am
View
its work for me boss retry.
Nilesh Patil Kolhapur
30-Apr-12 8:26am
View
add where clause. its simple
Nilesh Patil Kolhapur
30-Apr-12 8:21am
View
sry same answers twice
Nilesh Patil Kolhapur
30-Apr-12 8:14am
View
welcome :)
Nilesh Patil Kolhapur
30-Apr-12 8:09am
View
not needed it's automatically added in bin directory when u used ajax in your project
Nilesh Patil Kolhapur
30-Apr-12 8:07am
View
accept this solution boss so it will help others
Nilesh Patil Kolhapur
30-Apr-12 7:17am
View
my 5
Nilesh Patil Kolhapur
30-Apr-12 7:17am
View
Refer First Link of prasad solutions.
Nilesh Patil Kolhapur
30-Apr-12 0:15am
View
ok i post this as solution
Nilesh Patil Kolhapur
26-Apr-12 6:06am
View
increased from database or program?
Nilesh Patil Kolhapur
26-Apr-12 5:04am
View
Sorry sir, i think u have better knowledge than me but try this
File.WriteAllBytes(string path, byte[] bytes)
Hope its Help u.
Nilesh Patil Kolhapur
26-Apr-12 0:36am
View
what is error?
Nilesh Patil Kolhapur
25-Apr-12 7:19am
View
write above code at pageload
Nilesh Patil Kolhapur
25-Apr-12 3:52am
View
welcome
Nilesh Patil Kolhapur
23-Apr-12 6:48am
View
please improve your question
Nilesh Patil Kolhapur
23-Apr-12 1:22am
View
give your code
Nilesh Patil Kolhapur
20-Apr-12 8:07am
View
make sure that your link in anchar tag or linkbutton
Nilesh Patil Kolhapur
20-Apr-12 7:28am
View
there is no set property for File upload control.
Nilesh Patil Kolhapur
16-Apr-12 8:44am
View
where i get fee paid detail?
Nilesh Patil Kolhapur
16-Apr-12 5:22am
View
Give ur code what u try
Nilesh Patil Kolhapur
16-Apr-12 4:01am
View
i cant understand ur quetion. Improve it
Nilesh Patil Kolhapur
16-Apr-12 3:20am
View
give ur query and table data
Nilesh Patil Kolhapur
16-Apr-12 1:58am
View
hey check my updated solution.
u can use Both Way k hope ur problem is solved now k
happy coding
Nilesh Patil Kolhapur
16-Apr-12 1:49am
View
is any record present in table for uid=29 ?
give rpy
Nilesh Patil Kolhapur
16-Apr-12 1:21am
View
try 2 solution because this is done by using disconnected archetecture
Nilesh Patil Kolhapur
12-Apr-12 8:53am
View
set autopostback=true of radiobuttonlist
Nilesh Patil Kolhapur
12-Apr-12 5:49am
View
here is ur solution sorry for delay
protected void btnSave_Click(object sender, EventArgs e)
{
if (Insert())
{
lblSuccess.Text = "Saved Successfully";
}
else
{
lblFailed.Text = "Failed";
}
}
private bool Insert()
{
try
{
string strcon = "Data Source=USER-PC\\SQLEXPRESS;Initial Catalog=Course;User ID=sa;Password=sql2008";
SqlConnection mycon = new SqlConnection(strcon);
mycon.Open();
string strquery = "insert into studentDetails([name],qualification,age,mobileno) values('" + txtName.Text.ToString().Trim() + "','" + txtQual.Text.ToString().Trim() + "','" + txtAge.Text.ToString().Trim() + "','" + txtMobile.Text.Trim() + "')";
SqlCommand cmd = new SqlCommand(strquery, mycon);
cmd.ExecuteNonQuery();
return true;
}
catch (Exception Ex)
{ return false; }
}
Nilesh Patil Kolhapur
12-Apr-12 5:45am
View
wait m busy in my work i ll solve it
Nilesh Patil Kolhapur
12-Apr-12 3:08am
View
code???????????
Nilesh Patil Kolhapur
12-Apr-12 2:50am
View
accept it now
Nilesh Patil Kolhapur
12-Apr-12 2:49am
View
just type name in ur sql n check it out....
Nilesh Patil Kolhapur
12-Apr-12 2:46am
View
name have special meaning in sql server like private, int u cant use this keyword as column name if u want to use then need remove its meaning using [] ok hope its clear
Nilesh Patil Kolhapur
12-Apr-12 2:43am
View
accept the solution
Nilesh Patil Kolhapur
12-Apr-12 2:41am
View
because name is keyword so accept this solution
Nilesh Patil Kolhapur
12-Apr-12 1:54am
View
have u try this
Nilesh Patil Kolhapur
12-Apr-12 1:35am
View
yes session is possible if u want to show same data on redirected paage
Nilesh Patil Kolhapur
12-Apr-12 1:24am
View
"String or binary data would be truncated.
The statement has been terminated."
the error says you are updating the column with larger size than what it can accomodate. Check for blank space in the column value
check it out
Nilesh Patil Kolhapur
12-Apr-12 1:16am
View
very nice sir great great great
Nilesh Patil Kolhapur
11-Apr-12 9:06am
View
i agree sir
Nilesh Patil Kolhapur
11-Apr-12 6:26am
View
set foreign key in subject table on studentId then ur problem ll solve easly
ur Idea is too bad boss
Nilesh Patil Kolhapur
11-Apr-12 5:35am
View
then check ur code this query work fine for me
Nilesh Patil Kolhapur
10-Apr-12 6:34am
View
u cant use regular expression validator as required field validator
Nilesh Patil Kolhapur
10-Apr-12 0:09am
View
give ur code what u try
Nilesh Patil Kolhapur
9-Apr-12 9:24am
View
Thanks pranit
Nilesh Patil Kolhapur
9-Apr-12 5:38am
View
give ur gridview source code to get exact answer u looking for
Nilesh Patil Kolhapur
9-Apr-12 2:42am
View
just understand how rowdatabound event works .
in this event u can find both controls label and textbox. after
this u can get value of textbox and assign to label. its really simple
Nilesh Patil Kolhapur
7-Apr-12 8:54am
View
u can manually change it before binding to grid view
Nilesh Patil Kolhapur
7-Apr-12 8:26am
View
failed to understand ur question clarify more
Nilesh Patil Kolhapur
7-Apr-12 8:16am
View
what r u doingggggggggggggggggggggggggggggggggg
Nilesh Patil Kolhapur
7-Apr-12 6:54am
View
then accept solution mam
Nilesh Patil Kolhapur
7-Apr-12 6:49am
View
give ur code
Nilesh Patil Kolhapur
7-Apr-12 6:48am
View
whats this???????????????????????
Nilesh Patil Kolhapur
7-Apr-12 6:45am
View
search on google it will help u lot boss. always try to minimize serverside hit. best luck happy coding
Nilesh Patil Kolhapur
7-Apr-12 6:43am
View
then try to insert button in updatepanel then check k and give reply
Nilesh Patil Kolhapur
7-Apr-12 6:31am
View
it works properly for me
Nilesh Patil Kolhapur
7-Apr-12 6:30am
View
k i ll give u solution try it and give reply
Nilesh Patil Kolhapur
7-Apr-12 6:16am
View
where is button is it in update panel
Nilesh Patil Kolhapur
7-Apr-12 3:21am
View
simply convert it in string boss and EXECUTE
Nilesh Patil Kolhapur
7-Apr-12 2:39am
View
improve ur question
Nilesh Patil Kolhapur
5-Apr-12 0:40am
View
give some code.
Nilesh Patil Kolhapur
4-Apr-12 5:00am
View
it happen because u write server side event try javascript or compare validator k if any doubt give rpy
Nilesh Patil Kolhapur
3-Apr-12 0:59am
View
give some code which u try
Nilesh Patil Kolhapur
3-Apr-12 0:50am
View
try my solution and give rpy
Nilesh Patil Kolhapur
3-Apr-12 0:31am
View
give table data to get better result
Nilesh Patil Kolhapur
3-Apr-12 0:21am
View
welcome
Nilesh Patil Kolhapur
30-Mar-12 5:47am
View
give rpy
Nilesh Patil Kolhapur
26-Mar-12 0:30am
View
column no means ur cell no i.e- 1,2,3,4 .........
Nilesh Patil Kolhapur
21-Mar-12 1:07am
View
what u want clear it.
Nilesh Patil Kolhapur
21-Mar-12 1:06am
View
check that ur mdf file is currently opended in any other application or sql server Engine then attach file
Nilesh Patil Kolhapur
19-Mar-12 5:52am
View
give ur code to get exact solution :)
Nilesh Patil Kolhapur
15-Mar-12 8:04am
View
boss it happens because of http is state less protocol k done state management for this
Nilesh Patil Kolhapur
15-Mar-12 7:44am
View
it is possible but i will get only id and planid k and what about name and status?
Nilesh Patil Kolhapur
14-Mar-12 0:53am
View
hari give some code
Nilesh Patil Kolhapur
9-Mar-12 2:37am
View
Your Code is ok check returned value
Nilesh Patil Kolhapur
8-Mar-12 4:38am
View
welcome
Nilesh Patil Kolhapur
7-Mar-12 3:58am
View
do u want convert rows int columns?
Nilesh Patil Kolhapur
7-Mar-12 3:43am
View
check it! it works ok
Nilesh Patil Kolhapur
7-Mar-12 3:40am
View
k i will update it for u
Nilesh Patil Kolhapur
1-Mar-12 6:02am
View
Nice answer
Nilesh Patil Kolhapur
1-Mar-12 5:33am
View
Hi Try My Solution
Nilesh Patil Kolhapur
1-Mar-12 5:00am
View
use trigger before insert
Nilesh Patil Kolhapur
1-Mar-12 4:57am
View
give your page code
Nilesh Patil Kolhapur
1-Mar-12 4:15am
View
yes anuja
Nilesh Patil Kolhapur
29-Feb-12 6:13am
View
there is not only single font name
Nilesh Patil Kolhapur
29-Feb-12 6:13am
View
varchar
Nilesh Patil Kolhapur
25-Feb-12 7:28am
View
yes its possible give your table detail
Nilesh Patil Kolhapur
24-Feb-12 8:43am
View
Thanks John
Nilesh Patil Kolhapur
24-Feb-12 8:39am
View
Deleted
oops! not works
Nilesh Patil Kolhapur
22-Feb-12 23:52pm
View
how your data stored in table? give small eg
Nilesh Patil Kolhapur
22-Feb-12 7:40am
View
yes great yaar really nice work my 5
Nilesh Patil Kolhapur
22-Feb-12 7:06am
View
yes i try but null value diplayed well try boss
Nilesh Patil Kolhapur
22-Feb-12 6:59am
View
but boss using this not possible
Nilesh Patil Kolhapur
22-Feb-12 6:36am
View
SELECT * FROM Employee
pivot(avg(Amount) for deductioncode in(D13,D14))as aaaa
try this and remove [] from your deductioncode values
Nilesh Patil Kolhapur
22-Feb-12 6:23am
View
wait
Nilesh Patil Kolhapur
22-Feb-12 6:13am
View
impossible
Nilesh Patil Kolhapur
22-Feb-12 5:13am
View
return null;
Nilesh Patil Kolhapur
22-Feb-12 3:07am
View
Give Some details what u try?
Nilesh Patil Kolhapur
22-Feb-12 3:03am
View
Give table Data
Nilesh Patil Kolhapur
22-Feb-12 2:43am
View
Deleted
hey Varun getMaxID() is predefined function or what?
Nilesh Patil Kolhapur
22-Feb-12 2:33am
View
do u want next primary key Id or what? Explain More
Nilesh Patil Kolhapur
22-Feb-12 2:30am
View
Try Orcun Iyigun's solution or give a table detail to get exact answer
Nilesh Patil Kolhapur
22-Feb-12 2:21am
View
Stupid Question?
Nilesh Patil Kolhapur
22-Feb-12 0:25am
View
Hi Varun,
Your answers are really great this make me think.
best luck for your bright future
Nilesh Patil Kolhapur
21-Feb-12 6:34am
View
give your code what you try
Nilesh Patil Kolhapur
21-Feb-12 6:32am
View
Explain more
Nilesh Patil Kolhapur
21-Feb-12 2:08am
View
not worked boss well try
Nilesh Patil Kolhapur
21-Feb-12 2:08am
View
dear,
remove all function these functions not required here because i done all in one check it and reply.
Nilesh Patil Kolhapur
21-Feb-12 0:16am
View
is ther any link for this
Nilesh Patil Kolhapur
20-Feb-12 23:54pm
View
post your procedure to get better answer.
Nilesh Patil Kolhapur
20-Feb-12 23:53pm
View
Hi teju,
your class rank trigger not working properly check it out.
Nilesh Patil Kolhapur
20-Feb-12 23:32pm
View
if possible give source code of gridview then i will give u exact answer
Nilesh Patil Kolhapur
20-Feb-12 7:08am
View
I think Your Trigger not work properly
if bot tot same then rank will not show properly check it out
Nilesh Patil Kolhapur
20-Feb-12 6:06am
View
Deleted
but i wrote cursor for it so it set runtime rank when new record is inserted
i am created temp table for that are u able to do appropriate changes? give reply fast i am leaving my office.
Nilesh Patil Kolhapur
20-Feb-12 5:59am
View
Hey wait my solution ready for ur requirement
Nilesh Patil Kolhapur
20-Feb-12 5:08am
View
Each and every Data means what?
Nilesh Patil Kolhapur
20-Feb-12 5:03am
View
yes this also fine solution but some load over db server
Nilesh Patil Kolhapur
20-Feb-12 5:00am
View
so if there is any relation between two tables then try to make a single query with appropriate join it will easier
Nilesh Patil Kolhapur
20-Feb-12 4:49am
View
are you used master page?
Nilesh Patil Kolhapur
20-Feb-12 4:46am
View
are u uploading image file only or all type of files
Nilesh Patil Kolhapur
19-Feb-12 23:26pm
View
if u write runAt serer then <input type=text> become a server side control means this same as <asp:TextBox ID="TextBox1" runat="server"> so no need to change if u really need then tell me
Nilesh Patil Kolhapur
19-Feb-12 7:29am
View
hi vonDy i am going to improve this answer for you ok
Nilesh Patil Kolhapur
18-Feb-12 8:38am
View
i didnt get your question
Nilesh Patil Kolhapur
18-Feb-12 8:12am
View
i didnt get your question?
Nilesh Patil Kolhapur
18-Feb-12 8:01am
View
protected void btn_Click(object sender, EventArgs e)
{
response.write("hi");
}
i want to call this event from Class1.cs
Nilesh Patil Kolhapur
18-Feb-12 3:59am
View
jay stack over flow hahahahaha
Nilesh Patil Kolhapur
18-Feb-12 2:42am
View
do u want random no or what?
Nilesh Patil Kolhapur
18-Feb-12 1:44am
View
give him answer rather than suggestion ok
Nilesh Patil Kolhapur
13-Feb-12 7:53am
View
it gives root path and i want hard drive path
Nilesh Patil Kolhapur
10-Feb-12 6:49am
View
how its working let me know?
Nilesh Patil Kolhapur
10-Feb-12 6:29am
View
but i think compare validator is better
Nilesh Patil Kolhapur
10-Feb-12 5:57am
View
review your Question
Nilesh Patil Kolhapur
10-Feb-12 5:46am
View
without open connection u cant execute any single query on database
Nilesh Patil Kolhapur
3-Feb-12 1:43am
View
Thanks Sanjay if u have any blog or facebook page give me link
Nilesh Patil Kolhapur
3-Feb-12 1:07am
View
what is service method and service path in it
Nilesh Patil Kolhapur
30-Jan-12 7:50am
View
yes
Nilesh Patil Kolhapur
30-Jan-12 7:49am
View
i remove button also code behind code but still same error occured
Nilesh Patil Kolhapur
30-Jan-12 7:49am
View
i remove button also code behind code but still same error occured
Nilesh Patil Kolhapur
30-Jan-12 7:32am
View
k ill try
Nilesh Patil Kolhapur
30-Jan-12 7:32am
View
sry btnSave_Click event present in code behind
Nilesh Patil Kolhapur
21-Jan-12 5:24am
View
Deleted
hi,
but how i call ImageFromDb class from any where in my application
Nilesh Patil Kolhapur
24-Nov-11 6:39am
View
yes
Nilesh Patil Kolhapur
22-Nov-11 22:48pm
View
asp.net mvc. Give me simple step to create mvc architecture
Nilesh Patil Kolhapur
22-Nov-11 10:42am
View
Thanks Amir
Nilesh Patil Kolhapur
22-Nov-11 10:29am
View
Thanks.
Show More