Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLimit Date Ranges to be not picked up which are already exists in the list Pin
indian14316-Nov-16 13:37
indian14316-Nov-16 13:37 
QuestionTrying to set fixed width with stringbuilder is not working correctly. Pin
samflex15-Nov-16 3:57
samflex15-Nov-16 3:57 
QuestionBest approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
indian14314-Nov-16 13:48
indian14314-Nov-16 13:48 
AnswerRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
Nathan Minier15-Nov-16 1:33
professionalNathan Minier15-Nov-16 1:33 
GeneralRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
indian14315-Nov-16 5:54
indian14315-Nov-16 5:54 
AnswerRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
Richard Deeming15-Nov-16 2:21
mveRichard Deeming15-Nov-16 2:21 
AnswerRe: Best approach to avoid confusion in Configuration file when deploying an ASP.Net MVC application Pin
Dominic Burford17-Nov-16 2:41
professionalDominic Burford17-Nov-16 2:41 
QuestionNeed help with validation on image links Pin
Bootzilla3314-Nov-16 8:56
Bootzilla3314-Nov-16 8:56 
I have fields on a form that have required validation. I want to have that validation when clicking on one of the links in the image. How do I do that. Here is the code for the image.

ASP.NET
asp:Image ID="Image1" runat="server" class="image-center" src="images/CustomerSelection.png" alt="" usemap="#Map"  />
		<map id="Map1" name='Map'>
			<area shape='rect' coords='0,0,100,100' title='Customer Selection' href="CustomerInfo.aspx" alt="Customer Selection" />
			<area shape='rect' coords='148,-2,248,98' title='Contract Information' href="ContractInfo.aspx" alt="Contract Information" />
			<area shape='rect' coords='275,-4,375,96' title='Prime Contractor' href='PrimeContractorUserControl.aspx' alt="Prime Contractor" />
			
		</map>



Here are the fields that are being validated on button click:
ASP.NET
<div class="row" style="margin-left:250px; margin-right:250px;">
	<div class="col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3">
	  <form method="POST" action="" class="form-horizontal" id="customer-form">
		 <div class="form-group">
			<label for="exampleInputServiceAgency">Service/Agency:</label>
			  <asp:DropDownList ID="custsrccode" class="form-control" name="custsrccode" runat="server">
			  <asp:ListItem ></asp:ListItem>
			  <asp:ListItem >C812 - NASA</asp:ListItem>
			  </asp:DropDownList>
				<asp:RequiredFieldValidator ID="fieldReqValidator1" ForeColor="Red" runat="server" ControlToValidate ="custsrccode"   ErrorMessage="Please select a Service/Agency">   
				</asp:RequiredFieldValidator>
		  </div>
		   <div class="form-group">
			<label for="exampleInputCustomerCode">Buying Activity Code:</label>
			  <asp:DropDownList ID="activitycode" class="form-control" name="activitycode" 
				   runat="server" AutoPostBack="true" onselectedindexchanged="activitycode_SelectedIndexChanged"> 
				   <asp:ListItem Selected="True"></asp:ListItem>  
			   </asp:DropDownList>
			  <asp:RequiredFieldValidator ID="fieldReqValidator2"  runat="server" ControlToValidate ="activitycode"   ErrorMessage="Please select a Buying Activity Code">   
				</asp:RequiredFieldValidator>
		  </div>
		  <div class="form-group">
			<label for="exampleInputName">Name:</label>
			<asp:TextBox ID="custname" class="form-control" name="custname" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator ID="fieldReqValidator3" ForeColor="Red" runat="server" ControlToValidate ="custname"   ErrorMessage="Please enter a Name">   
				</asp:RequiredFieldValidator>
		  </div>
		 
	  </form>
	</div>
  </div>
  <!--End of Row-->

  <!--Action Buttons-->
  <div class="row button_margin">
	<div class="col-md-1 col-sm-1 col-sm-offset-2"><button type="button" class="btn btn-primary" style="position:relative; left:130px; border-radius:2px; border:none; background-color:#003366; color:#f7f7f7">Exit</button></div>
	<div class="col-md-1 col-md-offset-6 col-sm-1 col-sm-offset-6">
        <asp:Label ID="Message"
            runat="Server" />
		<asp:Button ID="NextButton" Text="Next" type="button"  class="btn btn-primary" 
			runat="server" style="position:relative; right:63px; border-radius:2px; border:none; background-color:#003366; color:#f7f7f7" onclick="NextButton_Click"/></div> 
 <input type="hidden" id="hidurl" runat="server" />
       </div>
</div>
		<!--End Here -->

	</div>
	</form>
</body>
</html>


So when I click on Contract Information and the required fields on Customer Selection haven't been filled in it should give a validator message and currently it doesn't.
QuestionAssign a javascript or jQuery method to a button onClick event Pin
indian14314-Nov-16 6:24
indian14314-Nov-16 6:24 
AnswerRe: Assign a javascript or jQuery method to a button onClick event - Resolved Pin
indian14314-Nov-16 6:27
indian14314-Nov-16 6:27 
Questionhow to bind two dropdownlists using jquery,C# from backend Pin
Member 1284531611-Nov-16 1:49
Member 1284531611-Nov-16 1:49 
Rant[REPOST] how to bind two dropdownlists using jquery,C# from backend Pin
Richard Deeming11-Nov-16 2:04
mveRichard Deeming11-Nov-16 2:04 
QuestionThe datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
indian1439-Nov-16 13:19
indian1439-Nov-16 13:19 
AnswerRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
Richard Deeming10-Nov-16 2:13
mveRichard Deeming10-Nov-16 2:13 
GeneralRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
indian14310-Nov-16 5:53
indian14310-Nov-16 5:53 
GeneralRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
Richard Deeming10-Nov-16 5:58
mveRichard Deeming10-Nov-16 5:58 
GeneralRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
indian14310-Nov-16 6:30
indian14310-Nov-16 6:30 
GeneralRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
Richard Deeming10-Nov-16 6:48
mveRichard Deeming10-Nov-16 6:48 
GeneralRe: The datepicker input items that are added at runtime using Jquery are not firing the datepicker event Pin
indian14310-Nov-16 6:51
indian14310-Nov-16 6:51 
Questiondiv controls outside of a repeater should be made invisible Pin
Scott529-Nov-16 5:17
Scott529-Nov-16 5:17 
AnswerRe: div controls outside of a repeater should be made invisible Pin
Richard Deeming9-Nov-16 5:42
mveRichard Deeming9-Nov-16 5:42 
GeneralRe: div controls outside of a repeater should be made invisible Pin
Scott529-Nov-16 7:59
Scott529-Nov-16 7:59 
GeneralRe: div controls outside of a repeater should be made invisible Pin
Scott529-Nov-16 9:57
Scott529-Nov-16 9:57 
GeneralRe: div controls outside of a repeater should be made invisible Pin
Richard Deeming9-Nov-16 10:38
mveRichard Deeming9-Nov-16 10:38 
QuestionMessage Closed Pin
9-Nov-16 2:00
Pk Fun Zone9-Nov-16 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.