I have a web app hosted with GoDaddy (so the web server is in Arizona - Mountain Time). My users are mostly in Central Time Zone, but I could have some from other time zones.
I have a web page with a databound dropDownList using TimeZoneInfo, and I want to set the selected value of this dropDownList to whatever timeZone the user is i...
Hi,
In an aspx page I am calling a jquery plugin for two listboxes as below.
$(document).ready(function() {
$("select.select_AdditionalLanguages").custSelectBox();
$("select.select_Organisations").custSelectBox();
});
Problem is, in the plugin jQuery(this) holds the listbox which was loaded last. Please suggest how t...
I have a gridview in a page, linked to an objectdatasource that is linked to a function in a BLL.
the gridview delete query links to a delete method in the BLL class.
When something goes wrong, I throw a new exception in the BLL class.
Now to catch this exception if anything goes wrong, I have written the following behind the gridview ...
I have the following (example) column in my GridView:
<Columns>
<asp:BoundField DataField="EmployeeNumber" HeaderText="Employee"
ReadOnly="true" SortExpression="EmployeeNumber" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
</Columns>
And I want to use that BoundField as a parameter for my DataSou...
Hi all,
Following up on the question here: http://stackoverflow.com/questions/3936389/complex-editing-on-a-gridview-in-c
I have the following example gridview:
What I'm trying to do is that whenever I click on "Edit", the Leaves At column becomes a gridview in which the Hours for the respective date appear. However, I don't know how ...
In the past, I have populated GridView's with 'manually created' data sources in the code behind, by doing this in the Page Load:
DataTable myData = SomeMethod(); //Returns a DataTable
myGrid.DataSource = myData;
myGrid.DataBind();
and whenever I wanted to download the data to a CSV file, I'd just add the following to the button's Cli...
We tried several ways to make a textbox to accept the "enter", newline, etc.. But we are still facing the same problems. Most of the "Third party" controls allow the user to format the text as he wants. Eg, add color, font, table, etc.. However, for most stylish websites, we do not want to allow the user to format the text that way.
But...
Hello,
We are storing our images at Amazon S3. Let's say the location is http://media.sitename.com/folder1/image1.jpg.
I want to copy this file and store it in our server. Is it possible to do this using C#. I am using asp.net 4.0.
Please help. Thanks.
...
i have an application which i developed on my local machine win7, iis7
which does something like this:
deny all anonymous users on all root pages
and redirect them to login
they will be able to access the root pages after logging in.
It uses forms authentication to log the user in.
it is structured as an subapplication in a website
...
Hi, in ASP.NET application, how to design the pages in such a way that they are displayed properly in both IE6 and IE8 browsers? I would like to minimise the CSS work that I need to do if there are any general guidelines to follow which will work in both browsers. I may still need to tweak here and there, but I want to reduce bulk of the...
Okay, i think most of you guys out there use wspbuilder to build the wsp solutions and to deploy it. So here is my problem.
I'm working on a SharePoint solution which makes use of a third party dll (Telerik for Asp.Net Ajax - Telerik.Web.UI.dll) for rich experience. Since Telerik dll is a common assembly i have to deploy it to the bin f...
Hi Experts,
I have a existing web site which is developed in Asp.Net / AJAX 3.5, C#,
Now I need to make this site available in Mobile version.. and I came across an open source tool
http://51degrees.mobi/Products/NETMobileAPI/AddtheNETMobileAPItoanExistingWebSite.aspx
But I am not sure How do I integrate.. this in my existing applic...
Could anyone tell me where is the best place to put my business methods when using EF4 code first POCOs? Should they go in the POCO class? E.g.
public class customer
public property Id as int32
public property Name as string
public property Archived as boolean
public sub MarkAsArchived
me.Archived = true
end...
Hi,
Bit of a vague question. Apologies.
I have a prototype CMS I've been working on for fun. It's completely written in ASP.NET MVC.
It works on the principle of "widgets". Little blocks of functionality that can be dragged and dropped on the page, you get the idea.
I have added a few simple blogging widgets which work well, one of...
I have my own SQL based session class. I want to automatically commit the data in the session at the end of program execution (i.e. at the end of serving the page request). Do object destructors (finalizers) not get executed at the end of every request? Is there anyway of doing this instead of having to explicitly call a Dispose() method...
Hi,
I have a <asp:Wizard> control with 6 or so steps. In the first 3 steps, I want to hide the default Wizard navigation (Next button, etc.), as each WizardStep's contents will handle that. For the last 3 or so steps, if possible, I want to use the built-in navigation.
I've modified the <StepNavigationTemplate> contents, but that alone...
This seems really simple, but for some reason Im stumped..
Im dynamically generating an HTML Select Box, lets call it myselect. Im creating this select box based on some database values Im generating an HTML Select Box.. almost like a string that Im just spitting out to the page. So it's never a control in the codebehind, just part of a...
I had a basicSearch page working perfectly with the keyword searching (highlighting the keyword on the search result page) but when I modified it to work with a querystring, it's displaying ALL the records with the keyword highlighted.
aspx page:
<form id="form1" runat="server">
<div id="mainContent">
<asp:ScriptManager ID="Script...
Hi,
The topic of sql server deadlock has been discussed many times, however, I was unsure that even two simultaneous inserts on a table can end up in a deadlock situation.
Scenario:
While testing our application (SQL Server 2005 as backend, ASP.net 3.5) we inserted records into a table simultaneously (simplified overview) and that resu...
Hi,
I've got an ASP.net project with a folder containing some dll's. I have referenced the DLL's from the folder.
I've modified one of the DLL's (Added a new class). I get build errors saying that the new class does not exist. When I add the reference the build errors go away in the Error List window. However, When I build the proj...