asp

Open a new tab in a browser with the response to an ASP request

It's a bit complicated this one... Lets say I have a listing of PDF files displayed in the user's browser. Each filename is a link pointing not to the file, but to an ASP page, say <--a href="viewfile.asp?file=somefile.pdf">somefile.pdf</a> I want viewfile.asp to fetch the file (I've done that bit OK) but I then want the file to ...

Problem wth paging ObjectDataSource

asp page code: <asp:ObjectDataSource runat="server" ID="odsResults" OnSelecting="odsResults_Selecting" /> <tr><td> <wssawc:SPGridViewPager ID="sgvpPagerTop" runat="server" GridViewId="sgvConversionResults" /> </td></tr> <tr> <td colspan="2" class="ms-vb"> <wssawc:SPGridView runat="s...

ASP session variables leak

Hi folks, How can i look every user session variable on IIS Application Server. This issue is to find a biggest session variable on my application to find a leak because my session timeout requirement is too high. ...

I need to parameterize against sql injection in asp classic, what things should I take some time to get to know before I start making changes? (coming from php)

I can already see that I'm not going to enjoy the experience, but I have to do some sql cleanup on this 1000 file asp classic web-app without any prior knowledge of asp, and before I get to hacking away at it I'd like to be aware of any major gotchas to watch out for while coding in asp classic/sql parameter preparing/making asp whitespa...

Asp with vb.net codebehind, httpfilecollection loses data

I have an html input that i use to upload files. Now on my page when I try to authenticate a user first, and hide the div that the controls are in for my file uploads, the collection is empty. When I dont use runat = "server", it works as expected. Not sure how to get around this. Code: Here is what works...but without hiding... not wha...

How can I convert a bunch of .asp to .aspx ?

Hello, I want to port an existing, legacy, ecommerce website from ASP to ASP.NET. What approaches do I have ? is there a way to run an ASP file with an ASP.NET engine ? are there tools to automatically convert ASP to ASP.NET and do they work on complex websites ? other approaches ? Thanks for your help Jerome Wagner ...

how to store resume(.doc file) in MS Sql

I have Fileupload control in asp.net page if i upload my resume(.doc extension) then it should be stored in SQL database how? ...

Problem showing modelstate errors while using RenderPartialToString

Im using the following code: public string RenderPartialToString(ControllerContext context, string partialViewName, ViewDataDictionary viewData, TempDataDictionary tempData) { ViewEngineResult result = ViewEngines.Engines.FindPartialView(context, partialViewName); if (result.View != null) { Strin...

GridView on the select of row

I need to hide columns in GridView then access the values of these columns in GridViewSelectedIndex using vb.net When I set visible=false for Bound colums i cannot access the values ...

How do you read data from a ADODB stream in ASP as byte values?

I have an ASP routine that gets a binary file's contents and writes it to a stream. The intention is to read it from the stream and process it st the server. So I have: ResponseBody = SomeRequest (SomeURL) ; var BinaryInputStream = Server.CreateObject ("ADODB.Stream") ; BinaryInputStream.Type = 1 ; // binary BinaryInputStream.Open ; ...

How to get the dynamic generated content of an external ASP file using PhP?

This is the situation: I've a PhP login page that check is an external ASP page has generated something (nickname). For example: i'm logged? So opening directly the asp page will display "nickname:thecrius" and nothing more. I'm not logged? So opening the ASP page will display nothing. Now i've to catch the "thecrius" string with a Ph...

ASP MCV multi-view form models

I am pretty new to this stuff but I am running into a concept-wall and I keep going back and forth with the best way to handle the problem. I have a multi-view process to filling out a "New User Form". Each view has a small part of the entire form. In each view I have a model and the model has properties set to an instance of a LINQ to...

Adding Items to an Inner (Nested) ListView

I have 2 asp:ListView controls, one embedded in the other (OuterListView and InnerListView respectively). I am trying to add an asp:linkbutton in the InnerListView layout that will allow the user to add an item to the InnerListView. Unfortunately, when I handle the OnClick event in the linkbutton control, I can't figure out how to get ...

ASP webservice serialization of properties

I got a class like this which gets returned from an ASP webservice: class Data { public int A { get; set; } public int B { get; set; } public int Sum { get { return A + B; } } } When I try to consume the webservice on the client side using Silverlight I only get the properties A and B but I also ne...

Opening read-only OLEDB connection to MS Access back-end database while allowing updates via separate MS Access front-end

I have a back-end MS Access 2002-2003 database which stores blog entries. I created a separate front-end database with the forms for entering blog posts into the backend database. Finally, I have a website utilizing ASP to display the blog entries. The website connects directly to the backend database using an OLEDB connection object. W...

msxml domdocument stops working when I move to staging server

I have some code that looks like this: Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP") xmlHttp.Open "Get", myRSSfile, false xmlHttp.Send() myXML = xmlHttp.ResponseText Set xmlResponse = Server.CreateObject("MSXML2.DomDocument") xmlResponse.async = false xmlResponse.LoadXml(myXML) Set xmlHttp = Nothing Set objLst = xmlRespons...

ASP.NET small online store, shopping cart

Currently I have a site that is using Google Checkout's mini cart system and I like it a lot, however, I'm wondering if there is a more professional way of doing it, while still keeping it simple. I've looked into an authorize.net account, but I need to find a way to handle the mini shopping cart before heading off to process the order....

Classic ASP Recursive function

Hi everyone, I havent done any classic ASP for a couple of years and now trying to get back into it from c# is prooving impossible! I've got a recursive function which very simply is supposed to query a database based on a value passed to the function and once the function has stopped calling itself it returns the recordset....however i...

another onmouseover problem this one concerns pictures

Hi all! have problems with mouseover in Mozilla and Chrome after making it work in IE, for sure I can tell you that my code woked perfectly in Chrome at least, cause thats my default browser and I used it for debuging when creating the javascipt and it worked nicely... until I tried to make it work in IE too. Here I post the full code o...

why does ASP Form loose data when the page is minimized

I have a form built in asp that send the data to a third party app and sql, when the page is minimized and maximized the data i enter in the form initially is lost. can someone explain the probable reason of why this could happen.? ...