|
for the moment, the current value btpht as {byte [8]}
|
|
|
|
|
Jquery Easy UI DataGrid not show after publish to IIS using c# MVC 5. How to solve.
My code is ,
$(document).ready(function () {
var urlStr = '@Url.Content("~/Admin/UserView")';
$('#tt').datagrid({
url: urlStr,
striped: true,
singleSelect: true,
columns: [[
{ field: 'USER_ID', title: 'User ID', width: 150 },
{ field: 'USER_NAME', title: 'User Name', width: 200, align: 'left' },
{
field: 'Action', title: 'Action', width: 100,
formatter: function (value, row, index) {
console.log(row);
return 'Select';
}
}
]],
onClickRow: function (idx, data) {
console.log(data);
}
});
|
|
|
|
|
That's JavaScript. This is the C# forum.
|
|
|
|
|
Hi,
I am developing an application with c#. And for that I want to create bill report in my project. Can anyone give some example code or any reference please.
|
|
|
|
|
|
Crystal Reports bleh - disgusting application, I would use SQL Server Reporting Services SSRS local report, no server required and it is not CR.
There are many reporting tools available but they are all add ons to the application, you can embed them in the app or they may be server based so you need to do some research into which meets your requirements.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
I am at my wits end and was hoping for some help if possible.
I have been asked to retrieve some data from a SOAP/XML webservice. No problem I thought, done that loads of times.
I was even given a working PHP example that returns the data I need - even easier I thought!
BUT, in my c# code I cannot get past authorisation!
This is the example PHP script that works perfectly...
<?php
try
{
$soap_url = "http://108-168-196-91.mycitrixdemo.net/zdm/services/EveryWanDevice?wsdl";
$client = new SoapClient(null, array(
'location' => $soap_url,
'uri' => "http://zdemo2.zenprise.com",
'login' => "Administrator",
'password'=> "xxxxx"));
$properties=$client->getDeviceProperties("99000067296308",null);
for($i=0;$i<count($properties);$i++) {
printf ("name: %s, value: %s\n" , $properties[$i]->name, $properties[$i]->value);
}
}
catch (Exception $e)
{
print_r($e); exit;
}
?>
I tried passing the username and password as I have done before like this:
ClassLibrary1.trev.DeviceServiceService test = new trev.DeviceServiceService();
test.Credentials = new System.Net.NetworkCredential("Administrator", "xxxx", "citrix");
test.getAllDevices();
And I get "Failed to Authenticate
Reading the documents it says...
Quote: Service Authentication
2nd generation SOAP services provide WS-Security (<https: www.oasis-open.org="" committees="" wss="">)
support using WSS4J (<http: ws.apache.org="" wss4j="">). By default, the services require WSS
Username+Password authentication of a valid user with the required rights. Support for other WSS
features might be added in future releases.
NOTE: these services DO NOT use HTTP authentication, as the previous Device Manager web services
So, I then tried:
EveryWan.DeviceServiceService service = new EveryWan.DeviceServiceService();
UsernameToken userToken = new UsernameToken("Administrator", "xxxx", PasswordOption.SendPlainText);
service.RequestSoapContext.Security.Tokens.Add(userToken);
service.RequestSoapContext.Security.Elements.Add(new MessageSignature(userToken));
And still I get "Failed to Authenticate"
I just don't understand what I need to do to talk to this API?
The PHP works fine! but I cannot replicate it in c#.
Can anyone see what I am doing wrong please?
Any help would be much appreciated!
Thanks
|
|
|
|
|
can you get in contact with webservice supplier?
I've contacted a zen webservice once from .Net, but was in luck I was in touch with the supplier. They looked in their logs and figured out some issues between the zen framework and the .Net way of doing things. Then they modified it and it worked.
I'm not sure what those issues were though, it had to do with the wsdl, headers, protocols and standards etc...
(this might not be an issue in this case, I don't know, but it might give you a lead)
hope this helps.
|
|
|
|
|
That sounds very like it could be the case.
Luckily I have contact with the Zen people..
I will ask.
Thanks V!!!
|
|
|
|
|
Did you have to do anything special with your code?
Or, did you just code it as a normal "Add Web Reference"?
Thanks
Trev
|
|
|
|
|
add webservice.
I suppose you could program it against the wsdl directly, but if you can, don't go down that road.
|
|
|
|
|
We are working on a project in which we want to replace small part of a image with another small part of same size image at given coordinate
|
|
|
|
|
I am sure you will learn a great deal about images in implementing this project.
Is there something we can help you with ?
If there is, please tell us what you've done so far; if you are having difficulty, post excerpts of your code to show where any errors occur, and describe the error messages that appear.
If you are stuck, then describe what your goals are, and show the code of what you have tried so far.
“Use the word 'cybernetics,' Norbert, because nobody knows what it means. This will always put you at an advantage in arguments.” Claude Shannon (Information Theory scientist): letter to Norbert Weiner of M.I.T., circa 1940
|
|
|
|
|
This sounds like homework: so I won't give you code!
But...it's pretty easy:
1) Read the two images into Image class instances.
2) Get the graphics context for the "destination" image. (See Graphics.FromImage[^])
3) Draw the smaller image at the appropriate point. (See Graphics.DrawImageUnscaled[^])
4) Dispose of your Graphics context.
5) Save the destination image with the "replaced bit"
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I am not sure whether this is the right forum to ask this question or not. Please let me know if this is not the right forum.
I have list of geo coordinates (the route I took/drive).
Now I want to pass these geo coordinates and get the path/route image from Bing Map service APIs. I am developing a REST service APIs. I am already using the Bing Map Route APIs.
But I am not sure how to get the image of the route/path. I did goole it. I could not find any examples.
Thanks.
|
|
|
|
|
hi.i want to have help for how to impelement one neural network which name is "SOM".does anyone have this code???
|
|
|
|
|
I'm sorry, but we don't give code to people. We expect you to have done some of the work yourself.
|
|
|
|
|
|
I am returning a model to my view on the initial load of a page, the model is populated from the DB, I want to validate the model so that when the user receives the page a validation summary show the errors if any
data in database is coming from ETL system so it can contain invalid data.
whole point is to show error on page load to user if any rather than clicking on submit button and then showing errors
|
|
|
|
|
I didn't see any questions in there.
|
|
|
|
|
I want to validate model on page load in mvc and show error if any.
|
|
|
|
|
That is a requirement. You still haven't ask a question.
|
|
|
|
|
Q is how to validate model on page load/or on HTTPGet request
var uu=TryValidateModel(exceptionData);
this always returns true and Model.IsValid return false only on post not on Get
|
|
|
|
|
You have shown no validation code. How can we tell what the actual issue with your code is?
|
|
|
|
|
That's being mean for the sake of it, Pete. The question is clearly 'how do I validate model on initial request?'.
There may be issues with that question as your subsequent post points out (there's no code presented and we don't even know what platform is in play), but this post was unhelpful.
|
|
|
|