Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

adding additional parameter to form submit

<form method="post" action="/Lot/LotList?auctionEventId=@auctionEventId" id="filterForm">

<input type="hidden" id="showAll" name="showAll" value=""/>

<input type="button" onclick="submitForm()" value="Show all" />
  
function submitForm(){
$('#showAll').val('true');
$('#filterForm').submit();
}

_______________________________________________________________________________________________________________________________________________________________________________________________________________

--:)My code
  
<input type="submit" id="btnGenerate" value="Generate" class="btn btn-default" onclick="generate_alone()" style="text-align:center;width:100px;" />
<input type="submit" id="btnGenerateDownload" value="Generate & Download" class="btn btn-default" onclick="generate_n_download()" style="text-align:center;width:160px;" />
<input type="hidden" name="Generate" id="Generate" value="" />
<input type="hidden" name="Download" id="Download" value="" />

<script type="text/javascript">
	function generate_n_download() {
        $('#Generate').val('false');
        //alert($('#Generate').val());
        $('#Download').val('true');
        $('#frmAttendanceGeneration').submit();
    }
    function generate_alone() {
        $('#Generate').val('true');
        $('#Download').val('false');
        $('#frmAttendanceGeneration').submit();
    }
</script>
Comment

PREVIOUS NEXT
Code Example
Csharp :: linear search algorithm c# 
Csharp :: wpf binding object get value 
Csharp :: c# how to delete all files in directory 
Csharp :: request a pricipal permission 
Csharp :: how to add gravity without rb in unity 
Csharp :: install nuget package for S3 
Csharp :: c# loop through queue 
Csharp :: c# enum get string value 
Csharp :: unity stop physics 
Csharp :: Reading emails from Gmail in C# 
Csharp :: declare multiple variables in for loop C# 
Csharp :: remove substring from string c# 
Csharp :: last index for array c# 
Csharp :: how to make rabbitmq start and stop base on c# services 
Csharp :: .net core copy file in folder to root 
Csharp :: c# datagridview cell align center 
Csharp :: c# get all occurrences of a string 
Csharp :: list add value position c# 
Csharp :: c# how to make object rotate forever 
Csharp :: .net return result encoding as utf8 
Csharp :: create enum from int c# 
Csharp :: how to set a color of text in unity 2020 script 
Csharp :: how to add arrays in c# 
Csharp :: C# long 
Csharp :: list contains type c# 
Csharp :: Implementing video array in unity 
Csharp :: jobject alternative in system.text.json 
Csharp :: remove numericUpDown white space 
Csharp :: c# on alt + f4 
Csharp :: constant interpolated string 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =