We have a web service framework we use; which I had no part in creating and have no ability to modify, that requires, essentially, cookie-cutter code to add a "module" to the framework. A sample of the format of the code is below.
In the example below, I added the Helper class to each of the classes below several months apart without...
I want to query my SVN repository from an ASP.NET application to list the top XX latest revisions of my application.
What's the best way to do this? execute a shell execute command against the svn command line app? or can i access it via https?
...
Is there a simplistic reference for all preprocessor directives?
...
I am trying to bind a datatable to a repeater. To do this, according to a code sample, I need to call dataview() when choosing the datasource property of the repeater and then write databind().
When I do this, I still get the exception that the source to databind to is not derived from IDatasourceControl.
What is the correct way to bin...
I used the following code in the cs file of the masterpage to fix the rendering issue of the safari and the asp:menu control. I was curious on why it actually fixes the problem. Here is the code:
protected override void AddedControl(Control control, int index)
{
if (Request.ServerVariables["http_user_agent"].IndexOf("Safari",
...
I need to bind to an event in the request pipeline where both the Request and Response are populated. The Request is simple, but I need the StatusCode off the Response object. At what point in the pipeline is the Response populated?
...
Hi, I'm having some problems with concurrency when using DLLImport, I have a Dll that provides some report I need to send over the web, so I have this:
[DllImport("Rep.dll", EntryPoint = "PrintRep", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Ansi)]
private static extern string PrintRep(several params...);
And ov...
Hi all,
I would like to create a table where the rows are selectable via jquery.
I'd also like to pass certain table cell values from a double click event on a row to another page.
Does any one have examples of how this would work?
Thanks in advance
...
I am generating a spreadsheet in Asp.Net, using the following code, but am getting the error "The file you are trying to open, "Spreadsheet.aspx-18.xls', is in a different format than specified by the file extension. Verify ...". However, when I open the file it displays just fine. I am using Excel 2007. Firefox identifies the file as an...
I'd like to process a directory of mpg's in a batch to have a thumbnail using C#/.NET.
Does anyone have any good suggestions on how I could do this?
...
I'm looking for a decent paging control in ASP.NET, much like the Stackoverflow pager. Can anyone recommend one?
I'd prefer one that didn't use Postback either, just a customisable querystring.
...
Ok... got URL Routing working just fine, but cannot figure out how to actually read the values in the target page.
One example here shows using the RouteValue object from the RequestContext. Now all of these are in the System.Web.Routing namespace, but everyone seems to be connecting these to MVC only. Where does the RequestContext co...
I have a page whose submit buttton does dot submit at all. It rathers has a some javascript in OnClientClick that employs some logic and redirects the user to a calculated URL. The thing is I want to use ASP.net default validation in this setup. I need to be able to query the state of the client side validation in the javascript. How do ...
I know that generally speaking, this cant be done, that is get another PC to call a site hosted under the ASP.NET DEvelopment Web Server remotely (generally you can only use localhost:port to get to it).
But I was wondering if anyone has seen, or knows of a way to get around it? I am a RESTful API developer in my office, and I would li...
As a relative newcomer to both web and MVC, I am looking for a good summary of security best practices that I should implement.
The site will be public facing with "moderately sensitive data" (meaning we can't get sued, but probably wouldn't make many friends if the data got out!) and will have the following security steps taken:
a:...
Which is the best way to create a site search engine for a dynamic asp.net site with hundreds of dynamic pages. I have seen many products and articles
http://www.karamasoft.com/UltimateSearch/overview.aspx
http://www.sitesearchasp.net
http://www.easysearchasp.net/
http://msdn.microsoft.com/en-us/magazine/cc163355.aspx
http://www.co...
I'm working on an ASP.NET application where our users authenticate using client certificates over HTTPS. Our users are only using IE7.
Once a client certificate has been used to authenticate successfully it stays in the browser's SSL cache until the process is closed or the user manually clears the SSL cache. We want to be able to clear...
I have been doing some work lately with a Pre-compiled .NET3.5 app so i have had to write alot of inline code and i was just wondering about the usage of the # and = and niether when doing inline code?
...
HI,
I am trying to develop a form which has some user controls , which are basically dropdownlists which will be loaded with static list of pick-list values, and a master page. I have written code in the page behind to bind values to the non pick-list fields.
I find that the flow of the control is like this at runtime :-
1) First th...
<% if(Convert.ToInt32(Eval("NbrOrders"))>=Config.MAX_ENQUIRY_SALES) { %>
...
<% } else { %>
...
<% } %>
Gives me a InvalidOperationException? How do I write conditional html generation in ASP?
...