Annulleret

Troubleshooting a [url removed, login to view] ImageButton Server Control on Property Setting Behavior

I have an [url removed, login to view] server control (C#.NET 2.0) which has few direct string properties and some Composite properties. The example of composite properties are as “[url removed, login to view], [url removed, login to view]” etc. an example of direct properties are as “Text, ImageURL “…etc.

Now, I have implemented a designer action list so that I can edit values of direct and composite properties from the design time Visual Studio smart tags. In my smart tag, I added two properties for edititing. “Text” and “[url removed, login to view]”.

Now, I am getting some unexpected bevavior for setting the property values from SmartTag.

I have used following snippet for setting properties:

private void SetProperty(string propertyName, object value)

{

string[] props = [url removed, login to view]('.');

object obj = [url removed, login to view];

for (int i = 0; i < [url removed, login to view]; i++)

{

string prop = props[i];

if (i == [url removed, login to view] - 1)

{

PropertyDescriptor property = [url removed, login to view](obj).Find(prop, true);

[url removed, login to view](obj, value);

}

else

{

PropertyDescriptor property = [url removed, login to view](obj).Find(prop, true);

obj = [url removed, login to view](obj);

}

}

}

Something needs to be fixed within this snippet.

I have attached a ZIP file which contains a MS Word file that describes the problem in details with SCreenShots. Also the Zip file contains the complte source code for the server control.

I need the solution urgent, so please do not bid before you carefully reviewed the source file and understood the problem and if you can solve it. I would highly appreciate.

Regards.

Færdigheder: .NET, ASP, Windows Skrivebord

Se mere: two string problem, string problem, int i, asp net list find, server studio, obj c, void, visual net, troubleshooting, snippet, object designer, obj, int, control designer, property code, net private, split file, string find, bid net, net etc, urgent solution, asp word, list control, direct source, time string

Om arbejdsgiveren:
( 14 bedømmelser ) Whitby, Canada

Projekt-ID: #268417