Click here to Skip to main content
15,029,010 members

Comments by Sampath Lokuge (Top 200 by date)

Sampath Lokuge 23-Jul-14 7:30am View
   
You're warmly welcome.I have put it as a solution.If you can accept it,It'll help for others in future.
Sampath Lokuge 22-Jul-14 7:37am View
   
Please read this.May be helped to you.http://ilmatte.wordpress.com/2008/06/01/cruisecontrolnet-tutorial-part-1/
Sampath Lokuge 22-Jul-14 7:30am View
   
At which place (i.e. Code snippet) you're going to save those data ?
Sampath Lokuge 27-Jun-14 2:40am View
   
Have you added jquery libraries properly ?
Sampath Lokuge 26-Jun-14 6:46am View
   
Are you using Entity framework or what ? Can you share your db access code snippets ?
Sampath Lokuge 26-Jun-14 6:39am View
   
You're warmly welcome! :)
Sampath Lokuge 26-Jun-14 6:31am View
   
Deleted
You're warmly welcome.If you feel this is the answer Please accept it.It'll help for others in future. :)
Sampath Lokuge 24-Jun-14 7:05am View
   
Check this link.May be helped to you. http://www.barcoderesource.com/crystalreportsbarcode.shtml
Sampath Lokuge 20-Jun-14 8:51am View
   
This will be eliminated the click the button twice. :)
Sampath Lokuge 20-Jun-14 4:21am View
   
Can you put the code snippet for the LoadGridTemplate() method ?
Sampath Lokuge 20-Jun-14 3:11am View
   
Where it comes (exact line of the code)?
Sampath Lokuge 19-Jun-14 2:57am View
   
You're warmly welcome Damith :)
Sampath Lokuge 18-Jun-14 9:38am View
   
+5 :)
Sampath Lokuge 18-Jun-14 6:47am View
   
Why can't you use 1st or 2nd method if you don't have any repeater thing in your app ?
Sampath Lokuge 18-Jun-14 5:26am View
   
Please put the code snippet which it related to the 'GetItem(TransId)' method in Repository layer.
Sampath Lokuge 18-Jun-14 5:14am View
   
Actuality it's a Repeater Control.Please check this link for more info.http://msdn.microsoft.com/en-us/library/zzx23804(v=vs.85).aspx
Sampath Lokuge 17-Jun-14 7:19am View
   
Please check this sample.http://stackoverflow.com/questions/5980389/proper-way-to-use-ajax-post-in-jquery-to-pass-model-from-strongly-typed-mvc3-vie
Sampath Lokuge 16-Jun-14 3:56am View
   
Your question is not clear.So can we have more info with your code snippets ?
Sampath Lokuge 13-Jun-14 7:45am View
   
Thanks Peter :)
Sampath Lokuge 13-Jun-14 6:16am View
   
+5 :)
Sampath Lokuge 13-Jun-14 6:15am View
   
+ 5 :)
Sampath Lokuge 13-Jun-14 6:13am View
   
You beat me :) +5
Sampath Lokuge 11-Jun-14 5:46am View
   
Is it ok to use jQuery ?
Sampath Lokuge 11-Jun-14 4:45am View
   
Yes,Fire bug is also a dev tool.Check it and tell us. :)
Sampath Lokuge 11-Jun-14 4:18am View
   
Debug it with dev tools and check whether is there any value for the 'txtValue'.It should be a object.Check that.
Sampath Lokuge 11-Jun-14 4:06am View
   
Can we have more info about your requirement ?
Sampath Lokuge 11-Jun-14 2:52am View
   
Is it OK you for generating random numbers instead of a sequential one which you're having right now ?
Sampath Lokuge 10-Jun-14 9:27am View
   
+ 5 :)
Sampath Lokuge 10-Jun-14 8:00am View
   
Reason for my vote of 5 \n Very good :)
Sampath Lokuge 10-Jun-14 4:36am View
   
Which service do you need to check ?
Sampath Lokuge 6-Jun-14 6:38am View
   
You're warmly welcome. :)
Sampath Lokuge 6-Jun-14 6:36am View
   
Have you tried the below solution ?
Sampath Lokuge 6-Jun-14 4:04am View
   
