I have a list of objects which need to be output 2 items per row, and with each alternate row to have a different background (using different CSS classes).
Currently, I'm using a DataList, binding the list to it, RepeatColumns=2, RepeatDirection="horizontal". ItemStyle and AlternatingItemStyle are being used to style the two columns. Th...
I am using AutoComplete Extender from Ajax control tool kit.
I have a webservice that this extender uses. In the web method I need to access a value "empid" which is present in my aspx page. I placed this value in HttpContext's Items collection in my aspx page.
HttpContext.Items["empid"]=;
In the web method I am trying to access the ...
In many places in msdn documentation you can find references to App_Data directory. For example here we can read:
To improve security when using a local data file in an ASP.NET application, you should store the data file in the App_Data directory.
and
Files stored in the App_Data directory
will not be served to the Web.
I...
I created my own database schema to store user information.
CREATE TABLE [dbo].[MyCustomMembership_Users](
[UserId] [uniqueidentifier] NOT NULL,
[UserName] [nvarchar](256) NOT NULL,
[LoweredUserName] [nvarchar](256) NOT NULL,
[MobileAlias] [nvarchar](16) NULL,
[IsAnonymous] [bit] NOT NULL,
[LastActivityDate] [datetime] NOT NULL,
[FirstN...
For some strange reason, I can't run any functions as a new thread in my production environment, even though it works fine locally and fine on the staging server, which has identical specs as the production server (Windows 2003, IIS 6)
Here is my code:
System.Threading.Thread th = new System.Threading.Thread(TestFunction);
th.Start();
...
I am trying to build the Json.NET 2.0 library to target the .NET framework version 2.0, and I am getting this error several times. I went to add a reference to System.Linq to the project, but it does not exist in the references list! What should I do?
...
I'm working on a web application that renders a reporting services report as a PDF and one of my requirements is to allow for multiple locations to be included on the same report. To handle this, I have created a multi-value report parameter which seems to do the trick when using the RS UI, etc. But, I am using the webservice for repor...
Is there any kind of event out there that would allow for a preload post back event.
The reason I ask is I have a control that adds sibling controls to it on postback events, however, by the time it has loaded the post back its too late to add the new control to the control collection. Therefore, the controls are never updated correc...
Can anyone tell the function to sort the columns of a gridview in c# asp.net.
The gridview is databound to an oracle database. I wanted to click the header of the column to sort the data.
i dont know how to refer to the header itself
is it using the sender argument of the gridview_sorting method?
Thanks
...
Short story.
This site was created by a friend of mine, who did not know that much C# or asp. And was firstly created in VS 2k3. When i converted it to VS 2k8 these errors started to crop up, there was also other issues with compiling that i managed to sort out ( Seemed to be released to VS 2k8 wanted design files )
Error message gotten...
Hello,
Can an ObjectDataSource have multiple SortExpression's?
Thanks,
XaiSoft
...
I updated the AJAX scripts and assembly referenced as per release notes. However, IsAjaxRequest still always returns false despite it actually being such a request. How do I resolve this?
...
Hi,
I have a virtual directory inside of my main virtual directory in IIS.
can i reference the parent application and reference its master page? If yes, how?
...
I have built several personal sites and now I and going to rebuild an existing one. I want to standardize on jQuery and Blueprint CSS.
I used to use a Master page for everything but that does not seem to match real well with something like Blueprint. Not to mention the pain of the master page renaming of the controls ids and applying t...
I have created an ASP.NET 2.0 web application and would like to use SSRS 2005 for reporting purposes.
The web application uses forms authentication and custom roles for authorization. I have created reports and deployed it to a our SQL Server 2005 box.
I have two options to integrate the reports into my application:
1) Link to SSRS fr...
I'm doing some maintenance on a classic ASP application for my client, and as I'm looking through the ASP, the following question comes to mind - would it be easier to convert a classic ASP app to ASP.NET MVC or ASP.NET WebForms?
In many ways, it appears that at least the HTML of ASP might be easier to convert to MVC than it would be to...
I'm not very experienced in ASP.Net, as I work mostly with PHP.
I'm trying this, but it doesn't work:
<asp:TextBox runat="server" ID="txtAnswer"
TextMode='<%# IIf(DataBinder.Eval(Container.DataItem, "DoLargeInput"), "MultiLine", "SingleLine" )%>' Text=''></asp:TextBox>
DoLargeInput is a boolean.
Why doesn't this work?
I'm getti...
Trying to implement asp.net passwordrecovery control.
I want to catch newly generated password before sending to user and add some custom logic to it and then send the mail. there is only one event sendingmail event.
How can I catch it ?
...
Does anyone know a clean way of adding events to Session's OnStart and OnEnd events using an HttpModule (without touching the Global.asax file)?
...
Basically, i want my object back...
I have an Email object.
public class Email{
public string emailAddress;
public bool primary;
public int contactPoint;
public int databasePrimaryKey;
public Email(){}
}
In my usercontrol, i a list of Email objects.
public List<Email> EmailCollection;
And i'm binding this to a...