|
No, there isn't.
Although the page in the iframe is visible inside the other page, they are in fact separate windows. The concept of separate windows is handled entirely by the browser, the server is not at all aware of the relation between the windows in the browser.
What is sent to the server is just a request for a page, there is no information of where (or even if) the page will be displayed. The server just returns the response for the requested page, it has no way of accessing any other windows that the browser might have.
If you want to access other windows, you have to put client script in the page that does that.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Hi,
I want a specified user admin to access a page users.aspx and no other user can have access to that page. How can i achieve that through web.config
Thanks & Regards
Mishra
|
|
|
|
|
|
Hi All,
I have a problem in my web service application. I have created the web service in visual studio 2005 in which a method ReceiveMsg(string strMessage) accept the string(in Xml format) from the client and created the xml file. The web service is hosted on the IP(.203) , when I access this service from another IP(.73) it working fine and return “SUCCESS”. But when the client accesses this service they receive the “Fail” message. I have created the log file for this method. When client access this method a message “string instance not set to an instance of the string” is inserted into the log file.
Following is the code of the ReceiveMsg(string strMessage) method.
[WebMethod]
public string ReceiveMsg(string strMessage)
{
string strFinalResponse = null;
try
{
strFinalResponse = "SUCCESS";
intNo++; // this is static variable.
string strdocPath;
strdocPath = "C:\\RQFEED\\RQ"+intNo+".XML";
Byte[] docbinaryarray = Encoding.GetEncoding(1253).GetBytes(strMessage);
FileStream objfilestream = new FileStream(strdocPath, FileMode.Create, FileAccess.ReadWrite);
objfilestream.Write(docbinaryarray, 0, docbinaryarray.Length);
objfilestream.Close();
CreateLogFiles Err = new CreateLogFiles();
Err.ErrorLog(Server.MapPath("Logs/ErrorLog"), strMessage);
return strFinalResponse;
}
catch (Exception ex)
{
strFinalResponse = "FAIL";
CreateLogFiles Err = new CreateLogFiles();
Err.ErrorLog(Server.MapPath("Logs/ErrorLog"), ex.Message);
return strFinalResponse;
}
}
Please help me as asap.
Thanks with Regards
Ashutosh Kumar
|
|
|
|
|
I'm looking for some code to be able to open an application through a asp webpage (C# code behind). I know how to do this through a windows application, but the same code does not apply to web apps. Any suggestions?
|
|
|
|
|
If you want to open the application on the server,the same code should apply. However this will fail unless you change the permissions;
Doing this on the client is more difficult.
One way of doing it is to install a protocol for the application. Another one would be using an ActiveX control.
|
|
|
|
|
Nisha_D wrote: This will open an notepad.
yeah - on the server
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Dear All,
I am using ASP.NET 1.1 version. I am using the below connection string. My database server name is "KUMAR" & Database name "AIMS" and I am using "Windows Authentication".
constr="workstation id=KUMAR;packet size=4096;user id=sa;integrated security=SSPI;data source=KUMAR;persist security info=False;initial catalog=AIMS";<br />
<br />
SqlConnection con=new SqlConnection(constr);
I am getting error in the below code:
con.Open();
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'SETHU\ASPNET'.
Can any one help me to solve this? I believe that my Connection String is not well formed.
(Note: I have just copied it from the auto generated connection string, while configuring the SqlDataAdapter)
Regards,
Jay
|
|
|
|
|
Where is the password i think you have put it
pwd=sa;
con=("server=(local);user id=sa;pwd=sa;database=pubs")
or
con=("server=(local);integrated security=true;database=pubs")
|
|
|
|
|
Hi,
Actually I am using Windows Authentication mode.
I have found the same problem here also.
Jay
Regards,
Jay
|
|
|
|
|
|
Dear Sir
I am not understand your terms. Can you please explain me. It will be helpful for me.
Thanks
Jay
Regards,
Jay
|
|
|
|
|
Parwej Ahamad wrote: Keep Smiling !!!
Why? Are you trying to hack this guy's site and gain access to his server?
|
|
|
|
|
Please do not follow that advice. Do not make ASPNET a member of the administrators group. It will open your server up to all sorts of security concerns. If an ASP.NET application has any flaws in it (and there is no such thing as bug free code) then an attacker could gain access to your entire machine with Admin privileges. You do not want to give an attacker this kind of access.
|
|
|
|
|
Parwej Ahamad wrote: Add ASPNET user in administrator group.
That is the most stupidly absurd response I've seen. Please, for everyone's sake, learn about security.
The ASPNET account should not now and not ever be given administrator privileges.
|
|
|
|
|
Thanks Mr.Colin
Now I know the vulnerability of this kind of replies. Without that knowlege, I have tried that one. Thanks a lot for your valuable info to all.
Regards,
Jay
|
|
|
|
|
The message you referenced here was deleted. Are you seriously saying that some idiot recommended blowing the security wide open? What the hell are these people thinking?
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: The message you referenced here was deleted. Are you seriously saying that some idiot recommended blowing the security wide open? What the hell are these people thinking?
In answer to your first question: Yes. They recommended adding the ASPNET machine account to the Administrators group
In answer to your second question: No idea.
|
|
|
|
|
Jay_se wrote: I am using ASP.NET 1.1 version. I am using the below connection string. My database server name is "KUMAR" & Database name "AIMS" and I am using "Windows Authentication".
You'll have to give the SETHU\ASPNET user permissions to your database.
|
|
|
|
|
Dear Sir,
How to set the Permission? Kindly give me the guidance.
Server Name : SETHU
DataBase : AIMS
Logged In as : Administrator
Regards,
Jay
|
|
|
|
|
Jay_se wrote: Dear Sir,
How to set the Permission? Kindly give me the guidance.
Server Name : SETHU
DataBase : AIMS
Logged In as : Administrator
Well, that depends on your SQL version. I tend to use Enterprise Manager and add the user and permissions via the usual manner.
Google will provide specific details for your SQL version.
|
|
|
|
|
Did you add this user to ur database ? the ASP user/? so u can gain access
Estarta
|
|
|
|
|
Dear Sir,
Thanks for your guidance. I have given the SETHU/ASPNET user, the permission to access the DB. Now it works fine
Thank you
Regards,
Jay
|
|
|
|
|
i'm a beginner in ASP.NET 2005. As i know, to make a report from a database, i have to create a helper class with a property that returns a populate instance of the DataSet. Can i use a DataSet that i've created for a gridview before? Please help me.
|
|
|
|
|
Please some one send me list of questions that i should see for crystal reports.i want to know what the demo i should practise while doing crysal reports
please help me i would be very gratefull
|
|
|
|