|
|
Nope, definitely not. It's a proper server (Not just web hosting or something like that). Any Ideas nonetheless?
Why do you ask, did you experience similar problems?
One difference between test and productivity server exists. On the "real" server there is a http-auth based password check.
Thx for any help
Klaus
|
|
|
|
|
The reason I asked was that you have to change the StateServer with web farms.
|
|
|
|
|
Session variables does not disappear from a session by themselves. Write out the Session.SessionID value somewhere so that you can see if your session ends and you get a new one. If you don't get a new session, there is most likely something in your code that removes the session variables.
---
Year happy = new Year(2007);
|
|
|
|
|
4 All who may have the same problem in the future:
The problem is fixed!
The number of worker processes had been increased to 12 by our administrator. Resetting this value to 1 solves the problem.
Thx Klaus
|
|
|
|
|
Can someone please tell why the list box is not updating?
I have the following procedure to load my list box:
Protected Sub Load_Listbox()
'Purpose: Loads Listbox1 Control with the company titles from
' the AdeptMediaEmployees SQL Server DB
'Parameters: None
'Returns: Nothing
Dim dr As SqlDataReader
Dim cn As SqlConnection = New SqlConnection(MRMFunctions.WebConfigConnString)
Dim ID As String
Dim Title As String
cn.Open()
Try
Dim cd As SqlCommand = New SqlCommand("mrmsp_TitleList", cn)
cd.CommandType = Data.CommandType.StoredProcedure
cd.ExecuteNonQuery()
dr = cd.ExecuteReader
While (dr.Read)
ID = dr("TitleID")
Title = dr("Title")
ListBox1.Items.Add(New ListItem(dr("Title"), dr("TitleID")))
'ListBox1.Items.Add(New ListItem(Title, ID))
End While
Catch ex As Exception
If cn.State <> Data.ConnectionState.Open Then
Msg = "Could not open a connection to the SQL database."
lblErr.Visible = True
lblErr.ForeColor = Drawing.Color.Red
lblErr.Font.Bold = True
lblErr.Text = Msg
End If
Finally
dr.Close()
cn.Close()
End Try
End Sub
The procedure is called from the Page_Load event when the form is first opened.
The problem I have is when I make a change to the data listed in the list box. I call the same procedure from my update event:
Protected Sub btnUpdate_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) _
Handles btnUpdate.Click
If (txtID.Text <> Nothing) And (txtTitle.Text <> Nothing) Then
lblErr.Visible = False
Dim bCont As Boolean = Update_Titles(CDec(txtID.Text), txtTitle.Text)
If Not bCont Then
Msg = "Update_Titles function failed."
lblErr.Visible = True
lblErr.ForeColor = Drawing.Color.Red
lblErr.Font.Bold = True
lblErr.Text = Msg
Else
lblErr.Visible = False
lblErr.ForeColor = Drawing.Color.Red
lblErr.Font.Bold = False
lblErr.Text = Nothing
Call Load_Listbox()
End If
Else
Msg = "Either the ID# or the Title box is empty. " & _
"Both boxes must be populated before I can " & _
"proceed with the update."
lblErr.Visible = True
lblErr.ForeColor = Drawing.Color.Red
lblErr.Font.Bold = True
lblErr.Text = Msg
End If
End Sub
I know the data is being updated, because I can see the updates in the SQL database. I also know the Load_Listbox procedure is being fired, because I stepped through the process and saw the update take place, but the listbox control was not updated.
Can anyone explain why?
Thank you,
Quecumber256
|
|
|
|
|
Hi
It is simple
Just refresh the page or after you add the fields write this:
response.redirect("the page itself")
Ok...
Love All
|
|
|
|
|
Have you placed a breakpoint in Update_Titles() to see if it's ever called? Why are you not simply databinding the listbox?
Instead of that extra code for missing params, try RequiredFieldalidators. It would eliminate 90% of that code.
You also may benefit from throwing exceptions instead of a boolean value.
try
lblErr.Visible = false;
Update_Titles(CDec(txtID.Text), txtTitle.Text);
Load_ListBox();
catch( ex as Exception)
lblErr.Visible = true;
finally
... whatever you want to do next.
|
|
|
|
|
Hey all,
I am having a major problem trying to pull up a word file that has been selected by the user using an HTML file input box (open file dialog box).
If I run it from my computer, the whole path is there when it tries to find the file selected.
If I run it on the webserver, it loses the path of the document.
Here is my code:
protected void openWord()
{
string pathname = File1.Value.ToString(); //HTML File Input Control
//set path of word doc you are opening
object fileName = pathname;
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
//make word document appear
WordObj.Visible = true;
//open specified word document
Microsoft.Office.Interop.Word.Document wordDoc = WordObj.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
When I run this on my machine, its fine, the webserver has word installed on it.
Please help!
Thank you in advance!
Dave
|
|
|
|
|
sorry, Ill give you some output to clarify.
On my machine: C:\foldername\worddocumentselected.doc
On the webserver: worddocumentselected.doc
(path does not exist!)
Why am I losing the "C:\foldername\"?
Thanks Again!
Dave
|
|
|
|
|
many thanks guys
|
|
|
|
|
You need to show your designing skills to get feel like TABS....Use images and call different page on each click of tab.
Amit
|
|
|
|
|
Investigate how it works on known sites (Google, Yahoo ...)
|
|
|
|
|
Hello,
i downloaded the new Ajax 1.0 Framework from Microsoft which has been released yesterday or so. Since all the nice ControlExtensions are based on Javascript id like to make some adjustments to them. For instance i planned to have inverted rounded corners in addition to the other ones. My question is, how can i edit the Javascripts, which are located on my harddisk. I'd like to include these "new" Javascripts in my project instead of the orignial ones.
Can anyone give me some advice on this?
Best regards
Jens
|
|
|
|
|
Hi,
I am getting an InvalidCastException when I am calling a COM object RTCClient from ASP.NET. Below is the exception:
Unable to cast COM object of type 'RTCCore.RTCClientClass' to interface type 'RTCCore.IRTCClient'. This operation failed because the QueryInterface call on the COM component for the interface.
I got know the work arround for this is:
"In your C#/VB.NET code you need to use the Activation Context APIs before
you create your RTCClient object. You will need to use PInvoke to reference
these APIs from your code. The main ones you need are:
CreateActCtx
ActivateActCtx
DeactivateActCtx"
But I am not sure of creating CreateActCtx and play with it. It would be great if some one can help me in doing this.
Thanks in Advance:
Rakesh
|
|
|
|
|
Hi,
how to get the duration of an mp3 file using c#
Regards,
Sivaprasad
|
|
|
|
|
Hi,
Some one please help me in solving the below exception.
Below is the exception thrown when I am calling a COM object RTCClient from ASP.NET:
"Unable to cast COM object of type 'RTCCore.RTCClientClass' to interface type 'RTCCore.IRTCClient'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{07829E45-9A34-408E-A011-BDDF13487CD1}' failed with HRESULT: 0x80004002 (No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)))."}
Calling COM from WinForm C# code working fine with no issue. This exception is thrown only when I call this COM from asp.net C# code.
Rakesh
|
|
|
|
|
tell me the way to using dotnet code implementing minor programs that can be do with HTML
aravindiaka
|
|
|
|
|
|
Hi.
I have a strange problem wuth IFRAME.
I have page aaa.aspx with an IFRAME that contain page bbb.aspx.
page bbb.aspx sometimes redirect him self to page ccc.aspx.
The problem is that after I loaded the aaa.aspx page I want to know what page do I see in the IFRAME. (aaa or bbb).
What I've tried to do is to run a JS in the onLoad of aaa.aspx that after 5 seconds get the "src" property of the IFRAME but I saw that even if bbb.aspx redirect to ccc.aspx the source is still bbb.aspx.
I know it complex but I really hope you can help me.
Thanks.
|
|
|
|
|
Why don't you just temporarily change the two pages to display the name of each...
|
|
|
|
|
I'll explain the problem again:
I don't have access to pages aaa OR bbb.
Thats way I need from the parent page (The one that hold the IFRAME) to know the real URL inside the IFRAME and then I can know whice page is display.
Thanks!
|
|
|
|
|
I have problem with session expiration in windows 2003 server. It is being expired even I am continuously using the application. Session may expire if I don't use the application for sometime. But I am continuously using without keeping idle even for 5 min, it is getting expired.I have configured SessionTimeOut to 60 minutes Web.Config though session timeout's in 20 minutes .I need your help very urgent.
But, in windowsXP hasn't the problem .
|
|
|
|
|
I am using combo box and text box controls and i am using ado.net.so could you please guide me how to use these controls in datagrid and how to edit the datagrid values.
|
|
|
|
|