|
Hi,
I put some authorization code into my web.config so that a certain file wasn't accessible to a given role (role A). I log in as role A and try entering the prohibited page URL directly in the IE address bar. Sure enough, I don't get to see the page so my authorization is working but I keep getting redirected to the login page even though I've placed the following code in my web.config to try and trap the error:
<customErrors mode="On" defaultRedirect="~/GeneralError.aspx"
</customErrors>
Ideally I'd like to catch the HTTP status code and display that. I'd also at least want to find what code is being called so I can at least log the user off that tried to access an invalid page if they're going to end up at the Login page...
|
|
|
|
|
I have a custom web part that supplies parameter values to a reporting services report. The value/values gets passed to the report and filters it the first time, When i change the filter values the report does no refresh automatically. I have to press enter(I have a filter that is a textbox choice filter) after selecting and then hit the refresh button in the report viewer add in. How to make it refresh automatically? I use
[ConnectionProvider("Name", "UniqueIDForNameConnection", AllowsMultipleConnections = true)]
public ITransformableFilterValues SetConnection()
{
return this;
}
Should i call this setConnection in CreateChildControls? I use JavaScript too for adding some functionality to the web part, should i call the SetConnection from there?
Thanks.
|
|
|
|
|
This seems to be an issue with postback. Is it possible to set the postback event onclick of an image or a div?
I am stumped.
|
|
|
|
|
Figured it out, I replaced an image I had in the div with ImageButton and added AutoPostBack=true attribute on click of the button...
|
|
|
|
|
Hi,
Is there any way I can fill a treeview Control with a table based on Sql Server2008 hierarchyID ?
Best wishes
|
|
|
|
|
i want to transfer object from popup page to parent page
and i dont want to use sessions + application variables for this purpose
is there any other way to transfer object ????
Government Dyal Singh College Lahore.
|
|
|
|
|
How did you create/open the popup page? Did you use javascript? if so, you can call the parent windows/docment as
opener.document.form1.txt1.value
update the txt on the form1 in the parent window document
|
|
|
|
|
dear i need whole object insted of one by one value..
Government Dyal Singh College Lahore.
|
|
|
|
|
what do you meant by whole object? are you trying to update the whole page?
|
|
|
|
|
Dont use two pages.. instead use multiview so that when displaying it acts like displaing 2 pages.
In page load give multiview1.viewindex = 0 (this will display the first view)
when u want the pop up jus give multiview.viewindex = 1
|
|
|
|
|
XML parsing failed: syntax error (Line: 1, Character: 1)
Reparse document as HTML
Error:invalid start-tag
Specification:http://www.w3.org/TR/REC-xml/#NT-STag
1: <% @ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
2:
3:
4:
|
|
|
|
|
Looks like ASP.NET is not registered in IIS, so it's parsing the file as XML.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
As CG Said, Register your IIS using ASP.NET Extension [ aspnet_regiis ]
|
|
|
|
|
i'm using 3 ajax cascading ddl's and getting this error--method error 500.
can anybody tell me whats this???
|
|
|
|
|
|
thanx for ur effort......
but google also suggested this link
|
|
|
|
|
Ok, is your problem solved?
Either you love IT or leave IT...
|
|
|
|
|
no, not yet
|
|
|
|
|
Hi,
In my project I have a requirement to open the dynamically changing weblinks in the same browser new tab or window. For example if my application is opened in IE then when I click an the button it should open the web link in IE new tab or window. Similarly if the application is opened in Mozilla Firefox then on button click it should open in a new Mozilla tab or Window. In this way the link should be opened in the new tab or window of the browser in which the application is presently running.
I have code to open in only IE browser as gven below.
System.Diagnostics.Process.Start("IExplore.exe", NavVideo);
but I want to run in different browsers as I nave mentioned above.
If anyone know solution for this please rely me soon.
Thanks in advance.
|
|
|
|
|
|
Hi I want to create the one drop down box if i click on that drop down box then one calender should open
can any one tell me how to do this..
Thanks
|
|
|
|
|
The choice is yours whether you want to go for a client side javascript calendar or a server side calendar. If you want to use client side calendar then several javascript,dhtml calendars are freely available on the net. So you can download them and use them on the selected index change event of the drop-down list. If you want to go for any server side control, then either you can use a standard ASP.NET Calendar Control or AJAX calendar Control.
Either you love IT or leave IT...
|
|
|
|
|
use ajax calender ......
it works gr8
|
|
|
|
|
Hi,
May i know how can i automatically update client display based on server data....
using javascript or any other script....or AJAX...
|
|
|
|
|
What do you want to mean by client display? For example, do you want to display server data in a label control?
Either you love IT or leave IT...
|
|
|
|