|
Hi, I have a web API method and it returns IEnumerable<cases>. Cases is a wrapper class of "Proc" Class. I am consuming this web API from my client. If Proc has count 0, I can able to get data in my client from Web API. When Proc has value (greater than count 0), I get error "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host". I am working in VS 2017 and .Net Core 2.1 Please advise
Cases.cs
public partial class Cases
{
public CaseDetails()
{
CaseProcedures = new HashSet();
}
public int Id { get; set; }
public int UniqueNumber { get; set; }
public HashSet Proc { get; set; }
}
Proc.cs
public partial class Proc
{
public int Id { get; set; }
public int CasesId { get; set; }
}
Balasubramanian K.
|
|
|
|
|
Yeah, you do know that a 401 code is an authorization failure, I trust.
The W3C is your friend! The HTTP 1.1 status codes apply to 1.2 as well.
HTTP/1.1: Status Code Definitions
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Greetings experts,
My partner that handles classic ASP (yes, we still use it) but he is on vacation for a month and I am backing her up.
I have not used classic ASP in more than 10 years.
Yesterday, one of our users tried to search for her parcel on the website and ran into the following error:
The system cannot find message text for message number 0x80040e4b in the message file for OraOLEDB
D:\config/FunctionSubTyler1.inc, line 62
Here is the function where the error is coming from:
Function check_null_var(var)
If IsNull(var) Then
check_null_var = ""
Else
check_null_var = var
End If
End Function
and the offending line (line 62) is on this bolded line:
Else
check_null_var = var
I tried to rewrite that function like this:
Function check_null_var(var)
check_null_var = "'" & Replace(var,"'","''") & "'"
End Function
However, this function is giving me an error. Not sure if it is because it is wrapped around oracle query.
Any ideas why this is causing the problem?
Thanks in advance for your help
|
|
|
|
|
while looking for some pre-made style sheet to save me figuring out styling a button (minimal web page, but default button is terrible looking)
through in the link to a style sheet, and almost nothing.
"Well, actually that is okay, any style sheet I add on, I don't really want changing all the basic elements"
look up documentation,
button, where is button css?
add stuff
These are not old resources that I am finding, so my question and confusion is why use an anchor tab instead of button?
- YES - do this if actual behaviour is that of anchor link.
- when using as button for interaction. this is the target question.
- [push up on nerd glasses] Not all browsers support styling button, but do support styling the tag, so its better to do it this way.
|
|
|
|
|
maze3 wrote: but default button is terrible looking) It is not meant to look sexy, it is meant to be a recognizable button.
I'm confused why the world is spending so much money on a solved problem, just for the (temporary) "look" of things.
Take a look at your scissors - are they adorned in any way? Sexy-looking? Or do they look like tools that are built for a specific job?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Hi,
I have build/bind treeview of bootstrap dynamically (runtime ) using json
I have 2 problems
1) white color with tree node .how can I solve this issue (attached is snap short for reference)
2) click "+" tree node is not working on any node … as I told I build these node on runtime what to do to solve these issue
Note:
1)Red color showing white spaces which need to remove.
2) yellow color showing click is not working on "+" sign which I build runtime
3) green color showing ( "+" ) click is working fine because its design tree on design time not run time build (its static )
)
what to do to remove Red and yellow mark error or bug
|
|
|
|
|
Hi,
How can I tell Apache Tomcat 9 to run on ipv4 instead of ipv6 on Windows? I know you have to create setenv.bat in Tomcat 9.0\bin, but I haven't find what to add in it for Windows, only for Linux.
|
|
|
|
|
|
I m facing a problem while login on a website.
as i click on login after filling my user name & password en error comes.
which is this..
System.Net.WebException: The remote server returned an error: (405) Method Not Allowed. at System.Net.HttpWebRequest.GetResponse() at AwasPlusRegistration.APServiceConsume.consumePostWebMethod(String url, String data) at AwasPlus_APLogin.LoginUse
This is full error massage
Please give me a proper solution.
i stuck in this issue.
Awaiting for response
|
|
|
|
|
If it's your website, then you need to fix your code.
If it's not your website, then you need to contact the owners of the site, and tell them to fix their code.
NB: We can't tell you how to fix the code, because we can't see the code.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi everybody
When I try to open my website (URL)/login.aspx in chrome, it switches in the bar to (URL)/login and goes to "HTTP Error 404.0 - Not Found" page.
but in IE, it works fine.
any idea about this problem
|
|
|
|
|
Please do not post the same question in multiple forums.
|
|
|
|
|
What would be a better design for CRUD pagination.
1: Send the Page and Show to the controller and just grab the records needed.
Get the record count first so I have a total, then get the records
2: Get all the records, send them down and use the client to take the ones I need.
Since I have all the records, I can get a count.
3: Or change my model, so I have a column for count, and then shift the records to an array for 1 single call.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
modified 1-Oct-18 18:29pm.
|
|
|
|
|
In most LOB (WPF) applications I have built the number of records is quite limited <1000 usually. So I get the entire data set.
When doing web apps I treat the UI the same as a desktop app IE you can scroll horizontally in a grid but the vertical is a fixed size and the user scrolls WITHIN the grid, never using pagination but implementing filtering.
I know this is anathema to most web developers but I find it much easier to use and control the grid.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I get what your saying.
I have cards or square tiles, 4 across for large displays, 1 for cell phones and a pagination of buttons at the bottom.
I ended up creating a new model with count and an array of records, choosing to create a specific query for skip and take.
It's pretty fast still and just one call for data.
I suppose the question boils down to preference.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
|
The data tables is very nice. That's slick.
I was going to use a NPM package for Angular. Then I ran across this article called pagination made easy.
Ended up writing a component from almost scratch. Then I got to the controller / back end part and questioned myself.
It wasn't easy at all.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Hi Coders,
i'm trying to create an discussion forum similar to msdn-forum/code-project forum in my asp.net Application.
How to do it.
Please help.
|
|
|
|
|
... and please do not post the same question in multiple forums.
|
|
|
|
|
Hi, can anyone tell me what is cell padding, and cell spacing?
|
|
|
|
|
|
Cell padding is so you don't injure yourself, cell spacing is so you can't hear the other inmates.
In other words: padding is space inside the cell, spacing is between the cells.
|
|
|
|
|
cell padding : which specifies the space between cells is called cell padding
cell spacing : controls the space between table cells. Although there is no official default,
browsers usually use a default of 2.
|
|
|
|
|
The cell padding is used to define the spaces between the cells and its border. If cell padding property is not apply then it will be set as default value. The cell spacing is used to define the space between the cells.
|
|
|
|
|
hello can someone help me to add a cache for this query or for a way to optimize it by avoiding the use of SELECT * FROM information_schema to improve the performance of this query
SELECT * FROM information_schema.key_column_usage AS kcu
INNER JOIN information_schema.referential_constraints AS rc
ON ( kcu.constraint_name = rc.constraint_name
AND kcu.constraint_schema = rc.constraint_schema )
WHERE kcu.table_schema = 'joseph79_tiny'
AND kcu.table_name = 'options'
AND rc.table_name = 'options'
SELECT * FROM information_schema.key_column_usage AS kcu
INNER JOIN information_schema.referential_constraints AS rc
ON (
kcu.constraint_name = rc.constraint_name
AND kcu.constraint_schema = rc.constraint_schema ) wh ere kcu.table_schema = 'joseph79_tiny'
AND kcu.table_name = 'links'
AND rc.table_name = 'links'
|
|
|
|