15,949,741 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 .NET 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 Member 8557048 (Top 28 by date)
Member 8557048
26-Sep-17 3:51am
View
Hi Richard,
I am using Rotativa library
Here is the code below
string footer = "--footer-right \"Date: [date] [time]\" " + "--footer-center \"Page: [page] of [toPage]\" --footer-line --footer-font-size \"9\" --footer-spacing 5 --footer-font-name \"calibri light\"";
return new ViewAsPdf("ExporttoPDF", viewModel) { CustomSwitches = footer };
After this I am getting the exceptions like master page related or
Exit with code 1 due to network error:
like this.
Could you please help me on this?
Member 8557048
10-Jul-17 3:40am
View
In document.ready() function I have written like below
var txtShipID = "<%:Model.ShipID %>";
var txtShipItems = "<%:Model.ShipItems%>";
var lstItems = txtShipItems.split(',');
var table = "";
for (var ind = 0; ind < lstItems.length; ind++) {
var row = $('' +
'' +
'' +
'' +
'');
$('#tblShipping').append(row);
}
});
After running the code I a getting the mentioned error.' + lstItems[ind].substring(0, 3) + '' + '<%: Html.ActionLink('+lstItems[ind]+',"ReDirectToDetails", "ECU", new {' + lstItems[ind] +'}) %>' + '' + '
Delete
' + '
Member 8557048
26-Aug-16 8:08am
View
Yes made it thanks for the answer
Member 8557048
23-Aug-16 3:03am
View
Yes I made it by making default of divs in hidden mode like below.
<div id="DivECSId" style="display:block;">
But its not working as expected.
Member 8557048
20-Jun-16 6:00am
View
Thank you very much George for your valuable answer.It is really helped me a lot.Earlier
I for reading 40 lakh records from different text files it took 4.5 to 5 hours.
Now its amazing it took 35 mins.
Thank you so much
Member 8557048
25-Apr-16 5:58am
View
Thanks for your help
Member 8557048
23-Mar-16 4:01am
View
Actually i am generating this button and text boxes dynamically and if there is dropdownlist beside that I am adding the button element ,for that for every button i have to show image background
this.button = $("<button type='button' >^ </button>")
.attr("tabIndex", 1)
.attr("title", "Show All Items")
.attr("width", "20px")
like this can I show any image background on this please help
Member 8557048
28-Jan-14 8:57am
View
Thank You very much its working fine
Member 8557048
10-Jan-14 2:25am
View
Yeah I did the same thing and call the method and passing the class instance as the argument
Member 8557048
10-Jan-14 2:22am
View
Yes I did the same thing as I added a class in client and passing the class object then it is asking another parameter object
Member 8557048
10-Jan-14 1:56am
View
I added the service reference
myHealthInfoWPhone.ServiceReference1.UserLoginServiceClient proxy = new myHealthInfoWPhone.ServiceReference1.UserLoginServiceClient();
and this is the service method
public class UserLoginService : IUserLoginService
{
public bool ValidateUser(CreateUserProfileArg createUserProfileArg)
{
bool Result = false;
// hxUserDTO userLoginArgs = null;
UserLoginArgs userLoginArgs = null;
if (createUserProfileArg != null)
{
// userLoginArgs = new hxUserDTO();
userLoginArgs = new UserLoginArgs();
userLoginArgs.UserId = createUserProfileArg.UserID;
userLoginArgs.Password = createUserProfileArg.Password;
userLoginArgs.UserType = createUserProfileArg.UserType;
userLoginArgs.GroupId = createUserProfileArg.GroupID;
}
Result = UserLoginController.ValidateUserCredentials(userLoginArgs);
return Result;
}
and when calling this method I am passing argument as class file which is declared in phone project
This is the class in service
[Serializable]
[DataServiceKey("PartitionKey", "RowKey")]
public class UserLoginArgs : hxTableEntity
{
public string Unique_ID;
public string UserId { get; set; }
public string Password { get; set; }
public ActorType UserType { get; set; }
public string GroupId { get; set; }
}
public enum ActorType
{
Call_Center = 0,
Patient = 1,
Doctor = 2
}
This is the code in windows phone
var loginArgs = new UserLoginArgs();
loginArgs.UserID = "";
loginArgs.Password = "";
loginArgs.UserType = myHealthInfoWPhone.Class_Files.ActorType.Doctor;
loginArgs.GroupID = "2";
myHealthInfoWPhone.ServiceReference1.UserLoginServiceClient proxy = new myHealthInfoWPhone.ServiceReference1.UserLoginServiceClient();
and I am unable to send that class name
Member 8557048
9-Jan-14 22:18pm
View
Yes I have added the service reference,but I cannot able to pass class object as an argument for this method.
Member 8557048
6-Jan-14 3:47am
View
Can you please give me clear solution to the above problem?
Member 8557048
6-Jan-14 1:59am
View
Actually I defined the hosted url in the aspx.cs code that accepts class with parameters.So for that I need to pass data to that wcf service
Member 8557048
19-Dec-13 7:57am
View
Actually that is javascript method only but the method is not firing?
Member 8557048
13-Dec-13 7:11am
View
Yes I added all those files
Member 8557048
13-Dec-13 7:07am
View
Same as $ is undefined
Member 8557048
13-Dec-13 6:15am
View
Even after adding the above it is not working
Member 8557048
13-Dec-13 6:14am
View
I added that also in html file but it is not working
Member 8557048
13-Jun-13 23:17pm
View
The above mentioned is the method that i am using
Member 8557048
13-Jun-13 23:16pm
View
byte[] keyArray;
//get the byte code of the string
//byte[] toEncryptArray = Convert.FromBase64String(cipherString);
byte[] toEncryptArray = Convert.FromBase64String(cipherString.Replace("", "+"));
System.Configuration.AppSettingsReader settingsReader =
new AppSettingsReader();
//Get your key from config file to open the lock!
//string key = (string)settingsReader.GetValue("SecurityKey",
// typeof(String));
string key = "123";
if (useHashing)
{
//if hashing was used get the hash code with regards to your key
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
//release any resource held by the MD5CryptoServiceProvider
hashmd5.Clear();
}
else
{
//if hashing was not implemented get the byte code of the key
keyArray = UTF8Encoding.UTF8.GetBytes(key);
}
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
//set the secret key for the tripleDES algorithm
tdes.Key = keyArray;
//mode of operation. there are other 4 modes.
//We choose ECB(Electronic code Book)
tdes.Mode = CipherMode.ECB;
//padding mode(if any extra byte added)
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateDecryptor();
byte[] resultArray = cTransform.TransformFinalBlock(
toEncryptArray, 0, toEncryptArray.Length);
//Release resources held by TripleDes Encryptor
tdes.Clear();
//return the Clear decrypted TEXT
return UTF8Encoding.UTF8.GetString(resultArray);
Member 8557048
12-Jun-13 23:42pm
View
ust I am using simple method like the below for encryption
public string Encryptdata(string text) { string strmsg = string.Empty;
byte[] encode = new byte[text.Length];
encode = Encoding.UTF8.GetBytes(text);
strmsg = Convert.ToBase64String(encode); return strmsg; }
So I need to decrypt the data in stored procedure itself
Member 8557048
12-Jun-13 23:42pm
View
So I need to decrypt the data in stored procedure itself
Member 8557048
12-Jun-13 23:41pm
View
Just I am using simple method like the below for encryption
public string Encryptdata(string text)
{
string strmsg = string.Empty;
byte[] encode = new byte[text.Length];
encode = Encoding.UTF8.GetBytes(text);
strmsg = Convert.ToBase64String(encode); return strmsg;
}
Member 8557048
12-Jun-13 23:40pm
View
So I need to decrypt the data in stored procedure itself
Member 8557048
12-Jun-13 23:36pm
View
Just I am using simple method like the below for encryption
public string Encryptdata(string text)
{
string strmsg = string.Empty;
byte[] encode = new byte[text.Length];
encode = Encoding.UTF8.GetBytes(text);
strmsg = Convert.ToBase64String(encode);
return strmsg;
}
Member 8557048
10-May-13 7:41am
View
function StaffHouses_Click() {
var radio1 = document.getElementById("rdoSchStaffHousesY");
var radio2 = document.getElementById("charSchoolHaveStaffHouses");
if (radio1.checked == true) {
document.getElementById("intStaffHousesCount").disabled = false;
document.getElementById("intWorkersCountInStaffHouses").disabled = false;
}
else {
document.getElementById("intStaffHousesCount").disabled = true;
document.getElementById("intWorkersCountInStaffHouses").disabled = true;
document.getElementById("intStaffHousesCount").value = "";
document.getElementById("intWorkersCountInStaffHouses").value = "";
$('#intStaffHousesCount .input-validation-error').addClass('input-validation-valid');
$('#intStaffHousesCount .input-validation-error').removeClass('input-validation-error');
$('#intStaffHousesCount .field-validation-error').addClass('field-validation-valid');
$('#intStaffHousesCount .field-validation-error').removeClass('field-validation-error');
$('#intStaffHousesCount .validation-summary-errors').addClass('validation-summary-valid');
$('#intStaffHousesCount .validation-summary-errors').removeClass('validation-summary-errors');
//$('#field-validation-error ui-state-error-icon ui-icon-alert').removeClass.
//document.getElementById("intStaffHousesCount").onerror.value.disabled = true;
}
}
This is the code and in this i need to remove error icons for that controls
Member 8557048
31-Jan-12 3:36am
View
Could you please explain me by using c#?
Show More