Showing posts with label public. Show all posts
Showing posts with label public. Show all posts

Monday, March 26, 2012

public CascadingDropDownNameValue[] GetAllDistrict(string knownCategoryValues, string cate

want to know whether i can pass more than two arguments in the above shown webservice method..i intend to implement it in a cascading drop down list.. having two sibling dropdown lists...

so i want to pass three arguments eg..cid, brid, deptid...but a webservice allows only two of the kind...

Hi,

You can pass more information via a third parameter contextKey. For instance:

public static AjaxControlToolkit.CascadingDropDownNameValue[]
GetDropDownContentsPageMethod(string knownCategoryValues, string category, string contextKey)

protected void Page_Load(object sender, EventArgs e)
{
CascadingDropDown2.ContextKey = "contextKeyOf2";
}

Hope this helps.

public override void Dispose() throws error after loaded

in Extender Control Base I have this code

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design","CA1063:ImplementIDisposableCorrectly", Justification ="Using correct base class implementation and simply setting a flag on the way")]public override void Dispose() {this._isDisposed =true;base.Dispose(); }

After this runs I get an error in ScriptResource.axd

if (typeof(browserHandler) !=='function')throw Error.invalidOperation(Sys.Res.eventHandlerInvalid);
I am using IE 7
[Behaviors: This method releases all unmanaged resources held by the current instance. When theexplicitDisposing parameter istrue, this method releases all resources held by any managed objects referenced by the current instance. This method invokes theDispose() method of each referenced object.]

[Overrides: Override this method to dispose of resources allocated by types derived from WaitHandle. When overridingDispose(Boolean), be careful not to reference objects that have been previously disposed in an earlier call toDispose orClose .Dispose can be called multiple times by other objects. ]

[Usage: This method is called by the publicSystem.Threading.WaitHandle.Dispose(System.Boolean) method and theSystem.Object.Finalize method.Dispose() invokes this method with theexplicitDisposing parameter set totrue. System.Object.Finalize invokesDispose withexplicitDisposing set tofalse .]

Take a look at

http://www.codeproject.com/useritems/idisposable.asp

for examplees


I'll take a look at that link. thanks.