|
Thank you for your respond...
About my windows account:Iam using the administrator account.but I have added another administrator account last days.could this cause the problem?and how could I fix it?.
About SQL:SQL Server is installed and the SQL Server service is running.Is there ant other reason that could cause this problem and how could I fix it?.
I am too late but i will never give up
|
|
|
|
|
Hi,
Have you checked the connection string at the last ?? If there is some problem with that ?
TheEagle wrote: About my windows account:Iam using the administrator account.but I have added another administrator account last days.could this cause the problem?and how could I fix it?.
Whichever account you are using, make it a member of Debuggers group on your pc.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Hi,
About the connection string it is the same I told you before(first message).
About the windows account I found it a member of Debuggers group on my pc.
I am too late but i will never give up
|
|
|
|
|
I created a new ASP.Net website by Visual Studio 2005.<br />
Used language : C#<br />
Database: no use<br />
<br />
Then uploaded by menu "Public website" is get error:<br />
(I have delete symbol "<" in code for you view ...) <br />
<br />
Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
Configuration Error <br />
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br />
<br />
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.<br />
<br />
Source Error: <br />
<br />
<br />
Line 24: ASP.NET to identify an incoming user. <br />
Line 25: --><br />
Line 26: authentication mode="None"/><br />
Line 27: <br />
Line 28: <!--<br />
<br />
<br />
Please help me , Thank you very much !!!
-- modified at 0:15 Monday 16th April, 2007
NIIT
|
|
|
|
|
I created a new ASP.Net website by Visual Studio 2005.
Used language : C#
Database: no use
Then uploaded by menu "Public website" is get error:
(I have delete symbol "<" in code for you view ...)
=====================================================================
=====================================================================
<br />
Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<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 />
<br />
<br />
<br />
configuration><br />
system.web><br />
customErrors mode="Off"/><br />
system.web><br />
configuration><br />
<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 />
<br />
<br />
<br />
configuration><br />
system.web><br />
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm"><br />
system.web><br />
configuration><br />
code><br />
<br />
=====================================================================<br />
=====================================================================<br />
<br />
Please help me about this error. Thank you very much !!!<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
-- modified at 22:18 Sunday 15th April, 2007 <br />
<br />
<div class="ForumSig">NIIT</div>
|
|
|
|
|
Hi NguyenMinhCold,
There is some exception in your code behind. And the information states that to be able to view these kind of errors on remote machines need some changes in the web.config file. You can do one of the two things -
1. Try to access / repeat the same page from where you are publishing it (web server machine) without changing the web.config. This will enable you to view what exactly the error is.
2. Add customErrors mode="Off" tag in your web.config and see the error from the client machine.
After that you can correct the error and restore the web.config if you have changed it on the server machine.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/Trinhan/Default.aspx'. Line 1, P...
<%@ Page Language="C#" MasterPageFile="/FontPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_De...
I meet with Web Application runtime this problem on localhost
I meet this Problem When Web Apllicaton on Localhost
You can hlep me ?
Thank
|
|
|
|
|
Looks like ASP.NET is not registered on this machine, at a guess. It looks like it thinks you're passing in a stylesheet.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Like that I am right what's the matter
Thank Very Much
|
|
|
|
|
I'm sorry, I can't work out if you're saying this helped, or if you're asking another question ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
OK is Like that right my this mistake gynic milk is which such
|
|
|
|
|
Hi,
I have a gridview which is bound to a acessdatasource at page load. I also have a dropdownlist bound to a datasource with a list of countries. How do I rebind the gridview after a certain country was selected from the dropdown list? Thank you.
|
|
|
|
|
You have to write your coding in item_command event of the datagrid.
when you add the dropdown to your datagrid specify the commandname as'xxxx'
then in your itemcommand event you give : if(e.commandname=="xxxx")
the selcted value from the ddl can be sent ot database and you can retrieve information accrdingly and finally bind the datagrid again.
Gautham
|
|
|
|
|
I am using Asp.net 2.0 there is no datagrid anymore. Thanks for your reply
|
|
|
|
|
Hi,
Have you put the dropdown list in the gridview or outside the gridview?
If its outside then you can create an event handler to handle SelectedIndexChanged event of DropDownList and filter data there and bind the gridview again.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
The dropdown is outside of the gridview. This is asp.net 2.0 not 1.1. So I initially bind the gridview do accessdatasource. And then inside gridview there is a datasourceid property. So I knew how to rebind in asp.net 1.1 I don't know how to rebind in asp.net 2.0.
Thank you
|
|
|
|
|
Hi,
You can create your AccessDataSource with parameters and on the click event of button you can provide value that parameter.
The following is the example of parameterized AccessDataSource
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Northwind.mdb" SelectCommand="SELECT [ProductID], [ProductName], [CategoryID] FROM [Alphabetical List of Products] WHERE ([CategoryID] = ?)">
<SelectParameters>
<asp:Parameter Name="CategoryID" Type="Int32" />
</SelectParameters>
</asp:AccessDataSource>
Here AccessDataSource1 has one parameter "CategoryID" which will need a integer value. Also you can see the WHERE clause in the SelectCommand Property of the AccessDataSouce1.
The following code shows you how a value is assigned to the paramter of AccessDataSource1 and GridView is rebounded.
protected void Button1_Click(object sender, EventArgs e)
{
AccessDataSource1.SelectParameters[0].DefaultValue =
ddlCategories.SelectedValue;
GV.DataBind();
}
Here ddlCategories is the dropdownlist whose value I am passing to the parameter of the AccessDataSource1.
I hope this will help you.
-- modified at 2:01 Tuesday 24th April, 2007
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi, thank you for such a detailed reply. One issue is that you included the code in a button event handler. I have no button. Rather once an item was selected from an dropdown category the viewgrid should be rebound. Maybe I didn't clearly understand your explanation.
Thank you.
|
|
|
|
|
Hi,
If you want your grid to be rebound when an item is selected in the dropdownlist, then you should write the code in the "SelectedIndexChanged"
event of the DropDownList.
protected void ddlCategories_SelectedIndexChanged(object sender, EventArgs e)
{
AccessDataSource1.SelectParameters[0].DefaultValue =
ddlCategories.SelectedValue;
GV.DataBind();
}
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thank you. I will try it. But I understand the solution. It seems that it got even simpler in asp.net 2.0. I assumed you have to create a datasource and then assign it to the gridview. And from what I see you just wrote gv.databind()
Thanks alot for your assistance.
|
|
|
|
|
Hi,
No need to say thanks.
One thing I would like to remind you that dont forget to set "AutoPostBack" property of DropdownList to "true".
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi guys,
i have a problem. I have two gridviewss say A and B. gridview A has many records. on selecting a particular record, tht record shud be moved in the gridview B. in this way gridview B has all records selected from A.How am i suppposed to do so. Need ur help.
Thnx in advance.
|
|
|
|
|
cud any one help in how to get field type of table through coding..?
|
|
|
|
|
I would suggest you to use typed dataset to get such information !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
could any one help me how to change the page type like the one usually comes for printing etickets, with only borders no toolboxand all...?
got it r am i confusing..?
Help me plsss...
|
|
|
|