3021 1
How to send value from model in view to javascript file?

In asp.net MVC, How can I send value from model in view to javascript file? 

...
Type
Question
2966 1
how can i simplify url in .NET MVC?

How can I simplify the url to http://localhost:51675/Prescriptions/Create/12 instead of http://localhost:51675/Prescriptions/Create?AssessmentID=12.
currently i am using this code

...
Type
Question
2917 0
Implementing Payment Gateway in C# (ASP.NET Core MVC Razorpay Example)
In this article, I have provided working example to integrate payment gateway in C# using ASP.NET Core MVC web-application as an example.
Type
Article
2908 3
Cannot find the check box for enabling SSL in visual studio 2017 (ASP.NET Core project)

Hi, I want to enable SSL for my ASP.NET Core project in Visual studio 2017, but when I'm checking my visual studio project to enable SSL, it looks like this in properties

...

Type
Question
2882 0
File upload on AWS S3 using C# in ASP.NET Core
In this article, I have provided step by step guide to upload file on Amazon Web Services (AWS) S3 using C# in ASP.NET Core MVC
Type
Article

2861 2
How to add the SignalR client library in ASP.NET Core 2?

Hi, I'm using SignalR with .net core2 in Visual studio 2017 to send message to all users. But I don't know how can I add the SignalR client library.

My current javascript code is :

<script src="Scripts/jquery-1.6.4.min.js"
type="text/javascript"></script>
<script src="Scripts/jquery.signalR-0.5.2.min.js"
type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>
<script type="text/javascript">

var myHubProxy = $.connection.hub.CreateHubProxy("MyHub");
myHubProxy.on('ClientsListener', function (msg) {
// alert to test
alert(' message from server');
//$("#messageDisplay").text(msg);
})
$.connection.hub.start().done(function () {
myHubProxy.Invoke('MyServiceFunction');
})

</script>

In Which my project not contains those scripts :

<script src="Scripts/jquery-1.6.4.min.js"type="text/javascript"></script>
<script src="Scripts/jquery.signalR-0.5.2.min.js"type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>

Please how can add the SignalR client library. I was try this : But I remarked  no file clled Client_side library to add it .

...

Type
Question
2858 1
How to show Crystal report for two tables related by foreign key?

I have two tables tbl_employee and tbl_department. I want to show a crystal report for employee information where department name should be there. When I am trying to show the report only for the employee table it is working fine but when I am joining these two tables with key in crystal report design, logon error exception is shown. 

...

Type
Question
2831 1
Need boiler plate ebook or demo

I want ebook or demo of asp.net boilerplate but do not paste home page(https://aspnetboilerplate.com/) of boilerplate.

thank you very much!!

...
Type
Question
2822 2
How to append jQuery bootstrap calender on dynamically created element in ASP.NET MVC?

Here, I am appending Model data to <td> from the model List and trying to do inplace (inline) editing and I want to validate the form using for loop.

Now, I would like to add/append the calender to start date and end date (dynamic textbox elements)using bootstrap calendar. How can I do it?

here is my Current C# razor view code:

<tbody>
@if (List.Count > 0)
{
for (int i = 0; i < List.Count; i++)
{
<tr id="Tr_@i.ToString()">
<td>
<input type="hidden" value="@List[i].ID" id="hdnId_@i.ToString()" />
<input type="text" class="form-control" id="txtName_@i.ToString()" value="@List[i].Name" />
</td>

<td class="hideCol2 hideHideCol_2">
<input type="text" class="form-control" id="txtDescription_@i.ToString()" value="@List[i].Description" />
</td>

<td class="hideCol3 hideHideCol_3">
<input type="text" class="form-control" id="txtTopCount@i.ToString()" value="@List[i].TopCount" />
</td>

<td class="hideCol4 hideHideCol_4">
<div class="input-group date" id="editstartDate">
<input type="text" class="form-control" id="txtStart_Date_@i.ToString()" value="@List[i].Start_Date.ToString("dd/MM/yyyy")" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</td>

<td class="hideCol5 hideHideCol_5">
<div class="input-group date editendDate" data-provide="datepicker">
<input type="text" class="form-control" id="txtEnd_Date_@i.ToString()" value="@List[i].End_Date.ToString("dd/MM/yyyy")" />
<span class="input-group-addon">
<i class="glyphicon glyphicon-th"></i>

</span>
</div>
</td>


</tr>
}
}
else
{
<tr></tr>
}
</tbody>

Here is the screenshot of my view

...

Type
Question
2814 2
How to write HTML5 data-atrribute in Razor MVC C#?

I am trying to specify HTML5 data-atrribute in my asp.net MVC razor code like below

 @Html.DropDownListFor(m => m.Industry, OnePassV3.utility.OptionList.GetIndustryListSelectList()
                           , new { @class="cs-select cs-skin-slide cs-transparent", @data-init-plugin="cs-select" })

but i am getting error as you can see below in the image.

...

Type
Question

Page 24 of 31