Questions




Answers
1
How to Add shopping cart buttons to recycleview In Android?

I Want display two button and one Textview on recycleview, If i click on plus (+) button value of textview, it should be increase and if I click of minus button than value of textview should be decrease.

After that, I want to add one more button(AddToCart button) when i click on AddtoCart button than that particular item value should be display in Cart Android Platform.

How Can i achieve this functionality in Android?

 

...
Read More
Android Java Implement-cart-in-recycle-view
Answers
1
Get sum from three table and selected data using SQL

Hello, I am trying to get Sum of three columns from three different table and get results table using SQL.

Suppose here are my tables

Table 1: raw_item_fcst

sql-table-fetch-data-from-three-tables-min.png


Table 2. Raw_item

table-2-min.png

Table 3 . inventory_data

table-3-min.png

I try to write query to fetch data from these tables using subquery , Here is my sub query

...
Read More
SQL Sum-of-three-columns data-from-three-columns-sql
Answers
1
I have deleted my database by accidentially in sql server 2017 is there is any way to recover it?

Hi, I have deleted my database by accidentially in sql server 2017 is there is any way to recover it? Thanks.

...
Read More
SQL recover-deleted-database
Answers
1
How to update remote branches using Visual Studio Git?

Recently, I have pushed my code from local git to azure-devops, but after pushing code and clicking on "Fetch" doesn't update my local branches, it should have two branches dev & master but showing only one.

So, How can I update branches locally to show dev and master in my Visual Studio 2017 Git?

...
Read More
Visual-studio Visual-studio-2017 git-branches-not-updated-in-visual-studio
Answers
1
How to get latitude and longitude from address using C# or Javascript?

I have a requirement to get latitude and longitude from address using C# or Javascript, any solution will work. So, how can I get them using address?

Basically, I need to convert the address into Lat / Long and show it in Google maps in ASP.NET MVC web-application, so javascript solution will also work.

Note: I don't have lat/long, just address of the user.

...
Read More
C# Javascript google-maps-api lat-long-from-address-google-maps
Answers
1
How do I stop from browser being closed when I stop debugging in Visual Studio 2017?

I have recently updated my Visual studio from 2015 to 2017 and started using 2017 now, but when I start debugging in it, it opens website in new browser tab and as soon as I stop debugging it closes the browser tab/website also.

Previously, in Visual Studio 2015, Browser tab never used to get closed as soon as I stop debugging.

So, how i can disable this new feature and keep website open/running even when debugging is stoppped in Visual Studio 2017?

...
Read More
Visual-studio visual-studio-2017 stop-browser-from-being-closed-in-visual-studio-2017
Answers
1
B-Tree Implementation

How do you implement B-Tree in java with a GUI.

I'm new to Java Algorithms and want to know how to implement this data structure in code.

...
Read More
Java B-Tree Data Structure
Answers
1
Prevent negative value from being entered in HTML input type number field?

While creating HTML5 input type number in the html form, I would like to disable or prevent user from entering negative number in it, user should be able to enter only positive number, how can i do that, current HTML code is as below

...
Read More
HTML html5 form html number selector
Answers
1
Sum of two column values from two different tables

I want sum of two column values from two different tables, how can I do it using SQL?

Suppose, these are my two tables, Table 1

...
Read More
sql sql server
Answers
1
ASP.NET Web-Form Error "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive)."

I have created a new empty ASP.NET web-forms project using Visual Studio, after adding the new .aspx (web-form) file with the RegularExpressionValidator code as shown below, I am getting an error "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive)."

Here is the code of my Web-Form page(Default.aspx)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EmailIdValidate.Default" %>

<!DOCTYPE html>
<script runat="server">
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = "Your email: " + TextBox1.Text.ToString();
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Validate email address using RegularExpressionValidator in ASP.NET</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Red">RegularExpressionValidator: email</h2>
        <asp:Label 
             ID="Label1" 
             runat="server"
             Font-Bold="true"
             Font-Italic="true"
             Font-Size="Large"
             ForeColor="SeaGreen"
             >
        </asp:Label>

        <br /><br />
        <asp:Label ID="Label2" runat="server" Text="Email">
        </asp:Label>
        <asp:TextBox  ID="TextBox1" runat="server" >
        </asp:TextBox>

        <asp:RequiredFieldValidator 
             ID="RequiredFieldValidator1"
             runat="server"
             ControlToValidate="TextBox1"
             Text="*"
             >
        </asp:RequiredFieldValidator>

        <asp:RegularExpressionValidator 
            ID="RegularExpressionValidator1"
            runat="server" 
             ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
            ControlToValidate="TextBox1"
            ErrorMessage="Input valid email address!"
            >
        </asp:RegularExpressionValidator>

        <br /><br />
        <asp:Button 
             ID="Button1" 
             runat="server" 
             Text="Submit email"
             Font-Bold="true"
             ForeColor="DodgerBlue" 
             OnClick="Button1_Click"
             />
    </div>
    </form>
</body>
</html>

When building the project and running it browser getting error details as shown below

...

Read More
C# ASP.NET

Page 1 of 37