jkirkerx wrote:
You have to use javascript for countdown timers.
I can't because i'm getting all kinds of parameters from server side and then activating the timer.
jkirkerx wrote:
You have to use javascript for countdown timers.
I can't because i'm getting all kinds of parameters from server side and then activating the timer.
Joshua Omundson wrote:
Are you getting any type of error messages or is the button just not being disabled?
Nop, i don't get any error, the button is just not being disable.
Joshua Omundson wrote:
Can we also see the code when you are disabling the button
I'm doing it at the page load event in side some if condition. Also tried puting it inside the time tick event. When i debuged it i saw that the if statment return true.
Hi, You can use editble grid view
Hi, I'm trying to creat a timer that count down and when it reaches 00:00 to alert with a popup and disable the form. Here is the client side code:
I'm disabling the timer at the Timer_Tick event, checking when the minutes and seconds are 0. My problem is that i can't disable the form or the submit button. Can someone please assist me?
Thanks for the reply, O.K. i really using VS 2005 with visual studio, but i can't understan what i need to do in order to handle the case sensitive problem.
MSDN:
2.If you cannot rename the members in the defining type, remove the cited programming element from your code. You cannot access an element that appears to Visual Basic to have multiple definitions.
Hi, I can't find some property in web service, but if i write it anyway i'm getting this error: 'Property Name' is ambiguous because multiple kinds of members with this name exist in class 'WebService Class Name' Can some one please help me???:confused:
Hi, Can someone please explain me what those lines are doing?
document.getElementById("form1").target="FormName";
document.getElementById("txtLabel").value="SendingFile";
document.getElementById("form1").submit();
document.getElementById("form1").target="_self";
document.getElementById("txtLabel").value="";
iframeAttach.document.getElementById("txtAttached").value="";
Thanks
nope, all of them ar currect
System.DirectoryServices.AccountManagement.PrincipalOperationException was caught Message=Unknown error (0x80005000) Source=System.DirectoryServices.AccountManagement ErrorCode=-2147463168
Hi, I'm trying to add new group, but getting an error: error (0x80005000) this is my code- /// <summary> /// Creates a new group in Active Directory /// </summary> /// <param name="sOU">The OU location you want to save your new Group</param> /// <param name="sGroupName">The name of the new group</param> /// <param name="sDescription">The description of the new group</param> /// <param name="oGroupScope">The scope of the new group</param> /// <param name="bSecurityGroup">True is you want this group /// to be a security group, false if you want this as a distribution group</param> /// <returns>Returns the GroupPrincipal object</returns> public GroupPrincipal CreateNewGroup(string sOU, string sGroupName, string sDescription, GroupScope oGroupScope, bool bSecurityGroup) { PrincipalContext oPrincipalContext = GetPrincipalContext(sOU); GroupPrincipal oGroupPrincipal = new GroupPrincipal(oPrincipalContext, sGroupName); oGroupPrincipal.Description = sDescription; oGroupPrincipal.GroupScope = oGroupScope; oGroupPrincipal.IsSecurityGroup = bSecurityGroup; oGroupPrincipal.Save(); return oGroupPrincipal; } /// <summary> /// Gets the principal context on specified OU /// </summary> /// <param name="sOU">The OU you want your Principal Context to run on</param> /// <returns>Returns the PrincipalContext object</returns> public PrincipalContext GetPrincipalContext(string sOU) { PrincipalContext oPrincipalContext = new PrincipalContext(ContextType.Domain, sDomain, sOU, ContextOptions.SimpleBind, sServiceUser, sServicePassword); return oPrincipalContext; }
The code thaken from here- Everything in Active Directory via C#.NET 3.5 (Using System.DirectoryServices.AccountManagement)[^] i think the error comming from here- GroupPrincipal oGroupPrincipal = new GroupPrincipal(oPrincipalContext, sGroupName);
what i'm doing wrong? :(
Pete O'Hanlon wrote:
Whereever you see xmlns in your XML, that's the namespace that you need to include to pick it up.
Still same error "Sequence contains no elements"
Pete O'Hanlon wrote:
you've forgotten to add the XML namespace to the query
Like this? XNamespace myNamespace = "some attribute"; var query = from response in xmlDoc.Elements(myNamespace + "PersonsMin") select response;
XNamespace is the XAttribute?
Hi, I've the following XML-
<MessageParts xmlns="http://www.address.com">
<Status xmlns="">
.
.
.
.
<Data>
<PersonsMin xmlns="some attribute">
.
.
.
<Parts>
.
.
.
</Parts>
</PersonsMin>
</Data>
</Status>
</MessageParts>
I'me trying to get all the elements in PersonsMin. var query = from response in xmlDoc.Elements("PersonsMin") select response;
But i'm getting "Sequence contains no elements". What i'm doing wrong?
10x :-D
Ennis Ray Lynch, Jr. wrote:
DateTime.ParseExact("20011215", "yyyyMMdd"); //note the capital M's
What about the IFormatProvider at the constructor? There is no constructor at the ParseExact that takes 2 parameters
modified on Wednesday, June 15, 2011 3:37 PM
Hi, I have a string with the format yyyymmdd. I'm trying to convert it to date time by DateTime.Parse(myString), but i'm getting an error. How can i convert it?
Hi, When i'm trying to get the user that login to windows when my application is on IIS i'm getting this user: IUSER. I think it's somethink from the IIS because it works fime when it's running on my local computer. i tried adding to the web.config-
<authentication mode="Windows"/>
<identity impersonate="false"/>
But still nothing. Can someone please help me? :doh:
John Simmons / outlaw programmer wrote:
Well why didn't you f*ckin say that in your original message? How are we supposed to read your simple little mind when it generates almost no electrical energy on its own?
f*ck you
I don't want to use the random class. i want to ceate this by my own.
Hi, I'm trying to create a function that gets 2 numbers and returns a random number between those two number. help please