asp

SQL Server Reporting Services ReportViewer authentication

I'm working on a project involving the .NET ReportViewer, and I'm having issues connecting to the Report Server. I'm a .NET newbie so bear with me. I can't put up the code but hopefully someone will be able to give me a little guidance here. I dragged the ReportViewer control from the toolbox onto a newly created page. Eleventy billi...

onclick and onclientclick

I have the following line in asp.net <asp:LinkButton runat="server" ID="createuser" OnClientClick="javascript:$('#dialogform').dialog('open');" onclick="AddCaseInfo_Click">Create Case</asp:LinkButton> onclientclick works fine, but not onclick. I tried OnClientClick="javascript:$('#dialogform').dialog('open');return true;" ...

Web Hosting Issues using my perl script, need help deciding on what language to use to replace perl

I have a website that I am making and I was going to implement a perl script into it. This script goes to another page gets a .csv file and reads in the lines and parses out what I need. The problem I have just ran into is that my hosting server apparently does not allow custom CGI scripts on an MS server. I chose the MS server so I coul...

how does vbscript evaluate string greater than string?

i'm converting some vbscript from an asp app and ran across a line in the form of If sCode > "" Then where I expect sCode to contain a string. i know enough vbscript to plod through it but i'm not sure of the behavior of some quirkier statements. c# will not accept that as a valid condition check. what is an equivalent c# statement? ...

Can't make jquery validation with ajax.beginForm in PartialView work

I'm loading partial views which are ajax Forms. They look like this <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebGRC.Web.Controllers.Models.Administration.UserAdminModel>" %> <%@ Import Namespace="WebGRC.Web.Controllers.Models.User" %> <h2><%=Html.Encode(ViewData["HeaderText"])%></h2> <% Html.EnableClientValid...

How to tell the difference between ASP and ASP.NET code/website files

I'm jumping into updating an ASP(.NET) website coming from a PHP background and am trying to get my bearings. I think it's ASP (not .NET) since the code is not compiled and it seems to be using ADODB, but I'm really quite clueless. So, how can I tell if the code I'm working with is ASP or ASP.NET? Bonus points if you can tell me how to ...

Table doesn't have a primary key

i get the following exception (missing primary key) in the line of using Find() method "Table doesn't have a primary key." I've rechecked the Database and all Primary Key columns are set correctly. my code: DataTable dt = p.GetAllPhotos(int.Parse(Id)); DataTable temp = new DataTable(); temp = dt....

how to shorten the url in a mathematical approach

I am looking into the possibility of shortening / encrypting a url which will be from 150 to 250 characters in length to maximum 12 characters using an algorithm. Initially I am doubting it's possible but I wanted to leverage the great minds of StackOverflow :) the algorithm should be one that can be written in classic asp, sql, c#, vb...

linkbutton doesn't work for updatepanel

i have set of link buttons outside update panel but when click any one of them they donot work at all , when i set the postbackUrl they make full postback my source code : <asp:Panel ID="pnl_viewImages" runat="server"> <asp:Label ID="lbl_viewImages" runat="server" style="texalign: left" ...

the IndexOf() method returns -1 all the time

i have two data tables with the same structure the first one has one row of the second one the second one has set of rows what i want is to get the row which comes next to the row of the first data table in the second data table. the first data table his name is :: temp the second data table his name is :: dt i do the following: ...

User control with enumerable datasource

I'm trying to create a user control which has a DataSource, which can accept any form of collection, such as List<string> or string[] If I check for is IEnumerable then it requires a type, checking is IEnumerable<Type> returns false, as does is IEnumerable<object> What's the correct way to go about this? I presume I set the DataSource ...

How can I get back textbox's values like this "<value>" in aspx

I have a page with a button and a textbox, when a input "<string>" in the text box and then I press the button I got this error: A potentially dangerous Request.Form value was detected from the client (TextBox1=""<string>""). ...

Adding a RadDatePicker to a custom RadGrid Form Template

I have a RadGrid, with the EditFormSettings set to Template. Within my <FormTemplate> I have a RadDatePicker that I need to databind. My code: <telerik:RadDatePicker ID="rdpStartDate" runat="server" SelectedDate='<%# Bind("StartDate") %>'> </telerik:RadDatePicker> "StartDate" references the column name in my DB. I have attempt...

Remoting object calling from ASP

Can I call .Net remoting object from core ASP page? I'm able to call it through other ASP.Net application, but is there any way to call it through ASP application? ...

i can't expand my ext:gridpanel

i have gridpanel in my page and i want to expand it (somthing like height=100%) but i can't find any property that can use this is my code this is my code : <ext:Panel runat="server" ID="pnlEest"> <Body> <div> <ext:FitLayout ID="FitLayout1" runat="server"> <ext:GridPanel...

convert regular expression from php to asp classic

function cleanURL($string) { $url = str_replace("'", '', $string); $url = str_replace('%20', ' ', $url); $url = preg_replace('~[^\\pL0-9_]+~u', '-', $url); $url = trim($url, "-"); $url = strtolower($url); $url = preg_replace('~[^-a-z0-9_]+~', '', $url); return $url; } $regex=cleanURL("$title"); how to...

Session expire issue after deploying in virtual server

Hi, I have asp.net app which works fine with visual studio and also local IIS server deployment witout any issue with its session. but after deploying the code to server virtual server (IIS 6, windows 2003) it dosent work properly. Session gets null in subsequent requests and after few navigations in the site, and this issue is only oc...

ASP - Oracle DB connection problem

dim sql set con = server.CreateObject ("adodb.connection") set rs_editorcolumn = server.CreateObject ("adodb.recordset") set rs = server.CreateObject ("adodb.recordset") mydsn =Application.Value ("dsn") con.Open (mydsn) This is my code.. It is working in another machine where it is deployed In my machine. ...

Why would you use an HTTP Module over ASP.NET Health Monitoring or visa versa?

I have come across this question several times, you need to do some performance testing (request process times, load times, etc) or track unhanded exceptions. The answers usually come down to writing a HTTP Module, hook into specific events and log them somewhere, or use the built in health monitoring? Why would we use one over the othe...

Trouble with the simplest regex

I'm trying to validate an ASP TextBox that can only have 1-2 digits (not zero) using the following regex: ^[1-9]{1,2} This regex doesn't validate if the field is empty (assumed it would due to the 1-2 part) Also tried ^[1-9+]{1,2} to no avail. I'm clearly a newbie to regex so your help is appreciated. These are my controls: <asp:...