asp.net

Scalable/Reusable Authorization Model

Ok, so I'm looking for a bit of architecture guidance, my team is getting a chance to re-cast certain decisions with a new feature that we're building, and I wanted to see what SO thought :-) There are of course certain things that we're not changing, so the solution would have to fit in this model. Namely, that we've got an ASP.NET app...

Error Log information in VB Script while processing

I am having an VBScript files which runs by many instance of jobs. I need to log the error information if any error occurs in the script processing. If i maintain a log file then how can i differentiate the log file for each instances (around 10 simultaneous instances) of vb script calling. I dont go for any db logging. Please suggest ...

How does Databinding work with Structured Software

Hi. I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been quite happy with the results. Databinding Webforms works mostly the way I need it and I spared myself tons of code. One thing that still feels weird is that I have application logic and database logic mixed throughout the application. Datasources...

Table with several TBODY tags in ASP.NET

I would like to create (in code) tree of controls that would render as a table with several TBODY tags, i.e.: <TBODY> <TR> <TD></TD> </TR> <TR> <TD></TD> </TR> </TBODY> I tried both Table and HtmlTable controls but had no succes...

Moving items in Dual Listboxes

How can I move items from one list box control to another listbox control using JavaScript in ASP.NET? ...

Asp.net server control same event handling order on server-side/client-side

I have an asp.net server control (with the asp: in its definition). The button has been set to do post back. On the server side, I have the on click event handler e.g btnSave_click() On the client side, I have a javascript function to be invoked on the click event e.g btnSave.Attributes.Add("onclick","javascript: return CheckIsDirty();...

Spreadsheet-like control for a web application?

A client of mine is looking to convert a critical 'application' based on multiple (very complex) spreadsheets into a web app. As part of this they'd like some of the web pages they use to enter/model data to resemble a spreadsheet as much as possible. I'd be interested to know if anyone has any experience/recommendations for embeddable...

How do I increase information in ASP.NET Trace

I've made some performance improvements to my application's backend, and to show the benefit to the end users of the GUI, we've been using the Trace.axd page to take timings. (The frontend is .Net 1.1 and the backend is Java, connected via Web services.) However, these timings show no difference between the old and the new backends. By...

DetailsView does not appear despite visible = true, and how to bind to an empty hashtable?

Hi, I am trying to bind a hashtable to a detailsview in my ASP.NET web app. When I do this, the detailsview does not appear on the webpage when I do a debug. I have checked ALL the properties for the control and ensured that the visible and autogeneratecolumns (there is no autogeneraterows property) is set to true, and it is. Also, I w...

Listbox values are persisting across postbacks.

I am having a listbox in ASP.net. I am populating the listbox values from another listbox in a page dynamically. During postbacks the values of output listbox are not persisted. (while going to another page and come back to this page). Please suggest some good answer. EnableViewstate = "true" is not working. ...

When should a web service not be used?

Using a web service is often an excellent architectural approach. And, with the advent of WCF in .Net, it's getting even better. But, in my experience, some people seem to think that web services should always be used in the data access layer for calls to the database. I don't think that web services are the universal solution. I am th...

Storing values in the web.config - appSettings or configSection - which is more efficient?

I'm writing a page that can use a couple of different themes, and I'm going to store some information about each theme in the web.config. Is it more efficient to create a new sectionGroup and store everything together, or just put everything in appSettings? configSection solution <configSections> <sectionGroup name="SchedulerPage">...

How do you add arguments to an ASP button PostBackUrl?

I am constructing a search page with a textbox and a button for now, and probably a dropdown to filter results later on. I have my button's PostBackUrl set to my search page (~/search.aspx). Is there an easy way to pass the value in the text box to the search page? ...

Find a Control in Asp.net Listview Inside the Selected Item Template

I'm converting functionality from an asp.net Gridview to a Listview. In the gridview when the selected item changed I would grab a value from a label in the selected row and write it to a different label outside of the gridview. Protected Sub grdModules_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles g...

Are threads reused between requests in ASP.Net?

I'm just wondering if the same thread is used for each session, or if its dangerous to count on a particular thread between requests. What I'm getting at, is can I use thread static storage? ...

Best Server-side .NET PDF editing library

What's the best .NET PDF editing library available, and why? It needs to be used on an IIS web-server. Specifically, I need to edit a PDF which was generated by reporting services. Factors I'm interested in: Speed Memory Consumption Price Quality of documentation Library stability Size of library Whatever else you think is important ...

Events and Delegates with ASP.NET master pages

How do you catch a custom event raised by a master page? On my master page I have a custom event and delegate: public event SignOutHandler SignOut; public delegate void SignOutHandler(); This is raised when a link button on the master page is clicked. if (SignOut != null) { SignOut(); } In a user control on the page I'd like to s...

Asp.Net -- adding option to select on client side...no value in code behind on form submit

I'm quite confused by something. I've got 2 select lists, and if you choose an option in the first, I then load the 2nd with a certain set of options. I clear this out and repopulate it every time you change the selection in the first select element. Now, on postback, I need to know the value of the option that was selected in the 2nd...

Why is my asp:TreeView selected node reset when in an UpdatePanel?

I have an asp.net 2.0 page that contains 2 UpdatePanels. The first panel contains a TreeView control, when I select a node in the three view control it triggers an update of the second UpdatePanel only. This much is behaving correctly. There are two buttons on the page outside of an update panel (previous/next). These buttons trigger a...

ASP.NET trusted DB connection to other server works in Casini, not in IIS

Our website connects to a database correctly when running the website locally using the built-in web server. But, when we deploy the site to our server running IIS, we get a database connection error. The database server is different from our IIS server. Note that a trusted connection to a different database on the SAME server as IIS ...