|
I developed a web application in VWD2005 and uploaded on net. But i got an error, which is "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. "
What to do??
And when i transfered it to Visual studio .net IT WONT WORK AT ALL..
What to do...?
|
|
|
|
|
Hi,
In your web.config add:
<configuration>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
Tiru
-- modified at 8:15 Thursday 16th August, 2007
|
|
|
|
|
What should i add... "BR"...?
|
|
|
|
|
Sorry, fixed the first post so that it should present the solution...
/Tiru
|
|
|
|
|
I developed a web application in VWD2005 and uploaded on net. But i got an error, which is "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. "
What to do??
And when i transfered it to Visual studio .net IT WONT WORK AT ALL..
What to do...?
|
|
|
|
|
sacheesach wrote: I developed a web application in VWD2005 and uploaded on net. But i got an error, which is "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. "
The extra line to web.config i wrote would get you trough this part as then you will see the error occuring.
Tiru
|
|
|
|
|
Where is that EXTRA LINE?
|
|
|
|
|
<configuration>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
The extra line is: <customErrors mode="Off" />
|
|
|
|
|
Sorry to say but still im getting the same error. I thought VWD2005 is not generating bin folder which according to my information is necessary.
Please Comment and help.
|
|
|
|
|
Hi Everyone,
How to remove the URLs in web printouts. Can anyone help me in this regard.
Regards,
Manowj
|
|
|
|
|
For Internet Explorer. go to page setup and empty the header and footer text box before printing
|
|
|
|
|
Hi,
How to handle this through code?..
Regards,
Manowj
|
|
|
|
|
Hi,
I'm not sure if this is possible at all, but my intention is to use the gridview to display the data in it in two columns next to eachother. Lets say i have just a string in my databinding and 10 rows. Then i wish to display it like this:
row1 | row2
row3 | row4
row5 | row6
row7 | row8
row9 | row10
But as the gridview is making a table this cannot be done it seams. I have tried using itemtemplate and alternatetemplate but with no success as the gridview after each row inserts a new tr / td and ending thesame at the end.
Is there anyway this can be done with the gridview or do i need to use repeaters and make my own paging for that?
Thanks
Daniel Tiru
|
|
|
|
|
Yeah it is possible. Iterate through the results of your query. And convert each set of two rows into one. Then bind to the datatable. I didn't test the following code but you should get the idea.
<br />
DataTable dt = new DataTable();<br />
DataColumn dc = new DataColumn("RowOdd", Type.GetType("System.Int32"));<br />
DataColumn dc1 = new DataColumn("RowEven", Type.GetType("System.Int32"));<br />
dt.Columns.Add(dc);<br />
dt.Columns.Add(dc1);<br />
<br />
Int16 Count = 0;<br />
DataRow r;<br />
while (YourDataReaderObject.read())<br />
{<br />
<br />
if (Count = 0)<br />
{<br />
r = dt.NewRow();<br />
r["RowOdd"] = dr.GetInt32(0);<br />
Count = 1;<br />
}<br />
else<br />
{<br />
r["RowEven"] = dr.GetInt32(1);<br />
dt.rows.add(r);<br />
Count = 0;<br />
}<br />
<br />
}
I didn't get any requirements for the signature
|
|
|
|
|
Thanks, i get the general idee, i have used the click/drag/drop functions in VS with data but that should i figure out how to do...
But one thing more... as i in reality have more than one column, is this the right aproach?
DataTable dt = new DataTable();
DataColumn dc = new DataColumn("RowOdd", Type.GetType("System.Int32"));
DataColumn dc1 = new DataColumn("RowOdd1", Type.GetType("System.Int32"));
DataColumn dc2 = new DataColumn("RowOdd2", Type.GetType("System.Int32"));
DataColumn dc3 = new DataColumn("RowEven", Type.GetType("System.Int32"));
DataColumn dc4 = new DataColumn("RowEven1", Type.GetType("System.Int32"));
DataColumn dc5 = new DataColumn("RowEven2", Type.GetType("System.Int32"));
dt.Columns.Add(dc);
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
dt.Columns.Add(dc3);
dt.Columns.Add(dc4);
dt.Columns.Add(dc6);
I think that should be fine... (I realized when writing the code)
Thanks alot
Tiru
|
|
|
|
|
Yes, that looks correct to me.
And you're welcome.
I didn't get any requirements for the signature
|
|
|
|
|
As an alternative you could use a DataList and use its RepeateColumn feature.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi, yes thats true, didnt know about that one... but the downside is that i then have to make my own pager... A bit to overkill for me at the moment i think.
Thanks
/Tiru
|
|
|
|
|
Can any body help me out with the memorystream...I ve to use that for XML parsing.. I need to know when why and how to use the same with a simple example.
Thanks in advance
Vijay
|
|
|
|
|
Look in MSDN as a start: MSDN link
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi
I have a Menu (contains submenus) in my page which is used as just like tabs in VB, with which I want to make it work by hiding or unhiding the panels (panels contains the controls) through its (Menu) click event.
The problem is that, the click event is not raising. I have tried with the event handler
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{} as I am using C#, but it did not work.
There is property added OnMenuItemClick="Menu1_MenuItemClick" in the menu tag in page1.aspx file.
How can I do this? Please suggest...
|
|
|
|
|
Hello
I have solved this problem.
Thanks.
regards
|
|
|
|
|
I have developed an application but i have some trouble with browser history .So i need your help please, but i don't know how to upload my app for you. I 'm waiting your anser soon, thank so much
my email: lequison@hotmail.com
note: please forgive my bad english , i 'm living in vietnam
|
|
|
|
|
hoangdung19832004 wrote: So i need your help please, but i don't know how to upload my app for you
There's no need to, just tell us what the problem is, and show us the code that relates directly to your problem
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 )
|
|
|
|
|
hello Mr Christian Graus
but i don't know how to decribe my problem for without my app so, if i cant send to you my app to reference, it is better. If you afraid, ok i will not disturb you
thank so much
|
|
|
|