|
Start with the simple stuff. Make sure you have the EnableViewState property set to true on the disappearing controls. Also make sure that you have all your initial page_load code within an if block to check for postback, i.e. if (!this.IsPostBack) . If that doesn't work, you can always check the value's of subsequent buttons and checkboxes on postback and repopulate prior buttons and checkboxes accordingly.
- Arcond
|
|
|
|
|
Hi every one. Please help.
I am connecting to a database via a webservice and it works great..
but then i have to connect my GUI via my codebehind page to the webservice and then i get this error.....
Everything works at home on a stand alone computer but not here at college on a networked computer. Can anyone tell me why and what i can do to fix it? Thanks
--------------------------------------------------------------------
error attached
--------------------------------------------------------------------
No connection could be made because the target machine actively refused it
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
Source Error:
Line 61: string theight,
Line 62: string tphoto) {
Line 63: object[] results = this.Invoke("InsertClient", new object[] {
Line 64: tfirstName,
Line 65: tlastName,
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web page\c818c298\b074d3c7\App_WebReferences.qyhgim7u.1.cs Line: 63
Stack Trace:
[SocketException (0x274d): No connection could be made because the target machine actively refused it]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +200
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +60
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +579
[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream() +732
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +176
localhost.WebServ.InsertClient(String tfirstName, String tlastName, Int32 tidNumber, String taddress, String tpostalCode, String tcellPhone, String temail, String tpassword, String tusername, String tquestion, String tanswer, String tgender, String thair, String teyes, String tethnic, String theight, String tphoto) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web page\c818c298\b074d3c7\App_WebReferences.qyhgim7u.1.cs:63
Reg.cmdSubmit_Click1(Object sender, EventArgs e) in C:\Documents and Settings\craig\Desktop\Web Page\reg.vb:70
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +96
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +116
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3839
|
|
|
|
|
Please don't cross post.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Hi,
I am having linkbuttons using buttonfield column. grid gets diplayed and when click the linkbutton to open new window using window.open(Javascript)in rowcommand.every thing works fine.
Issue is:
1.when I first time I click the linkbutton on the grid - opens a page A in new window(window.open).
2.when I second time I click the another linkbutton on the grid - opens a page B in new window(window.open).
3.Then I click the back button on the browser of main window(parent window where the grid is) - now It automatically opens up the page A , Which I dont expect.
Please let me know how to avoid the window that get opened up when I go back on the browser.
For your Information I Paste the code I use.
Linkbutton column:
<asp:buttonfield commandname="proj_no" datatextfield="proj_no" headertext="Project No."
="" text="Button">
<itemstyle cssclass="ca_item_proj">
<headerstyle cssclass="ca_header_border">
Rowcommand:
If e.CommandName = "proj_no" Then
Dim i As Integer = Convert.ToInt32(e.CommandArgument)
Dim ctrl As Control = gv_tdlist.Rows(i).Cells(0).Controls(0)
Dim proj_no As String
proj_no = CType(ctrl, LinkButton).Text
Session("projectno") = proj_no
Response.Write("javascript:window.open('LinkAspApp.aspx','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=yes,status=yes');")
endif
I think this occurs due to Child windows gets cached in the memory of parent
window, so when we go back in the parent window it automatically opens the child windows that were opened before.
Thanks
Mohamed
|
|
|
|
|
use proj_no.Attributes.Add() method to call javascript.
Best regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi all
i got this article for SSRS
http://www.codeproject.com/aspnet/AHCreatRepsAspNet.asp
This article is nice. In this they have used Web server and Report is Same. They have used one Solution for both. I have a query, we are using different servers for both Web and Report. Now How can i use a report which is created in Report server into Web page which is in the Web server.
Any one help me?
Thanks in advance.
Dosth
|
|
|
|
|
Hello all,
i have a PDF file in that i have some hyperlinks i want to check the hyperlinks that tey are nevigated correctly or not?
can i check it by using .Net 2.0 if yes then please give me Link/Code/hint
can i write macro in pdf file ??????
please help....
thankx in advance
- koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
hi
i have a web application in vs2005 with 3 layer.
but after 2 or 3 hours i have an exception that memory is low
(The "ResolveAssemblyReference" task failed unexpectedly.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
at Microsoft.Build.Tasks.ReferenceTable.SetPrimaryFileItem(ITaskItem referenceAssemblyFile)
at Microsoft.Build.Tasks.ReferenceTable.SetPrimaryItems(ITaskItem[] referenceAssemblyFiles, ITaskItem[] referenceAssemblyNames, ArrayList exceptions)
at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime)
at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
)
what i can do for resolve this problem?
thanks.
|
|
|
|
|
|
Hi.
i cannot figure out what's problem with this code because i run when i run on asp.net is running perfectly but with asp.net Ajax it doesn't give me any error but it doesn't display any data on gridview.is there something i should set up before.
string conString = @"Data Source=DAKESERVER;Initial Catalog=K2;User ID=sa";
SqlConnection conProcinst = new SqlConnection(conString);
conProcinst.Open();
SqlCommand cmdProcinst = new SqlCommand();
try
{
cmdProcinst.CommandText = "SELECT * FROM _ProcInst";
cmdProcinst.Connection = conProcinst;
SqlDataReader drProcinst = cmdProcinst.ExecuteReader();
GridView1.DataSource = drProcinst;
GridView1.DataBind();
drProcinst.Close();
}
catch (Exception ex)
{
lblMessage.Text = ex.Message;
}
finally
{
conProcinst.Close();
}
-- modified at 7:49 Tuesday 7th August, 2007
Mamphekgo
|
|
|
|
|
mamphekgojakes wrote: SqlDataReader drProcinst = cmdProcinst.ExecuteReader();
|
|
|
|
|
can you please try to explain your answer because i cannot see anything
Mamphekgo
|
|
|
|
|
First, do you really need such a costly connected datasource?
Second, did you set the columns to bind in WebForm (.aspx)?
|
|
|
|
|
Hi,
In my application i am using mail concept while clicking the send button i am getting the error that" CDO message object could not found" i know that i need to install CDO.dll in my system ,but how to install that object from command object i am while windows xp as my operating system.
Can any body help from this situation
thanks in advance,
Balu.
|
|
|
|
|
|
hi all,
My problem is how to create an aspx page dynamically from another aspx page in the client side.
thank you
santosh
|
|
|
|
|
You probably need to describe what you want to achieve. aspx pages can only exist on the server, they exist as engines to generate HTML and script for the client.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Possibly they want to do this[^] or this.[^]
Dunno, just a guess....
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
Thank you,
My problem is
Its basically an website builder type if their is a domain named www.xyz.com, an new user will signup and he can get his domain named www.user.xyz.com. so a new user can add a new page in his account with his own images in his domain.
thnak you.
santosh
|
|
|
|
|
|
You cannot create aspx pages dynamically. They have to reside on the server. Tell us what you need to achieve and maybe we can suggest an alternative.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
My reply three or four posts up gives links to the posters original posts. All the detail is in there.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
Sorry, I haven't followed the links.
Looking now why he/she needs to add a new page dynamically
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
I think U dont need to create new page dynamically.
U can achive ur goal using URL ReWritting methond
Search on google for that
Best Regard
Pathan
---------------------------------------------------
|
|
|
|