Help Converting ASP to ASP.Net
| Author | Topic |
|---|---|
| Rip Munsterman Member Joined: 07 Aug 2002 Homepage: link Country: USA Posts: 1 | I have spent this entire week reprogramming all my current ASP pages (they are templates that are using ASP to pull info from SQL Server, so there aren't that many of them) to ASP.Net. I can't seem to figure out how to convert some ASP code to ASP.Net, and I cannot do without it. All my pages have navigation on the left hand side that is constructed from tables in my SQL database. A hierarchy of main menus and sub menus is returned from I have spent this entire week reprogramming all my current ASP pages (they are templates that are using ASP to pull info from SQL Server, so there aren't that many of them) to ASP.Net. I can't seem to figure out how to convert some ASP code to ASP.Net, and I cannot do without it. All my pages have navigation on the left hand side that is constructed from tables in my SQL database. A hierarchy of main menus and sub menus is returned from SQL. Example: Main Menu 1 Submenu 1 Submenu 2 Main Menu 2 Submenu 1 Submenu 2 Main menus and sub menus have a relational field called “MainMenuLink”. Also, certain actions are taken depending on variables located in the Submenus table. If you want to see the code in action, go to fpg.mcphu.edu/templates/help.asp. I have removed everything but the navigation to make things easier. An example of the code in production can be seen at www.topdocsonline.com/Pediatrics. The code can be viewed at fpg.mcphu.edu/templates/help.txt. I can't tell you how much I would appreciate some assistance with this. I am going crazy trying to figure this out. I have left work the past couple days exhausted from spending all day experimenting and searching for an answer, but I haven't gotten any close to solving my problem! <img src=../images/dnzone/forum/icon_smile_dead.gif border=0 align=middle> Thanks in advance! Rip Munsterman Webmaster Drexel University College of Medicine |
| Viktor Farcic Member Joined: 17 Jul 2002 Homepage: link Country: Spain Posts: 3 | I don't understand what exatly your problem is. This menu can easily be done using few datagrids or (better solution) using one repeater. I don't understand what exatly your problem is. This menu can easily be done using few datagrids or (better solution) using one repeater.<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> I have spent this entire week reprogramming all my current ASP pages (they are templates that are using ASP to pull info from SQL Server, so there aren't that many of them) to ASP.Net. I can't seem to figure out how to convert some ASP code to ASP.Net, and I cannot do without it. All my pages have navigation on the left hand side that is constructed from tables in my SQL database. A hierarchy of main menus and sub menus is returned from SQL. Example: Main Menu 1 Submenu 1 Submenu 2 Main Menu 2 Submenu 1 Submenu 2 Main menus and sub menus have a relational field called “MainMenuLink”. Also, certain actions are taken depending on variables located in the Submenus table. If you want to see the code in action, go to fpg.mcphu.edu/templates/help.asp. I have removed everything but the navigation to make things easier. An example of the code in production can be seen at www.topdocsonline.com/Pediatrics. The code can be viewed at fpg.mcphu.edu/templates/help.txt. I can't tell you how much I would appreciate some assistance with this. I am going crazy trying to figure this out. I have left work the past couple days exhausted from spending all day experimenting and searching for an answer, but I haven't gotten any close to solving my problem! <img src=../images/dnzone/forum/icon_smile_dead.gif border=0 align=middle> Thanks in advance! Rip Munsterman Webmaster Drexel University College of Medicine <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> |
| Daren Lahey Member Joined: 02 Aug 2002 Country: Posts: 3 | vfarcic is correct. A DataList (more than a DataGrid) or a Repeater control will do the trick. What you will need is to put a HyperLink control in your above mentioned preferred list control: vfarcic is correct. A DataList (more than a DataGrid) or a Repeater control will do the trick. What you will need is to put a HyperLink control in your above mentioned preferred list control:< *asp:Hyperlink Id="HyperLink" Runat="server" NavigateURL="< *%#DataBind.Eval(Container.DataItem, "myLink" *remember to eliminate the extra speces I have put to let you see the code... Daren J. Lahey |
Posted: 07 Aug 2002 22:20:27










