Click here to Skip to main content
14,929,068 members

Comments by dnxit (Top 34 by date)

dnxit 15-Sep-20 8:59am View
   
You can use a Grid Layout and keep width and Height as * so it'll make it flexible and adjustable to screen size, you can see an example on the following link
https://askxammy.com/working-with-gridlayout-in-xamarin-forms/
dnxit 13-Sep-20 0:51am View
   
What are you trying to do here with that Socket ?
Cookie.Value is string and you're assigning Socket to string ?
dnxit 10-Sep-20 2:35am View
   
Why are you including Jquery related js files in your view ? same is added in your layout as well.
https://blog.michaelckennedy.net/2012/10/11/preventing-javascript-files-from-loading-multiple-times/
May be that's the problem
dnxit 11-Jun-20 3:40am View
   
Setup files can be created for Windows desktop applications e.g. (winforms, wpf, uwp etc) web applications are deployed in IIS. web applications usually work from server so multiple clients can access it through browsers.
dnxit 25-Mar-20 4:01am View
   
You can give this one a try
https://github.com/alanjuden/MvcReportViewer
dnxit 16-Mar-20 4:51am View
   
My pleasure :)
dnxit 16-Mar-20 2:27am View
   
Usually we show Foreign key values in a drop down
model.VehicleTypeId will give you the value selected by end user that you can store as a foreign key.
dnxit 8-Mar-20 7:49am View
   
Session variable with a key for identification can be used like this

protected void Button1_Click(object sender, EventArgs e)
{
//textbox value is stored in Session
Session["UserName"] = tbUserName.Text;
Response.Redirect("WebForm2.aspx");
}

protected void WebForm2_Page_Load(object sender, EventArgs e)
{
//Session value is assign on the text box
if (Session["UserName"] != null)
{
tbUserName.Text = Session["UserName"].ToString();
}
}

Read this article for details
https://www.c-sharpcorner.com/UploadFile/225740/introduction-of-session-in-Asp-Net/
dnxit 24-Dec-19 1:13am View
   
Check this sample
https://github.com/xamarin/xamarin-forms-samples/tree/master/WebServices/TodoASMX
dnxit 23-Dec-19 0:55am View
   
you can use some cdn to include e.g.
https://momentjs.com/downloads/moment.js
dnxit 23-Dec-19 0:49am View
   
Not using Site Map but menu is coming from the database, check this article
https://www.codeproject.com/Articles/5163177/MVC-6-Dynamic-Navigation-Menu-from-Database
dnxit 16-Dec-19 1:48am View
   
Dynamic objects will be processed on the server while generating response. So your webrequest will see all static html with parsed data and other static files like css, js etc.
dnxit 16-Dec-19 1:44am View
   
https://www.c-sharpcorner.com/UploadFile/a20beb/get-the-image-in-reports-from-the-database-in-net/

Check this article.
dnxit 21-Oct-19 2:56am View
   
Yeah you can change the where clause, I gave you an idea. Something like this

promotionproduct = promotionproduct.Where(x => x.qty == 3 || x.qty < x.max).ToList();
dnxit 2-Oct-19 15:06pm View
   
to keep multiple double quotes like width=""628"" height=""374"", which will result width="628" height="374" after rendering.
dnxit 2-Oct-19 14:49pm View
   
I'm happy to help
dnxit 1-Oct-19 9:29am View
   
above code is purely C# just one Panel I've used to add that literal control.
dnxit 25-Sep-19 8:44am View
   
you're welcome, good to know your problem got a solution :)
dnxit 23-Sep-19 6:36am View
   
you need to create an object and call like

PostcodeAnywhereBusinessLogic xyz = new PostcodeAnywhereBusinessLogic();
xyz.ValidateBank(sortCode, accountNum);
dnxit 19-Sep-19 3:51am View
   
You can add web api controllers in same mvc application, check this link if you go with this approach
https://satvasolutions.com/combine-asp-net-identity-web-api-and-mvc-single-web-app/
dnxit 12-Sep-19 7:21am View
   
Hi Simon, try this article for json web token with owin

https://bitoftech.net/2014/10/27/json-web-token-asp-net-web-api-2-jwt-owin-authorization-server/
dnxit 12-Sep-19 1:52am View
   
SelectionChangeCommitted was available in windows forms it's not available in wpf, if you want to customize Selected Item Change, you can check this article for custom event

https://www.codeproject.com/Articles/39077/Binding-to-ComboBox-SelectedItem-through-a-custom
dnxit 4-Sep-19 2:11am View
   
It's better to log the full Exception object to see for stack trace and other details but if you just want the message try ex.GetBaseException().Message;
dnxit 29-Aug-19 6:13am View
   
basically it uses Dynamic Data Entity templates and Field templates, for more details see
https://docs.microsoft.com/en-us/previous-versions/aspnet/cc488545(v=vs.100)
dnxit 29-Aug-19 6:04am View
   
then make sure you're logged in with WIN10 user :)
dnxit 29-Aug-19 5:57am View
   
yeah then you can
Process.Start("C:\\Users\\WIN10\\AppData\\Local\\App folder\\spp folder\\app.exe");

try to run your app which is trying to open this app.exe as Administrator there might be permissions issue
dnxit 28-Aug-19 7:30am View
   
That I suggested in the very first response

I guess your compiled version dlls are not updated in the deployed location.......


but anyways I'm glad your issue is resolved.
dnxit 28-Aug-19 6:01am View
   
There should be one like basically it wires up your aspx with your code behind and that's how events also wires up.

<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ReportWebForm.aspx.cs" Inherits="Report.ReportWebForm" %>
dnxit 28-Aug-19 5:21am View
   
Read these two links as well.

https://stackoverflow.com/questions/1198347/asp-net-cs1061-compilation-error-on-deployment

https://forums.asp.net/t/1503255.aspx?Compiler+Error+Message+CS1061
dnxit 28-Aug-19 5:19am View
   
Also check if you've set Code behind page directive in your aspx page correctly?

<%@ Page ... Language="C#" CodeBehind="??? .aspx.cs" Inherits="..." .../>
dnxit 28-Aug-19 5:15am View
   
One more thing can you try to make
protected void TextBoxCustomerNo_TextChanged(object sender, EventArgs e)
to
public void TextBoxCustomerNo_TextChanged(object sender, EventArgs e)
dnxit 28-Aug-19 4:06am View
   
Host your application on your local IIS on your machine then start the IIS manager then click on Refresh button on Attach to Process dialog.

Here is an article if you don't know how to host in local IIS
https://www.codeproject.com/Articles/667694/How-to-Host-a-Website-in-IIS7-2
dnxit 28-Aug-19 4:00am View
   
Well in that case you can use the same Client Click to do the post back for you check this article

https://www.codeproject.com/Articles/4368/Post-an-ASP-NET-form-with-JavaScript
dnxit 15-Aug-19 8:18am View
   
You can use HttpWebRequest or Web Client for Posting.... like below

public void Call()
{
var client = new WebClient();
//var credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(userName + ":" + passWord));
//client.Headers[HttpRequestHeader.Authorization] = $"Basic {credentials}";
//client.Headers.Add($"x-api-key:{ApiKey}");
//client.Headers.Add("Content-Type:application/json");
var encodedJson = JsonConvert.SerializeObject(/*jSonData*/);

try
{
var response = client.UploadString($"{apiurl}", encodedJson);
var response1 = JsonConvert.DeserializeObject<string>(response);
}
catch (Exception ex)
{
throw ex;
}
}