Hi All, I am insterested in either building or purchasing an application that will assist users in troubleshooting technical issues. Something similar to the Modem Troubleshooter in the Windows XP help and Support Center. Does anybody know if it is possible the customise the troubleshooter tools in the Windows Help and Support center? thanks for you help, Tom
mcd2424
Posts
-
Troubleshooting application -
Dynamically creating objects using reflectionthanks Phil, Would you mind showing me a quick example of how to create a string via reflection. This is what I tried using before but it allways returns null.
Type[] ArgTypes = new Type[1] {Type.GetType("System.String") }; ConstructorInfo oConstructorInfo = paramType.GetConstructor(ArgTypes );
thanks -
Dynamically creating objects using reflectionHi Phil, Right now I am just trying to create strings and ints, but will have to create other types of objects. All will be public but some will be parameterless constructors some will not. Thanks, tom
-
get folder content form a webserviceHi, Not sure what part you need help with, but the easiest way to consume a webserivice is build a proxy class in vs.net. Just right click on the name of your project in the soloutions explorer and the select add webreference. Then enter the url to the WSDL of your webservice and click on the add web reference button. You can then call the methods of your webservice by doiing th following. webreferenceNameyoucreatedabove.methodName(); Regards, tom
-
Dynamically creating objects using reflectionHi All, I am trying to dynamically create object based on values that being submited from a form, but keep on getting a "No parameterless constructor defined for this object." error.
Type paramType = Type.GetType("System." + Request["type"]); //The Type of object String paramValue = Request["val"]; //the value if (paramType != null) { Activator.CreateInstance(paramType); }
-
How to Bind Click Events for Image Buttons on a Template Columns in a DataGrid?Hi, You can use oncommand for the imagebutton. Add an image button to your template like so. < Then just create a method that does what you want.
protected void ImageClick_Command(object sender, CommandEventArgs e) { Response.Write("test"); }
Regards tom -
Switch QuestionThanks for the reply. I tried that but then I get the error: A value of an integral type expected this is the only work around that I can think of, but it isnt really an ideal solution: switch (pInfo.ParameterType.Name) { case "String": Response.Write("is type of string"); break; } I cant believe you cant do this in c#! thanks
-
Switch QuestionHi All, I am converting some of my vb.net code to c# and have run into a problem.
Select Case True Case p.ParameterType Is GetType(String) Response.Write("paramater is a string") End Select
the code above works but when I try to convert to c# I get the error: A constant value is expected.switch (true) { case pInfo.ParameterType == typeof(String): Response.Write("is type of string"); break; }
Is there any way to do this in c#? thanks tom -
Asp.net User controlsGuffa, thanks for the reply. I kind of figured that. I guess I will store the response from the webservice in a session vaiable and then just redisplay the headlines on postback.
-
Asp.net User controlsHi I have built 2 .net user controls and placed them both on the same page. One control (headlinedisplay.ascx) displays headlines from a webservice and the other displays the full article of a headline when you click on a headline links in the first usercontrol(articleDisplay.ascx). I am displaying the headlines from headlinedisplay by progamatically creating asp/html controls. The problem I have is that when I click on a headline(linkbutton) and the Articleclick event fires to render the article the headlines in the headlinedisplay user control dissapear becuase of the post back. I think this happens because the controls were created dynamically and I need to redraw them. (If I through the data into a datalist this doesnt happen but leads to other problems so i cant really use that as a solution) Does anybody know of away around this? thanks for your help,
-
Links in a RTF DocumentHi All, I have a aspx page that creates a RTF document. In the rtf doc I need to create links to other webpages. Does any one know how to programatically create links in RTF. I have been trying to figure this out for 3 days with no luck. Thanks