Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jgd123456

    Permissions error when uploading

    Genius, worked a treat. Thanks
  2. jgd123456

    Permissions error when uploading

    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...
  3. jgd123456

    DropDownList ListItem Text Being Replaced

    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...
  4. jgd123456

    DropDownList ListItem Text Being Replaced

    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...
  5. jgd123456

    Custom Site Map Provider Caching Problem

    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...
  6. jgd123456

    Submit form from code behind

    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...
  7. jgd123456

    Problem Passing Values from Repeater

    Problem solved turns out it wasn't an error just me being stupid.
  8. jgd123456

    Problem Passing Values from Repeater

    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...
  9. jgd123456

    Tool to Monitor Page Loads

    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
  10. jgd123456

    Recursive function logic problems.

    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...
  11. jgd123456

    Handling the inserted event of the objectdatasource problems

    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...
  12. jgd123456

    Handling the inserted event of the objectdatasource problems

    Hi, here's the html part: <%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="New.aspx.cs" Inherits="MyAppNamespace.UI.Admin.Admin_Users_New" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server"> <h1>New User</h1>...
  13. jgd123456

    Handling the inserted event of the objectdatasource problems

    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.
  14. jgd123456

    Handling the inserted event of the objectdatasource problems

    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)...
  15. jgd123456

    How to loop through tables in the database

    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()...
  16. jgd123456

    Working with nulls in formview

    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?
  17. jgd123456

    Working with nulls in formview

    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...
  18. jgd123456

    How to apply custom logic to databound controls in formview

    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='<%#...

Part and Inventory Search

Back
Top