Click here to Skip to main content

Comments by Abhinav S (Top 200 by date)

Abhinav S at 6 hrs ago View
   
Do you get an error?
Abhinav S at 6 hrs ago View
   
Thanks.
Abhinav S at 6 hrs ago View
   
5.
Abhinav S at 2 days ago View
   
5.
Abhinav S at 4 days ago View
   
Thanks.
Abhinav S at 4 days ago View
   
Thank you.
Abhinav S at 22-Mar-15 4:49am View
   
Fair point. Index is needed if order is important.
Abhinav S at 18-Mar-15 4:35am View
   
Good answer.
Abhinav S at 16-Mar-15 9:43am View
   
Thank you.
Abhinav S at 16-Mar-15 9:43am View
   
Thanks.
Abhinav S at 12-Mar-15 5:18am View
   
Remove the extra commana. There is a extra comma after Patient_details -> . City,medicineTaker, from patient_Details,
Abhinav S at 9-Mar-15 11:04am View
   
Calling save recursively will cause this issue.
Abhinav S at 26-Feb-15 11:58am View
   
5!
Abhinav S at 22-Feb-15 21:26pm View
   
Thanks.
Abhinav S at 22-Feb-15 1:53am View
   
SelectedItem is null aNd you are doing a toString() to that.
 
Try Convert.ToString() instead.
Abhinav S at 21-Feb-15 23:14pm View
   
Thanks.
Abhinav S at 21-Feb-15 12:08pm View
   
Thanks.
Abhinav S at 21-Feb-15 2:23am View
   
What have you tried?
Abhinav S at 20-Feb-15 6:04am View
   
Can you go through this - http://www.c-sharpcorner.com/resources/663/how-to-display-an-image-in-expander-header-in-wpf.aspx.
Its exactly what you need to do but via code.
Abhinav S at 18-Feb-15 13:26pm View
   
Tried anything?
Abhinav S at 16-Feb-15 8:54am View
   
Links to Excel header? This is not very clear. Can you elaborate?
Abhinav S at 15-Feb-15 13:09pm View
   
5!
Abhinav S at 13-Feb-15 13:26pm View
   
Thank you Mika.
Abhinav S at 13-Feb-15 11:48am View
   
Thank you.
Abhinav S at 13-Feb-15 11:19am View
   
Link added.
Abhinav S at 13-Feb-15 11:11am View
   
5. Online tools can be tried for conversion though.
Abhinav S at 13-Feb-15 11:08am View
   
5!
Abhinav S at 13-Feb-15 6:32am View
   
Install this hotfix and then try again.
Abhinav S at 13-Feb-15 4:17am View
   
Thank you.
Abhinav S at 12-Feb-15 9:37am View
   
Try http://www.csharp-station.com/Tutorial/AdoDotNet/lesson06
Abhinav S at 12-Feb-15 5:32am View
   
Tried anything?
Abhinav S at 12-Feb-15 5:30am View
   
Try decimal then.
Abhinav S at 12-Feb-15 5:13am View
   
Try Double.
Abhinav S at 11-Feb-15 22:00pm View
   
Thanks.
Abhinav S at 11-Feb-15 13:58pm View
   
Thank you.
Abhinav S at 11-Feb-15 13:58pm View
   
5.
Abhinav S at 11-Feb-15 4:13am View
   
Check if setting up a link server suites your needs - https://msdn.microsoft.com/en-in/library/ms188279.aspx.
Abhinav S at 30-Jan-15 11:16am View
   
Which lab?
Abhinav S at 26-Jan-15 10:36am View
   
It appeared suddenly and and answered it.
Abhinav S at 20-Jan-15 16:14pm View
   
Thank you SA.
Abhinav S at 20-Jan-15 16:10pm View
   
Then create a css cxlass and apply it only to this link. That will solve your problem.
Abhinav S at 20-Jan-15 4:53am View
   
Right. But is the space setting fixed between two words in the csv?
Abhinav S at 20-Jan-15 4:52am View
   
Try on your own and post the query here if you still run into problems.
Abhinav S at 20-Jan-15 3:22am View
   
