asp.net

find out user belongs to which groups

I have a windows user accounts which i just created take XYZ for example. This XYZ belongs to a User group and a custom group i created in Computer Management --> Local users and groups. So in properties i see that the user belongs to the 2 groups. Now i want to get those groups and display them. any suggestions??? i have done this ...

How to detect your site's domain name?

I don't know if question in the title was clear enough. Let's say that you have 2 or N domains pointing on the same ip address, your server (in my case Windows Server with IIS) and you want to make custom site for every domain name so you have to detect which domain is user currently using. There should be two "custom sites". One is Ad...

Redirect to url based on user data

When someone logs on to my site. I want to direct them to their own home page. If the user has the id of 1. They would go to http://www.test.com/Home.aspx?id=1 I already have the login and id setup. I am not sure how to incorporate it into the url. ...

Objective test: ASP.NET vs Google Web Toolkit

Hi, I was wondering if there were any tests out there that compared page loading times for identical websites constructed in either asp.net or gwt. Have had a look but nothing as objective as this seems to be about... ...

how to check whether the data is tamper or not while the form is POST in asp.net

I have a form that submits the game score. Is there any way to check whether that game score is not tampered during submission. I am using POST method, for GET method we can use HASH, but i am looking for POST method ...

Maintaining dynamic control state between postbacks

I have a dynamic ASP.NET form which I recreate evertime I postback. My values persist no problem. I am however having a challenge maintaining attributes on Postback. For example, I have user defined code which may enable or disable a field when someone is first presented with the form. If a user posts the form I need an easy way to...

Ajax binding with telerik - what is this meant to return ?

Looking at: http://demos.telerik.com/aspnet-mvc/Grid?theme=vista Can anyone tell me what _FirstLook() is meant to return? It is implementing the paging I think. [GridAction] public ActionResult _FirstLook() { return View(new GridModel(GetOrderDto())); } Every example I find calls a method ...

Detect if popup is closed in Javascript

when user clicks an asp button, the onClientClick calls a javascript function to open a popup. I am using IE8. User fills in some form data in the popup. var mywin; function popup(url) { if (mywin==null || mywin.closed) { mywin=window.open(url,--rest of parameters); } else { mywin.focus(); } mywin=window.open(url..) is called ever...

When first time enter the arrangement of items is OK, but if I refresh it it will screw up

Please refer to * When first time enter the arrangement of items is OK(three items as a row), but if I refresh it it will screw up Can someone point me any direction ? Thanks in advance ! Edit: Is there any differences between refresh and using the link to enter ? Edit: This problem only happen in Chrome browser ...

What is the advantage of using HttpContext over HttpApplication?

What is the advantage of intercepting a request for an ASP.Net application at the HttpContext level rather than waiting for the request to be processed by the HttpApplication pipeline? ...

Facebook like comment delete -Update Datalist after item delete

Hello guys, I have a DataList containing a list of elements(ASP.Net app). To delete an item i first used tha classic javascript confirmation. As i found it ugly,i want to use a confirmation box plugin. when i click OK==>Delete the item from DB(using a webservice) But how can i update the DataList. The situation is liek: when u add...

What is a best practice method to log visits per page / object

Take my profile for example, or any question number of views on this site, what is the process of logging the number of visits per page or object on a website, which I presumably think includes: Counting registered users once (this must be reflected in the db, which pages / objects the user has visited). this will also not include unre...

How to calculate the optimum chunk size for uploading large files

Is there such a thing as an optimum chunk size for processing large files? I have an upload service (WCF) which is used to accept file uploads ranging from several hundred megabytes. I've experimented with 4KB, 8KB through to 1MB chunk sizes. Bigger chunk sizes is good for performance (faster processing) but it comes at the cost of me...

Status of Spark View Engine

It’s been a while since the community got any feature releases from the spark team. Has it ceased development? With the advent of Razor, has Louis moved on? The least release was in March and the last development build was in July ...

How to share libraries without using the GAC?

I have a library that is meant to be used by many websites. The way I am doing it now is in the library's properties, I set the "Post-build event command line" to: copy "$(TargetPath)" "$(SolutionDir)\MyWebsite\bin\$(TargetFileName)" Every time I want a new website to use the shared library, I add a new line like this: copy "$(TargetPat...

Make jQuery Ajax Call on Master Page???

Am I missing something? I'm trying to do a simple ajax call using jquery to a web service on my site and I get a 500 error every time when I make the call from the master page. Has no one ever made an ajax call from a master page or am I just crazy and extremely deprived of sleep? Example: MasterPage.master <script type="text/javasc...

Difference between modes of literal control

Can anyone plz tell me the difference between passthrough and Transform modes of literal control with an example if possible. ...

How to change the server response header in asp.net2.0 with IIS6.0 server

How to modify the server value of response header through code behind using asp.net 2.0 with IIS6.0 server. I have tried Response.Headers.Set("XYZ","ABC"); But it displays integrated pipeline error.... ...

how to remove asp.net webforms tag from visual studio 2010

when i write mockup in visual studio i found in intellesense that some tags like asp:tagname but in mvc i don't want it. so are i can remove it then when i write mock up then i not see this webform tags in intellesense ...

Should I use Request.UrlReferrer when determining referrals

I came upon an interesting discussion with my team around the use of HttpRequest.UrlReferrer and wanted to solicit feedback from the community. According to the W3C spec: The Referer[sic] request-header field allows the client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI ...