Click here to Skip to main content

Comments by Rahul Rajat Singh (Top 200 by date)

Rahul Rajat Singh at 2-Jan-14 22:50pm View
   
+5 for the answer.
Rahul Rajat Singh at 30-Dec-13 2:59am View
   
Sorry, My bad. Updated the answer.
Rahul Rajat Singh at 26-Dec-13 22:37pm View
   
You are most welcome. Always happy to help fellow developers.
Rahul Rajat Singh at 29-Nov-13 7:10am View
   
Thanks for pointing it out.
Rahul Rajat Singh at 29-Nov-13 6:55am View
   
I will try to simulate this in a sample app and then try to see how it can be done.
Rahul Rajat Singh at 26-Jun-13 4:32am View
   
But you will need to put them in the project. How else will you distribute these HTML pages if they are not added inside your project.
Rahul Rajat Singh at 19-Jun-13 1:47am View
   
With tryparse you will have to use int?. Why not check for null before trying to parse or convert. you can check of null value if the variable can contain only null other than valid int values.
Rahul Rajat Singh at 19-Jun-13 1:26am View
   
This code snippet seems Ok to me. Perhaps the class of function containing the code has some problem. Could you show the the full code so that the problem can be analysed.
Rahul Rajat Singh at 19-Jun-13 1:19am View
   
In the given article if you look at the calls from EmployeeDBAccess to SqlDBHelper you will get an idea how that can be done. You might have to make these calls from one layer up i.e. BLL but the way to do this should be the same. Here is one more complete project that is doing the similar thing that you are trying to do: http://www.codeproject.com/Articles/327764/YaBlogEngine-A-Tiny-Blog-Engine-written-in-ASP-NET [CHECK THE CODE]
Rahul Rajat Singh at 22-Apr-13 4:42am View
   
What have you tried so far? these are homeworks and i bet you can do them easily by yourself.
Rahul Rajat Singh at 9-Apr-13 3:34am View
   
Now you took it too far. Do you not have access to websites of various colleges and universities?
 
you can get the curriculum for all the courses across the country on the internet. Do you expect me to do this exercise and tell you the list. Try Aicte and UGC websites.
Rahul Rajat Singh at 8-Apr-13 3:21am View
   
I have put some updates in the existing answer.
Rahul Rajat Singh at 2-Mar-13 0:06am View
   
The split part seems to be ok but why are you assigning the string inside the loop. You should have the string ready before the loop and you can put the values inside that string inside the loop.
Rahul Rajat Singh at 14-Feb-13 2:22am View
   
For C++ I used CPP lint long back. I also played arounf with PC-Lint (http://www.gimpel.com/html/index.htm) these are worth looking into for C/C++ code analysis.
Rahul Rajat Singh at 14-Feb-13 0:11am View
   
I have books but sharing them could be copyright violation. I suggest you try to procure them on your own rather than asking other.
Rahul Rajat Singh at 13-Feb-13 23:15pm View
   
OOPs, My bad. I will correct the mistake. Apparently I am spending too much time with sql nowadays and this "=" started seeming ok with if :)
Rahul Rajat Singh at 6-Feb-13 7:31am View
   
It will be the same. If you are using the transactions then just associate the same transaction with both the commands that update the two tables. If you are using transactionscope then simply do everything inside the using block.
Rahul Rajat Singh at 31-Jan-13 4:36am View
   
if it works. close the question by marking it as answer so that people will know that it is solved.
Rahul Rajat Singh at 31-Jan-13 4:30am View
   
if the paragraph is stored in a string called str then:
 
string[] splits = atr.split('.'); // convert this to VB code please
Rahul Rajat Singh at 31-Jan-13 4:09am View
   
same argument here as for the above answer. I support it. Infact the highest voted answer also say the same thing but with some better suggestion.
Rahul Rajat Singh at 31-Jan-13 4:08am View
   
The best answer. +5.
Rahul Rajat Singh at 31-Jan-13 4:07am View
   
If the time datatype is available for you then it is the best choice. But if not then I think datetime should be the way to go. I don't know why the datetime answers are being down voted because it is more type safe and it has merits over storing the data as string.
 
The second way could be to give the interpretation responsibility to the application and store the time as decimal in the DB(as suggested by Marcus already) but this way the OLAP guys will not work on the DB directly and they will have to rely on the conversion of this value to the time value everytime they need to use it.
Rahul Rajat Singh at 21-Jan-13 7:02am View
   
