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...
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'...
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...
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...
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...
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
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...
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...
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...
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...
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
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...
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...
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...
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()
{...
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"...
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...
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...
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...
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...
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.