|
I followed the steps given it shows the following
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
Bharani
|
|
|
|
|
check your network seeting. check those system ping with each other or not .
|
|
|
|
|
ok.
Is two machine should not have the same IP address?
Bharani
|
|
|
|
|
never.
it will work for some times, but you will get IP conflict Error.
Never use same IP for two different system,. it should be unique.
|
|
|
|
|
It works,
Thanks Very much for ur guidance.
Thanks.
Bharani
|
|
|
|
|
what was the problem?
We are not a Code Charity
|
|
|
|
|
.netman wrote: what was the problem?
His problem has reseloved . So if you go through all the post you will get his problem and also the resoluation .
|
|
|
|
|
I have developed a web app where i am creating dynamic Input Type File controls for selecting multiple files at a time. All the dynamically created Input controls are placed under one div 'myDiv'. Now while postback, how can i iterate through all the controls inside myDiv so that I can get hold of all the files selected during that time. Please help.
Thanks in advance.
Sekhar
|
|
|
|
|
Well, if you didn't create them prior to Page_Load, the fact is, they are not going to have any viewstate, even if you recreate them. But, if they are input controls, then they will exist in the form that was posted, so that's not a problem. The div is irrelevant, the file data will exist in the data posted with the form.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Thanks for your reply. Can you please say me how can I reference to the form that has been posted back. I am an new to ASP.Net. Please help.
Thanks.
Sekhar
|
|
|
|
|
Page.Request.Form.AllKeys gives you a collection of strings, each of which is a key into the collection as in Page.Request.Form["key"], you can use this to iterate through the form objects.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
SekharOne wrote: are placed under one div 'myDiv'
ASP.NET won't maintain viewstate for Dynamic controls created in page_load. You can add these controls to a DataGrid/GridView than to a DIV. So viewstate will be maintained along with the parent control and you can take the control by iterating through gridview's rows.
|
|
|
|
|
Dear All,
I have a link button inside an update panel.
While clicking on it, it contacts DB and performs some DB validation and based on the validity it has to proceed further.
If the data is valid it has to update the DB else it has to given an alert.
I have given the following code but it is not giving an error.
ClientScript.RegisterClientScriptBlock(this.GetType(),"Error", "<script language="javascript">alert('Duplicate Districts');</script>");
Can any one help me how to get rid of this?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
If you're in an update panel then you're already calling javascript, the page has already loaded, and any script you insert like this, isn't going to do anything. you need to send something back to the client in the ajax response, and write script that recieves this notification and responds to it. How easy that is to do within the MS framework, I am not sure.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Dear Graus,
I am newbie to AJAX.
So I couldn't get you.
Can you give me a link or sample to do it.
Thank you.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
I don't know how to tell you this, but what you're telling me is that you know nothing about AJAX and you're riding the back of a Microsoft library that I frankly would not use. I have done a fair amount of AJAX work, I evaluated the ASP.NET library and decided it was not for real programmers. Your only solution that I can see, is to learn what AJAX actually is, and either work out how to write your own code inside the library, or abandon the library. I am sure it can be done with ASP.NET AJAX, but it would require knowing how AJAX works, and how to interact with the library code.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Dear Graus,
Thanks a lot for your information.
I know some what, but I haven't played fully in it.
If you give me a reference, I will analyze and learn more.
Can you give me a link for overcoming this issue?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
ASP.NET/AJAX in Action is a very good book, the answer is probably in there.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
M. J. Jaya Chitra wrote: If the data is valid it has to update the DB else it has to given an alert.
AFAIAK, you can't register client script block from a updatepanel. You can put a label and set the error text there. So if there is any error, user will get the error message in the label than JS alert.
Hope this helps
|
|
|
|
|
Dear Navaneeth,
Thank you for your information.
But I want to get an alert.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
I want to develop an application which will do the following
- Notify the user few mins ahead before we shut down server so he can save his work.
- Notify user few mins ahead before we bring down the applicaiton so he can save his work.
- I don't want to install anything on client side (service, active X etc).
- I don't want to put code on every page for doing this.
- Today i am implementing it for an application, tomorrow i might want to hook that for other application as well.
Any pointers/links/articles/resource in this direction will be greatly appreciated !
Thanks,
|
|
|
|
|
If it's an ASP.NET website, you'd need a web page that makes constant AJAX calls to find out if a shutdown is planned. A client side app would be far more suitable.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Based on your bullet points above, I am guessing you know the users logged into the application. In the event of a needed application or server shutdown, could you send an email notification to logged in users?
Another option ... are you using a master pages? You could consider placing a control in the header or footer which could display the status of an application or server shutdown.
|
|
|
|
|
ahmedel wrote: Another option ... are you using a master pages? You could consider placing a control in the header or footer which could display the status of an application or server shutdown.
That works, except that he seems to me to want to show a notification, he doesn't want the user to have to refresh a page to see it.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I don't want user to refresh the page.
|
|
|
|