Determine Which Web Server Is Being Used?
Jan 13, 2011
I have a web app (ASP.net with VB.net) that will run on one of three web servers. I would like to know, at run time, which web server the app is on. How can I determine which web server the app is on?
View 2 Replies
Similar Messages:
Feb 24, 2011
I have a test server link called http://en-test/application_report (this is just a sample example). The link is associated for when the application is placed on the test server
now if the application is placed on the production server, then it is[URL]. What i would like to do is to determine the link and if it is the test server then use the test database which is testdb and if it is the production server then use the production database which is proddb.
View 8 Replies
Nov 16, 2010
have a table where there are no timestamp/date fields and I would like to determine the datetime or timestamp that each record was inserted into the table.
View 4 Replies
Jul 15, 2010
dynamic SQL determine if Table exist?
View 1 Replies
Feb 4, 2011
Let's say I have a DropDownList server control, called "CategoriesDDL" and the ClientID proeprty determines its client side id, which is its ID prefixed with the id's NamingContainer's ids. In this case the client side ID is CP1_CategoriesDDL. But what is the rule regarding the client side name, in this case "ct100$CP1_CategoriesDDL"?
View 2 Replies
Feb 22, 2010
I want to determine the browser type in code-behine file using C# on ASP.NET page.If it is IE 6.0, I have to execute certail lines of code.Can anybody provide code sample.
View 1 Replies
Jan 6, 2011
M - RI have a page like that and the control structure is like that.
UpdatePanel
Button
ModalPopupExtender
ModalPopup Content Container
Initially, ModalPopup Content Container is an empty control.After user clicks on the Button, a async postback will be triggered. During the postback, the server generates the content and appends to ModalPopup Content Container.Also sets the properties of ModalPopupExtender. Finally, calls ModalPopupExtender.Show() method and UpdatePanel.Update() method to show the modal popup.
This method works fine if all controls in ModalPopup Content Container contains simple control. If a control is a button that needs to postback to server side, that is a problem.Since the controls in ModalPopup Content Container is dynamically created. If a control in ModalPopup Content Container triggers a postback event, the control must be created before RaisePostBackEvent is called in server side.
My idea is to determine whether the ModalPopupExtender is hidden or shown in client side in order to re-generate the dynamic control in ModalPopup Content Container.So my question is how to determine a ModalPopupExtender is hidden or shown.
View 1 Replies
Jan 16, 2010
if there is a way to determine if the default document has been served using .net? I thought perhaps something would be available in the server variables, but I can't seem to find anything that distinguishes between [URL] and [URL]
View 3 Replies
Jul 11, 2010
I have a VB.NET VS2010 solution with a WinForms project that calls a web site project in the same solution. I can step into this web method: <WebMethod()> Public Function GetStartUpData() As DataSet and other web methods, but not the following method. I wonder if it has to do with the fact that that is the only web method that uses a parameter of Nullable type. The method works, I just can't step into it .If I try, I get the error: Unable to automatically step into server. unable to determine a stopping location
<WebMethod()>
Public Function RetrieveOrdersByFilter( _
ByVal customerId As Nullable(Of Integer), _
ByVal fromDate As Nullable(Of Date), _
ByVal toDate As Nullable(Of Date), _
ByVal fromStatusCodeId As Nullable(Of Integer), _
ByVal toStatusCodeId As Nullable(Of Integer)) As DataSet
View 1 Replies
Jul 29, 2010
I found lots of sites telling me how to put a database into single user mode, but how can I determine what mode a database is currently in?
View 2 Replies
Jul 30, 2010
New project requires that the server space be displayed and what the total content is of a folder. Where can i find information on how to do this? can someone provide a small sample or links to information i can review.
View 9 Replies
Aug 18, 2010
I'm writing a SQL query where I need to detect if the value of an integer column in one table is contained within the value of a varchar column of another table. For example:
Table1 has columns A, B, C
A = 1
B = 2
C = 3
Table2 has columns D, E, F
D = "1,2,3,4,5"
E = "2, 5, 10, 15"
F = "1, 3, 49"
How would I write SQL SELECT statement to determine if the value in Table1.A is in Table2.D, Table1.B is in Table2.E, and Table1.C is in Table2.F?
View 7 Replies
Jan 13, 2010
What is the best way to determine "user logout" on IIS server in C#/Asp.Net?
I have an application where the logged in users can initiate long running activities on the server. Those activities need to be terminated when the user logs out.
It is not a problem when the user clicks on the logout, but how do I determine that the user has logged out for example in cases like the user's browser crash, user looses his connection etc.
View 3 Replies
May 20, 2010
I am trying to work out how to calculate the latency of requests through a web-app (Javascript) to a .net webservice.
Currently I am essentially trying to sync both client and server time, which when hitting the webservice I can look at the offset (which would accurately show the 'up' latency.
The problem is - when you sync the time's, you have to factor in latency for that also. So currently I am timeing the sync request (round trip) and dividing by 2, in an attempt to get the 'up' latency...and then modify the sync accordingly.
This works on the assumption that latency is symmetrical, which it isn't. Does anyone know a procedure that would be able to determine specifically the up/down latency of a JS http request to a .net service? If it needs to involve multiple handshakes thats fine, what ever is as accurate as possible.
View 1 Replies
Jul 2, 2010
How can I determine where a user came from when they land on my webpage.Did they come from a google link?Did they user a favorites link?Did they type in the url?
View 4 Replies
Mar 10, 2010
I have a bit of xml file named Sample.xml which is shown below
[Code]....
i have button named submit(button1).If i click that button i need to display the count in a text box named textBox1, means How many PartitionName="AIX" is belonging to Type="NIC"
View 1 Replies
Dec 21, 2010
I made some adding of dynamic checkbox and it would be located in the panel. And at the same time the checkbox would be save also in my List(Of Checkbox).
BTW, my checkbox is not the HTML control (if that's how you call it). Now i made some function wherein Im going to get all the state of my checkbox in that particular panel. This is how I do it:
Code:
For Each ctrl As Checkbox In listControl
if ctrl.checked = true then
' code here
end if
Next
Unfortunately nothing happen. So how am I going to check the state of my checkbox. I already test all the checkbox saved in my list(of T) and also tried looping "Me.pnlControl.COntrols"
View 7 Replies
Aug 27, 2010
The page I'm editing had three tabs, each tab contains a diffrent grid view which is populated by a search box with in the tab. Each row in the grid view has a check box. When a print button is pressed all records with a tick in the check box should be printed off. Then page then reloads but some of the content is missing due to the way the page has been coded. This is becuase some of the code is only called when the tab is clicked not on postback. Is there anyway that I change the following code so that it's called after postback? These are the functions that are causing the most problem.. I need them to be loaded for the correct tab on postback.. I can't do it for all three as the code takes forever to run in that case.
AddActionsToGridView(gvGlobal);
AddCheckboxesToGridView(gvGlobal);
{
if (tabconConsignments.ActiveTabIndex == 0)
{
dtGlobalIDConsignments = fGenerateTableSQL(astrPalletIDs, DateFrom, DateTo, ddlReqColDel.SelectedValue, "GlobalID", "", "");
//Global ID Tab
gvGlobal.DataSource = dtGlobalIDConsignments;
gvGlobal.DataBind();
//Actions
AddActionsToGridView(gvGlobal);
AddCheckboxesToGridView(gvGlobal);
}
else if (tabconConsignments.ActiveTabIndex == 1)
{
dtCreatedDateConsignments = fGenerateTableSQL(astrPalletIDs, DateFrom, DateTo, ddlReqColDel.SelectedValue, "CreatedDate", "", "");
//Created Date Tab
gvCreationDate.DataSource = dtCreatedDateConsignments;
gvCreationDate.DataBind();
tbCreationDateSearch.Text = "";
//Actions
AddActionsToGridView(gvCreationDate);
AddCheckboxesToGridView(gvCreationDate);
}
else if (tabconConsignments.ActiveTabIndex == 2)
{
dtAccountsConsignments = fGenerateTableSQL(astrPalletIDs, DateFrom, DateTo, ddlReqColDel.SelectedValue, "Account", "", "");
//Account Tab
gvAccount.DataSource = dtAccountsConsignments;
gvAccount.DataBind();
AddActionsToGridView(gvAccount);
AddCheckboxesToGridView(gvAccount);
}
if you want me to post any more code or any more info it's been a hard one for me to get my head around so I might of missed something out.
View 2 Replies
Mar 9, 2010
I am running an ASP.NET application on an IIS7 server. It has been running fine for a long time, but over the past week or so it has been discarding all users' sessions several times a day. I enabled all of the application pool recycle logging options as described in http://blogs.iis.net/ganekar/archive/2008/12/12/iis-7-0-application-pool-recycles-log-a-event-in-windows-event-log.aspx, but I didn't get anything in my event log.
There are no errors in the event log, and no visible symptoms except that all my users lose their sessions.
Are there any other reasons that IIS would recycle my application pool? Is there any other type of logging that I can enable to find out what is happening?
View 2 Replies
Dec 8, 2010
I want to know how can I determine what was the back page using C#?
View 2 Replies
Feb 1, 2011
i just strated with asp.net mvc. My doubt is in a controller we use
public ActionResult Index()
{
return View();
}
so how a relevent view is returned for a particular controller.
View 4 Replies
Dec 22, 2010
My .NET 4 webapp produces an error in the way "A potentially dangerous Request.Form value was detected from the client. . .", where no error occured in the same project in version .NET 3.5
Before I put <httpRuntime requestValidationMode="2.0" /> in web.config I would like to determine, if there is a way to leave the new requestValidationMode.The thing is, that the characters entered in the user webeditor (freetextbox.com) are generating the error as soon as they are passed to the aspx page.It is importand to know that the aspx page contains ValidateRequest="false" in the head-section.
View 1 Replies
Aug 16, 2010
I am changing my ASP.NET app to use a web farm. To do this, I need to change the session state from in-proc to a State Server. To do this, it is my understanding that the classes that are used must be marked as serializable. How can you tell if that is possible with a class? Will you get an error at compile time if it is not possible?
View 2 Replies
Nov 19, 2010
I have a ASP.NET web application running under IIS 6, and another process that is responsible to monitor and report status. I'd like to sample the web application by the monitoring process in order to check its status by accessing a dedicated handler on the web application, BUT i don't want to "wake up" the web application in case it is not running. Is there an option to determine whether a specific web application is currently running? if there is such an option, i would be able to first check if the application is running, and only then to access the handler to check its status.
View 6 Replies
Jan 31, 2010
How can I determine programmatically whether or not ELMAH is enabled?
View 2 Replies