|
I'm trying to pass data from one page on one server to another page on differnt server.
I get error on the page : "Access Denied"
Firstly can value be passed from a page on one application on on server to another page on another application on a different server?
I think it can be done...but when i try setting value to 1st application frame 1,
parent.document.frames["frame1"].form1.txtValue.value = "1";
i get access denied error...what can be the cause?
Can anyone tell me?
|
|
|
|
|
deep7 wrote: Firstly can value be passed from a page on one application on on server to another page on another application on a different server?
Yes you can pass in query string variables. How you are passing the value now ?
|
|
|
|
|
i'm using javascript code to pass object from one appl to another..on same server it works, but if on application is on other server, i get Access Denied error.
parent.document.frames["frame1"].form1.txtValue.value = "1";
This is written in one javascript function in one application page on one server.
parent.document.frames["frame1"] means another applicationpage on different server is given value "1".
Can you tell me how i can achieve this using javascript?
Thanks,
Deepa
|
|
|
|
|
deep7 wrote: i get access denied error...what can be the cause?
You can't write script that accesses other web pages that are open on your computer, on different servers. Security issues, for a start.
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 )
|
|
|
|
|
hi friend's
i move data from a grid to a table that i want to show that by ajax
but how can i access to another page of gridview or datagrid with ajax?
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
Depends. Are you usng AJAX or are you using the Microsoft ASP.NET AJAX library ? Do you want to write your own AJAX code, or have a control do it all for you ?
Actually, let me take that back. What do you mean by 'another page' ? Another page that is open as a popup window, or just another page in your site ? Nothing can access a page that is not visibly open on the users computer.
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 )
|
|
|
|
|
thank you christian
but my mean is next page of a grid
assume that i have 100 record that i have to show these 100 records on 10 steps
that the user can select a specific step.for example user want to see th 40th records to 50th.
in addition i use ajax manually,not microsoft ajax...
in the other word its better than to ask my question:"how can i cash my data by ajax?"
thank you for your help
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
i need help how send email in visual studio .net 2005(a sample code)
ali
|
|
|
|
|
Please don't cross post. I believe I answered this in another forum before you asked it here.
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 )
|
|
|
|
|
Thanks for reply.i used this website and write the code according to this website instruction but i get an exception as follow.
==============================================================
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e) in c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebEmailsend\Default.aspx.cs:line 36
===============================================================
i have try but could not success
Ali
|
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I have a gridview where there is two static columns which are template columns and few dynamic columns. there is a button in that page. On clicking on that button the dynamic column are dynamically creating. Each time I am removing the old dynamic columns and recreate the new columns according to some selection criteria. But my problem is on the third time click on the button the static template columns are getting removed from the gridview.
Thanks & Regards
Mishra
|
|
|
|
|
Ballita wrote: are getting removed from the gridview.
Looks like viewstate issue. ASP.NET won't maintain viewstate for dynamically created controls/columns. So you need to reconsider the event where you are creating dynamic columns.
Dynamic columns created on page_load/button click events won't keep viewstate. Try to do this in Init() method.
|
|
|
|
|
hi,
is it compulsory to put the webpart in the form tag?
i have a content page that i want to display a webpart, but it wont display properly. when i run my web application, it wont display properly. the "minimize" and "close" icon(at the top right of webpart) are missing.
i tried(in another simple application) putting the webpart in the form tag and it displayed correctly.
if it needs to be in the form tag...then how am i going to put it in my content page?
thanx...
|
|
|
|
|
Hi,
my problem is this:
In this cms that i have created, the administrator has an admin zone where he/she can alter setting for the given homepage. One function that i am working on is the ability to make the site eather public or private to the public. It is meant to be used before publishing the site to the public, so that the administrator can create all the content for the website and then afterwards make it public for any interested viewers.
I alter the web.config bye code, inserting and deleting <deny users="?" /> and <allow users="?" /> respectively.
The bug i get is than every second time i do so, i lose all css styles in the administration!
my question to you is: How can this be??
-- Christian
|
|
|
|
|
Kleindahl wrote: I alter the web.config bye code, inserting and deleting
Are you altering web.config at runtime ? Altering web.config at runtime will restart the application domain. That might be making problem. For doing such things, it's better to have one separate XML configuration file.
Kleindahl wrote: The bug i get is than every second time i do so, i lose all css styles in the administration!
Well, provided scenario don't have any relation with styles. How you are referring the style sheets ?
|
|
|
|
|
hi Navaneeth,
first of, thank you for trying to help me out.
I know that altering the web.config file will reset the application, but i figured that in this scenario where an administrator would most likely use it to make the site public the first time, it would not madder because outside users whould not be able to see the site yet, and therefore not be logged in.
having one separate XML configuration file
By this do you mean one more web.config file or just an simpler xml file that i use as a config file
To how i refer to the stylesheets:
I use themes so i have my admin styles in a theme folder and reference it in my default side (i am using masterpages)
hoping that you can help me out
-- Christian
|
|
|
|
|
Kleindahl wrote: By this do you mean one more web.config file or just an simpler xml file that i use as a config file
I mean a separate XML file, and keep the settings needed for site in this
Kleindahl wrote: I use themes so i have my admin styles in a theme folder and reference it in my default side (i am using masterpages)
Sorry, I don't have much idea on using themes. Try changing the settings to other XML file and stop updating web.config at runtime. That may solve the issue. Not sure
|
|
|
|
|
N a v a n e e t h wrote: I mean a separate XML file
Okay, i am gonna try it out as soon as i have the time. Thank you very much for trying to help me out.
But one thing that i do not understand is this:
if updating the config file doing runtime is so bad ( i have hearded it many times asking questions that i should not do so ), why does microsoft ship the framework with classes for making speciel config sections for programmers to use?
I thought that one smart thing would be that we programmers could store app settings and change then when needed?
-- Christian
|
|
|
|
|
Kleindahl wrote: why does microsoft ship the framework with classes for making speciel config sections for programmers to use?
Configuration section varies for each project or for each programmer. I will be following one method and you will be following the other. So it's tough to make a common config file.
But .NET framework ships with powerful XML manipulation classes. You can make use of those and manipulate with custom settings file. .NET allows us to write a XML serializable class. So using this a XML file can easily be read.
Security will be a main issue when you use custom XML configuration files, because it can be accessible via URL. So either you have to use .config extension or add the XML extension to HttpForbiddenHandler to secure it.
Hope this helps
|
|
|
|
|
i had not thought about the security issue of using a xml file, so thanks alot for bringing it to my attention. I have changed the file extention to .config now
-- Christian
|
|
|
|
|
Try to use XML instead of altering the web.config file at runtime.
And check whether your stlyesheets coding are closed while executing the application or building the application.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi,
thank you for trying to help out.
to the And check whether your stylesheets coding are closed while executing the application or building the application. i don't see how it should be possible for the styles to change in any way doing execution of the application?
Or by closed did you mean something else? Like finished loading?
-- Christian
|
|
|
|
|
hi i have a text box in asp.net page inwhich user enters characters now i want that on every charachter entered by the user a post back occurs now it is only being occured when enter key is pressed
can any one help me
|
|
|
|