ASP.NET UserControl For Generic Editor
I want to make a more generic editor control for ASP.NET whereby I can use the same events / common code across any editor on my site. Has anyone got any experience / insight into this? ...
I want to make a more generic editor control for ASP.NET whereby I can use the same events / common code across any editor on my site. Has anyone got any experience / insight into this? ...
I'm trying to access the submit button which is part of the PasswordRecovery control within asp.net 2.0. The API as far as I can see does not allow this. Has anyone any ideas how I can add a Javascript confirmation popup window when clicking this button. I have tried to add onclick to the attributes of the PasswordRecovery control wi...
User hits page spawn.aspx which then spawns a half-dozen threads, rendering pages all using ((System.Web.IHttpHandler)instance).ProcessRequest(reference to spawn's HTTPContext); Don't worry about the fact that ASP.Net is seemingly sending the user 7 responses for 1 request, that part is handled and only one response gets sent. The ...
In my ASP.Net app, which is javascript and jQuery heavy, but also uses master pages and .Net Ajax pieces, I am consistently seeing on the status bar of IE 6 (and occasionally IE 7) the message "2 items remaining" or "15 items remaining" followed by "loading somegraphicsfile.png|gif ." This message never goes away and may or may not preve...
I have an ASP.NET app that uses a SQL Server database. I now need to pull data from Sybase ASE into that SQL Server database for my app to consume, and I'm not having any success with my ideas. Has anyone done this? Any ideas/suggestions/tips? ...
I have seen a lot of job postings for ASP.NET and server engineer positions, and they always seem to list XML and XSLT as one of the skills that is valuable to them. I am wondering what role XML plays in modern systems. How are people using XSLT with XML in nTier systems? ...
I'm trying to use Memcached and wondering if there is a way to remove the objects from the cache by key pattern rather than just one key per object. Say, I cache user 1 with key "user1", then user 2 with key "user2" ..., is there a way to remove all objects with a key that starts with "user"? Or is there a way to get an enumerator from ...
I have an ASP.NET 3.5 Website (visual studio lingo), but the site continues to grow and is looking rather cowboyish among other things. I'd like to see this get converted into a Web Application (namespaces and all). Is this something that can be easily done in Visual Studio? If not, are there any other tools out there that could creat...
Hello, I'm trying to join one Linq collection from Data Base and one from XML file. Is this possible? I always get: Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains() operator. Here is my code: MyDataContext dc = new MyDataContext(); XElement CustomData; var pages = from p in dc.Pages ...
I have a sql data source and I have a really long string of SQL. I want to put linebreaks in my sql but Visual Studio doesn't seem to like the linebreaks. How would I put in line breaks? Example <asp:SqlDataSource ID="SqlDataSource1" runat="server" ProviderName="System.Data.SqlClient" SelectCommand="select aci...
I have a asp .net master page application and one content page has a number of controls on it. I want to store the content/state of those controls in the session state whenever a user navigates to another content page. My question is, how do I know when to capture the control state? Is there an event of some type I can use to trigger ...
This is a follow up to another question of mine where I first found this problem. If I create a public property on my User Control, with a type of System.Type, I cannot use a normal string representation of the type, e.g. System.Int32, as a declarative markup attribute value for the property. It seems I need to uncover whatever it is t...
I'm building UI logging into a long-existing ASP.NET enterprise application. I have my own ideas of how to progress from here and am continuing to research & design. But I'd love to hear some details from the SO community. Here are the details, assumptions and questions as of right now, subject to evolve within the enterprise as well as...
you know we have Request.UserHostAddress to get ip address in asp.net ,but this is usually user's ISP ip address not exactly user's machine ip who for example clicked a link. how can i get real IP Address? for example in stackoverflow user profile it is: "Last account activity: 4 hours ago from 86.123.127.8" but my machine ip address is...
Hi, I have an ajax modal panel with a div on it that I access from the server and dynamically insert a table into, by showing the values of various controls on the calling form. My problem is this, it works fine if all my controls are doing auto postback, but it ruins the user experience, because tabbing through the controls, the contr...
I'm trying to enter a 0 into a Textbox hooked into a MaskedEditExtender. My mask is set for a NUMBER(13,2) with 9999999999999.99 as my Decimal mask. The problem is that the user HAS to enter a number. The value can be 0. I've tested multiple times trying to try 0 in, and it won't work when entering RightToLeft. Any workarounds? Solutio...
I've got a LinkButton control in a user control like this (Accordion is from the AJAX Control Toolkit): <cc1:Accordion runat="server"> <Panes></Panes> <HeaderTemplate></HeaderTemplate> <ContentTemplate> <asp:TextBox Text='<%# Bind("Title") %>' runat="server"></asp:TextBox> <asp:LinkButton Text="Update" Comman...
I have a Master Page in the root of my project. I have Content Pages throughout my project and in subfolders referencing this Master Page. What is the correct way to reference my .CSS and .JS files if I always want them to be relative to the root? Here is how I'm doing it now: link href="/common/css/global.css" script src="/comm...
The author in this screencast is using jquery to submit data to a database using php. The link is here: http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-day-13/ How could I do the same thing using asp.net and sql server 2005? ...
I am using: if (RadioButtonList_VolunteerType.SelectedItem != null) or how about: if (RadioButtonList_VolunteerType.Index >= 0) or how about (per Andrew Hare's answer): if (RadioButtonList_VolunteerType.Index > -1) To those who may read this question, the following is not a valid method. As Keltex pointed out, the selected valu...