Close a windows tab upon returning a view:
Do this when a parent window opens a child window.
The child window does the processing, but after the processing, you want the parent window to refresh.
In the SAVE action of … Read the rest
James Software Development Corner
Helping Others with Software Development and Windows Operating Issues
Close a windows tab upon returning a view:
Do this when a parent window opens a child window.
The child window does the processing, but after the processing, you want the parent window to refresh.
In the SAVE action of … Read the rest
Close a windows tab upon returning a view:
@if (ViewBag.CloseWindow == true)
{
<script type="text/javascript">
window.close();
</script>
}
Closing a Windows tab via a button … Read the rest
Assuming that you have a PDF in your controller as a byte array, add the following code to convert the data to a base64 string and send to your view.
string imageBase64Data = Convert.ToBase64String(results);… Read the rest
string imageDataURL = string.Format("data:application/pdf;base64,{0}", imageBase64Data);
ViewBag.ImageData
Let’s say you want to add focus to a button in your view. The first thing you need to do is add the id attribute to your control and give it a name such as id=”RefreshListButton”.
Next, in the jquery … Read the rest