Did you check whether are there any js errors on the code using dev tools ?
Sampath Lokuge 6-Jun-14 2:45am View
   
Have you checked with the dev tools to find whether is there any exceptions on js code ?
Sampath Lokuge 5-Jun-14 9:58am View
   
Thanks DamithSL. :)
Sampath Lokuge 5-Jun-14 9:58am View
   
Thanks DamithSL. :)
Sampath Lokuge 5-Jun-14 7:03am View
   
Is this Asp.net forms or MVC ?
Sampath Lokuge 4-Jun-14 7:19am View
   
Have you followed any article ? If so plz share it with us ?
Sampath Lokuge 3-Jun-14 6:20am View
   
Glad to hear that it helped! :)
Sampath Lokuge 1-Jun-14 2:58am View
   
Thanks RDBurmon :)
Sampath Lokuge 30-May-14 9:05am View
   
Why have you used so many $(document).ready() methods ? Can't you put everything in one method ?
Sampath Lokuge 30-May-14 3:28am View
   
Can you put your code snippet ?
Sampath Lokuge 29-May-14 9:54am View
   
Check whether is there any js errors on your code by using firebug ?
Sampath Lokuge 29-May-14 9:17am View
   
Thanks Andreas :)
Sampath Lokuge 29-May-14 9:17am View
   
Deleted
Thanks Andreas :)
Sampath Lokuge 29-May-14 6:30am View
   
Have you put a debug and checked ? try with chrome dev tools.
Sampath Lokuge 29-May-14 5:59am View
   
Your question is not clear.Do you want it to implement on WPF or ASP.net ?
Sampath Lokuge 19-May-14 10:03am View
   
You're warmly welcome. :)
Sampath Lokuge 19-May-14 9:59am View
   
I have updated the answer. :)
Sampath Lokuge 19-May-14 9:55am View
   
You're warmly welcome. :)
Sampath Lokuge 19-May-14 8:57am View
   
Have you added jQuery libraries properly ? And also why don't you download the code and test it ?
Sampath Lokuge 19-May-14 8:34am View
   
Deleted
Ok.Then what's your problem or issue ?
Sampath Lokuge 17-May-14 6:44am View
   
What's your problem there ?
Sampath Lokuge 16-May-14 6:19am View
   
Which out put do you expect there ? Can we have more info ?
Sampath Lokuge 16-May-14 3:24am View
   
When you put a comment for someone else comment,use his own 'Reply' button.Otherwise it won't notify him. :(
Sampath Lokuge 16-May-14 2:38am View
   
Can you put the code snippet of your text box ?
Sampath Lokuge 12-May-14 6:03am View
   
Then what's your requirement ?
Sampath Lokuge 12-May-14 5:40am View
   
I didn't try.Go ahead and do it.Check this link.It's having code samples.http://dotnet.dzone.com/articles/sending-large-files-through
Sampath Lokuge 12-May-14 4:14am View
   
Plz check my update on above solution.
Sampath Lokuge 12-May-14 3:20am View
   
Can we have more info about your requirement ?
Sampath Lokuge 12-May-14 2:34am View
   
Have you put a debug and checked ? Where is the issue ? Is that not firing the event or run time issue or what ?
Sampath Lokuge 11-May-14 8:25am View
   
Thanks :)
Sampath Lokuge 11-May-14 7:36am View
   
What's the problem with your code snippet ?
Sampath Lokuge 9-May-14 9:21am View
   
What's wrong with your effort ? any errors or what ?
Sampath Lokuge 9-May-14 7:15am View
   
Try this : Log-in to your remote IIS server then Click Start, click Run type IISReset, and then click OK.
Sampath Lokuge 9-May-14 7:12am View
   
Aha.. Sorry about that.I just mentioned the above answer's 'UPDATE' section.Where I updated the answer.Please check that. :D
Sampath Lokuge 9-May-14 7:07am View
   
You don't need admin tools.Just follow the above steps on 'UPDATE' section.
Sampath Lokuge 9-May-14 7:04am View
   
Which version of server are you using ? 2003/2008/2102 or what ?
Sampath Lokuge 9-May-14 7:02am View
   
I have updated the answer.Please check that.
Sampath Lokuge 8-May-14 7:03am View
   