If they are using padding with fixed number of characters, then try to split on spaces.
Abhinav S at 20-Jan-15 3:17am View
   
5.
Abhinav S at 17-Jan-15 13:57pm View
   
5.
Abhinav S at 14-Jan-15 2:25am View
   
Code is missing.
Abhinav S at 13-Jan-15 4:33am View
   
Thank you.
Abhinav S at 7-Jan-15 13:35pm View
   
5
Abhinav S at 6-Jan-15 11:40am View
   
Thank you Maciej.
Abhinav S at 6-Jan-15 11:40am View
   
Thank you.
Abhinav S at 3-Jan-15 5:20am View
   
Yes. You can also do (TextBox)gvRow.FindControl("txtBranch") = ds.Tables[0].Rows[0]["Branch"].ToString();
Abhinav S at 2-Jan-15 11:42am View
   
5.
Abhinav S at 30-Dec-14 21:58pm View
   
What is dto.Value type?
Abhinav S at 29-Dec-14 22:22pm View
   
I do not see a problem in this code. While it does not compile (that is left for the user as an exercise), it is a neat and effective way to handle a sum total if the number of textboxes is already known.
There is no point in unnecessarily looping through the list of controls just to figure out the number of textboxes if they are already known to be ten in number.
 
I agree that if the total text count is not known, this obviously is not the right approach. But given that the user is talking about only a few text fields, it should be ok. If the user actually has 100 text fields, then again, yes, this solution will not work out.
Abhinav S at 29-Dec-14 8:17am View
   
Where is the code for this?
Abhinav S at 29-Dec-14 8:16am View
   
I am aware it will not compile. That is for the user to try if he goes with this approach.
I am obviously not going to do homework for the user.
Abhinav S at 29-Dec-14 7:32am View
   
It will. Compilation perhaps is for OP for the user to figure out.,
Abhinav S at 29-Dec-14 6:22am View
   
TryParse would be overkill.
You can just check if text in the handler parameter is valid input or not.
Abhinav S at 29-Dec-14 5:31am View
   
Convert.ToInt should take care of that. Updated my answer.
Abhinav S at 29-Dec-14 5:31am View
   
Thanks
Abhinav S at 24-Dec-14 11:56am View
   
Thanks.
Abhinav S at 24-Dec-14 6:03am View
   
:)
Abhinav S at 22-Dec-14 1:42am View
   
Thank you.
Abhinav S at 17-Dec-14 1:44am View
   
Thanks
Abhinav S at 17-Dec-14 0:49am View
   
5!
Abhinav S at 16-Dec-14 22:38pm View
   
What have you tried so far? Try something and if you run into problems, some will try and help you.
Abhinav S at 8-Dec-14 11:51am View
   
5!
Abhinav S at 8-Dec-14 3:14am View
   
You could try implementing packages like Knockout.js to get an MVC like experience in ASP.Net.
Abhinav S at 3-Dec-14 7:45am View
   
Thanks.
Abhinav S at 3-Dec-14 4:00am View
   
Try
int p = userIP.LastIndexOf(".");
if (p >0)
{
userIP = userIP.Substring(0, p);
}
Abhinav S at 26-Nov-14 21:53pm View
   
Thanks.
Abhinav S at 25-Nov-14 22:37pm View
   
5!
Abhinav S at 12-Nov-14 3:01am View
   
Thank you.
Abhinav S at 21-Sep-14 23:09pm View
   
Thanks.
Abhinav S at 12-Sep-14 23:33pm View
   
This is a repost.
Abhinav S at 3-Sep-14 22:48pm View
   
Thanks. Just imagine a fully working popup without any JavaScript. I found this article to be quite good.
Abhinav S at 3-Sep-14 22:48pm View
   
Yes. This would be much easier to implement. 5,
Abhinav S at 3-Sep-14 12:55pm View
   
5!
Abhinav S at 3-Sep-14 12:53pm View
   
Nope. It will handle System.Null.
Abhinav S at 3-Sep-14 3:24am View
   
