|
In code behind or javascript?
|
|
|
|
|

<pre lang="c#"><head runat="server">
<title></title>
<script type="text/javascript">
function showHideDiv(id) {
var e = document.getElementById(id);
if (e.style.display == null || e.style.display == "none") {
e.style.display = "block";
} else {
e.style.display = "none";
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="form-group">
<div class="row">
<div class="col-md-12">
<label for="exampleDateSigned">Does CAGE Code exist for contract?<span
class="style1">*</span>:</label>
<label class="lookup-switch-btn">
<input class="checked-switch" name="cage-lookup" type="checkbox" onclick="showHideDiv('hideDiv')"/>
</label>
</div>
</div>
</div>
'Want to hide this when the toggle switch is changed to no.
<div runat="server" id="hideDiv" class="form-group" >
<div class="CAGErow">
<label for="exampleCAGE"> CAGE<span
class="style1">*</span>:</label>
<div class="col-md-4 col-sm-4"><asp:TextBox ID="TextBox11" class="form-control"
placeholder="" runat="server" Height="22px"></asp:TextBox> </div>
<div class="col-md-4 col-sm-4"><asp:Button ID="Button4" Text="Lookup"
type="button" runat="server" onclick="NextButton_Click" Height="25px"/></div>
</div>
</div>
</form>
</body>
|
|
|
|
|
HI,
I have a RDLC Report, Contain a Table With Multiple Head Rows. I wanna Display only one Head Row in every Page. I wanna do it with Page number. If the page number is ONE(1) will show every Head Rows else only One Head Row.
Urgent Please help .........
What I have tried:
I tried to give expression for hide Head Row using Page number But Page number can't take in report body only Header or footer part of the report can include PageNumber functionality
|
|
|
|
|
This is exactly the same question you posted in QA two days ago:
RDLC report header row visiblility issue ..[^]
You didn't provide enough information for anyone to help you then, either.
And no, it's not "urgent" for the unpaid volunteers who answer questions here.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Does anyone know how to create a simple hard URL to an action in MVC5? I'm not using it in the context of a View though, I am generating a unique URL and storing it into the database... Trying to use this:
public IHttpActionResult Create(Url url)
{
UrlHelper helper = new UrlHelper();
if (!ModelState.IsValid)
{
BadRequest();
}
url.OurUrl = helper.Action("Go","Redirect", null, "http") + url.UrlId;
_context.Urls.Add(url);
_context.SaveChanges();
return Created(new Uri(Request.RequestUri + "/" + url.UrlId), Url);
}
I've tried all kinds of variations on the Action() method... Like just using Go and Redirect as arguments... And what you see there. But it keeps telling me that routeCollection cannot be null
I'm confused because routeCollection isn't even a parameter listed in the method. Thanks.
|
|
|
|
|
Create your helper like this
UrlHelper helper = new UrlHelper(HttpContext.Current.Request.RequestContext);
|
|
|
|
|
Good day friends!
I taught this would be possible but I spend over 2hrs trying to figure this out but to no avail.
This is what I want;
I have datalist control that displays payment details and everything is working fine except one. Which is
I want to display sum of all the payments made on a label control called Aggregate.
For example
Customer Name Amount Date
Paul $2000 20-09-2016
Catherine $5000 20-09-2016
Otes $3000 20-09-2016
Aggregate = Sum of all payments made
Any solution please...
Thanks in advance...
|
|
|
|
|
This sounds very easy to do. Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks for your reply. Am stuck at the summing. Help please
|
|
|
|
|
Otekpo Emmanuel wrote: Help please I would love to but I have no idea what your problem is. It's like you went to the mechanic and said, "I can't drive my car." Do you think they could help?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Handle ItemDataBound event to do the calculation. Here's a quick example for your reference:
int total = 0;
protected void DataList1_ItemDataBound(Object sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem){
Label lbAmount = (Label) e.Item.FindControl("YourLabelControlID");
total += Convert.ToInt32(lbAmount.Text);
}
else if (e.Item.ItemType == ListItemType.Footer){
Label lblTotal = (Label)e.Item.FindControl("YourLabelControlID");
lblTotal.Text = total.ToString();
}
}
Note: If your Amount value contains a dollar symbol, then you may need to trim that value first before doing a Convert.
|
|
|
|
|
I have datatable and I want to create chart based on 3 values.
|
|
|
|
|
|
I want to be like this...
https://imagebin.ca/v/2wMnsVdMBeG6
the above pic will show you the data and chart that I wanted. But I want the month without duplicated.
|
|
|
|
|
So do you have an actual programming question?
|
|
|
|
|
I have some other but I can't share it it's has secret data, But it similar to previse pic.
|
|
|
|
|
|
Question
how I can do like the image in asp c#? I have duplicate month and name
https://imagebin.ca/v/2wMnsVdMBeG6
|
|
|
|
|
26s1124 wrote: Question
how I can do like the image in asp c#? I have duplicate month and name
Answer: Since you haven't specified which charting control you require, then I'd suggest you to look at Hichart[^] to build dynamic and responsive charts. Head over to their official website, check out the demos and do three things: READ, APPLY and LEARN.
Don't expect someone from here to write the whole code for you. If you are asking for it, then this isn't the right place to ask. You may need to find a freelancer folk to do the work for you, and of course you have to pay them.
|
|
|
|
|
|
please tell me what is sub domain ?
each sub domain contains a separate project ?
in what kind of scenario people go or sub domain ?
how sub domain is configured in IIS ?
tbhattacharjee
|
|
|
|
|
|
You can host multiple websites/apps with single domain. Subdomains are mostly used by internal users for a particular business / customer.
For example , if you build a application for a customer www.business.com then you can create many flavours of the same application for testing , UAT , Staging before going to live like
uat.business.com
staging.business.com etc..
Hope this make sense.
|
|
|
|
|
sub domain is possible when two application running in two different pc of different web site hosting company?
tbhattacharjee
|
|
|
|
|
Have a look at following links, see if they help you:
http://stackoverflow.com/questions/4333380/how-to-create-subdomain-in-iis6
|
|
|
|