Great. :)
Sampath Lokuge 8-May-14 7:01am View
   
+ 5 :)
Sampath Lokuge 8-May-14 6:37am View
   
try this :

var query = (from c in db.data_qy
where c.UploadDate == yesterday &&
c.Cover == "prest"
group c by c.Name into g
select (g.First));
Sampath Lokuge 8-May-14 6:24am View
   
Just do like this :

var query = (from c in db.data_qy
where c.UploadDate == yesterday &&
c.Cover == "prest"
select (c)).Distinct();

Sampath Lokuge 8-May-14 6:07am View
   
Aha.. Ok sure.try this way.I couldn't see any property like this 'Cover' ? You can try by removing '.OrderByDescending(a => a.UploadDate.Value).Distinct()' and try that.After that let me know ?
Sampath Lokuge 8-May-14 5:51am View
   
Deleted
You're warmly welcome.If you feel this is the answer Please accept it.It'll help for others in future.
Sampath Lokuge 8-May-14 5:18am View
   
What is this 'AddBusinessDays'? Is that extension method or what ? Can you put that code snippet also ?
Sampath Lokuge 7-May-14 6:40am View
   
Can we have more info about your requirement ?
Sampath Lokuge 7-May-14 6:39am View
   
Your question is not clear ? So can you put all related code snippets with more info ?
Sampath Lokuge 7-May-14 6:27am View
   
Check this : http://stackoverflow.com/questions/8913152/how-to-integrate-facebook-chat-in-windows-application-using-c-sharp
Sampath Lokuge 7-May-14 5:50am View
   
You're warmly welcome. :)
Sampath Lokuge 7-May-14 5:33am View
   
Yep,Actually all the menus which I mentioned above are Open source and hosted on GIT Hub.So if you interested, you can fork them and learn it.Go ahead and do that. :)
Sampath Lokuge 7-May-14 4:35am View
   
Cookies are related to the browsers.So how can you create a Universal cookie for your Desktop Application ? Your question is wrong or what ?
Sampath Lokuge 7-May-14 4:24am View
   
So why don't you expose your requirement here ?
Sampath Lokuge 7-May-14 4:16am View
   
Why can't you store it inside the DB ?
Sampath Lokuge 7-May-14 3:51am View
   
When you reply for someones comment,please use his (here it's Tadit) 'Reply' button.Otherwise it won't notify him.
Sampath Lokuge 6-May-14 2:08am View
   
You're warmly welcome.If you feel this is the answer,Please accept it.It'll help for others in future.
Sampath Lokuge 5-May-14 10:17am View
   
Have you put a debug and checked ? If you properly instantiate the link button, it should create.Just create a single link button and check.Then you can easily find the issue.
Sampath Lokuge 5-May-14 6:34am View
   
Not working means ? are there any errors or what ? Have you put a debug and checked ?
Sampath Lokuge 5-May-14 4:15am View
   
Yep,I know bro :).Just a stress release. :)
Sampath Lokuge 5-May-14 3:59am View
   
Thanks Tadit(MVP). :) :)
Sampath Lokuge 5-May-14 3:57am View
   
Do you need to know about how to do the partial page update or what ?
Sampath Lokuge 5-May-14 2:15am View
   
For what ?
Sampath Lokuge 5-May-14 2:05am View
   
Why do you need to do so ? jQuery is a client side library and c# is a server side one.So what's your requirement ?
Sampath Lokuge 4-May-14 10:29am View
   
Yep.No need to reinvent the wheel again. :)
Sampath Lokuge 4-May-14 10:19am View
   
+5 :)
Sampath Lokuge 4-May-14 7:13am View
   
Are you asking how to connect to the SQL server or what ?
Sampath Lokuge 3-May-14 9:16am View
   
Great :)
Sampath Lokuge 3-May-14 8:11am View
   
As an alternative option,You can try like this.Remove 'Calendar.js' and get the code inside that and put it as an inline js withing 'script' tags on index page.Try that way also.
Sampath Lokuge 3-May-14 7:33am View
   
That means,your 'fullcalendar.js' is not loaded properly with your _layout page.Please check that with dev tools.
Sampath Lokuge 3-May-14 4:23am View
   
