Security :: What Needs To Be Done To See The Effects Of The Changes Immediately
Jul 8, 2010
I see that the changes done to CAS permissions (say changing the permission set of applications running in my computer) do not work immediately. I noticed before that the changes did take effect later on. Can anyone tell me what needs to be done to see the effects of the changes immediately?
For some reason, I changed something today while installing an instance of SQL Server. And now if I try to use the i.p. address of the machine instead of the name of the machine in DATASource of my sqlconnection string, I get an error. It worked fine before.Also, what exactly is "networkService" as an option for security when creating an instance of SQl Server?
On our website users can sign up. The sign up controls (converted to a template) has the usual text boxes and then the create user button. When pressing this button the account is created. After reloading the website, the user can see his credentials in his 'my account' tab. Question: How can we access the newly created user (especially his userid) right after the create user button was clicked? Right now this does not work, we can only start accessing this after the page has been reloaded. But surely the account is created the instant the button was pressed. I have tried this:
But it looks as if the user is not yet logged in at this stage. Can this somehow be forced so that we can access the newly created userid right after the user has clicked the create user button?
I am using an accordion pane with 10 panes in a modal pop up extender.I also have 10 link buttons in the same modal pop up on clicking each button respective pane should be opened. There is no issue in opening the panes on button click. I did it in the click event dynamically. But the panes are opened directly without any easing effects or animation applied to them. Whereas when we click on header the animation is working.
i m trying to develop a tabbed content slider. during this i am facing two problems.
first i don't know how to create the queue effects mean, i want to animate first div, after completion of first animation than second animation would be started.
for this i using the callback function here, but i want to know is there any other procedure to do this thing.
second there is jerk in the animation at second and fourth tab.
I've implemented URL routing in my new ASP.NET 4 Web Forms application and it's actually working quite nicely. It's an ecommerce app so product names are in the URL now -- as opposed to ProductIDs.The other day, as I was testing the application, I came across a situation where two product names had identical names. It then dawned on me that in order to prevent this from happening, one of the things I'll have to implement is adding product categories in front of the product name -- which is not a bad idea to begin with. However, now I'll end up with a really long varchar field in the database that needs to be indexed. Additionally, I'll have to make sure that this field will stay unique i.e. I can't allow /electronics/digital-media-players/accessories/some-generic-recharger in that field more than once otherwise, my URL routing logic won't be able to determine which product the user is requesting.I'm sure others have run into such issues. I'd appreciate some advice on this.
Is adding product category in front of the product name in an effort to make it as unique as possible a good idea? After all it's a lot less likely that some-generic-recharger will be there more than once under a specific product category than in any category.Will indexing a field with such long varchar values be a problem in terms of database and lookup performance?Is there another approach that would work better in my situation?
I am using gridview with update panel Animation extender for updating effects. Everything is working fine but when page expires(means session ends) and I try to uupdate(edit,delete record) it fadeout the grid but donot fadein and shows following javascript error as image. I want if session ends it should redirect to login instead of fading out and showing javascript error message
In Visual studio 2008 I changed css methods (like font size increase). Which is not effecting when I run immediatly. If I publish to server. I can see changes. Why it is not happing in from VS 2008?
When I make a change to a form, add a control, or text, etc., the updates don't appear immediately in the web browser after I run the application again. I have also tried saving the changes before running it again. Same results in either IE or FireFox.
I have also set my browser to check for updates everytime a web page is loaded again.
I have a web site that is highly dependant on a SQL Server 2008 database. I am using linq to sql to connect to the database and require the website to reflect database changes immediately. Currently the changes are only reflected once a postback occurs and the database is requeried.
Is there a way to get the asp.net page(s) to be alerted of an database change and then to reflect it immediately, or within seconds, on the display? I am aware that one can use the SQLDependency class and ADO.NET to do this, but am not aware of any linq to sql possibilities.
How can I retrieve the row ID immediately as I insert a new record with LINQ? I need to refer back to it to update the row since it will be the only unique data in this particular table ( it's the primary key and the ID number is auto generated)
I am using Entity Framework for my .NET application. I have been able to return objects and their directly-related objects as well (very convenient), but I am having trouble getting the objects of those objects.
IEnumerable<Lot> i = (((ObjectSet<Car>)_carRepository.GetQuery()) .Include(a => a.CarTypes).Take(10).ToList()
This works and I can access carTypes, however I cannot figure out how to access tables associated with CarTypes (e.g. tables which have fields associated with the car types). I tried to use a Join however I was unable to figure out how to get it to work right.
I have an asp.net application that was working fine on my old dev machine that run XP pro and Access 2007. Although I did have problems getting the ACE OLEDB provider to work and so stuck with the old Jet provider.
I was given a new Windows 7 pro computer that also has Access 2007, I had no problems moving my app to the new dev machine. No problems that is until I had to add a new column to one of my database tables since then my app has been very weird when deleting rows (I am using the OleDbDataAdapter to access the database).
Existing data within the database deletes just fine, however if I add new data and then immediately try to delete it nothing happens, no error, no delete, nothing. This is the weird part; if I navigate away from the page I use to maintain the database (i.e. click my link back to the home page) and then revisit the database maintenance page the new data can be deleted just like old data. I add Response.Redirect() into my code to see if that would work but no, only navigating away from the page and then returning allows me to delete the data I had just added.
This problem did not occur until i added the new column to the database table. There is no problem with my code, the same code worked fine on the old machine and on the new machine right up until i added the new column to the database table. My thoughts are that it must be some combination of using Jet and IIS7. Oh and both the app and the database are on the same machine.
In pageload, if you do Response.Cookies.Add(..., immediately in the next line, you can access that cookie via Request.Cookies(... I know that under the covers, the cookie is added to Request.Cookies by .net, but the original request never had that cookie.
If what I'm saying is correct, why is it this way? Shouldn't the cookie be available in the following request? Shouldn't the immediate access to Request.Cookies(... be null?
I have a relatively simple AJAX accordion control running on a C# website. It works perfectly on Firefox, Chrome, IE, but not on Safari. On the iPad and iPhone, the accordian expands, but then almost immediately collapses again. It is supposed to stay open (and does so on the other browsers). After expanding, the page looks like it is refreshing (I can see the bar at the top).I have other Ajax controls on the page that all seem to work fine. I have not put in any other code to expand or collapse the accordion control. This page uses a masterpage, if at all relevant.Here's what the properties look like up to the start of the panes:
I have a dropdownlist populated by a table containing ID and Name field. I am showing a textbox and add button if the user selects "Other" option from that dropdownlist. When a user fills the textbox and hit that button it binds the dropdownlist. But I am struggling to figure out how to show the textbox value immediately in the dropdownlist after they hit the add button. I don't want my users to scroll down the list to find the newly added item. Please provide sample code.
I have a view that displays an appointment schedule for the logged in user. It defaults to today's date and schedule when first navigating to the Index action for the controller. I have added a jQueryUI DatePicker to the view and when the user selects a new date I would like the data to be refreshed and the view to be refreshed immediately. Following are partss of the code. The javascript for the DatePicker that sends the new date back to the controller:
[Code]....
This works fine and the Index function of the controller gets the date back as a parameter. Code for the controller is:
[Code]....
When I run this in debug it seems to be working fine also. The model calls a stored procedure with input parameters and the new date gets passed just fine. The correct data is coming back but the view does not re-render with the new data on the first pass through. I had to put a button on the view to prompt the user to refresh the view after selecting the new date to get it to work at all. So here is the scenerio:
User navigates to view and gets today's schedule. User selectes new date from DatePicker
In debug the Index controller is fired immediatly and the new data is retrived and returned to the view but this is not reflected in the UIUser clicks the "Go" button.
In debug the controller is again fired immediately with the same date and the data is retrieved and returned to the view and this time it renders correctly.
I am using UpdatePanel and UpdateProgress on my webform. On my page_Load, I am checking some of the session variable if thats null then I have to redirect to my other page. Now, as I have updatePanel, we cannot use Response.Redirect so I have this code to redirect to my other page after checking that session variable.
[Code]....
But the problem is that my page continues execution after this line. I want to immediate transfer my page to this other page just like Response.Redirect but it keeps executing and redirects at last. If it comes to this line of code, I immediately want to redirect to my other page.
An external server sends incoming SMS messages converted to HTTP requests into my sometimes very time-consuming .aspx page. If no response is returned to the external server in 20 seconds, this is considered as an timeout and the same message is sent to my aspx page again (and maybe again....The optimal solution for me would be that the aspx page reads the incoming message (as an HTTP request to the aspx page), starts the processing of the message in another thread, and immediately renders response back to the external server. The external server has no interest in other stuff than the HTTP status (normally 200). When the processing of the message is completed this results in an entry into the log file of the application.