I would have said "Result would depend on compiler and compile options" but this answer is simply superb. +5.
Rahul Rajat Singh at 11-Jan-13 6:11am View
   
Its working for me, so either you are using wrong textbox ids or some other code is acting up. I really suggest you debug the code and problem will instantly come in front of you.
Rahul Rajat Singh at 11-Jan-13 6:09am View
   
ok, So i am not the authentic user of your website but i go to your website and do a "View source" and BAAM, I have the user id and password written there. So did you see my point on how it is wrong to do this way.
Rahul Rajat Singh at 11-Jan-13 5:54am View
   
are you sure you are entering valid double types as input. Why don't you debug the code to see what is wrong.
Rahul Rajat Singh at 11-Jan-13 5:19am View
   
Where are you planning to store your username and password?
Rahul Rajat Singh at 11-Jan-13 3:51am View
   
agreed. it is definitely wrong. The bottom line should be "We should use language features to facilitate better design. We should not just use something just because it is the part of the language and we could use it"
Rahul Rajat Singh at 11-Jan-13 3:39am View
   
Totally agreed. And I was actually supporting your answer by putting in the bit about bitwise constness(before you updated the answer) and not cribbing about it.
 
Perhaps I need to start using better(read girly) words :)
Rahul Rajat Singh at 11-Jan-13 3:36am View
   
This ia actually a documented behavior. In fact Scott Mayer's book Effective C++ has an Item (I think it was #3) specially dedicated to logical constness and bitwise constness.
 
But again, I was into C++ a long time ago so perhaps my explanation was little vague too. But i have to agree with you that C++ has many dangerous features and one should use a feature only when he/she fully understands it.
Rahul Rajat Singh at 11-Jan-13 3:29am View
   
Deleted
Wow, I am being down-voted on this. Someone could please explain to me why?
Rahul Rajat Singh at 11-Jan-13 3:27am View
   
The const object is calling the const method. I checked it on my VC++ 8 compiler.
 
The const keyword in C++ is to show that this function will not change the internal state of the class. this keyword will enforce the bitwise constness of the object. using the overload on const would mean that all the non const objects will call the non const version of the function and all the const objects will call the const method.
Rahul Rajat Singh at 9-Jan-13 4:08am View
   
That is the plan. Currently I am deep into WCF. Once I get the hang of WCF upto a considerable extent, I am planning to study MVC.
Rahul Rajat Singh at 9-Jan-13 4:05am View
   
Believe me I really want to. But my current organizations invested millions in the current framework so they are reluctant to start from scratch. Perhaps I should switch organization itself :)
Rahul Rajat Singh at 9-Jan-13 3:42am View
   
+5. Exactly my words. Although, I still need to get started with ASP.NET MVC(Still doing webforms)
Rahul Rajat Singh at 8-Jan-13 5:12am View
   
Found the possible bug in your code. Check out my other solution. You will have to use both the solutions to get the results.
Rahul Rajat Singh at 8-Jan-13 3:02am View
   
The EmployeerID should be a string literal i.e. "EmployeerID"
Rahul Rajat Singh at 17-Dec-12 3:59am View
   
Why don't you set the value itself as UK or US.
Rahul Rajat Singh at 14-Dec-12 3:35am View
   
Perfect. +5.
Rahul Rajat Singh at 13-Dec-12 5:27am View
   
not clear. please elaborate. is there a postback involvolved?
Rahul Rajat Singh at 13-Dec-12 5:01am View
   
or he can try this:
 
IEnumerable eventt_grp = lstGroup.Select(r => new {r.ID, r.Name });
Rahul Rajat Singh at 13-Dec-12 5:01am View
   
If you don't want to use var then you will have to utilize the fact that utlimately whatever is being returned is enumerable. so try this and this should work.
 
IEnumerable eventt_grp = lstGroup.Select(r => new {r.ID, r.Name });
Rahul Rajat Singh at 13-Dec-12 4:43am View
   
IMHO, this will also not work because the result has to be in a the generic list that is expecting some type and the projected type is anonymous and thus we will never be able to specify the type of list of the result type variable.
Rahul Rajat Singh at 24-Nov-12 7:13am View
   
Web forms or windows application?
Rahul Rajat Singh at 20-Nov-12 7:29am View
   
Deleted
This is not a solution. If you have question or suggestion please put them under "Have a question or comment" section.
Rahul Rajat Singh at 16-Nov-12 5:47am View
   
