|
Yes its port 80
The port numbers assigned are random, based on what VStudio decides to use for its virtual server.
however once I publish the web app to the wwwroot directory, http://localhost/AppName should be all thats required, to the best of my knowledge.
|
|
|
|
|
We are moving to .NET slowly. We have an ASP.NET log-in/admin that has links to multiple ASP 3.0 sites. The problem we are having is the session timeout. I can not figure out a way to update the clock on the .NET side. Most of our users will use the Legacy side until we slowly convert them over. We decided that making a response.redirect specific "ping" pages in ASP 3.0 and .NET will not be a good solution. We have many independent sites that we are going to tie into this .NET "hub". But recoding all of the sites to use the "ping" solution is not what we are currently looking for. Right now I just set the .NET timeout to 60 min and hope for the best. Has anyone had this problem? What was your solution? Any suggestions?
Thank you in advance!
|
|
|
|
|
Seems the two sites are completely independant you'll struggle to keep the .net session alive if you user isn't actually on that site. You could possibly create an isapi filter that all requests to your legacy site go through which will automatically redirect to a page on the .net site that can direct back out to the legacy site again.
|
|
|
|
|
Thank you for your reply.
I am still trying to find another solution.
We have played with the redirect but it seems like there has to be a better solution.
Right now we just increase the .NET session.
Thank you again.
|
|
|
|
|
I'm trying to create an automatic test on different page-types. But I do not succeed in creating a page-instance with its controls. Do anyone know how I can solve it.
I have tried this:
Type pageType = Page.GetType();
Page newPage = (Page)pageType.GetConstructor(new Type[0]).Invoke(new object[0]);
if (Page.Controls.Count == 0)
{
throw new Exception("No controls");
}
I get the controls if I call the processRequest-method like here below but this method executes the page and that is not a optimal solution. I only want to get the controls and not execute the page. Is there a way to solve it?
Type pageType = Page.GetType();
Page newPage = (Page)pageType.GetConstructor(new Type[0]).Invoke(new object[0]);
newPage.ProcessRequest(HttpContext.Current);
I have identified that the controls are created somewhere after the InitializeCulture-method and before the OnPreInit-method. But as I said I have problems in finding the method that creates controls. Do someone have a clue?
|
|
|
|
|
Controls are actually Web is working only using Request and Response.
It is better to use invoke a request to find the processed value.
When you call the constructor the objects will be created but it will not be added to the Control Collection. I think there must be one event (I have to look) which does this for you before and also calls PreInit.
I need to take a look on the DLL it produces and use Reflector
You can also try that. But why do you want to create object of Page.. when you dont want response to be sent to the client.
asp.NET calls an HTTPHandler, so when you create any handler it calls its processrequest and the process automates. Page is also a Handler so it calls its processrequest to get the response.
Hope you understand.
|
|
|
|
|
Thank you for your answer! The method that adds the controls to the control collection is pretty hard to find I have tried to find it for many hours now with reflector but it's not easy. If you find it I will be very glad!
The reason I want to get the controls is to create a automatic test that validates the mapping between the domain entity and the page.
|
|
|
|
|
Hello guys,
I'm creating a very basic CMS which contains a File-Explorer. In this explorer it's possible to select an File from a ListBox, and do several options with the file then. My problem is: I have told the ListBox todo a Postback, but everytime this Event is fired my function isn't able to get the selected item, I get nothing.
Protected Sub ListBoxDir_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBoxDir.SelectedIndexChanged
If ListBoxDir.SelectedItem Is Nothing Then
ErrorMessage.Text = "An error occured!"
Exit Sub
End If
End Sub
I always get the error.
By the way: I'm using Visual Web Developer 2008 Express (That shouldn't mind), AND I've button the Listbox into an UpdatePanel:
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<!--Many Buttons, Textboxes etc., and the Listbox are here.-->
<EndingTags for all the AJAX-Stuff>
I didn't forgot to enter a ScriptManager.
Everything seems so weird...
|
|
|
|
|
Try loading the listbox during page load and under if not is postback(uuor code). At what point do you fill list box?
|
|
|
|
|
Thank you! I filled the Listbox at Page_Load. I now limitted the Filling just on Page.Postback=false and it's working great now!
|
|
|
|
|
Any one with question conserning crystal reports 10 with oracle and asp.net? I wanna answer them now live
|
|
|
|
|
Dont need such messages.
|
|
|
|
|
Hi,
Can TFS2010 do the parallel Db restore.if possible How it can be ...
Thanks
Anand
|
|
|
|
|
How is this in any way related to ASP.NET
only two letters away from being an asset
|
|
|
|
|
Its all about in Build,Deploy in Lab management
I need it for automated Deploy without custom code.
|
|
|
|
|
It has nothing to do with ASP.NET!!!
only two letters away from being an asset
|
|
|
|
|
Pass me any book on TS2010 or try DB forum
|
|
|
|
|
Not really related to ASP.NET.
But I will try to answer your question. AFAIK TFS is built upon a SQL Server, so the question you should ask is: "Does SQL Server 2008 support parallel DB restore?" (Will there be a newer version of SQL Server ? 2010?
regards
Sebastian
|
|
|
|
|
I think answer is no.. Each Engine can Restore only one db at a time, I have seen this upto SQL server 2008.
Dont know about 2010 as it is not released yet.
|
|
|
|
|
hi ,
I am using Intelligencia.UrlRewriter.dll to rewrite my page url.
it work very well on my local computer but when i upload this page on my web server
url rewrite not work it gave an error. The page cannot be found
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
plz suggest me how can i correct this problem.
thanks in advance.
no knowledge in .net
|
|
|
|
|
Well, seems like your rewriting is not correct. The IIS writes every request (with URL) to a log, check this log to see the URL which causes the error.
Did you implemented the UrlRewriter?
|
|
|
|
|
Unknown Ajanabi wrote: no knowledge in .net
Wow - interesting sig.
Why do you need a dll to do URL rewriting ? Why not write your own code ? Did you read the docs that come with the dll, or ask in a forum dedicated to people who use this dll ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi, I have populated a dropdownlist using javascript.After that whenever I post the page using any button or anything I get the following error :
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Please give me a solution to this problem.
CC26
|
|
|
|
|
set: EnableEventValidation="false"
this will solve your problem
|
|
|
|
|
will it affect any other control's event?
CC26
|
|
|
|