Can't be.At the end it generates pure html know ? Check it with chrome dev tools to identify what's going there ? :(
Sampath Lokuge 2-May-14 3:22am View
   
No.You can do this only by using jQuery.If you need to know how, please let me know.
Sampath Lokuge 2-May-14 3:14am View
   
Is it ok to do this by using jQuery ?
Sampath Lokuge 2-May-14 2:00am View
   
What's your problem with above code ?
Sampath Lokuge 1-May-14 9:39am View
   
Which JS function do you need to call? For what ?
Sampath Lokuge 1-May-14 9:32am View
   
Ok then why do you need a session details ? After the session expires,you can give a message to the user.That's it.What else ?
Sampath Lokuge 1-May-14 9:25am View
   
Is this asp.net MVC app? Are you using any js library ?
Sampath Lokuge 1-May-14 9:16am View
   
Check whether do you have any run time exceptions ?
Sampath Lokuge 1-May-14 9:14am View
   
What's your business requirement ?
Sampath Lokuge 1-May-14 4:11am View
   
Check whether your css file is loaded properly by using chrome dev tool ?
Sampath Lokuge 1-May-14 4:04am View
   
Are you using any asynchronous requests some where on your code ?
Sampath Lokuge 1-May-14 3:50am View
   
You have not put whole code of the 'Kaizen2GController'.Please put that ?
Sampath Lokuge 1-May-14 3:32am View
   
Can you put the code snippet for the 'Kaizen2GController' ?
Sampath Lokuge 30-Apr-14 8:35am View
   
Can you put the code snippet for your Repeater ?
Sampath Lokuge 30-Apr-14 7:44am View
   
Please read this : https://developers.google.com/chrome-developer-tools/docs/javascript-debugging
Sampath Lokuge 30-Apr-14 7:39am View
   
Check whether are there any js errors on your js file by using chrome dev tool ?
Sampath Lokuge 30-Apr-14 7:32am View
   
Check this : http://www.codeproject.com/Articles/106439/Single-Sign-On-SSO-for-cross-domain-ASP-NET-applic
Sampath Lokuge 29-Apr-14 5:43am View
   
Please check this one.http://stackoverflow.com/questions/14163390/some-part-of-your-sql-statement-is-nested-too-deeply-rewrite-the-query-or-break
Sampath Lokuge 28-Apr-14 8:51am View
   
Check this one.May be helped to you. http://www.regexlib.com/Search.aspx?k=phone
Sampath Lokuge 27-Apr-14 7:55am View
   
I have fixed your issue.Please check the below solution.
Sampath Lokuge 27-Apr-14 7:29am View
   
Have you tried their code snippet with drop down box ?
Sampath Lokuge 27-Apr-14 4:12am View
   
Check whether are there any js errors on your js file by using chrome dev tools ?
Sampath Lokuge 27-Apr-14 3:21am View
   
Are there any errors or what ? Have you used any articles to do that task ?
Sampath Lokuge 27-Apr-14 2:48am View
   
You're warmly welcome. :)
Sampath Lokuge 27-Apr-14 1:56am View
   
Your order of the JS file is wrong.You must load the main js file first and then the UI library and so on.According to my example it should be like this.

<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
Sampath Lokuge 27-Apr-14 0:58am View
   
Can you put your code snippet which you have done so far ?
Sampath Lokuge 26-Apr-14 8:01am View
   
Deleted
Try this instead of 'RedirectToProvider()'

using DotNetOpenAuth.Messaging; // required for the extension method to work

return relyingParty.CreateRequest(openid).RedirectingResponse.AsActionResult();
Sampath Lokuge 26-Apr-14 7:25am View
   
Can you quickly set your html code on JsFiddle and let us know the url ?
http://jsfiddle.net/
Sampath Lokuge 26-Apr-14 7:24am View
   
Deleted
Can you quickly set your html code on JsFiddle and let us know the url ?
http://jsfiddle.net/
Sampath Lokuge 26-Apr-14 7:21am View
   
To give a solution, you have to put your html code snippet related to your user name and password ?
Sampath Lokuge 26-Apr-14 6:58am View
   
Are you currently using auto mapper with your project or try to do it in first time ?
Sampath Lokuge 26-Apr-14 6:53am View
   
What does 'req.RedirectToProvider()' do in your code ?
Sampath Lokuge 26-Apr-14 6:52am View
   
I couldn't see your jquery ui reference into your context ? without it,this will not work.
Sampath Lokuge 26-Apr-14 4:31am View
   
Not a code.Your run time exception message's full stack trace (inner exception one) ?
Sampath Lokuge 26-Apr-14 3:34am View
   
Can you put whole stack trace ?
Sampath Lokuge 26-Apr-14 3:32am View
   
Are there any errors or run time exception or ?
Sampath Lokuge 26-Apr-14 3:03am View
   
Now what's your problem ? :(
Sampath Lokuge 26-Apr-14 3:00am View
   
Are you trying this in local host or where ?
Sampath Lokuge 26-Apr-14 2:59am View
   
Your question is not clear.Can we have more info ?
Sampath Lokuge 26-Apr-14 2:42am View
   
What's your another script ?
Sampath Lokuge 26-Apr-14 1:01am View
   
You have to add jquery UI also.Please check my answer.And try to use latest jquery versions rather than the very old ones which you use currently.
Sampath Lokuge 26-Apr-14 0:14am View
   
can you put your whole code snippet with related to the data picker ? This is very simple task.
Sampath Lokuge 25-Apr-14 9:11am View
   
Have you checked that whether is it properly configured on your server ?
Sampath Lokuge 25-Apr-14 8:12am View
   
Have you checked the IIS server's .Net framework version ?
Sampath Lokuge 25-Apr-14 7:51am View
   
OK.Then plz put your solution and mark it as a solution.It'll help for others in future.
Sampath Lokuge 25-Apr-14 7:33am View
   
Is this the answer or else ?
Sampath Lokuge 25-Apr-14 6:05am View
   
Can you put the sql query which you ran on your db ?
Sampath Lokuge 24-Apr-14 8:11am View
   
Your requirement is not clear.So can we have more info ?
Sampath Lokuge 24-Apr-14 6:08am View
   
+ 5 :)
Sampath Lokuge 24-Apr-14 2:23am View
   
