|
Is there anything else I could do..checking for every requested path is going to be hard, since I have lots of pages in my project!!
Please, is there any other suggestion?
|
|
|
|
|
How about putting a check for Request.CurrentExecutionFilePath = Request.FilePath in a masterpage, that's one place!
|
|
|
|
|
And then what?
It's going to be the same as the typed url he enters and he'll still have access to the page.
|
|
|
|
|
If the user has typed the url himself it should be the same.
If you have used used server.transfer it should not be the same.
|
|
|
|
|
hi,
Im trying to use AjaxControlToolkit CascadingDropDown but Im always getting Method error 500
can anyone help PLEEEEEAASSEEE?
this is the html section:
<asp:dropdownlist id="ddlStation" runat="server" xmlns:asp="#unknown">
<cc1:cascadingdropdown id="CascadingDropDown1" runat="server" targetcontrolid="ddlStation" prompttext="Please select Station" xmlns:cc1="#unknown">
ServiceMethod="GetOnlyStations" ServicePath=service.asmx Category="category">
and this is the Web service
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetOnlyStations(string knownCategoryValues, string category)
{
List<ajaxcontroltoolkit.cascadingdropdownnamevalue> values =
new List<ajaxcontroltoolkit.cascadingdropdownnamevalue>();
return values.ToArray();
}
modified on Tuesday, November 4, 2008 3:01 AM
|
|
|
|
|
How to alter the connection string in web.config programmatically?
Thanks in Advance.
|
|
|
|
|
You can programatically open the configuration with using the System.configuration namespace:
Configuration myConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
Then you can access the connection strings collection at:
myConfig.ConnectionStrings.ConnectionStrings
You can modify the collection however you want, and when done call .Save() on the configuration object.
Errors are like Mini Skirts, shorter they get, more revealing they become.
|
|
|
|
|
hi
i have a manually binded GridView with sorting and editing enabled.
my problem is with editing columns after sorting them, as the newEditIndex property in the GridView RowEditing event is a reflection of the data from the db and not the dataview that have been set on the gridview Sorting event, the outcome is that when pressing the edit button on a row after sorting, a different row in getting in to edit mode.
if any one know the solution please in light me...:}
tnx
j
|
|
|
|
|
In the sorting event you could set the editindex = -1 and then let the edit button do it's thing.
Use the OnRowEditing even and some similar code in that function possibly?
GridView grdView = sender as GridView;
grdView.EditIndex = e.NewEditIndex;
//Rebind grid here...
Revolutionary: Disk drives go round and round.
|
|
|
|
|
i think that as long you are not in edit mode the editIndex will always will be -1?
I've solved it by saving the sorting definitions (the expression and direction) in a Session object and retrieved the data with an "ORDER BY" clause giving it these parameters...
thanks
j
|
|
|
|
|
Yes, sorry. I misread the question.
Glad you got it worked out!
Revolutionary: Disk drives go round and round.
|
|
|
|
|
Hi,
I am trying to call a .Net class from flex by using third party tool
webORB , i installed weborb,i created a project having reference to
this webORB virtual directory created automatically , i gone through
all the security issues and devlopement and deployment process, but
when i run my application it is works fine.
But when i Exports Release Build, i get error:
faultCode:Client.Error.MessageSend faultString:'Send failed'
faultDetail:'Channel.Security.Error error Error #2048: Security
sandbox violation: http://localhost/test12/testweborb.swf cannot load
data from https://localhost/test12/weborb.aspx. url: 'https://
localhost/test12/weborb.aspx''
giving error like this.
I copied crossdomain.xml to root url , but still i am getting this error .
this is my crossdomain.xml file :
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="by-content-type" />
<allow-access-from domain="localhost" to-ports="*" secure="false" />
<allow-access-from domain="*" to-ports="*" secure="false"/>
</cross-domain-policy>
i use RemoteObject API and weborb.dll to get/put data from client-server and i have included some file *.swc (Flex Library Project)
Please see: http://www.gis.net.vn
Please can anybody help me.
Thanks,
|
|
|
|
|
Hi,
Can anyone please provide solution for this one..The error is as follows..
Unable to start debugging on the web server. The server does not support debugging of ASP.NET or ATL Server applications. Click help for more information on how to enable debugging.
you may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.
|
|
|
|
|
Hi all,
I am working in authentication process of my project. I want to know whether their is any concept or arch. or technology is available, that in msn messenger or in yahoo messenger having security feature- if the two user know a password and id. but one can only use the id at a time, if other one try to logging in means it will automatically show that user already logged.
Is any technology/concept is available now?
Thanks in advance
with regards,
Senthil.S
A Software Engineer
|
|
|
|
|
I have also also handled the same type of situation.I used SQL server for it.When a user logged in by a ID,I make a entry in DB,whenever any user try to log in ,it first check whether there is any entry to corresponding ID in DB,if yes,then showing the message the user is already logged in.
Cheers!!
Brij
|
|
|
|
|
If session mode is inproc then session values stored in server. I need to see the physical path of the session stored in server for some security resons.
smile
|
|
|
|
|
Sankar Komma wrote: I need to see the physical path of the session stored in server for some security resons
No you don't.
Besides, AFAIK it is stored in memory.
|
|
|
|
|
Thank you phil,
I agree with you, session can't exist physically
could you plz justify more clear
session mode inporc - then it will store in web server etc.
smile
|
|
|
|
|
Not really sure what you're asking - but if you want to understand the different ways of using/storing session state, I suggest you try Google - there are plenty of texts explaining them all.
|
|
|
|
|
hi,
i have a requirement in which if the user disables javascript in browser the form submit should work. if javascript is enabled it should use ajax , otherwise postback.For this i am using an update panel in which there are 2 dropdowns,depending on first dropdown selection second dropdown items should populate in a ajax maner if javascript is enabled , otherwise postback. these two dropdowns are inside an update panel
if javascript is disabled i am making ScriptManager1.EnablePartialRendering property to be false for full page postback.But it is not working . please help
|
|
|
|
|
If JavaScript is disabled then ScriptManager won't do the partial rendering.
Either you love IT or leave IT...
|
|
|
|
|
can any one tell how to use datalist double click event in asp.net.
|
|
|
|
|
can any one please help me how can i get this ajax control i have seen examples in net of this control of ajax but i cannot find in ajax extensions
good answer will be appriciated......
umerumerumer
|
|
|
|
|
I assume you tried Google? Must be failing where you live, here it returns pages of information. Even easier, I searched here on CP and found a complete article about its use and where to download it.
Try a little research for yourself before posting a question.
Bob
Ashfield Consultants Ltd
|
|
|
|
|