Assignments are meant to help you learn. Please don't ask for solutions here. and BTW these assignments are fairly very easy, if you try to do them, you should be able to do it very very easily.
 
Try to write some code, if you get in some problem, ask here. I will be more than glad to help you then.
Rahul Rajat Singh at 16-Nov-12 3:16am View
   
you are most welcome. always happy to help fellow developers.
Rahul Rajat Singh at 16-Nov-12 2:41am View
   
yes you can. you just need to write a class to read and write the registry.
Rahul Rajat Singh at 15-Nov-12 6:50am View
   
perhaps that is causing the problem. why not you move this cascading behavior to the client side. refer this on how to do that: http://www.codeproject.com/Articles/402611/AJAX-for-beginners-Part-2-Using-XMLHttpRequest-and
 
I think multiple postbacks must be causing the values to get to reset to the original ones.
Rahul Rajat Singh at 15-Nov-12 6:05am View
   
ok, let me ask a very basic question first. the dropdowns must be getting populated by values coming from database, right? are you sure that is happening only when the ispostback property is false and not always?
Rahul Rajat Singh at 15-Nov-12 5:54am View
   
made a minor modification in the solution. see if this one works.
Rahul Rajat Singh at 15-Nov-12 5:39am View
   
posted another solution on how that can be done. See if that is helpful.
Rahul Rajat Singh at 15-Nov-12 4:58am View
   
from your application layer what values for the parameters are being passed to the DB layer?
 
I mean if you want some parameter not to be considered in the where clause you will explicitly need to pass their value as DBnull.Value. Are you doing that? Do not pass null or empty string from there.
Rahul Rajat Singh at 15-Nov-12 1:00am View
   
This seems to be the right solution based on the information provided. +5.
Rahul Rajat Singh at 9-Nov-12 6:47am View
   
Deleted
you are most welcome. Always happy to help fellow developers.
 
P.S. if it worked, marking this answer as solution wouldn't do us any harm :)
Rahul Rajat Singh at 9-Nov-12 6:40am View
   
Deleted
I have put in an example in the same solution. check the updated version above.
Rahul Rajat Singh at 9-Nov-12 1:19am View
   
