Regular expression for numeric range 0000 to 9999
I need a regular expression for a text field in my asp.net website which should lie in between 0000 to 9999 it is not be 0 to 9999 ...
I need a regular expression for a text field in my asp.net website which should lie in between 0000 to 9999 it is not be 0 to 9999 ...
I'm trying to find the best way (in code) to determine the final destination of a shortened URL. For instance http://tinyurl.com redirects to an eBay auction. I'm trying to get the URL for the eBay auction. I'm trying to do this from within .NET so I can compare multiple URLs to ensure that there is no duplicates. TIA ...
I'm currently building a single page AJAX application. It's a large "sign-up form" that's been built as a multi-step wizard with multiple branches and different verbiage based on what choices the user makes. At the end of the form is an editable review page. Once the user submits the form, it sends a rather large email to us, and a small...
I have a web application (.NET 3.5) that has this code in Global.asax: Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) LinkLoader() PathRewriter() PathAppender() End Sub I want all those functions inside to get called except for when it's an AJAX call back. So, ideally I would have it changed to:...
Lets say I have an absolute url /testserver/tools/search.aspx that I store in a variable url. I want to check if url == /tools/search.aspx without having to use /testserver. A more complete example would be: My testserver contains the url http://www.testserver.com/tools/Search.aspx, but my live server contains the url http://www.live...
Can I run a windows presentation foundation app on a webserver over the internet, or does it run like a windows app where I have to download the code to each pc? ...
Hi, I have a gridview inside an updatepanel. It has a TemplateField column with radiobutton: <asp:GridView ID="gridView_stLists" runat="server" AutoGenerateColumns="False" CellPadding="3" BorderStyle="NotSet" CssClass="table_layout" Width="500"> ...
I'm looking for an ASP.NET control to show a series of ad images (maybe 3-5), that will cycle through the ads (with fading, preferably), and have navigation buttons so the user can jump around. Here's an example. Any recommendations? Free is always nice, but I'm willing to spend to get the job done right. Also, I'm using Sitefinity, so ...
How can I make a DISPLAYED DATA(int) of a PARTICULAR COLUMN to be a hyperlink in a GRIDVIEW, so when I click on that DATA it will display details of that chosen row line items. ...
I am stuck working with the TabContainer control of the Ajax Contol Toolkit. When a user clicks a tab, I am trying to capture which tab was clicked (like the index). Anyone out there know if this is possible? ...
Hello, I have an update panel with a gridview and some radios inside it. Senario is that when user select a radio, some bottoms get visible. But after radio eventhandler is trigered, updatepanel contents get dissapered. Any idea about this problem? <asp:ScriptManager ID="scriptManager_main" runat="server"> </asp:ScriptManager> <...
New Why would a VB/ASPX page not return results for a query which runs fine with other Oracle clients? (Same username) Old The following code should first output the query and then execute it outputting a single exclamation point per record. However, it outputs the query (as it should), but does not return any rows (nor error). If I...
Hi all, I'm having some trouble with the FileUpload control and was wondering if I could get some help. On my page I have a FileUpload control, and a drop down list. So the user browses to the file they want, and then select an option from the drop down (which enables some checkboxes that are also on the page for use, depending on...
Hi, I have a gridview, and I put a radio column for it. But radio ids are not unique. I've read http://www.asp.net/Learn/data-access/tutorial-51-cs.aspx http://shawpnendu.blogspot.com/2009/02/problem-to-group-radio-button-across.html http://aspnet.4guysfromrolla.com/articles/122602-1.aspx but they are complicated. Do you have other sol...
I am trying to keep the selected item (datakey) in a gridview selected after any operation, such as sorting. I have code that is keeping it selected, but sometimes the item's last position (index before it was sorted) remains selected, along with the new index for the selected item. Any time it is selected, that item is bound to a deta...
With the help of fiddler, I did this "replay attack" with the following HTTP GET request http://svr/Default.aspx?__EVENTTARGET=LinkButton1&__EVENTARGUMENT=&__VIEWSTATE=%2snipg%3D%3D&__EVENTVALIDATION=%2snip To my surprise, it works as long as there is valid viewstate and event validation. The following stops GET on my clic...
I'm setting up my site to receive info from people via text message. The way it works is they text a number, that service then sends an HTTP POST to a url I specify. I've heard that .asmx files are better than .aspx files because they don't go through the whole page lifecycle. However, I don't really understand how to get a .asmx file ru...
i am following the NerdDinner tutorial http://nerddinnerbook.s3.amazonaws.com/Part4.htm and have gotten to "Adding a View" (middle of the page). When i right-click the controller and select "Add view", i get a dialog that is mising the "View Content" and the "ContentPlaceHolder ID" options. Does anyone know why i cant see these option...
I am using freetextbox and have added to the web.config of my app but I still get the following error when submitting text with html: A potentially dangerous Request.Form value was detected from the client (ctl00_MainContent_FreeTextBox1=" I know this is not the preferred way to set up an app but why am I getting these errors even tho...
I'm rusty with delegates and closures in JavaScript, and think I came across a situation where I'd like to try to use one or both. I have a web app that behaves a lot like a forms app, with fields hitting a server to change data on every onBlur or onChange (depending on the form element). I use ASP.NET 3.5's Web Services and jQuery to d...