15,792,459 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 Python questions
View PHP 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 Akshay malvankar (Top 83 by date)
Akshay malvankar
2-Nov-23 1:23am
View
Thank you so much Ansari
Akshay malvankar
30-Oct-23 8:36am
View
I think you misunderstood my problem, read my problem again as I said in my first line I received following response from my API so there is no point for me to debug my code again I shared all thing what I received from API. My code give error from after this line "var responseData = httpresponsemessage.Content.ReadAsStringAsync().Result;"
And Here is my class
public class OutputInfo
{
public string status_id { get; set; }
public string status_msg { get; set; }
public string unique_trans_id { get; set; }
public infodetails info { get; set; }
}
public class infodetails
{
public string case_id { get; set; }
}
Again I shared for you following is my API response
API gives response:
JSON
{
"status_id": 200,
"status_msg": "Successful",
"unique_trans_id": "CLIENTAPI202305260134469",
"info": {
"case_id": "MG.0523.30"
}
}
Sometimes, it gives the following response:
JSON
{
"status_id": 400,
"status_msg": "Bad Request",
"unique_trans_id": "CLIENTAPI202306050146459",
"info": [
"cp_state : value must be a valid string",
"cp_city : value must be a valid string"
]
}
Sometimes, it give response:
JSON
{
"status_id": 409,
"status_msg": "Duplicate Request",
"unique_trans_id": "CLIENTAPI202310270276322",
"info": [
"Duplicate request for reference ID I/2023/400018/00097601"
]
}
now please help me what i should do for above response in code
if (httpresponsemessage.IsSuccessStatusCode)
{
var responseData =
httpresponsemessage.Content.ReadAsStringAsync().Result; /// After this line
strinputjson = responseData.ToString();
ErrorHandler.LogSteps(strinputjson, "JsonOutput");
tResponse =JsonConvert.DeserializeObject<tresponse>
(strinputjson);
}
now I cant explain more then this , I explain and shared all my code my problem and what I want
Akshay malvankar
30-Oct-23 7:34am
View
then what it is?? if is not json ,so how i will identify from above API response ,Info is an array or an object. after this line
var responseData = httpresponsemessage.Content.ReadAsStringAsync().Result;
Please Explain in code
Akshay malvankar
30-Oct-23 5:52am
View
As shown in above code in this line
var responseData =
httpresponsemessage.Content.ReadAsStringAsync().Result
I get above
{
"status_id": 200,
"status_msg": "Successful",
"unique_trans_id": "CLIENTAPI202305260134469",
"info": {
"case_id": "MG.0523.30"
}
}
{
"status_id": 400,
"status_msg": "Bad Request",
"unique_trans_id": "CLIENTAPI202306050146459",
"info": [
"cp_state : value must be a valid string",
"cp_city : value must be a valid string"
]
}
Akshay malvankar
29-Oct-23 5:16am
View
TokenType it's given object in both response ,info property is object or info property is an array
Akshay malvankar
28-Oct-23 10:34am
View
How to identify info is object or info is an array from api response
Akshay malvankar
26-Oct-23 0:46am
View
in above code on line no "using (PdfReader reader = new PdfReader(filePath))" is giving me following error "'TN 55 AC 0010 VAL.pdf not found as file or resource.'". i am uploading above file from my local computer
Akshay malvankar
25-Oct-23 5:51am
View
thanks issue resloved
Akshay malvankar
14-Sep-23 1:22am
View
sorry typo mistake, and i am download pdf from URL
Akshay malvankar
28-Jun-23 2:35am
View
hi Graeme_Grant your right but not evertime we can shared code because you know client may take action,just wana help on though can we do this or not?? otherwise thanks for your reply ,i get answer from other platform just puting above question
Akshay malvankar
22-Jun-23 0:29am
View
hi Richard i already giving excutionTimout="3600"
and not 404 error its 504 gateway time out error
Akshay malvankar
20-Jun-23 12:31pm
View
Can anyone help me on this
Akshay malvankar
20-Jun-23 7:07am
View
i increase exexcution timeout as i paseted code 600 means 10 min right but it throw error in after 1 min
i dont know how to check timeout coming from IIS
Akshay malvankar
19-Jun-23 0:01am
View
then why it not throw error while uploading 2 mb file ,if page is not there then same error should be giving while uploading 2mb files also
Akshay malvankar
18-Jun-23 1:33am
View
Thank you
Akshay malvankar
17-Jun-23 13:07pm
View
objbulk.WriteToServer(lst);
Akshay malvankar
13-Jun-23 7:39am
View
Can we do that using 1 single class file??
Akshay malvankar
5-Apr-23 9:17am
View
But I want query we don not have access to monitoring tools
Akshay malvankar
5-Apr-23 6:32am
View
any one here to help me on this any DBA??
Akshay malvankar
4-Apr-23 7:26am
View
I don't force any one if they want to help they can ,if they dont understand my question they will asked me again in polite way, if they want to help me they will help in polite way not like what you did ,there is many users which act as professional ,You clearly not professional!
Akshay malvankar
4-Apr-23 7:16am
View
see Richard I don't have any problem to look into link which you provide, I also like to research thing , I have only problem with line "Nobody is going to do everything for you!". I think everybody come here to take help, nobody come here to hear any body nonsense comment. you like to share quotes then go and posted in social media site, you've come to the wrong site be professional!
Akshay malvankar
4-Apr-23 6:53am
View
Yes Richard deeming i understand your point ,nobody is going to do everything for me,but your answer is not solved my problem right ,so if you dont have proper solution then dont provide such silly Quote here ,i am not new user here i posted many question here and i got proper solution also,be professional not be philosopher
Akshay malvankar
4-Apr-23 0:25am
View
can anyone help me
Akshay malvankar
3-Apr-23 9:04am
View
yes I know but i want size if table month wise
Akshay malvankar
3-Apr-23 7:21am
View
ok that for 1 table query what about other tables in database and there size in that month
Akshay malvankar
15-Sep-22 0:17am
View
Can anyone help me on this Please
Akshay malvankar
14-Sep-22 6:19am
View
Means we can write same logic in Model also so why we need write some logic in .BLL file??
Akshay malvankar
31-Jul-22 1:13am
View
Just wana know to choose design pattern looking at requirement, can you suggest depending upon one sample example, like this is requiremnt you should used this design pattern
Akshay malvankar
16-Jul-22 4:01am
View
I just want a example where i can used it
Akshay malvankar
22-Jun-22 2:04am
View
No i want download source code for study and debugg
Akshay malvankar
26-Mar-22 7:58am
View
The doc you give, in that there is nothing like jquery function. That's why I asked you about this
Akshay malvankar
25-Mar-22 23:20pm
View
Tell me jquery function
Akshay malvankar
25-Mar-22 10:01am
View
I didn't get your answer, I didn't get any answer from docs that you share with me, can you tell me from above which are functiin
Akshay malvankar
24-Mar-22 13:15pm
View
So you are saying it's not possible, it is not possible even though if we create task schedular, that run on every night at client machine, post all data into my database, give any solution, because I don't want client to do that task every night
Akshay malvankar
24-Mar-22 12:57pm
View
No you didn't get it my question. Suppose my desktop application storing some user data daily bases, I want get that data evry night show in my website
Akshay malvankar
2-Aug-20 8:07am
View
guys help me
Akshay malvankar
1-Aug-20 1:53am
View
what kind of answer is this?? i want why it give this me this error ,same code working fine with deskstop version of my website
Akshay malvankar
31-Jul-20 11:52am
View
there is no one to answer me
Akshay malvankar
31-Jul-20 6:23am
View
guys doesnt reslove the error
Akshay malvankar
31-Jul-20 5:54am
View
Yes, but didn't succeed
Akshay malvankar
31-Jul-20 4:26am
View
what going on here ,please help me on this,this because of mobile version of website?? or what else??
Akshay malvankar
31-Jul-20 4:16am
View
now it showing me following error " Refused to display 'https://www.facebook.com/connect/xd_arbiter/r/iPrOY23SGAp.js?version=42#channel=f30147bc72040a&origin=https%3A%2F%2Fmakshay.sevenpv.com' in a frame because it set 'X-Frame-Options' to 'deny'."
Akshay malvankar
31-Jul-20 1:55am
View
Deleted
$(document).ready(function () {
var original_open = window.open;
if (!this.isApp) {
window.open = original_open;
}
debugger;
try {
var strFaceBookKey = "<%=strFaceBookKey%>";
var redirecturl = window.location.href;
console.log("redirect " + redirecturl);
function statusChangeCallback(response) { // Called with the results from FB.getLoginStatus().
console.log('statusChangeCallback');
console.log(response); // The current login status of the person.
if (response.status === 'connected') { // Logged into your webpage and Facebook response.authResponse.accessToken.
console.log("connected to fb");
DirectLogin(response.authResponse.accessToken);
} else if (response.status === 'not_authorized') {
AskPermissionForLogin();
}
else { // Not logged into your webpage or we are unable to tell.
console.log("not connected to fb");
}
}
if (userid == 0) {
window.fbAsyncInit = function () {
FB.init({ appId: strFaceBookKey, status: true, cookie: true, xfbml: true, version: 'v2.9'});
FB.getLoginStatus(function (response) { // Called after the JS SDK has been initialized.
console.log("Inside FB login status");
statusChangeCallback(response); // Returns the login status.
});
};
}
// to Load Javascript sdk e.g facebook permission popup
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) { return; }
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#version=v2.8&appId=" + strFaceBookKey + "&status=true&cookie=true&xfbml=true";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
function DirectLogin(token) { // Testing Graph API after login. See statusChangeCallback() for when this call is made.
FB.api("https://graph.facebook.com/me?&fields=id,name,email,first_name,last_name,birthday,picture,hometown,gender,website", function (response) {
console.log("DirectLogin " + JSON.stringify(response));
window.document.forms[0].hdnId.value = response.id;
window.document.forms[0].hdnEmail.value = response.email;
window.document.forms[0].hdnName.value = response.name;
window.document.forms[0].hdnfname.value = response.first_name;
window.document.forms[0].hdnlname.value = response.last_name;
if (response.gender)
{ window.document.forms[0].hdngen.value = response.gender; }
if (response.birthday)
{ window.document.forms[0].hdndob.value = response.birthday; }
window.document.forms[0].hdnimgsrc.value = response.picture.data;
if (response.hometown)
{ window.document.forms[0].hdnHmeCty.value = response.hometown.name; }
if (response.location)
{ window.document.forms[0].hdnLoc.value = response.loc
Akshay malvankar
30-Jul-20 23:40pm
View
it giving me following error "Refused to display 'https://www.facebook.com/connect/xd_arbiter/r/iPrOY23SGAp.js?version=42#channel=f3ad0f3d3435548&origin=https%3A%2F%2Fmakshay.sevenpv.com' in a frame because it set 'X-Frame-Options' to 'deny'." becasue of that i am not able to execute FB.getLoginstatus() function
Akshay malvankar
30-Jul-20 23:05pm
View
no i go through this doc also but nothing is there in this docs,so can anybody help me on this, why it give this error ??
Akshay malvankar
4-Jul-20 8:06am
View
Dim logo As LinkedResource = Nothing
Dim Path As String = Server.MapPath("../Images/mob1.jpg")
logo = New LinkedResource(Path, MediaTypeNames.Image.Jpeg)
logo.ContentId = "Logo_Ms"
Dim imageContent1 As String = img src = cid : HDIImage
Dim str_mail As String = html body + imageContent1 + body html
i try this also pls igonre syntax i am not able to post it here
Akshay malvankar
4-Jul-20 8:05am
View
img src = cid:HDIImage
Akshay malvankar
4-Jul-20 8:04am
View
Deleted
Dim logo As LinkedResource = Nothing
Dim Path As String = Server.MapPath("../Images/mob1.jpg")
logo = New LinkedResource(Path, MediaTypeNames.Image.Jpeg)
logo.ContentId = "Logo_Ms"
Dim imageContent1 As String =
Dim str_mail As String = "" + imageContent1 + ""
Akshay malvankar
4-Jul-20 8:03am
View
Deleted
Dim logo As LinkedResource = Nothing
Dim Path As String = Server.MapPath("../Images/mob1.jpg")
logo = New LinkedResource(Path, MediaTypeNames.Image.Jpeg)
logo.ContentId = "Logo_Ms"
Dim imageContent1 As String = ""
Dim str_mail As String = "" + imageContent1 + ""
Akshay malvankar
4-Jul-20 8:01am
View
Deleted
Dim logo As LinkedResource = Nothing
Dim Path As String = Server.MapPath("../Images/mob1.jpg")
logo = New LinkedResource(Path, MediaTypeNames.Image.Jpeg)
logo.ContentId = "Logo_Ms"
Dim imageContent1 As String = ""
Dim str_mail As String = "" + imageContent1 + ""
i try this also but didnt get successed
Akshay malvankar
3-Jul-20 3:58am
View
Email is active and valid
Akshay malvankar
20-Jun-20 9:59am
View
how that whats I asking , I want to hide and show depending upon the condition
Akshay malvankar
29-Mar-20 23:19pm
View
no no i want to put recordcnt column after text column but not able to do it in above code
Akshay malvankar
16-Jan-20 5:33am
View
k bro
7859632596
7485$$%#$%85695
this fine to you
bro 10 digit
Akshay malvankar
16-Jan-20 5:15am
View
see listen i want experssion that match 10 digit number with speical character from string ok
for e.g :" abc abc abc 78965478596"
and e.g " "abc abc abc 78525$%%%$152425"
mtach both above experssion
Akshay malvankar
16-Jan-20 4:45am
View
i ddidnt get you can you explain i want to match 10 digit number with speical character from string e.g "njkdahfkjdh dafjfidjjfd djfld 2468484&&&&(&777799"
i want to chekcked this number with speical charater from string
Akshay malvankar
16-Jan-20 4:30am
View
i want this validation 78459&*#$@$$<><85 this number , i want this also be cheked and also it failed in "1656646646 avsnns absbs abss", i want both condition to be cheked
i tired \d{10}
this validate only 10 number from string e.g 5695748596
i want expression that validate number and special charater between them e.g 25564@$55464
Akshay malvankar
15-Jan-20 23:26pm
View
above validation failed when i 78459&*#$@$$<><85 this number , i want this also be cheked and also it failed in "1656646646 avsnns absbs abss", i want both condition to be cheked
Akshay malvankar
15-Jan-20 6:59am
View
i want regex expression that find special character in between number for e.g 78459&*#$@$$<><85
above number contain special character in between number . i want regex that checked 8 digit number along with special character
Akshay malvankar
13-Jan-20 5:46am
View
Dim text As String = " Hey guys, I recently brought this bike from jaipur cutomer 8547582496 honda showroom.after documentation process, I drove my home that is approximately 8 km away from that store and engine and silencer get heated terribly.I thought it may be due to first drive.Next day after a ride of 8 km it "
Dim pattern As String = "/^\d{10}$/"
If Regex.IsMatch(review, pattern) Then
Return False
End If
Not working
Akshay malvankar
13-Jan-20 5:42am
View
Dim text As String = " Hey guys, I recently brought this bike from jaipur cutomer 8547582496 honda showroom.after documentation process, I drove my home that is approximately 8 km away from that store and engine and silencer get heated terribly.I thought it may be due to first drive.Next day after a ride of 8 km it "
Dim pattern As String = "/^\d{10}$/"
If Regex.IsMatch(review, pattern) Then
Return False
End If
Not working
Akshay malvankar
10-Dec-19 19:25pm
View
how this can be applied to list<t>, that is my question,how to do it, as above i try one code but it doesnt work
Akshay malvankar
18-Nov-19 5:24am
View
Can you suggest main topic that i need to cover
Akshay malvankar
12-Nov-19 23:39pm
View
one more thing if there is any alternative for temporary tables and derived table
Akshay malvankar
7-Nov-19 23:50pm
View
Hey i know there definition , but i want use cases for them when i choose to used view or temporary tables, when to used derived table , i read that derived table is alternative for temporary table , that i need to know , because i am get confused what is to used and when??
Akshay malvankar
6-Nov-19 6:57am
View
Deleted
Following query produce this in SQL
SELECT avg(DATEDIFF(second,tur.start,tur.[end])) as t FROM tblUserTracking tur where tur.start
between '2000-01-01'
and '2019-01-01'
Output : 41519653
In Mysql
SELECT avg(CEILING(TIMESTAMPDIFF(second,tur.start,tur.end))) as t FROM tblUserTracking tur where tur.start
between '2000-01-01'
and '2019-01-01'
Output
41519652.9524
So how to round up point value in Mysql
Akshay malvankar
6-Nov-19 2:07am
View
hey bro tried to read Richard Deeming answer without seeing screen
Akshay malvankar
5-Nov-19 6:30am
View
"select" is not valid at this position for this server version, excepting : '(', with
Akshay malvankar
5-Nov-19 5:17am
View
i removed it still not working
Akshay malvankar
5-Nov-19 3:41am
View
so what i have to do there ,i want to working this above query in Mysql
Akshay malvankar
30-Oct-19 2:02am
View
There is no one here to answer me
Akshay malvankar
18-Oct-19 0:35am
View
ty bro its worked
Akshay malvankar
18-Oct-19 0:27am
View
ok got it
Akshay malvankar
16-Oct-19 5:29am
View
ok
Akshay malvankar
15-Oct-19 8:40am
View
anybody here who can help me on this??
Akshay malvankar
5-Oct-19 10:37am
View
i am still not geeting answer from anyone
Akshay malvankar
2-Oct-19 8:03am
View
in console i only get "Error trying to diff '[object object]'. Only arrays and iterables are allowed in angular" this error
Akshay malvankar
1-Oct-19 21:40pm
View
hey Aarti Meswania thanks for your reply, see above code is in mysql ok,
where /*1=1 ---NOTE: this is not needed it's always gonna be true*/
tsn.SurveyorName = @SurveryorName --THERE YOU GO..................
above line is not always going to surveyorname is gona be any 'search stirng'
and tsn.SurveyorName=''Keval Kakdiya'' // this line is just example
it could another string could be append on this for e.g
and tsn.SurveyorName=''Keval Kakdiya'' and state = 'abc' // this could be another string
my question is when i passing static paramter
like this where 1=1 and tsn.SurveyorName=''Keval Kakdiya'' // its working
but when i paasing this paramter through my code to stored procedure
and tsn.SurveyorName=''Keval Kakdiya'' // it not working
there is any way i can debugg stroed procedure what actully end query is create in mysql workbench
Akshay malvankar
30-Sep-19 11:21am
View
there is no error in console
Akshay malvankar
30-Sep-19 7:24am
View
Please help me on this
Akshay malvankar
28-Sep-19 1:54am
View
sorry I could not try another I want to be used this API only
Akshay malvankar
27-Sep-19 12:36pm
View
what about following question-answer??
What is the difference between a normal function call and function returning promise and function returning observable and when and where we can use promise or observable?
Akshay malvankar
23-Sep-19 3:26am
View
what that - 8 is doing
Show More