-
for the first case just use conditional formatting on the second dropdown
if dropdown1 is blank
disable this conrol
-
-
you cant just go and add items to dropdown or listbox at run time like we do in .net.
we have to bind the listbox to a repeating table and when u want to insert one more item to the listbox insert it into the repeating table and it will reflect in the list box since it is bound.
-
try
count(../preceding-sibling::*) + 1
-
var MailMsg = new MailMessage();
-
use data validations for that
suppose u have two fields
field1
field2
field2 is required only if field one has "yes" value.
on field2 rightclick and click data validation -> Add
field1 is equal to Yes and
field2 is blank
then enter the tip .. and click ok
now this field will be required if field1 = Yes
-
you cant enable a control, you can disable a control via conditional formatting.
so do reverse of what u intended to do.
-
include this statement in your submit procedure
e.CancelableArgs.Cancel = false;
-
change the paragraph
private void DecodeAttachment(BinaryReader theReader)
{
byte[] headerData = new byte[FIXED_HEADER];
headerData = theReader.ReadBytes(headerData.Length);
fileSize = (int)theReader.ReadUInt32();
attachmentNameLength = ...
-
try signing the form, go to tools -> form options -> security and trust and sign the form template.
If that does not resolve your problem you might have to give full trust to your form, but i guess signing should do it