Hi, i'm trying to upload a file but when i view the file i get the error:
You don't have permission to access /images/image.gif on this server.
The code works perfectly locally but not online. I checked the permissions on the image and it was set to 600 and when i set it to 644 (via ftp) it...
Hi, sorry i just chucked the code above together as an example (untested). I found the post that helped now. I had to override the Render method by extending the DropDownList control. The problem i had is that i wished to use the DropDownList to select a category (which has a parentid) so the...
Hi, I have the following code on my page:
<asp:DropDownList ...>
<asp:ListItem Value=""> &nbps; Test</asp:ListItem>
</asp:DropDownList>
but &nbps; keeps getting replaced (i understand this is for security reasons). I read once how you could create your own control inherting from the...
Hi, i'm using my own sql server 2005 site map provider. The problem i have is that when i make a change to some of the data in the database it does not update the site map display (some cached version is displayed) unless i restart iis. Here's the code for my site map provider:
using System...
Hi, i was wondering how to submit a form from the code behind file. If i use an ObjectDataSource and a FormView i can simply do objDocument.Update();. But when i don't have a FormView, simply a button click event i don't know what to do.
I know someone will come back and ask why i want this...
Hi, i have a Repeater control within a FormView. What i need to do is when you insert a record pass the values from the TextBox (id is txtControl) within each row of the Repeater to my insert method. I have the following event handler for my ObjectDataSource's OnInserting event:
protected...
Hi, i was wondering if there was a tool that allows me to monitor page load times. I am working to make my website more efficient but at the moment it is all guess work.
Appreciate your help. Thanks
Hi, i'm having abit of trouble with some logic. I have the following functions:
public static ListItemCollection GetCategoriesListBySectionId(int sectionId) {
return GetCategoriesListItemBySectionId(null, sectionId, 0, "");
}
public static ListItemCollection...
When i hit submit none of the viewstate has been remembered and the part of the page where i have the label control renders as the following:
<p align="center">Fields marked with a <img src="/Admin/Images/Global/Star.gif" alt="Required" /> must be completed.</p>
<p align="center"></p>
This...
Hi, yep stepped through the code and it got there fine (the stepping through the html part doesn't work too great for me). It also found the label ok. However it did not make it visible.
Hi, i'm trying to do an insert using the objectdatasource control to call my method in the bll. The problem i have is handling the return type. In my code behind i have the following:
protected void objUser_Inserted(object sender, System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs e)...
Hi how do you loop through all the tables in a database and then for all the rows within the table (sub loop)
So far i've got (not sure how much is right):
SqlConnection db = new SqlConnection(_connectionString);
string[] restrictions = new string[2] {"DatabaseName", null};
db.Open()...
Hi cheers, the problem i have is that i am binding it to a strongly typed dataset created in visual studio. I've discovered it's not just strings as well it's any sql datatype including dates. Any further suggestions?
Hi, i've been playing around with the formview today and have come into a few problems. My latest problem is handling nulls from the database. For example in my code i have a textbox:
<asp:TextBox ID="txtDescription" Text='<%# Bind("Description") %>' runat="server"></asp:TextBox>
The...
Hi, i have a formview on my page which has a password field. I encrypt the password when i store it in the database so what i need to do is decrypt it on the display before they edit. I have tried doing:
<asp:TextBox ID="txtPassword" runat="server" Text='<%#...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.