oh I was about to write the same, i even wrote all the code but you beat me to it :(
 
nevertheless, +5.
Rahul Rajat Singh at 31-Oct-12 11:39am View
   
And the reason i choose this kind of solution is that there is no db needed to keep track of stale n fresh links. I.e. All the state of the link is in the link itself.
Rahul Rajat Singh at 5-Sep-12 8:31am View
   
See some links in the answer(just updated)
Rahul Rajat Singh at 5-Sep-12 7:49am View
   
good answer. +5.
Rahul Rajat Singh at 5-Sep-12 7:40am View
   
Thanks.
Rahul Rajat Singh at 3-Sep-12 8:23am View
   
Thanks.
Rahul Rajat Singh at 22-Aug-12 8:16am View
   
not clear. please elaborate.
Rahul Rajat Singh at 22-Aug-12 8:09am View
   
Yes it will. see my other solution for the same answer. it is working with sqlserver 2005 too.
Rahul Rajat Singh at 22-Aug-12 7:49am View
   
writting to text files is simple file handling. you can do it by using static functions of File class. Still i would recommend doing it in proper way. refer this link for details on how this can be done properly.
 

http://www.codeproject.com/Articles/2344/Create-Simple-Error-Log-Files-using-ASP-NET-and-C
 
P.S. mark as solution to indicate the question is solved.
Rahul Rajat Singh at 22-Aug-12 7:34am View
   
Where do you want to write logs, text file or eventlog?
Rahul Rajat Singh at 22-Aug-12 7:33am View
   
good to hear that. if it is working mark them as solutions so that other will know it is solved and perhaps someone else can also benefit from it.
Rahul Rajat Singh at 22-Aug-12 7:18am View
   
please show us some code. perhaps there is some problem in calling databind in some place. let us see some code here.
Rahul Rajat Singh at 22-Aug-12 7:14am View
   
just posted some code for you. it is working fine. check that out.
Rahul Rajat Singh at 22-Aug-12 5:18am View
   
Right now, NO. but i am also assigned a similar task. I will work on it pretty soon. so perhaps I will give you details once I am done with it.
Rahul Rajat Singh at 21-Aug-12 6:04am View
   
It would be very difficult to provide project specific code. I seriously suggest you go through that article. ADO.NET is relatively simple and I am sure once you understand the basics, you will implement it very easily.
Rahul Rajat Singh at 21-Aug-12 6:03am View
   
+5.
Rahul Rajat Singh at 21-Aug-12 1:34am View
   
+5 for taking things literally and sense of humor. (We need such stuff to keep us laughing)
Rahul Rajat Singh at 21-Aug-12 0:02am View
   
Is my solution not working? I have checked it and it seems to be working. Let me know if there is still some problem.
Rahul Rajat Singh at 16-Aug-12 0:10am View
   
good answer. +5.
Rahul Rajat Singh at 14-Aug-12 5:19am View
   
+5.
Rahul Rajat Singh at 14-Aug-12 0:44am View
   
good answer. +5.
Rahul Rajat Singh at 14-Aug-12 0:43am View
   
+5. good answer
Rahul Rajat Singh at 9-Aug-12 1:41am View
   
Why is this posted as solution? This is not a solution. Please use improve question to add such things.
Rahul Rajat Singh at 4-Aug-12 4:08am View
   
Do you want to do this on client side or server side?
Rahul Rajat Singh at 31-Jul-12 23:56pm View
   
good answer. +5.
Rahul Rajat Singh at 20-Jul-12 0:25am View
   
Why are you re posting the question again.
Rahul Rajat Singh at 20-Jul-12 0:15am View
   
+5.
Rahul Rajat Singh at 20-Jul-12 0:13am View
   
Perfect. +5.
Rahul Rajat Singh at 17-Jul-12 8:56am View
   
What is the problem now. Tell me what is happening.
Rahul Rajat Singh at 17-Jul-12 3:57am View
   
Just a small question. If you dont want the user to see the second option and user will never be able to select it, why do you need to have 2 options in Dropdown?
Rahul Rajat Singh at 17-Jul-12 3:55am View
   
I think the OP wants it for windows forms and not for web application.
Rahul Rajat Singh at 16-Jul-12 8:07am View
   
good links. +5.
Rahul Rajat Singh at 16-Jul-12 8:04am View
   
good answer. +5. also we need to call this function from onkeypress and return false after the alert to make it work properly.
Rahul Rajat Singh at 16-Jul-12 8:02am View
   
+4 for the answer. would have given 5 if you would have mentioned that the datatype of respective columns should also match.
Rahul Rajat Singh at 16-Jul-12 7:23am View
   
good links. +5.
Rahul Rajat Singh at 12-Jul-12 7:35am View
   
you are most welcome. Always happy to help fellow developers. post your queries here on CP only. you will find a lot of experts here.
Rahul Rajat Singh at 12-Jul-12 7:00am View
   
Show us the stack trace. It comes in the catch block.
Rahul Rajat Singh at 12-Jul-12 6:59am View
   
use the capital F in format. and if it doesnt work then tell me the error.
Rahul Rajat Singh at 12-Jul-12 6:52am View
   
thanks.
Rahul Rajat Singh at 12-Jul-12 6:51am View
   
These are placeholders, {0} will be replaces by the forst string value after the comma and {1} will be replaced by 2nd. basically it will treat all the variables after comma as an array and use the placeholder number as index and start pushing the data in string and return a temp string.
 
so the ageRange will reallu contain 80 to 25 after this statement execute.
Rahul Rajat Singh at 12-Jul-12 6:47am View
   
This is not a solution. please put such things in "Question or Comments" section.
Rahul Rajat Singh at 12-Jul-12 6:38am View
   
thanks.
Rahul Rajat Singh at 12-Jul-12 6:34am View
   
Do you want to implement multilingual forms or you want to implement a form that will do the transliteration?
Rahul Rajat Singh at 12-Jul-12 6:30am View
   
Thats perfect. +5.
Rahul Rajat Singh at 12-Jul-12 1:36am View
   
I too agree wit SA.
 
Ashish, Getting praised by SA is a big deal. He is a legend here in QnA section.
Rahul Rajat Singh at 12-Jul-12 0:33am View
   
good links. +5.
Rahul Rajat Singh at 12-Jul-12 0:33am View
   
good links. +5.
Rahul Rajat Singh at 12-Jul-12 0:23am View
   
I think this should work. although I think, "'N'@urduvalue" should be "'N' + @urduvalue." Check it on your end to confirm.
Rahul Rajat Singh at 11-Jul-12 8:03am View
   
Thanks.
Rahul Rajat Singh at 11-Jul-12 7:48am View
   
thanks.
Rahul Rajat Singh at 11-Jul-12 6:46am View
   
thanks.
Rahul Rajat Singh at 11-Jul-12 6:44am View
   
thanks.
Rahul Rajat Singh at 11-Jul-12 6:44am View
   
thanks.
Rahul Rajat Singh at 11-Jul-12 6:34am View
   
Good answer. +5.
Rahul Rajat Singh at 11-Jul-12 6:32am View
   
thanks.
Rahul Rajat Singh at 11-Jul-12 6:31am View
   
good answer. +5.
Rahul Rajat Singh at 11-Jul-12 6:22am View
   
Perfect. +5.
Rahul Rajat Singh at 11-Jul-12 4:36am View
   
Your question is not clear. and what is this code you provided. This is now how an enum is defined.
Rahul Rajat Singh at 11-Jul-12 2:44am View
   
The link is actually pointing to the same question above.
Rahul Rajat Singh at 11-Jul-12 2:42am View
   
Please elaborate. your question is not clear.
Rahul Rajat Singh at 11-Jul-12 1:27am View
   
Not at all clear. please elaborate.
Rahul Rajat Singh at 11-Jul-12 1:13am View
   
you are welcome. if it worked then please mark the answer as solution as this would let other know that the problems is solved and the others with similar problem can also refer and benefit from it.
Rahul Rajat Singh at 11-Jul-12 0:45am View
   
+5 from me.
Rahul Rajat Singh at 10-Jul-12 5:33am View
   
I agree with Vani.
Rahul Rajat Singh at 10-Jul-12 5:09am View
   
YES i tested it on that only. I can still print console messages in windows applications too for debugging purposes.
Rahul Rajat Singh at 10-Jul-12 4:30am View
   
Why cant you use resx files BTW?
Rahul Rajat Singh at 10-Jul-12 4:28am View
   
good answer. +5.
Rahul Rajat Singh at 10-Jul-12 2:33am View
   
In that case it is not possible to do async postbacks.
 
But asp.net 2.0 can still work with AJAX, you just need to have AJAX extension installed in the server and make the changes in web.config to refer to proper assemblies. check if that is allowed.
Rahul Rajat Singh at 10-Jul-12 2:22am View
   
thanks.
Rahul Rajat Singh at 6-Jul-12 7:16am View
   
WHAT???? the comment is same as original question. and in top of all your suggestion on posting actually solved the original problem. Weird.........
Rahul Rajat Singh at 6-Jul-12 6:12am View
   
You are most welcome. always ready and glad to help a fellow developer.
Rahul Rajat Singh at 6-Jul-12 4:50am View
   
thanks. but this answer will soon get and forgotten and people will still ask the same question again(i am sure)
Rahul Rajat Singh at 6-Jul-12 4:35am View
   
you are welcome.
Rahul Rajat Singh at 6-Jul-12 4:35am View
   
thanks.
Rahul Rajat Singh at 6-Jul-12 4:34am View
   
ok so you are using your custom logic for authentication. so i would still suggest that you check the second link titled "Understanding and Implementing ASP.NET Custom Forms Authentication". this is the best and standard way to do what you are trying to do.
 
following those practices will make your life very easy. otherwise you will end up having code for all the users and the code will contain very dirty conditional logic in a lot of places. Think about it. it might require some work now but it will save a lot of work later and perhaps a lot of rework and problems could also be avoided.
 
I hope I am not sounding counter-your-requirements. I am just suggesting the recommended way of doing this stuff.
Rahul Rajat Singh at 6-Jul-12 4:29am View
   
interpretation are different but both our solutions are correct in their own way(perhaps not in the context of this question). +5 for your solution, liked it.
Rahul Rajat Singh at 6-Jul-12 4:22am View
   
You are most welcome. always ready and glad to help a fellow developer.
 
Don't forget to vote the original article. it is a very good article and we should appreciate it by giving it a 5.
Rahul Rajat Singh at 6-Jul-12 4:14am View
   
good links. +5.
Rahul Rajat Singh at 6-Jul-12 4:02am View
   
good links. +5.
Rahul Rajat Singh at 6-Jul-12 4:00am View
   
good answer, +5.
Rahul Rajat Singh at 6-Jul-12 3:55am View
   
+5.
Rahul Rajat Singh at 6-Jul-12 2:30am View
   
I too agree that your answer was a solution for the problem. and the best of all, you gave the answer so quickly, I was amazed. I was reading the question and by that time you had answer. Really like that. i guess i have a lot to learn from the gurus like you.
Rahul Rajat Singh at 6-Jul-12 2:27am View
   
don't write such things in solution area. you have comments and questions sections for that.
 
also, the comment you made is rather disparaging. please refrain from that.
Rahul Rajat Singh at 6-Jul-12 2:25am View
   
good links. +5.
Rahul Rajat Singh at 6-Jul-12 2:22am View
   
good link. +5.
Rahul Rajat Singh at 6-Jul-12 1:57am View
   
you are welcome.
Rahul Rajat Singh at 6-Jul-12 1:57am View
   
thanks.
Rahul Rajat Singh at 6-Jul-12 1:57am View
   
thanks.
Rahul Rajat Singh at 6-Jul-12 1:48am View
   
I have one more suggestion. check the updated answer.
Rahul Rajat Singh at 6-Jul-12 1:38am View
   
+5 for the solution BTW.
Rahul Rajat Singh at 6-Jul-12 1:38am View
   
+5 for the solution/
Rahul Rajat Singh at 6-Jul-12 1:37am View
   
thanks you. i also have some comments on accepted answers. check above.
Rahul Rajat Singh at 6-Jul-12 1:36am View
   
this solution is ok but my doubt here is that what if the ID field is same in two tables but data field is different. I don't think this will work then. we will have to have a all fields check in where clause.
 
why not use the except keyword instead. it will check with all the fields. I think it is more efficient oo as its sole purpose is to do what was desired in this question. check my answer.
Rahul Rajat Singh at 6-Jul-12 1:34am View
   
good answer. +5
Rahul Rajat Singh at 6-Jul-12 1:30am View
   
You are most welcome. always ready and glad to help a fellow developer.
Rahul Rajat Singh at 5-Jul-12 2:16am View
   
have the method inside a separate class and put this in APP_Code folder. pass all this method needs as arguments. this method could be an instance method or static method based on what it does.
Rahul Rajat Singh at 5-Jul-12 2:08am View
   
good answer. +5.
Rahul Rajat Singh at 4-Jul-12 1:27am View
   
+5.
Rahul Rajat Singh at 3-Jul-12 6:31am View
   
good answer. +5. I was also going to suggest the same.
Rahul Rajat Singh at 3-Jul-12 6:28am View
   
So it is a winform application. skip the databind and see if it works or not. I mean delete the line with databind in it. Tell me if it works.
Rahul Rajat Singh at 3-Jul-12 6:23am View
   
the forms that you are talking about. are they WINFORMS. because it seems whenever you are using word made in C#, you are actually trying to say a winform page. Am I right?
Rahul Rajat Singh at 3-Jul-12 6:21am View
   
thanks.
Rahul Rajat Singh at 3-Jul-12 6:20am View
   
Deleted
thanks.
Rahul Rajat Singh at 3-Jul-12 6:13am View
   
I agree. +5 for proper guidance.
Rahul Rajat Singh at 3-Jul-12 6:10am View
   
Not clear. please elaborate.
Rahul Rajat Singh at 3-Jul-12 2:56am View
   
Show us the line where this exception is coming and we will try to find the null object for you.
Rahul Rajat Singh at 2-Jul-12 22:58pm View
   
You need javascript to filter the keystroke based on these requirements or the validations.
Rahul Rajat Singh at 30-Jun-12 4:36am View
   
+5 for working code and good answer. I am not sure what the OP is really asking for but still good effort. even i am trying to answer based on my understanding. the only difference between my answer and yours is that i moved some checking inside the class rather than from the caller end.
Rahul Rajat Singh at 30-Jun-12 3:57am View
   
good answer. +5.
Rahul Rajat Singh at 30-Jun-12 3:02am View
   
Although this is doable. I would still ask - Why don't you add radio buttons instead of all check boxes. that way you can pass groupname to make selection mutual exclusive.
Rahul Rajat Singh at 28-Jun-12 8:16am View
   
Not clear. what exactly is the question?
Rahul Rajat Singh at 28-Jun-12 8:13am View
   
please elaborate the problem.
Rahul Rajat Singh at 28-Jun-12 7:49am View
   
Thanks Vani.
Rahul Rajat Singh at 28-Jun-12 7:46am View
   
you are most welcome. always happy to help fellow developers.
Rahul Rajat Singh at 28-Jun-12 7:41am View
   
You are most welcome. always ready to help fellow developers.
Rahul Rajat Singh at 28-Jun-12 7:29am View
   
thanks.
Rahul Rajat Singh at 28-Jun-12 7:26am View
   
good answer. +5.
Rahul Rajat Singh at 28-Jun-12 7:07am View
   
+5.
Rahul Rajat Singh at 28-Jun-12 7:06am View
   
+5 for trying out and then posting the answer.
Rahul Rajat Singh at 28-Jun-12 7:06am View
   
+5 for trying out and then posting the answer.
Rahul Rajat Singh at 28-Jun-12 6:55am View
   
thanks.
Rahul Rajat Singh at 28-Jun-12 5:29am View
   
+5.
Rahul Rajat Singh at 28-Jun-12 5:15am View
   
Could you please specify the criteria that you want to use for sorting.
Rahul Rajat Singh at 28-Jun-12 4:26am View
   
check these
 
http://www.codeproject.com/Articles/46264/A-Simple-ASP-NET-Custom-Server-Control
 
http://msdn.microsoft.com/en-us/library/zt27tfhy.aspx
Rahul Rajat Singh at 28-Jun-12 3:54am View
   
Which line is giving this exception?
Rahul Rajat Singh at 28-Jun-12 2:35am View
   
If you need to avoid postback even then too then An alternative to this solution (or which can be used in conjunction of this solution) is to move the panel2 inside an updaetpanel.
Rahul Rajat Singh at 28-Jun-12 2:34am View
   
but what if the postback is due to some other reason than the button click. why do we need to show the panel then too.
Rahul Rajat Singh at 28-Jun-12 2:34am View
   
good answer. +5.
Rahul Rajat Singh at 28-Jun-12 2:33am View
   
good answer. +5.
Rahul Rajat Singh at 28-Jun-12 2:14am View
   
totally agreed. and thanks for pointing it out. I am updating the answer now.
Rahul Rajat Singh at 28-Jun-12 2:09am View
   
thanks.
Rahul Rajat Singh at 28-Jun-12 1:55am View
   
you are welcome. if it worked then please mark the answer as solution as this would let other know that the problems is solved and the others with similar problem can also refer and benefit from it.
Rahul Rajat Singh at 28-Jun-12 1:43am View
   
good suggestion. +5.
Rahul Rajat Singh at 28-Jun-12 1:43am View
   
awesome. +5.
Rahul Rajat Singh at 27-Jun-12 8:37am View
   
I suggest you take a deep breath. get some fresh air and then start afresh. start by rethinking the solution and refer the article in context. You should be able to solve it. sometimes it just need fresh perspective to solve the problems.
 
P.S. check my other solution to get some pointers.
Rahul Rajat Singh at 27-Jun-12 8:35am View
   
I think you forgot to vote :(
Rahul Rajat Singh at 27-Jun-12 8:15am View
   
you are welcome. and yes you are right the URL will not change.
Rahul Rajat Singh at 27-Jun-12 8:13am View
   
Same argument -
 
I beg to differ here. try the code in my solution. it will work. The real question is should we do this. and the answer to that would be no.
Rahul Rajat Singh at 27-Jun-12 8:12am View
   
you are welcome.
 
P.S. I think your other question similar onewith the cross page also has an answer. for that question if it worked then please mark the answer as solution as this would let other know that the problems is solved and the others with similar problem can also refer and benefit from it.
Rahul Rajat Singh at 27-Jun-12 8:09am View
   
Please elaborate. more details on error/exception needed to pin point the problem.
Rahul Rajat Singh at 27-Jun-12 8:06am View
   
you are welcome. if it worked then please mark the answer as solution as this would let other know that the problems is solved and the others with similar problem can also refer and benefit from it.
Rahul Rajat Singh at 27-Jun-12 8:03am View
   
The only thing is that the USER will never be able to pass this query string from browser. as the browser url is not changed in user browser.
Rahul Rajat Singh at 27-Jun-12 8:00am View
   
I beg to differ here. try the code in my solution. it will work.
 
The real question is should we do this. and the answer to that would be no.
Rahul Rajat Singh at 27-Jun-12 6:50am View
   
good suggestion. this should work.

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