If Not value or value then....
Hi all,I want to write a simple IF Not then statement in ASP.net 2.0 and I would like some help please. If Not ntuser = "DOMAIN\ntuser" Or ntuser = "DOMAIN\ntuser2" Then
Panel1.Visible = False
End If Doesnt work, can you tell me where i'm going wrong please?many thanks.
The first place you're going wrong is in telling us it "doesn't work" without providing any details.
JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
Use Not as stated below. It ...Single Value to Multi Value attribute
I have an attribute 'source', in my eDirectory
DESC 'to capture the source where the user or group is pulled from'
- I need to modify this attribute from Single valued to Multi-value
- I also need to modify the name of this attribute from 'source' to
can any one please give me the exact syntax for the the above
...stripping values for a multi-valued attr
I'm trying to stip a value from a multi valued attr, which should be
nice and simple but I just cant get it to work!
I have an input document like -
<add class-name="User" event-id="xx" qualified-src-dn="xxx\CN=testmult5"
<value timestamp="1227312739#15" type="string">TRN1</value>
<value timestamp="1227314557#1" type="string">TRN2</value>
I ...How to return a value or gain the value in for to loop?
Hi...I am a new bie in vb.net....I face a problem to return a value in for to loop, below is my code:If cb_Payroll.SelectedValue <> "" Then For i As Integer = 0 To Me.cb_Payroll.Items.Count - 1 If Me.cb_Payroll.Items(i).Selected = True Then Dim var_Payroll As Integer &nb...How to enumerate all values in multi-value property?
I'm not much of a devoloper (as you can propably tell ;-)), but I need to make a slight modification for HMC 4.0's MPSSampleWebUI. I need to be able to enumerate all values of multi-value property.
Enumeration of one property value works fine, for example using following:
GetPropertiesRequest getPropertiesRequest = new GetPropertiesRequest(); getPropertiesRequest.Data = new GetPropertiesRequestData(); getProperties...Return values from a test as a right value.
Hello Perl QA Wizards,
I apologize in advance if this is documented somewhere, because I must
have missed it.
Is it OK to have the return value from a test be something more than
just true when a test passes? Thus the test might be used as a right
value in the test script.
I am working on a test suite to support distributed functional
testing. I have a test 'like_body(<request>, <expected>, <name>)'. It
makes a request of another system and compares the result returned
from the other system with expected.
There may be information in the ...How do you return multi values
I have a routine that passes 2 strings to another routine 'HighLightSelectedTab(Image1,Image2)''to manulipate
String Image1 = "./images/tabangle2_b1.gif";
String Image2 = "./images/tabangle2_b2.gif";
String Image3 = "./images/tabangle2_blank.gif";
String Image4 = "./images/tabangle2_blank.gif";
public void SetupMenuImages(string Image1, string Image2, string Image3, string Image4)
public void HighLightSelectedTab(string Image1, string image2) //, string Image2, string Image3, string Image4)
// string Image = Image1.ToString();
...multi return values
(Sorry if this dbl-posts, sent it from the wrong account the first time)
Hi all, what's wrong with this code:
sub multireturn($x, $y)
my $a = $x * 2;
my $b = $y * 2;
my($a, $b) = multireturn(2, 3);
This is Rakudo Perl 6, revision 32970 built on parrot 0.8.1-devel
Method 'lvalue' not found for invocant of class 'PAST;Stmts'
current instr.: 'parrot;PAST;Compiler;as_post' pc 2924
called from Sub 'parrot;PAST;Compiler;post_children'...App.Config returning null values in Windows Services but returns right values in Windows Application.
I have created an Windows Service where I am using App.Config for global variables. But, it is always returning null values (string xyz=ConfigurationSettings.AppSettings["abc"]) for all the variables I have declared in App.Config.
(But the same thing if I am doing as a Windows Application then it's returning the right values.)
Interestingly, this same Windows Service is working properly in another machine but not working in other three machines.
Can anyone please help me to resolve this issue.
Thanks a lot.
Since this is a Windows service, I recommend yo...mixing formfield values with returned values in INSERT
Greetings,My first post, be kind :) OK, I have a webform with a calendar and serveral time selection fields. I want to insert a time record in a time_entry table. I need to lookup a 'Date_ID' from a table based on the selected calendar date. I can get this to display in a label OK. Now I want to mix the returned value with the time selection formfields and INSERT it. Can I combine the SELECT date_id FROM dates with the VALUES list in a single stored procedure somehow? Here is the code... (keep in mind my newb status.. lol). Thanks in advance...
<%@ ...How to return value from dynamic query or set the value
Hii I am Varun i have a problem with the dynamic stored procedure
This is my stored procedureALTER PROCEDURE dbo.sp_TimeTableAdjustment1
@DateFrom datetime ,@DateTo datetime , @UserID numeric(9)
declare @flag as numeric(9)
declare @year as varchar(4)
set @year=(select batch from batchmaster where iscurrent=1 and isdeleted=0)
if( @year=null or len(@year)=0)
set @year = year(getdate())exec ('if not exists(select * from timetableadjustments_'+@year+' where datefrom='''+@datefrom+''' and dateto=''...textboxes values must return a boolean value
Hi All,I'm trying to check whether the data entered in a group of text box is valid or invalid. If valid the text boxes must return a single boolean value. Happy coding. Please remember to mark the replies as answers if they help and unmark them if they provide no help.
We want to synchronize a multi-valued attribute (created by our own) to a
multi-valued attribute in the other edirectory store. But when we are
adding attributes we only have the changed values. The previous one is
lost. When deleting one value in the Identity Vault then it removes the
attribute from the object.
Any ideas ?
> We want to synchronize a multi-valued attribute (created by our own) to
> multi-valued attribute in the other edirectory store. But when we are
> adding attributes we only have the changed values. The previous one is
> lost. When deleting ...PickList field with values from a multi-valued attribute
I have a PickList field in my form that I want to fill with a list of
values. Let's call that field "department".
The values must be dynamically obtained from a multi-valued attribute
of a given Organizational Unit. Let's call that attribute
"list-of-departments". I have a DAL entity that exposes the object
class (Organizational Unit) and its attribute. Let's call the DAL
entity "OU" and let's call the exposed attribute key
"list-of-departments" (like the attribute itself).
Of course, I have a field that cont...