Do you mean height of control or thickness of the border?
Abhinav S at 3-Sep-14 2:00am View
   
Thanks.
Abhinav S at 3-Sep-14 1:59am View
   
Cast can bad if the value is null.
Abhinav S at 2-Sep-14 23:28pm View
   
Thank you SA.
Abhinav S at 2-Sep-14 2:58am View
   
SA I have gone through your answer. I realize it is different to what I'm saying.
The initial question is about creating textboxes from the designer.
 
In this scenario, you would not want to load textboxes till the form_load event fires, since you would not be sure if all the textboxes have been instantiated. So your answer is ok for a textboxes generated at runtime, but not if textboxes are being created at design time. An alternate approach would be to create this array at the end of InitializeComponent() method but that is going to be a maintenance nightmare.
 
I agree that constructor is a better way than form_load.
Abhinav S at 2-Sep-14 1:04am View
   
I thought you might have a comment on 'top of a form' and I agree that is not mandatory but only good practice - since its easier to read.
As a result, I had put my comment "outside the methods" in brackets. :)
 
Also, you might like to read my answer little more carefully. I'm not saying 'avoid defining array', I'm saying 'avoid defining array in InitializeComponent'.
Abhinav S at 1-Sep-14 23:10pm View
   
5!
Abhinav S at 27-Aug-14 5:34am View
   
Debug. Which line do you get the error? That cell does not exist.
Abhinav S at 26-Aug-14 22:52pm View
   
Thank you SA.
Abhinav S at 26-Aug-14 22:52pm View
   
Thank you SA.
Abhinav S at 25-Aug-14 0:05am View
   
Well explained.
Abhinav S at 24-Aug-14 5:56am View
   
What are you having a problem with? Do you need help converting checkbox value to 0 or 1?
Abhinav S at 22-Aug-14 12:41pm View
   
5.
Abhinav S at 16-Aug-14 13:32pm View
   
You could disable caching in the browser.
Abhinav S at 16-Aug-14 6:32am View
   
Post that as another question. Maybe you will get better answers on that one.
Abhinav S at 16-Aug-14 6:32am View
   
Ok. Ignore my email then. :)
Abhinav S at 16-Aug-14 6:25am View
   
Hi Clarity Hunter - Request you to check my new answer. There is something called a component class.
Abhinav S at 16-Aug-14 6:20am View
   
Oops. Something new! Who uses component classes?
Abhinav S at 15-Aug-14 12:03pm View
   
What you need to pass is an object of a class containing all these values.
Hoewever, you can also try Tuple - http://msdn.microsoft.com/en-us/library/system.tuple%28v=vs.110%29.aspx.
Abhinav S at 15-Aug-14 9:44am View
   
What is your first query?
Abhinav S at 15-Aug-14 3:17am View
   
Case is something that the compiler will indicate by giving an error. I do not know why that should confuse the user.
The whole idea is to give it a try and solve the actual problem - without worrying too much about the details of case-sensitivity.
 
If the user had indeed made a mistake with case, then obviously, he has to be pointed in the right direction.
 
In questions like this one, case will not be important. What will be important is try to solve the real problem (which in this case was the null error).
Abhinav S at 15-Aug-14 0:30am View
   
Capitalization is for the OP to sort out.
Abhinav S at 14-Aug-14 2:44am View
   
Yes true.
Abhinav S at 13-Aug-14 11:08am View
   
5!
Abhinav S at 13-Aug-14 11:07am View
   
5!
Abhinav S at 13-Aug-14 11:03am View
   
What is the error?
Abhinav S at 10-Aug-14 1:58am View
   
What is the problem? Are you using other controls as well?
Abhinav S at 10-Aug-14 1:54am View
   
5 for the XKCD.
Abhinav S at 9-Aug-14 8:03am View
   
Yes but they would probably not be free.
Abhinav S at 9-Aug-14 6:22am View
   
Are you entering a valid date in the textbox?
Abhinav S at 2-Aug-14 0:51am View
   
5!
Abhinav S at 30-Jul-14 3:41am View
   
