how do i set a CSS attribute programaticaly?
i guess it'0s in the controler?
what i need to do is set a diferent background image to diferent pages, what is the correct way to do it?
View Complete Post
Hi, I have some pages that need user to sign in. If not, I need to redirect user to signin page. I know this can be done by using some code like"<system.web><authorization><deny users="?"/></authorization></system.web>" in web.config.
But can I just write some code to do the same function?
like in page load method, I can check whether user is sign in, if user is not signed in yet, how can I redirect user to the login page by using code? and how can I stop sending the content of the page to user?
Can anyone teach me about this?
radRating = new
radRating.ItemCount = 5;
radRating.Value = 5/2;
when page loads only 2 star are displaying dark means rated not '2 and half' star. or when radRating.Value = 9
Not sure which category to put this question in, so I will put it in here.
Just to give you an idea of the layout of my solution, I have the main project, along with 2 class libraries, BLL and DAL. (Business Logic Layer and Data Access Layer)
The BLL refers to the DAL and the main project refers to the BLL.
I had a test website and the code worked fine, but the same code will not work on the real project. The only difference is that in the test project, the code was on an aspx code behind, whereas in the real project, it is an ascx code behind (Web User Control )
The code is:
Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString
Dim recordEntry As New UserRecord(connectionString)
recordEntry.UserName = "TestName"
recordEntry.BMI = bMI
recordEntry.BMR = bMR
recordEntry.FTM = fTM
recordEntry.TDEE = tDEE
recordEntry.TodayDate = dateForToday