Aha..Ok.Please check my answer's UPDATE section. :)
Sampath Lokuge 24-Apr-14 2:13am View
   
:)
Sampath Lokuge 24-Apr-14 2:07am View
   
Can you put your code snippet ?
Sampath Lokuge 23-Apr-14 5:55am View
   
:) :) :)
Sampath Lokuge 22-Apr-14 9:04am View
   
+5 :)
Sampath Lokuge 22-Apr-14 8:18am View
   
Please check this video.May be helped to you. : http://scn.sap.com/docs/DOC-21673
Sampath Lokuge 22-Apr-14 6:28am View
   
Where's your problem's url ?
Sampath Lokuge 22-Apr-14 3:56am View
   
Please check this list : http://www.w3.org/Protocols/HTTP/HTRESP.html
Sampath Lokuge 21-Apr-14 9:53am View
   
My Pleasure :)
Sampath Lokuge 21-Apr-14 9:49am View
   
Please read this.You'll be master in Regex withing 30 Minutes. :)
http://www.codeproject.com/Articles/9099/The-Minute-Regex-Tutorial
Sampath Lokuge 21-Apr-14 9:17am View
   
Yep,Great. :)
Sampath Lokuge 21-Apr-14 8:58am View
   
Nothing is Impossible for Willing Heart.Have you tried that ?
Sampath Lokuge 21-Apr-14 4:08am View
   
Can you put the code snippet for your text box and label ?
Sampath Lokuge 21-Apr-14 2:41am View
   
Are you talking about grid view column or what ?
Sampath Lokuge 19-Apr-14 9:18am View
   
What's your error message ?
Sampath Lokuge 19-Apr-14 8:39am View
   
Can you put the code snippet ?
Sampath Lokuge 19-Apr-14 6:39am View
   
Just use this free tool to convert. http://www.developerfusion.com/tools/convert/vb-to-csharp/
Sampath Lokuge 19-Apr-14 5:58am View
   
Why do you need to 'pass the values from my table in dataset to my stored procedure ' ?
Sampath Lokuge 19-Apr-14 5:55am View
   
Why do you need to do so ?
Sampath Lokuge 19-Apr-14 5:28am View
   