Its possible. Javascript has a Date.Parse() method.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse.
Other approaches - http://forums.asp.net/t/1861281.aspx?How+To+convert+string+into+datetime+in+javascript.
 
Calculating the difference between two dates - http://www.htmlgoodies.com/html5/javascript/calculating-the-difference-between-two-dates-in-javascript.html.
Abhinav S at 30-Jul-14 3:02am View
   
In my examples above, table name is same.
Abhinav S at 30-Jul-14 3:00am View
   
No. In your ASP.Net code.
Abhinav S at 30-Jul-14 2:29am View
   
5! Good point.
Abhinav S at 29-Jul-14 5:43am View
   
http://bhaveshgpatel.wordpress.com/2009/11/04/sql-server-list-all-constraints-of-database-or-table/
Abhinav S at 27-Jul-14 4:38am View
   
5!
Abhinav S at 27-Jul-14 2:42am View
   
Thank you SA.
Abhinav S at 26-Jul-14 9:48am View
   
Just declare it as a class level variable as use it across the form.
You don't need to use ref anywhere.
Abhinav S at 21-Jul-14 10:03am View
   
Yes this is required. If you use a converter (in Silverlight) in the same namespace for example, the reference needs to be added before using it.
Abhinav S at 18-Jul-14 3:19am View
   
Thank you Nirav.
Abhinav S at 29-Jun-14 0:28am View
   
Thank you SA.
Abhinav S at 28-Jun-14 8:44am View
   
Try something first.
Abhinav S at 28-Jun-14 8:13am View
   
5.
Abhinav S at 26-Jun-14 2:27am View
   
5!
Abhinav S at 26-Jun-14 2:27am View
   
5!
Abhinav S at 3-Jun-14 4:03am View
   
Thank you.
Abhinav S at 1-Jun-14 1:56am View
   
5/
Abhinav S at 29-May-14 0:58am View
   
5. I recommend windows service.
Abhinav S at 17-May-14 6:14am View
   
Thank you.
Abhinav S at 16-May-14 4:32am View
   
Sorry your question is not clear.
Abhinav S at 13-May-14 0:52am View
   
5!
Abhinav S at 13-May-14 0:52am View
   
5!
Abhinav S at 12-May-14 3:24am View
   
In that case, this question is wrong and you will get an compile error.
Abhinav S at 12-May-14 2:23am View
   
I would recommend you run this line in Java and check the output.
Abhinav S at 11-May-14 7:27am View
   
Try Server.MapPath("~\img\products\"+imgName");
Abhinav S at 11-May-14 0:51am View
   
Of course. 5.
Abhinav S at 10-May-14 4:28am View
   
Nope.
Abhinav S at 8-May-14 23:04pm View
   
Thank you Maciej.
Abhinav S at 5-May-14 22:51pm View
   
Thanks.
Abhinav S at 5-May-14 13:23pm View
   
5.
Abhinav S at 5-May-14 1:51am View
   
5!
Abhinav S at 4-May-14 6:00am View
   
Is this what the OP wants?
Abhinav S at 4-May-14 6:00am View
   
What is your selection criteria?
Abhinav S at 4-May-14 4:13am View
   
5!
Abhinav S at 3-May-14 3:44am View
   
Welcome. Mark as answered if it helped.
Abhinav S at 3-May-14 1:50am View
   
What have you tried so far?
Abhinav S at 2-May-14 14:33pm View
   
Thank you Maciej.
Abhinav S at 2-May-14 14:31pm View
   
Thank you.
Abhinav S at 2-May-14 14:25pm View
   
5.
Abhinav S at 2-May-14 13:11pm View
   
Deleted
This will work provided JQuery is being used.
Abhinav S at 2-May-14 12:55pm View
   
5.
Abhinav S at 2-May-14 4:16am View
   
5.
Abhinav S at 2-May-14 4:16am View
   
5.
Abhinav S at 2-May-14 4:15am View
   
Yep. 5.
Abhinav S at 2-May-14 4:15am View
   
Thank you.
Abhinav S at 2-May-14 4:11am View
   
5.
Abhinav S at 1-May-14 23:07pm View
   
