Performing both client side and server side functions on button click - Specific Scenario
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , I have a checkbox, label and button control. If the checkbox is not checked and button is clicked, I need to display a message in label stating to check the checkbox first. If the checkbox is checked and then the button clicked, it should allow me to proceed. , ASPX: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#lblCheck').hide();
$('#btnProceed').click(function () {
var $this = $('#chkTerms')
if ($this.is(':checked')) {
$('#lblCheck').hide();
return true;
} else {
$('#lblCheck').show();
return false;
}
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:CheckBox ID="chkTerms" runat="server" Text="I agree to the Terms and Conditions"/><br />
<asp:Label ID="lblCheck" runat="server" Text="Please agree to the terms and conditions to proceed"/><br />
<asp:Button ID="btnProceed" runat="server" Text="Submit" onclick="btnProceed_Click1" />
</form>
</body>
</html>
protected void btnProceed_Click1(object sender, EventArgs e)
{
Response.Write("DD");
//your proceed
}
|
Make rectangle with one side curved
Tag : html , By : semicolonth
Date : March 29 2020, 07:55 AM
help you fix your problem I would use SVG: http://codepen.io/anon/pen/JdMVXY<svg>
<path d="M260 150, 0 150, 0 0, 300 0 Q260 75, 260 150"
stroke="transparent" fill="#bd9" />
</svg>
|
make one side of button curved from middle
Date : March 29 2020, 07:55 AM
help you fix your problem i want to create a button like this : , This will help you... try... <?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#FF0000" />
<size android:height="100dp"
android:width="200dp"/>
</shape>
</item>
<item
android:right="160dp"
android:top="7dp"
android:bottom="7dp"
android:left="-90dp">
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:innerRadius="2dp"
android:shape="oval"
android:useLevel="false">
<size
android:width="50dp"
android:height="50dp" />
<solid android:color="@android:color/darker_gray" />
</shape>
</item>
</layer-list>
|
How to create a QPushbutton with one side curved inward and other side flat in Qt
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I think a better approach here is to subclass the QPushButton and reimplement the paintEvent. Something like this void PushButton::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
// Define pen
QPen pen;
pen.setWidth(4);
// Draw outer cover
pen.setColor(Qt::black);
painter.setPen(pen);
painter.setBrush(QColor(Qt::gray));
painter.drawRect(this->rect());
// Draw Inward arc
pen.setWidth(2);
painter.setPen(pen);
painter.setBrush(QColor(Qt::white));
int x = this->rect().x() - this->rect().width()/2;
int y = this->rect().y();
int w = this->rect().width();
int h = this->rect().height();
QRectF rectangle(x,y,w,h);
painter.drawRoundedRect(rectangle,w,h);
}
|
react native curved-in curved-out right side of view
Date : March 29 2020, 07:55 AM
I wish this helpful for you I've done a fair amount with animations in React Native, but that one looks pretty tricky. Nevertheless, I think I have a solution. (After thinking about it for like 20 minutes) I'll give one example scenario: the menu is on top of the home screen and you swipe left to dismiss the menu with a curved-in animation. const { width, height } = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: -height,
left: width,
width: height * 3,
height: height * 3,
borderRadius: height * 1.5
}
});
|