In my aspx page, I have a number of drop down controls.
I would like to update an attribute on each of the controls with "class=leftColumn" with the following line:
propertyID.Attributes["nameOfAttribute"] = "false";
But instead of manually writing out each controlID and setting its attribute with the line above, I had hoped there wa...
Hi Im using silverlight ria services and trying to called a domain service method
the domain service class signature goes like this public class UserDomainService : DomainService
and I have a simple operation to return data
public IQueryable GetUsers()
{
return userService.GetAll()
).AsQueryable()...
I've been working on this for a few days now I every time I come back to this problem I just don't see why it's not working correctly.
I'm trying to bind a DataTable to a GridView control that I create Dynamically. I create the GridView control, add it to a table, and then assign the DataSource property to my DataTable.
This is the cod...
I've read where you create a new application pool, one for 2.0 sites and one for 4.0 sites. But there is no option I see when creating a pool to configure the framework.
My problem is I have several 2.0 sites running as the Default Web Site. I added a WCF 4.0 service under a new virtual directory and set the framework to 4.0. I also ...
I'm looking for a Per Request place to store some variables. I thought there was a name/value dictionary on HttpRequest, but I don't see one (besides Cookies or ServerVariables). This App is .Net 3.5.
Can anyone suggest a Per Request storage area?
--Thanks
...
Hello,
Im implementing custrom delete by adding to my ASPxGridView GridViewColumnCustomButton.
Then on my GridView I handle ClientSideEvent
<ClientSideEvents CustomButtonClick="function(s, e) { customButton_OnClick(s, e); }" />
JS:
function customButton_OnClick(s, e) {
if (e.buttonID == "customButtonId") {
e.pr...
i am using file upload control in server side when iam trying to get the file it is showing no file present
<asp:FileUpload ID="upldDocument" runat="server" />
string fileExtension = System.IO.Path.GetExtension(upldDocument.FileName);
if (upldDocument.HasFile)
{
}
i am getting a empty string as file extension and upldDocument.HasFile ...
How to sort datatable obtained by GridView according to some column.
I am trying to do something like this but it is not working.
protected void GridView_Sorting(object sender, GridViewSortEventArgs e)
{
if (sender.GetType() != typeof(GridView))
return;
DataTable dt = (DataTable)((GridView)sender).DataSource;
DataTa...
If I look at the Razor View Engine, then I see a very nice and concise syntax that is not particularly tied to generating html. So I wonder, how easy would it be to use the engine outside asp.net in a "normal" .net environment for example to generate text, code,...
Any pointer, example, comment or explanation is welcome.
...
I want to use same xsl template in few websites. Can I add it into class library? If yes how can I Load it? Example of path, etc...
...
I'm just starting to really get into JSON as a tool for my sites. I was showing my friend how I am calling a WS and returning the data, and he asked me about security of passing JSON data to and from a web service as he saw the data from the "POST" (via Firebug).
Many of our public facing sites deal with member information and contai...
I'm downloading text from a website and I want to have the user be able to save it as a file. So, I have the following code that does just that.
protected void DownloadFile(string fileName, string content)
{
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "att...
how can I get this exchange rates from a web service using htm and javascript?
Dictionary Türkiye = Turkey | Dünya = World | Son güncellenme = Last updating date
...
The majority of the Application Architecture advice seems to advise strongly that only Presentation Layer should have access to HTTPContext (to promote loose coupling, decrease dependencies, increase testability etc).
So, how do people deal with Caching and Session? Very specific DataAccess and Business Logic knowledge is required to de...
I'm trying to write test cases for my web services in a way that I can rollback any database changes they may make. I can try to surround them with a transaction scope, but how do I specify a context for the transaction? In other words, how does the transaction know which database and server to rollback on? In my case, the SQL server ...
I'm trying to access the Application State from a utility class in the web application but I'm not sure of the best way to do it. I looked for a static member but there is none of use (I was thinking somewhere along the lines of HttpContext.Current).
The best solution I found so far is to have a member in the utility class that will be ...
I've got a handful of public static WebMethods that I'm accessing with Javascript (directly), usually through jQuery. That's working, and I'm happy with the results (and with not having to deal with the AJAX framework).
What I'd like to be able to do is to define my own mock-JSON object to pass between JS and ASP (this is a .NET 2.0 we...
I just discovered that every request in an ASP.Net web application gets a Session lock at the begging of a request, and then releases it at the end of the request!!! I mean, WTF Microsoft!
In case the implication is lost on you, as it was from me at first, this basically means the following:
Anytime an ASP.Net webpage is taking
a long...
I'm attempting to use the DotNetCart ecommerce module in a solution we are building. The problem i'm having is that i'm finding that the included .chm documentation is quite lacking. I've brought this up with their support dept and received no help there. My question is, is there a site or forum that is a good source of information on ho...
Backgroud: I'm using NHibernate for my model layer, and I have a HTTP module taking care of instantiating the session at the beginning of each request and cleaning it up at the end of each request (i.e. Session Per Request). In this case, I have two object types:
ParentItem - an object with a bunch of properties and a collection of...