Thank you.
Abhinav S at 29-Apr-14 1:34am View
   
I am aware of this SA. An interface can even contain events.
Abhinav S at 29-Apr-14 0:40am View
   
Done.
Abhinav S at 29-Apr-14 0:27am View
   
Done. String.Empty is what I meant. Thanks.
Abhinav S at 28-Apr-14 3:18am View
   
5!
Abhinav S at 25-Apr-14 4:54am View
   
More links. 5.
Abhinav S at 25-Apr-14 4:54am View
   
Thank you.
Abhinav S at 25-Apr-14 2:00am View
   
Try it on your own. Post issues here when you run into them.
Abhinav S at 24-Apr-14 7:59am View
   
5!
Abhinav S at 24-Apr-14 7:28am View
   
You are welcome.
Abhinav S at 22-Apr-14 3:19am View
   
Fair enough. Its a good tip.
Abhinav S at 22-Apr-14 3:10am View
   
Sorry. Try ,'')))=''''
Abhinav S at 22-Apr-14 3:09am View
   
Well that won't solve the error.
Abhinav S at 20-Apr-14 7:15am View
   
What kind of help?
Abhinav S at 19-Apr-14 0:44am View
   
He can use the book for studying for the certification.
Whether certifications themselves are useful or not is a topic of debate.
Abhinav S at 17-Apr-14 4:51am View
   
Try these solutions -
https://egghead.io/lessons/angularjs-sharing-data-between-controllers
https://gist.github.com/exclsr/3595424
Abhinav S at 17-Apr-14 2:39am View
   
What query are you using?
Abhinav S at 16-Apr-14 5:02am View
   
Thank you SA.
Abhinav S at 16-Apr-14 2:00am View
   
5. I have provided OP with some links on alternate controls.
Abhinav S at 15-Apr-14 14:11pm View
   
If the customer has another system, then its useful to install the database on that system.
If you are building a database only for one customer, you could consider using MSAccess?
Abhinav S at 14-Apr-14 14:21pm View
   
http://designscrazed.com/html5-jquery-file-upload-scripts/
Abhinav S at 14-Apr-14 14:21pm View
   
You are welcome.
Abhinav S at 14-Apr-14 13:45pm View
   
5!
Abhinav S at 14-Apr-14 0:36am View
   
5! More links in alternate answer.
Abhinav S at 13-Apr-14 11:42am View
   
Thank you.
Abhinav S at 8-Apr-14 13:07pm View
   
Thank you.
Abhinav S at 8-Apr-14 7:58am View
   
Vote if it helped.
Abhinav S at 7-Apr-14 1:54am View
   
The OP is looking for a solution that uses reflection.
Abhinav S at 6-Apr-14 22:53pm View
   
5!
Abhinav S at 6-Apr-14 5:28am View
   
No one can give you the exact code.
Try that on your own.
 
My suggestion is to debug and check what is going on.
Abhinav S at 6-Apr-14 5:27am View
   
You are welcome.
Abhinav S at 6-Apr-14 2:29am View
   
5!
Abhinav S at 5-Apr-14 6:28am View
   
Mark as answered if it helped. Thanks.
Abhinav S at 5-Apr-14 0:46am View
   
10 MB? Try 10485760.
Abhinav S at 4-Apr-14 0:09am View
   
Thank you SA. My 5 for the article.
 
Just got the news though that the first such power plant has been hacked!
Abhinav S at 3-Apr-14 13:43pm View
   
Vote if it helped.
Abhinav S at 3-Apr-14 7:17am View
   
Thank you.
Abhinav S at 3-Apr-14 6:39am View
   
Nope without credentials copy would not work.
Abhinav S at 2-Apr-14 22:59pm View
   
Thank you Maciej.
Abhinav S at 2-Apr-14 13:31pm View
   
5.
Abhinav S at 2-Apr-14 13:21pm View
   
Reason for my vote of 5 \n 5
Abhinav S at 2-Apr-14 13:16pm View
   
Thank you.
Abhinav S at 1-Apr-14 4:16am View
   
Vote if this answer helped.

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid