|
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
|
|
|
|
|
The exact same web application is deployed on our IIS 8.5 server and runs correctly.
Here is what is on my .aspx page ....
<video id="embed1" runat="server" width="1280" height="720" autoplay="autoplay" controls="controls" />
This is what is in my code behind ...
embed1.Attributes("src") = "Videos\" & sVideoName
embed1.Attributes("type") = "video/mp4"
I set the source and type of the HTML5 player in the code behind because the video name is passed as a query string parameter.
On the IIS 7.5 server, I have added the MIME type, ".mp4 video/mp4" and the Windows 2008 R2 server has the "Desktop Experience" feature installed.
What am I missing to get this to work on my IIS 7.5 server ?
BTW: I am using IE 11.
|
|
|
|
|
If you request the video file directly within the browser, rather than loading your aspx page, do you get the video, or do you get an error?
If you get an error, then try opening the video file in a browser running on the server. IIS should give you a much more detailed error message for a local request.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I've made a new .aspx page with no code behind and discovered the following:
1) If I move the .MP4 file to the root of the website and reference it like this ...
<video id="embed1" runat="server" width="1280" height="720" autoplay="autoplay" controls="controls" >
<source src="QA.mp4" type="video/mp4" />
</video>
The video plays correctly.
However, if I mode the video to a subfolder on the website (/Videos) and reference it like this ...
<video id="embed1" runat="server" width="1280" height="720" autoplay="autoplay" controls="controls" >
<source src="Videos/QA.mp4" type="video/mp4" />
</video>
The video does not play.
It must be the syntax of the "src" attribute, but what is the correct syntax ? 
|
|
|
|
|
Try /Videos/QA.mp4. Assuming videos is at the root.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Tried that.
The error message I get is: "Unsupported video type or invalid file path"
The weird thing is that if I reference the video from the root, everything works fine.
Ugh.
I'm considering deploying the website with the videos stored at the root and just move on.
|
|
|
|
|
Try
MIME type, ".mp4 video/mpeg"
|
|
|
|
|
i am using asp.net MVC and identity to authenticate user. i saw after successfully authenticate
Request.IsAuthenticated return false
this is sample login code which i debug and saw it is working fine.
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
{
if (!ModelState.IsValid)
{
return View(model);
}
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);
switch (result)
{
case SignInStatus.Success:
return RedirectToLocal(returnUrl);
case SignInStatus.LockedOut:
return View("Lockout");
case SignInStatus.RequiresVerification:
return RedirectToAction("SendCode", new { ReturnUrl = returnUrl, RememberMe = model.RememberMe });
case SignInStatus.Failure:
default:
ModelState.AddModelError("", "Invalid login attempt.");
return View(model);
}
}
after successfully login page redirect to home index action where i am showing user information in index view like below way but controls never come there because of Request.IsAuthenticated return false
<div class="row">
<div class="col-md-12">
@{
if (Request.IsAuthenticated)
{
var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
var currentUser = manager.FindById(User.Identity.GetUserId());
<p>@currentUser.UserName</p>
<p>@currentUser.BirthDate</p>
}
else
{
<p>not authenticated</p>
}
}
</div>
</div>
just do not understand what i am missing for which request authenticate method always returning false. please help me to fix it. thanks
tbhattacharjee
|
|
|
|
|
I too have the same issue, can anyone provide more details on this issue?
Thanks,
Ramkumar K
|
|
|
|