|
OK um check this out then:
http://www.w3schools.com/aspnet/aspnet_dbconnection.asp
This explains how to connect to a database.
|
|
|
|
|
thanks .netman for your response.
but the web already exist. i can't create another one.
I only can "use" a existed web page as handly a user access data. but i want to do this by code.
|
|
|
|
|
Sorry I dont understand what you are trying to achieve.
Good luck with your project though
cheers
|
|
|
|
|
Hello all
I have developed a website and deployed it on client server. To catch i have ihave used try catch block.Whenever there is a error it shows me correct error message on my local machine. I have deployed application on client server and whenever there is any error in application instead of showing me the error it shows me web.config error which is as follow.
<br />
Server Error in '/' Application.<br />
Runtime Error<br />
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.<br />
<br />
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customerrors mode="Off" /><br />
</system.web><br />
</configuration><br />
<br />
<br />
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm" /><br />
</system.web><br />
</configuration><br />
<br />
</customerrors></customerrors></customerrors>
Can anybody tell me why the correct error message is not getting displayed on server.
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
In web.config file make sure that CustomErrors's mode is off
<customerrors defaultredirect="~/ErrorHandler.ashx" mode="Off"></customerrors>
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
yes it is RemoteOnly but it is commented?
It display proper error message me on local buth when i upload on server and page having any error then instead of displaying proper error it displays web.config file error.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
mode should be Off instead RemoteOnly
As it is RemoteOnly you are getting Custom error when you are trying to access from local machine but when application is local you are getting proper Error
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Ok i try it. Can you tell me what is the use of cutom error tag in web.config file. I am not cleared use about that tag.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
CustomErrors is the element present in the Web.Config
Which is used to show filter errors when any Exception occures
you can redirect to any specific page build for showing errors only by using this elemet.
It has mode Attribute which Indicates whether the server channels in this application domain return filtered or complete exception information to local or remote callers. The default is RemoteOnly, which returns complete exception information (including the stack trace) only to callers on the same computer as the server.
Off: All callers receive complete exception information.
On : All callers receive filtered exception information.
RemoteOnly : Local callers receive complete exception information; remote callers receive filtered exception information.
For more informatio take help from GOOGLE which is your best friend
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandip,
Thanks a lot
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Hi All,
I was using following packages/namespaces in Flash project using ActionsScript3 language.
import mx.messaging.Consumer;
import mx.messaging.MessageAgent;
import mx.messaging.Producer;
import mx.rpc.AbstractService;
import mx.rpc.http.HTTPService;
import mx.rpc.remoting.RemoteObject;
import mx.rpc.soap.WebService;
Now i want to covert my project in to Microsoft Silverlight. Can anybody suggest me which are the alternatives namespaces available in .Net Framework class library for Silverlight.
Thanks in Advance
Atul
|
|
|
|
|
You may need to do a hand translation of the logic since I don't think at the moment, an automated tool for ActionScript to Silverlight exists.
BTW, there is a dedicated silverlight forum in CodeProject. You may like to query your discussions there on silverlight and also you can request a CP Admin to move this discussion set to Silverlight.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
in the gridview , I am doing paging , i have a checkbox column in the gridview , after selecting a checkbox in the row , i am going to another page in the gridview , finally i come back , and see that the row , in which i selected the checkbox , is unchecked.Can i keep that row checkbox selected ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Yes, you could store it in a session
|
|
|
|
|
How can i find only the current page gridview rows?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
This seems quite similar to the post at the top of the page...
|
|
|
|
|
hi all,
i'm very new to UnitTest the code using the testing tool available in VS2008. Infact i didn't work with unit test yet.i added a test project to the solution.it is asking me to give the bellow details
what values needs to be given in it(DataSet expected, DataSet actual)? from where the values to be taken? guys plz help me....
[TestMethod()]
public void GetFullActiveDefinitionTreeTest()
{
DecisionTreeDataAccess target = new DecisionTreeDataAccess();
int productGroupId = 0;
DataSet expected =null ;
DataSet actual;
actual = target.GetFullActiveDefinitionTree(productGroupId);
Assert.AreEqual(expected, actual);
}
|
|
|
|
|
Dear All
I am developing one application using Asp.Net 2.0 and Sql Server in which I have to access files located on the other machine(server)through map drive.But it is showing runtime error. Please help me with some solution.
|
|
|
|
|
VivekNema wrote: But it is showing runtime error.
Did you have customerrors turned off so that the actual ASP.NET error message could be viewed towards solving this issue?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
If you can post the error message that would be a great help
|
|
|
|
|
I have all the controls in an <asp:updatepanel> in content page in an asp.net web app. Issue is that am not able to access the controls in Master page when I access this way ,(Label)Master.FindControl("lblPageMsg");
Am able to access this way when I dont use Update panel.
Any help is appreciated.
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
I think When you are using update Panel might be Label is not present in it. So even if you could access it is not going to update the message.
Are you getting any error ? while accessing the label.
Create a public property in Master Page that will set the text of label
and make sure that your label is present in update panel so that after asynchronous postback it will update the message that you want to show
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
modified on Wednesday, May 28, 2008 3:19 AM
|
|
|
|
|
Hi!I have got two dropdownlist in my page.I wish to change the second ones values based on the values of the first one.The first dropdown list takes its values from a database and the second one searches the id of this value in another database and brings items connected to it.
How can I perform this?Can somebody show me an example doing this?
(I saw some examples but they were all using javascript I want to be able to perform this without using javascript)
Thanks in advance.
|
|
|
|
|
By the way I am using Csharp.net sharp not Vb.net.
|
|
|
|
|
Create a SelectedIndexChanged handler for the first DropDownList control and in the handler set a filter on the DataSource for the Second DropDownList.
led mike
|
|
|
|