First of all, I'm using VS2005.
On random compiles, I'll get the following error: 'DataKeys' is not a member of 'gridView'.
This makes no sense to me, since DataKeys is obviously a member of GridView. Intellisense thinks so, the internet thinks so, I think so. The line that's causing this issue is...
Dim myGridView As GridView = CTy...
Hello to all! I was wondering how, from an event on the child object inside a templatefield belonging to a gridview, I could reference the row.
[edit: apparently I'm wrong and parent is not null, weird stuff, is all.]
Thing is, there is a checkbox representing a boolean state in relation to a user's relation to an ID. I have to update ...
I've have a formview that is designed to update it's datasource each time a text_changed event or dropdown list has been changed. On every text_changed event and equivalent for other controls I call the formView.UpdateItem method and this causes the form to lose focus from the control I have tabbed down to.
I've tried to implement this ...
When I try to rewrite a URL in ASP.NET I'm finding that the URL changes on the user's browser. I'm using WCF REST services and I want to change the way that you access URLs. See the code example below.
I have an HttpModule that is intercepting requests.
public class FormatModule : IHttpModule
{
#region IHttpModule Members
pu...
I have a dataGrid(not dataGridView) in which i need to add Checkbox dynamically at the first column. How can i do this.?
...
Hi,
I have a scenario that my load balancer translates port 80 from outside into port 801 which is local. And When it comes to server, server obviously sees port 801 and in Response.Redirect it tries to inject port 801 into the URL it redirects to but this is not the desired solution for me.
What I am thinking is to:
1. Overwrite Respo...
A single user can show up as multiple unique users over a period of time when he vists a site. Internally, the user's IP address is static, but on the net the user is represented by the ISP router's IP address, isn't it?
...
Hello,
I have multiple literals on a page. For example,
<asp:Literal id="Label1" runat="server" />
I have around 10 of these on one page and want to fill them all with the same value. Is there a good way to do that without referencing the id for each control?
...
I am looking for a library to convert HTML to PDF, including styles. I would prefer it be able to accept a URL as an option, but if required, HTML can be passed in as a stream/byte array with all styles in a single file/buffer. I am using C# / ASP.Net 3.5. I have complete control of the server machine ( I can run as a service, etc... ...
Hi,
Can someone help me read attribute ows_AZPersonnummer with asp.net using c# from this xml structure
<listitems
xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset"
xmlns:z="#RowsetSchema"
xmlns="http://schemas.microsoft.com/s...
I've a US city/state list table in my sql server 2005 database which is having a million records. My web application pages are having location textbox which uses AJAX autocomplete feature. I need to show complete city/state when user types in 3 characters.
For example:
Input bos..
Output:Boston,MA
Currently, performance wise, this funct...
There is an article that recommends to store ASP.NET application state in static members of HttpApplication class (in Global.asax.cs).
What about storing application state in static members of other classes?
I tried to do so and it seems that there are several instances of these variables can exist (single instance per AppDomain?). Is ...
Hello.
I have a recusive-method that creates a unordered list from a XML document. To check which node I am positioned on I use the querystring to match the URL in the XML document.
I need to add the class 'current' on the parent node if I am positioned on its child node.
Like this:
MenuItem 1
MenuItem 2 [class current]
...
I have a form that sometimes gets linked to with some query string parameters. The problem is that when I post back the form, the query string parameter is still there. Its not really an issue the way I have it setup, but I just don't like it being there, and could see it being a problem if you needed to check for input in a certain or...
Most of the actions in my controller have statically-defined parameter lists and so they correspond nicely with the standard tutorial examples:
public ActionResult SomeAction(string id, string arg1, string arg2)
{
// use arg1, arg2...
}
But I have one troublesome case where the view puts together a form dynamically, so the set of ...
I hope any of you guys knows how to fix this issue we are having.
We are trying to host a WCF service via the web. We set the web.config to have the service require windows authentication. The problem we are having is the following:
When we host our service in a regular IIS, the service runs fine and there is no issues with the "Windo...
I am trying to print invoice. But top whatever i do to setting margins, it doesn't fit on paper. Do you have any idea to get print out invoice to continues form ?
PS. I am coding with ASP.NET and printing out by IE7
...
In a .Net web form...
What are these special tags called?
I know of 2: <%-- comment --%> for comments
and <%# used with Eval and Bind #>
So what does the # signify? Are there more?
I know you can put some basic logic and function calls in there but I've never found anything that really describes how that can be used and should be...
I'm working on a web site (not a web application) in VS 2008 .Net 3.5 and it uses the single file .aspx model where the server code is included in the head portion of the html instead of using a .aspx.cs code behind page.
I'd like to quickly convert the files to use the code-behind model, but so far the only way I can do this is by rem...
I have a asp.net web application that creates a Folder on a FTP site, but I need to grant permissions to that folder to some users of the active directory.
How can I do that programatically, inside my app when I create the folder?
...