15,902,189 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 Nayan Ambaliya (Top 44 by date)
Nayan Ambaliya
17-Oct-17 23:11pm
View
This is good. I am always inclined towards how to create such utility methods and utilize them in the code.
Thanks.
Nayan Ambaliya
17-Oct-17 1:38am
View
Does this mean that multiple calls to a static method by different clients with input variables (as in the question) will not overwrite the input variable value as well as the HttpResponse as inside the method?
Nayan Ambaliya
16-Oct-17 23:53pm
View
Sorry, that was my bad. I have changed and improved the question.
Would you by any chance shed some light on this?
Thanks.
Nayan Ambaliya
16-Oct-17 21:33pm
View
I think that the object you are serializing when calling the web service has a property mismatch (spelling mistake or non-existent property) with the class object which is the input to the web method.
Check the properties you pass as JSON as an input
It might be correct - but just one failure point.
Nayan Ambaliya
16-Oct-16 19:49pm
View
Thanks Keviniano, I think you are probably in the right direction, but, I would like the end result on the SUM of working hours and its comparison on fortnightly basis. So if the SUM of the working hours in the current fortnight and the next fortnight changes then there should be two entries in the end result table. For example,
Test user 01/01/2010 to 31/12/2016 75 hours per fortnight -- i.e. the test user works 75 hours per fortnight in between the dates 01/01/2010 to 31/12/2016
Test user 01/01/2017 to 31/03/2017 40 hours per fortnight -- i.e. the test user works 40 hours per fotnight in between the dates 01/01/2017 to 31/03/2017
Test user 01/04/2017 to 31/12/2020 75 hours per fortnight -- i.e. the test user has changed back to working 75 hours per fortnight from 01/04/2017 to 31/12/2020
Nayan Ambaliya
16-Oct-16 19:16pm
View
Despite us reporting on fortnightly basis, I do have to store it on day to day basis because we can modify working hours for any particular day.
Nayan Ambaliya
8-Jul-16 1:54am
View
You did not describe how are you binding the gridview. The more code you post, more likely someone can spot on the issue.
Nayan Ambaliya
8-Jul-16 1:51am
View
Use identifiers in your body text parameter;
Example
This is the PRESAVE email with {{STUDENTID}} and {{STUDENTNAME}} and then replace {{}} with relevant parameters
and the same goes on with POST SAVE (Have different identifiers for variables.
You can also achieve this with String.Format(" {0}, {1}, email contents", StudentID, StudentName); but this will only work if you have same emails with various different variables. I think the first option will work for you.
Nayan Ambaliya
10-May-16 21:59pm
View
Are you setting any session variables on the first load? or any variable for global use?
The problem might be that the page you are trying to access is accessing a session variable which may not have been created so far and there is an error handler in place which then redirects to default page. This can be one of the issue.
Look at your code. We can not identify the issue without looking in to the piece of code. Hope this helps a bit.
Nayan Ambaliya
10-May-16 20:04pm
View
I tried putting delays but it did not help.. I am going crazy.. and I need this to be out of my way as soon as possible.
I have done a lot of googling on this and nearly there to conclude as other people are saying that this is a bug in IE. But I need a workaround and there has to be a workaround. Please help guys.. I have emptied my brain in this...!!!!
Nayan Ambaliya
9-May-16 23:44pm
View
Try using a limited datatype (like VARCHAR(50)) and then try. Hope this resolves as it did in my case.
Indexes also play part here though.
Nayan Ambaliya
14-Apr-15 0:04am
View
There are two things. "Hide" and "Close" and both have different meanings.. Over the top, there are things like MODAL and NON-MODAL dialogs.
What do you really want to achieve? and what have you tried so far..
Nayan Ambaliya
30-Mar-15 20:14pm
View
what are you trying to say.. ?
Nayan Ambaliya
28-May-14 1:12am
View
Hi Murali,
I think he is talking about desktop applications and not web based applications..!!
Nayan Ambaliya
28-May-14 1:11am
View
In that case, you can create a class with properties.
When the user successfully logs in to your application, you set those properties with the user name and any other required parameters. On log out, you set it back to default values. That way you can identify whether the user is logged in or not.
Let me know if you need any help.
Nayan Ambaliya
28-May-14 1:07am
View
If you can give us more information on what you want to use the cookie information for, it would help us give you options on how to achieve that via different methods. I think cookies are meant for websites and not for desktop applications. I hope this makes sense.
Nayan Ambaliya
22-May-14 1:43am
View
You could use a combination of update panel and user control to have the page loaded and let the data load later and take its time.
However, this might not be your answer.
You need to describe your conditions on why you need to loop through rows and use a table object and not the grid view. Mind well that the more you display on the page, more time is taken to draw it on the page and hence the rendering of the page will be slow depending on your data and logic to show/hide rows.
Please state what technique you use to filter the rows and then to display them.
Nayan Ambaliya
20-May-14 20:02pm
View
Refer to the below on code project:
http://www.codeproject.com/Articles/277065/Creating-PDF-documents-with-iTextSharp
Nayan Ambaliya
20-May-14 2:10am
View
yes, the fileName refers to the file you want to transfer.
In your case if you would like to transfer more than one file, you can have an array as an argument and then do all the logic in the UploadFile function.
Hope this clears.
Please mark the above answer as correct if this has resolved your issue. This helps..!!
Nayan Ambaliya
20-May-14 1:31am
View
I think you need to tell us where are you stuck and we can help resolving an issue. This is like you are asking for a tutorial..!!
Nayan Ambaliya
20-May-14 1:13am
View
Deleted
I think you will have to convert the image to a PDF before showing it. Google iTextSharp which is a library which will allow you to create PDF. In your case, you will have to temporarily create pdf and show it. OR, for all the images saved, create a pdf and store it on file system and store the path in the database. On button click, show the pdf instead of getting the image path. Hope this helps.
Happy coding..!!
Nayan Ambaliya
6-May-14 19:38pm
View
Please elaborate your question. It does not state what sort of admin panel are you using.. Do you have access to the code/database? Did you try doing anything and encountered a problem ? Sorry but no point in imaging your situation and providing answers in a different direction..
Good luck..!!
Nayan Ambaliya
27-Apr-14 22:30pm
View
I would recommend to update the required field (regular SQL update statement) and at the same time, construct the field 5 and update it as well. All other methods like string replace, etc on either the front end side or SQL side would consume more resources than a regular update. Its just my opinion.
Nayan Ambaliya
17-Apr-14 2:27am
View
Please clarify your question details more accurately.. Sounds simple but if you can clarify little bit more ('[Under line data it is from 1st Row]' does not help..!!)
Nayan Ambaliya
11-Apr-14 1:10am
View
Yea.. I noticed it too... It seems like someone is doing their university assignments here... Poor fellow, he thought that he can get away with this.. Sorry bro, but if you have a specific scenario where we can see that you have done something to sort it out but can not, we are then happy to help you..
Nayan Ambaliya
15-Dec-13 22:37pm
View
Thanks Ron, I will take it from here..
Thank you very much for your inputs.
Regards,
Nayan
Nayan Ambaliya
15-Dec-13 22:12pm
View
hmm.. I think you made me think in another direction now with more questions.. I totally take your point, but what I was thinking of using these web services somewhere else (in terms of UI) just to use the same code for multiple UIs.. I think I forgot to mention that in my initial question.. What do you think now..
Nayan Ambaliya
15-Dec-13 22:06pm
View
Hi Ron,
Thanks for the prompt reply.
Ya, I got your point, but, I think, executing data requests via C# directly to SQL via business and data layers would be time consuming and heavy while, using JSON via web services would atleast load the page with data loading indicator. Over the top, JSON is light weight as well which will minimize load on the page.
All request will be outside and nothing is internal here..
What you think ?
Thanks Ron
Nayan Ambaliya
15-Dec-13 21:56pm
View
Hi Ron,
Thanks for your input. What I was really concerned is all about JSON. Am I right by using JSON as an in page technology to trap the data everywhere.. ?
Thanks.
Nayan Ambaliya
21-Oct-13 19:07pm
View
You need to clarify what is inserted on the line:
EXEC spGetTaxAmountForTallyByInvoiceId @Id;
There might be something which is causing this OR because it is # temp tables, something previously entered might cause it since you are not deleting any entries
Nayan Ambaliya
21-Oct-13 19:06pm
View
You need to clarify what this line do:
EXEC spGetTaxAmountForTallyByInvoiceId @Id;
Also you need to tell what you mean by "2nd Row is also wrong"
Nayan Ambaliya
1-Aug-13 7:52am
View
Hi Kishore,
Thanks for your time.. I am getting the data in a datatable from DB in c# and then binding the treeview in C# itself. Therefore, I do not need data on the client side... Am I doing anything wrong..?? Sorry I am not an expert in this topic..
Nayan Ambaliya
1-Aug-13 2:27am
View
var selectedCB1 = $("#<%=cmbCB1.ClientID%> option:selected").val();
var selectedCB2 = $("#<%=cmbCB2.ClientID%>").val();
var request;
request = $.ajax({
url: '<%=ResolveUrl("~/AllProcesses/Process156900.aspx") %>?ProcessToPerform=Process156900&CB1=' + selectedCB1 + '&CB2=' + CB2,
type: 'POST',
});
request.done(function() {
$('#<%=pnlProcess156900.ClientID %>').dialog({
width: 850,
height: 700,
show: 'slide'
});
alert($("#<%= tvProcess156900.ClientID %>").children("div").siblings("table").length);
});
request.fail(function(jqXHR, textStatus, errorThrown) {
alert('Error occured: ' + textStatus + ' | Error thrown: ' + errorThrown);
});
return false;
Nayan Ambaliya
26-Jun-13 21:16pm
View
The values are string: Say for example: TargetDirectory: C:\\Data\\ and MemberID: XMIM
Nayan Ambaliya
23-May-13 0:27am
View
Have you thought about the field Level.. It might be possible that for station 2101 and position 1 - there are many levels. And can you clarify what is the 'Row' field for?
--Nayan
Nayan Ambaliya
22-May-13 19:55pm
View
Apologies for asking your code..
In your code, you have e.Row.BackColor..
This will change the color of the whole row.
Please see the solution code above.
It has e.Row.Cells[4].BackColor.
This will change the color of the cell only.
Nayan Ambaliya
22-May-13 19:54pm
View
Mate,
Please closely have a look at the solution.
It clearly says that e.Row.Cells[4].BackColor. This will only change the cells color.
Please paste your code here if you are still having issues...
Nayan Ambaliya
13-May-13 21:15pm
View
Hi Ryan,
Yes, I do understand I will have to re-do everything, but, I am not finding any documentations for WEBI anywhere or an example with C# or anything. All I find is APACHE reference in the ECLIPSE IDE.
Can you please shed some light by examples or web places where I can go and have a look..?
Thanks.
Regards,
Nayan
Nayan Ambaliya
3-May-13 2:02am
View
Thank you very much...
But the web browser control has the limitation of 32 bit and 64 bit machines by its own...
I think I will have to download and delete it as done..
Nayan Ambaliya
3-May-13 2:01am
View
Thanks you very much...
Nayan Ambaliya
1-May-13 20:10pm
View
I have done it now.. Thanks.
Nayan Ambaliya
1-May-13 19:11pm
View
Thanks Sergey, I will definitely look in to your options..
Nayan Ambaliya
30-Apr-13 21:45pm
View
Ok, I think I am confusing you... Let's see this another way:
Scenario:
The client application is on the user PC and the SQL server database sits on a server on the internet somewhere. The data is saved, updated and deleted from the client application to the SQL server database.
My concern:
Whenever the user either saves, updates or deletes the data, the data sent to the SQL server database will be in plain text format. I need to secure this data during transit.
Can anyone provide me with different options...
Thanks.
Regards,
Nayan
Nayan Ambaliya
30-Apr-13 19:21pm
View
My question is:
How should I secure the data communication from the client to the database (sitting on the internet MS SQL Server)
Should it be normal connection string in a dll or should it be a web service with https etc etc.
I hope this makes you understand my question.
Regards,
Nayan
Show More