Can some help me convert this ASP Resource to ASP.NET?
We're on the verge of upgrading to 9.5 but don't want to lose this functionality.
It puts the HP Management Homepage on the node details page.
JB
Can some help me convert this ASP Resource to ASP.NET?
We're on the verge of upgrading to 9.5 but don't want to lose this functionality.
It puts the HP Management Homepage on the node details page.
JB
Some pointers to other stuff on the web for people getting started with ASP.NET:
www.codeproject.com/.../aspnetintro.aspx
Tim- thanks for the input. Just to clarify:
The old *.Resource files that were the classic ASP files must now be *.ascx files.
Also, I assume as before they go in the respective location with respect to the type of view that they will be added to (summary, node details, etc)? -> .\Inetpub\SolarWindsNPM\Orion\NetPerfMon\Resources\*******
Yes, that's right. Actually, in your path (.\Inetpub\SolarWindsNPM\Orion\NetPerfMon\Resources\*******) the "*******" doesn't affect what type of view they go in. That's controlled by the "RequiredInterfaces" property in the code for the resource. The "*******" directory just controls what group they go in on the Add Resource to View page.
One last (and EXTREMELY complicated) question about the new .NET resources.
We used a classic ASP resource and several static tables in the database to create a sort of system inventory that was tied to each node- it just displayed some simple stats such as CPU type, Memory installed, etc. Being that my .NET knowledge accounts to about zero, I'm stabbing in the dark here.
With the classic ASP, the 'NetPerfMon.NewSQLResource' was used a ton...and I'm at a loss as to how to replicate that functionality. I can't find a similar function- I assume it's all embeded in the DLLs or somewhere else. While I'm sure it would be possible to set up a new connection to the DB simply to read some static data, I figured it would be easier to use something like the NewSQLResource...is there such a thing?
Thanks!
Here's a very basic sample of running a SQL query and displaying it as a table in the resource. In this example, I'm taking advantage of the automatic databinding of ASP.NET's DataGrid control. The columns to display are determined by whatever columns are returned by the SQL query.
Here's a fancier version. This gets rid of the DataGrid with automatic databinding and replaces it with an ASP.NET Repeater control. This control requires you to specify all of your HTML explicitly, but the benefit is that you get more control. I used that control to make the node names links to their Node Details pages with full support for the Toolset right-click menu and the new 9.5 node details popups.
Here's a fancier version. This gets rid of the DataGrid with automatic databinding and replaces it with an ASP.NET Repeater control. This control requires you to specify all of your HTML explicitly, but the benefit is that you get more control. I used that control to make the node names links to their Node Details pages with full support for the Toolset right-click menu and the new 9.5 node details popups.
Tim,
Thanks for sharing this. I'll have to play around with this a little and see if I can figure out how to expand on it. Also, for some reason I can't open the simple example. It just shows up as blank for me... :(
One of the biggest benefits to Orion is the ability to customize the website, and even though you guys are not responsible for customizations implemented by your customers, it's good to see that you are willing to offer tidbits of info that allow us to better understand what we need to do to keep up with the changes in the base product. :)
tdanner
Is there another example of this code that is updated? I am new to ASP.NET and I would like to adapt the SQL for a different application.
I tried placing this file in the c:/inetub/Solarwinds/Orion/FancyCountOfInterfacesOnCiscoNodes.ascx and accessed it the https://local/Orion/FancyCountOfInterfacesOnCiscoNodes.ascx, but it doesn't seem to be displaying anything.
I am trying to take this as a base to modify for a new implementaion.
Thanks again,
Charles Gura
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.