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 Chriss 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: *

  • Users: StevenK
  • Content: Threads
  • Order by date
  1. StevenK

    Refreshing controls in masterpage from user control (CallBack issue)

    I have a public method in my applications MasterPage which I can call from within a UserControl - i.e. by: ((MasterPage)this.Page.Master).MyMethodName(); This works fine from behind a button say (in the User Control) as we're effectively doing a postback. This updates a label control in the...
  2. StevenK

    Changing GridView cell colour based on DropDownList selection

    I have a DropDownList control within a cell in a row in a GridView control on my web page. Ideally what I want is that when a user changes the selection in the DropDownList control, the cell changes colour (i.e. maybe green) to indicate some further action needs to be taken - i.e. the 'Update'...
  3. StevenK

    Editing grid entries via ComboBox

    I need to have a GridView component (or AspxGridView if need be) on a web page - and be able to have a ComboBox (or equivalent) in one of the columns. This will show a status for the respective record - i.e. 'Pending', 'Active', 'Completed', 'Cancelled', etc. - which is stored as an integer and...
  4. StevenK

    GridView and vertical gridlines

    I'm making use of a standard GridView control (in ASP.Net with C# code). I want vertical grid lines - however when I set the GridLines property (for the GridView control) to either 'Vertical' or 'Both' - the resultant vertical line is only faint (possibly a light blue thin line). How can you...
  5. StevenK

    Changing DateTimeFormat in a Windows Service

    I had a Windows application that was processing files and as part of that was converting strings into dates. In the Windows app - the entry of 'Nov-08' was being converted to a date with: - day = 1 - month = 11 - year = 2008 However within a Windows service (using the same code as the...
  6. StevenK

    Removing a share?

    I was attempting at setting up some shares between a couple of projects - in order to save me time repeating / maintaining code. I set up a couple incorrectly. How can I remove a share through the Visual Sourcesafe interface? Thanks in advance. Steve
  7. StevenK

    OpenRowset from csv/Excel file with "1,000" entries...

    I'm using sql syntax like the following: select * from OpenRowset('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)}; DefaultDir=C:\MyDirectory\', 'select top 1 * from MyFile.csv') This works well. Except for the case that I sometimes have numeric entries in the '.csv' file...
  8. StevenK

    Obtaining column/field names from a csv file via SQL

    I'm looking to make use of data held within '.csv' files via SQL syntax. However the fields held in these files can differ. How can I obtain the list of column/field headers from a named 'csv' file via SQL syntax? I'm currently using the following (for example) to return a result set - which...
  9. StevenK

    Excel 'Convert to Number' via VB code

    I'm putting together some information in Excel (2007) via a macros which is run under a button click. The resultant cells contain some numeric information - i.e. '£100.00', '£200.00', etc. When these are displayed in Excel they show the small green triangle in the top left corner of the cell...
  10. StevenK

    Run-time error '1004' when running SQL stored procedure (VB in Excel)

    I'm making use of some stored procedures to load cells within an Excel (2007) spreadsheet via macros (with VB code). The majority of these are working fine and outputting the cell data as required (and then letting me produce charts from these). However I've just introduced a new stored...
  11. StevenK

    Obtaining User information outside of Page

    I have the need to establish whether the current user is in a role (using 'IsInRole("ADMIN")') in one of my code classes. However given I'm outside of the 'Page' object I can't use the code Page.User.IsInRole("ADMIN") for example. How can I achieve this? Thanks in advance. Steve
  12. StevenK

    Setting a property against a control in MasterPage

    I have a MasterPageFile set against my web forms in an application. In certain circumstances I want to set the property of one of the controls - namely the Text against a Literal control (when the user has logged in and the company login is then known). How can I do this? So I want to have code...
  13. StevenK

    GridView.RowCommand not firing on first run of UserControl

    I have a set of WebUserControls on a web page (these are defined at design time and loaded with data at run time). The WebUserControl has a GridView in it which has a RowCommand event set (again at design time). When I first run my web page (which has the data loaded into the UserControl's...
  14. StevenK

    GridView RowCommand in dynamically created WebUserControl

    Can anyone offer a good link / example of having a GridView with a RowCommand inside a dynamically created WebUserControl. I'm trying to achieve the following... Based on user selections (from checkboxes / dropdownlists) I'm creating a number of WebUserControls dynamically and adding these to a...
  15. StevenK

    Use of 'getElementById' within WebUserControl

    I'm trying to make use of some javascript code in a WebUserControl but seem to be failing miserably... :( In a standard web form I can have the following code: <form id="form1" runat="server"> <script language="javascript" type="text/javascript"> function SomeFunction() {...
  16. StevenK

    Hiding a TemplateField conditionally

    I am making use of an asp:GridView control and in it have the following TemplateField: <asp:TemplateField HeaderText="Delete" > <ItemTemplate> <asp:ImageButton ID="imgbtnDeleteEntry" runat="server" ImageUrl="~/Images/gifs/delete.gif" AlternateText="Delete" ToolTip="Delete Entry"...
  17. StevenK

    Updating via a dynamic WebUserControl

    I have a web form which allows a user to search on data. The returned data is grouped by a 'groupfield' (say for example) - and for each change of 'groupfield' a new WebUserControl is added to a panel on the main web form (having been cleared initially). Within the WebUserControl I show the...
  18. StevenK

    Web User Controls not working well together....

    I'm making use of a number of web user controls in a web page. I'm making use of Visual Studio (with C# code) The first of these has a simple MultiView control in it with 2 View's. The second has a series of ASPxButtons - sharing the same GroupName - so that only one can be checked at a time...
  19. StevenK

    Setting Height of ASPxButton control?

    I'm making use of a series of ASPxButton controls in a table - such that these are placed one per column in a single row. This creates a series of buttons along the top of my user control. Given the text wraps and the text is of differing size / length - some of the buttons have a greater...
  20. StevenK

    Response.Redirect() to open new browser window....

    I'm hoping this is a simple problem... I tend to make use of Response.Redirect to navigate between pages within my web application. In a few instances I want to be able to navigate to a different page - but in the scope of a new browser window. How can I do this? I want this to happen when the...

Part and Inventory Search

Back
Top