I was referring to Generic.Diction ary(Of String, Object)
I have had a brief look at LINQ but I think to implement it would require an overhaul of the site somewhat. It doesn't seem to make sense to use it only in one place.
Also the objects I am building are not from database tables but from settings defined as committed text in the stored procedures. Which I don't think LINQ would be any good for.
User Profile
Collapse
-
Searchable Generic
I have recently been looking into using generics to hold collections of objects as I like the type safe features they provide. But I want to be able to store objects with a key for easy finding. Which is the best object to do this? Is it a dictionary? -
According to this article it is not possible to edit a controls properties using the <% %> tags. These can only be used at the top page level (i.e outside of controls).
There is however a work around.
Plater how did you get it to work?Leave a comment:
-
No IsClient is a boolean property of the CurrentOperator object.
I tried -
Code:<asp:HyperLink ID="OrdersMaintenanceLink" runat="server" Text="vbeiOrdersMaintenance" NavigateUrl="~/SE/Orders/ManageCustomerServices.aspx" Visible='<%=CurrentOperator.IsClient%>' CssClass="StandaloneLinks" />
Leave a comment:
-
I would like the hyperlink to be visbile or not depending on the IsClient property of the currentOperator object.
A single '=' is used for comparison in vb.net. a double '==' throws an error.Leave a comment:
-
Using inline code
Can anyone point me in the direction of a good article or somewhere I can learn more about inline code?
I am trying to set a links text and visibility without using the code behind file like this -
<asp:HyperLin k ID="OrdersMaint enanceLink"
runat="server"
Text='<%# TranslateTag("v beiTest")... -
Thanks, but... you haven't answered my questions at all. I know theoretically what it should do; I think the name gives it away.
Lets say for an example you had a page called EditEmployee.as px. What classes would you build to allow you to edit an entry in the employees table and what would call what to both fetch and user the Employee table?Leave a comment:
-
3 Tiered Architecture
I am trying to get a better understanding of the three tiered architecture and would like some help clarifying the interaction between classes and structure.
The Presentation layer - is easy it is simply the front end (pages, winforms, etc...)
The Business Logic Layer - This contains the domain objects i.e Car() which will hold all the properties of a particular car. One object will be created per car.
But would... -
Help with Design Pattern
I am working with VB.Net 2 on a web application.
I currently have a module which simply performs actions on the database required for the Accounts Management section on the website, for example -
GetUsers
GetUser(By Code)
GetUser(By Key)
CreateUser
DeleteUser
UnlockUser
EditUser
Etc...
This is fine but now I need to make a demo version of the website which... -
Implementing OnClick in user defined button
I am using vb.net 2.0 to create a website and I have made a user control that is my own form of a button with additional graphics and functionality.
What I would like to do is have a OnClick member of this control like the normal button does. So that user can enter the name of a method (on the parent page) when declaring the button which will be run when the button is pressed. Anyone any idea how I could implement this?
... -
Error when converting to Web Application
I have a vb.net 2.0 website and I am trying to change it to a web application.
I have followed these instructions here - http://webproject.scottgu.com/Visual...igration2.aspx
up to the end of step 4.
but at this point I get an error for every control on every page -
Error 46 'SelectOrderLab el' is already declared as 'Protected Dim WithEvents SelectOrderLabe l As System.Web.UI.W ebControls.Labe l'... -
-
Embed image in css for e-mail
I am trying to make a function for my web site that will send an e-mail to new users. This email is going to be in HTMl format and I want to include images.
Now I can embed images using -
Dim box As New LinkedResource( HttpContext.Cur rent.Server.Map Path("~/Images/box.gif"), Net.Mime.MediaT ypeNames.Image. Gif)...
box.ContentId = "el_box"
htmlView.Linked Resources.Add(b o -
Just to add -
Ideally I would like to create function that accepts a number of any type (int, decimal, etc...) and outputs the number but with all culture format changes applied.Leave a comment:
-
Change culture of number
I am using VB.Net (.Net version 2) to create a web application.
I have several pages showing numeric results that can be in the form -
"< 0.01"
"1.345345"
"1,3424.06"
etc...
I was wondering what the easiest way would be to change these results to other culture formats e.g.
"1.2" could become "1,2" for countries that use a comma instead... -
How silly of me.
Of course that is how you do it.
Sorry. This is my first time making a windows application.Leave a comment:
-
Compile to EXE
I have made a small windows application in Visual Studio 2005. I now want to compile it into an .exe file so it can run standalone but I cannot work out how to do this. I can publish it, which creates an installer but this is not what I want.
I just want to be able to run it as a single exe file.
Any ideas? -
Okay thanks but I was looking for a little more detail than that. I managed to work that much out on my own.
I want to know - where else it can be used? What is the advantages/disadvantages? Where can I find more information on it?Leave a comment:
-
I have managed to get access to the page using a proxy website. No idea why i can't get through to it. Oh well.
Thanks very much Shweta. Thats does exactly what I want.
Just out of interest In the article it uses this syntax -
DatasetName.Tab les!TableName
I have never come across this syntax before. I would always use
DatasetName.Tab les("TableName" )
What is the...Leave a comment:
-
No activity results to display
Show More
Leave a comment: