I am using Windows Authentication in asp.net every thing is ok in local but when deploying on different system of same domain then its working getting error in this line SearchResult userObject = adSearcher.FindOne();
Error
system.runtime.interopservice.comException
My code is
WindowsIdentity winId = id as WindowsIdentity;
if...
SelectedIndex_Changed event occurs when selection changes, and selection is changed or not is decided by comparing dropdowns current selectedIndex and its value in viewstate.
When we changes dropdown's selected Item using Javascript, it does not change the viewstate's value (which is previously selectedIndex). Now if you change dropdow...
Hi all,
I'm pretty noob with ASP.NET programming and i'm a bit confused on a problem that i'm facing right now.
We, as devs in my company, live in a clustered environment like the one shown in figure
Nothing really special.
You see, IIS Websites are duplicated on evry FrontEnd Servers. Business logic resides on BackEnds that are sit...
Hi,
Im inheriting from GridView control creating MyGridView class which has cs extension, not ascx. U put it in App_Code folder and in web config added:
<add tagPrefix="mgv" namespace="MyProject"/>
it works fine but when I wanted to convert it to web site project I have problem that it cannot find this reference
...
We have CurrencyManager class for desktop application. is there any alternative for web based application?
...
I have a list of character that display fine in WebBrowser in the form of encoded characters such as ...
But when posting these characters onto server to I realized that HttpUtility.HtmlDecode cannot convert them to characters as browser did, they all become space.
text = System.Web.HttpUtility.HtmlDecode("€");
I expect it to...
Hy, I developing ASP.Net for some years now and every time (very often) I code a new asp.net application I need to make sure that all the texts (labels, buttons, … ) I use in the Application must be managed and updated by an admin. Therefor I implemented a own simple component, which updates the data to a Strings table in the application...
Hi,
I am trying to call a JavaScript function from my ascx control code behind in the catch block.
I have tried the below two ways but they don't seem to work.
Page.ClientScript.RegisterClientScriptBlock(typeof(string), "script", "test();", true);
ScriptManager.RegisterStartupScript(Page, GetType(), "err_msg", "alert('error');", true)...
Im showing a table of data using a paginated list, with a search box and submit button above this. I wish to be able to search this table of data then re-Post the view and update with the newly searched for data on the click of the submit button. How would I do this in MVC? Would I have to start looking at AJAX or JQuery or can it be don...
I'm using MonoDevelop on Mac OS X Snow Leopard to develop an ASP.NET MVC Application. I have tested it on Visual Studio 2008 on Windows 7 and it worked fine, but when compiling it on MonoDevelop it throws the error: The type or namespace name 'Objects' does not exist in the namespace 'System.Data' under this line: public partial class Mo...
I am selecting data from database and in while loop, i want it store all data in one variable. How to do that?
The variable selectAnswer is string array type .
I used this code but this give error. Modify this code.
string selectAnswer[] = new string[];
while (rdr.Read())
{
selectAnswer[] = rdr[0].ToString();
}
...
Is there a way to validate my ASPX page code? I have plenty of missing div tags, missing td tags etc on my page. How can I catch all my html errors ? The Visual Studio aspx editor won't help that much. Is there any tool to facilitate this ? How would you guys go about these tasks ?
...
Hi,
I have a base page called let's say Login.aspx with Login.aspx.cs code behind.
Now...I would like to derive page from that page for several specyfic customers. Basically nothing changes in layout (aspx file), the only think is difference in handling Page_Load event. However when I access my derived login page LoginClientName.aspx n...
I want to use CKEditor for a comment field in my ASP.NET MVC 2 application, but can't get it to work. Here is what I have:
The textarea where I try to integrate the editor:
<div class="editor-field">
<%: Html.TextAreaFor(model => model.Comment, new { @class = "textarea", @id="Editor1" })%>
<%: Html.ValidationMessage...
Hello
I want to disalbe fips in asp .net x64 application. In web.config I added
<runtime>
<enforceFIPSPolicy enabled = "false">
</runtime>
I set debug to false.
However my application do not work. Should I declare runtime section in < configSections > ? If yes then is it a proper line
<section name="runtime" type="System.Confi...
Hi,
I have developed multiple WebServices in my project in ASP.NET. Now I need to deploy them as a single executable file. How can i do that?
...
Hi,
I am working on some aspnet C# 3.5 webapp. We use IIS7 on our test server.
This webapp communicates with SharePoint 2007 3.0 SP2 by webservices. We have a machineKey in both web.config (the one of the webapp and the one of the Sharepoint site). The two sites are on two different server.
This communication is working fine.
We have...
I'd like to write and read TCP Streams directly without any modifications by ASP or IIS. Is this possible?
Edit: Goal is to provide communication between a program and a server. Data exchange between them is less then 25 bytes per connection (in default case). So Headers will cause more traffic then the real data. I need to use ASP.Net ...
I've got a clear and simple question.
The webapplication i'm working on is using unit tests (close to 1500 tests). Due to an required modification in the application several tests are failing because The HttpRuntime.BinDirectory doesn't have a value and therefor throws and ArgumentNullException.
Is there a way to set my own value in Htt...
Hi
I am trying to remove all spaces from a text field when a form is submitted so that the contents of the post code field match those in a database...
If drSet5c.Tables(0).Rows(0).Item("post_code") = UCase(Replace(tbPostcode.Text, " ","")) Then
response.write("Postcodes match")
Else
response.write("Postcodes DON'T match")
End ...