Can you put the class 'clsbo' details ? code snippet of that class ?
Sampath Lokuge 19-Apr-14 4:39am View
   
What's the value you're trying to input for that text box ?
Sampath Lokuge 19-Apr-14 3:31am View
   
What's your problem now ? error ?
Sampath Lokuge 19-Apr-14 2:22am View
   
Can you put the whole error with the stack trace ?
Sampath Lokuge 18-Apr-14 12:05pm View
   
Call your JS method inside the :

$(document).ready(function () {

});
Sampath Lokuge 18-Apr-14 11:55am View
   
Your action method should be like this :


[HttpGet]
public JsonResult Like(long commentId)
{
//your code

return Json(new { LikeCount = note.LikeCount },JsonRequestBehavior.AllowGet);
}
Sampath Lokuge 18-Apr-14 11:45am View
   
Your action method is having number of issues.I'll tell it later.First of all I would like to know whether have you added jQuery into your context ?
Sampath Lokuge 18-Apr-14 11:40am View
   
Plz put your latest action method also ?
Sampath Lokuge 18-Apr-14 11:37am View
   
Can you put your code snippet which you use (JS)?
Sampath Lokuge 18-Apr-14 11:24am View
   
Just correct it and use.I gave only the path for your task. :)
Sampath Lokuge 17-Apr-14 10:29am View
   
Can you put your stack trace ?
Sampath Lokuge 17-Apr-14 3:39am View
   
Aha..Check this link : http://stackoverflow.com/questions/3888902/javascript-detect-browser-close-tab-close-browser
Sampath Lokuge 17-Apr-14 2:31am View
   
Can we have more info about your scenario ?
Sampath Lokuge 17-Apr-14 2:29am View
   
Can we have more info about your scenario ?
Sampath Lokuge 15-Apr-14 12:02pm View
   
What's your regex does ? May be the problem with it.Check that.
Sampath Lokuge 15-Apr-14 10:42am View
   
You're warmly welcome.If you feel this is the Answer,Please Accept it.It'll help for the user who will have the same issue in the future. :)
Sampath Lokuge 15-Apr-14 9:50am View
   
You're warmly welcome.If you feel this is the Answer,Plz Accept it.It'll help for the user who will have the same issue in the future.Plz put your next question on new thread and let me know.I'll try then. :)
Sampath Lokuge 15-Apr-14 8:10am View
   
Thanks Sanket. :)
Sampath Lokuge 15-Apr-14 7:29am View
   
Thanks Sunasara. :)
Sampath Lokuge 14-Apr-14 8:59am View
   
Where's your jsfiddle url ?
Sampath Lokuge 14-Apr-14 8:48am View
   
Why can't you do it on client side by using jquery ?
Sampath Lokuge 14-Apr-14 7:43am View
   
It's working for all browsers.No problem at all. :)
Async or sync is not a browser dependent behaviour.It depends on the way you call or request the data from the server.That's it.
Sampath Lokuge 14-Apr-14 4:49am View
   
Check whether are there any errors on js file by using chrome dev tools ?
Sampath Lokuge 14-Apr-14 4:41am View
   
Check whether are there any errors on js file by using chrome dev tools ?
Sampath Lokuge 14-Apr-14 4:32am View
   
Where's your code snippet ?
Sampath Lokuge 14-Apr-14 4:29am View
   
What's your EF version 4/5 or 6 ?
Sampath Lokuge 14-Apr-14 1:57am View
   
Your question is not clear ? Are you using any 3rd party pdf library or what ?
Sampath Lokuge 13-Apr-14 12:26pm View
   
You're warmly welcome. :) If this is the answer,Plz accept it.It'll help for the users who'll have the same issue.
Sampath Lokuge 13-Apr-14 12:19pm View
   
Yes.
Sampath Lokuge 12-Apr-14 11:40am View
   
What's your problem on above codes ?
Sampath Lokuge 12-Apr-14 11:11am View
   
Please remove your sensitive details.It'll give security risk for your app.According to your details you hosted your app on IIS server.So why can't you put your exe on that server ?
Sampath Lokuge 12-Apr-14 5:14am View
   
Where is your project hosted ?
Sampath Lokuge 12-Apr-14 3:53am View
   
Can you put the code snippet which you're having the issue?