|
hi sialkot,
thanks for trying... the issue here is when i try redirecting page within iframe using response.redirect or server.transfer it does not work in IE.
Of course may be i appear unclear with such a weird question but
what i want to know if anyone can let me know what issues to address when redirecting aspx page within a iframe
Question1:i lose session data and exception occurs that thread has been aborted.
so my question is how can i redirect page in a iframe while loading session variables just before the redirect.
Question 2: is there any way to change the url of application from display from user and use our own website url?
i hope i am clearer now...
thanks for help...
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
rama charan wrote: hope i am clearer now...
Not question 2
As for #1, how are you doing the redirect? If you are using Response.Redirect, look at the secnd parameter for that method.
only two letters away from being an asset
|
|
|
|
|
thanks mark for your help
1)yes i have already tried using response.redirect ("mypage.aspx",false) but still it does not work when i tried like response.redirect("~/mypage.aspx",false) it works. but then the issue occurs when i press any link on menu like "link1.aspx" then i am redirected to login page as the pages are accessible only to authenticated users. hope i am clear about my first question
2)then second question is all these issues to redirect occur only when my application runs in iframe completely but when it is running outside its fine.
so i use iframe to use website address for my application.So i wanted to know if there any way to hide my appplication page addresses like 34.23.23.12:6780\login.aspx
but instead show like
mywebsite.com
thanks all once again for your efforts
but give out any suggestions or help regarding this i feel i am not still out with a complete solution
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
|
rama charan wrote: i lose session data
Exactly what session data are you losing?
rama charan wrote: exception occurs that thread has been aborted.
That is normal. That is how the Response.Redirect command exits from the current page. You are not supposed to catch that exception. When you catch exceptions, you should only catch the ones that you know how to handle.
rama charan wrote: is there any way to change the url of application from display from user and use our own website url?
The url shown in the browser is always the url of the page displayed. You can never change that.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: The url shown in the browser is always the url of the page displayed. You can never change that.
UrlRewrite ??
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: UrlRewrite ??
Then you are changing the url of the page on the server. The browser still displays the url of the page.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Why do you think that?
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to send the email to the sites like yahoo,gmail.....
I'm sending my code below plz have a look and let me know the problems in my code
I'm getting the error
Could not access 'CDO.Message' object.
MailMessage mail=new MailMessage();
mail.To="msb1984_620@yahoo.com";
mail.From="Manoj Bisht";
mail.Subject="Default Page";
mail.Priority=MailPriority.High;
mail.Body="Hello How R U Manoj Bisht";
try
{
SmtpMail.SmtpServer="mail.yahoo.com";
SmtpMail.Send(mail);
lblMsg.Text="Record Saved Successfully";
lblMsg.ForeColor=Color.Green;
}
catch(Exception ex)
{
lblMsg.Text=ex.Message.ToString();
lblMsg.ForeColor=Color.Red;
}
|
|
|
|
|
You have to be kidding. Do you think Yahoo is going to let you use their smtp server to send mail so you can spam people?
I didn't get any requirements for the signature
|
|
|
|
|
Hi there.
Question from a newbie in the .net dev scene...
I was wondering if there are any alternative webservers to IIS for doing ASP.NET development ?
I just want to set myself up a ASP environment on my home winXP PC to "refresh" my web development skills...
Any hints will be much appreciated.
Regards,
Robert
|
|
|
|
|
|
Thanks for the info!
Much appreciated.
R.
|
|
|
|
|
hi,
I am using dundas charts in an application. my data for x axis is coming in the form of weeks from database.
as like 13/07/2007,20/07/2007...
The problem is that x axis labels are displaying by default but I want to fix the interval of four weeks on x-axis.
How can I do that.
If anyone have any soln please give me..
thanks.
hiiiiii
|
|
|
|
|
Hi everybody,
I've a little problem! In fact, i've got to make an update fonction. I need to reach my UserControl passing by my Repeater Control! Any suggestions?! I really need a help!
|
|
|
|
|
foreach (RepeaterItem ri in this.rpt.Items)<br />
{<br />
if (ri.ItemType == ListItemType.Item || ri.ItemType == ListItemType.AlternatingItem)<br />
{<br />
UserControls.Object objUc = (UserControls.Object)ri.FindControl("ObjectId");<br />
}<br />
}
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I have an issue with creating dynamic controls and retaining them when the page refreshes.
The situation is like this.On the Page_load i creating few sets of questions along with choices(Using radio buttons "Yes" and "No").All the radio buttons are dynamically created.For the first question, if the user clicks the "No" radiobutton, i shud show one more question with a "Checkbox", which should be dynamically created on the selection of "No" radiobutton.The same question pattern repeats for 3 times.So for the first question of each set the above condition should apply.What i did was when i created the "No" radiobutton of first question of each set, i made the "Autopostback" to true and attached one event handler with that, which will create the checkbox dynamically.But what happens is that, when i click the "No" radiobutton of the first question of the second set of questions, the checkbox created when we clicked the first set "No" radiobutton will vanish and a new checkbox will come near to the second set.What i need is to retain the first checkbox also.I found that when i'm clciking the Second "no" button the page reloads and the first checkbox is not retained.(Remember the checkbox creation is attached with the corresponding "no" button click).
Also i can't use "Session" to retain the controls that i created, since my application wont support Session variables.
Please help me in finding an optimal solution.
Thanks in advance!
Thanks & Regards,
V.Sathyanarayanan
|
|
|
|
|
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
|
|
|
|