asp.net

Confirm button extender if textbox is empty.

Hi Everybody, I want confirm button extender to pop up when Particular TextBox is empty. How to do that? Thanks in advance. Any help would be appreciated. ...

how to find child nodes a root node [TreeView]

ROOT A B C D E T F G X i want to find E Node's parent nodes(it is number 5).then i will save node, if number is smaller 5. i'm using TreeView in Asp.net control. ...

What does '??' mean in C#?

Possible Duplicate: What do two question marks together mean in C#? I'm trying to understand what this statment does: what does "??" mean? is this som type if if-statment? string cookieKey = "SearchDisplayType" + key ?? ""; ...

ajax Confirm button extender if textbox is empty.asp.net

Hi Everybody, I want confirm button extender to pop up when Particular TextBox is empty in Grid View. How to do that? Thanks in advance. Any help would be appreciated. ...

How to access an ASP Control in a class file

I have a asp Textbox control in my .aspx page. I have a .cs class file , not the code behind file. I want to access this textbox control in this .cs file. I know I can pass it as a parameter.But I'm curious to know if I can do it through some reference way or something. ...

How to make a Web (WCF) Service act as Windows Service

The question, I have a web application - .net 4. The client is having a requirement that he want to send email to his users on a regular basis about his new courses etc. The webapplication created will hosted on a "Shared hosting environment" with no excess to windows services - file system other than the web root folder through FTP....

Datetime format different on local machine compared to production machine

Hi, On one of my pages I display a datetime (from a database) and it is formatted correctly as a UK date time (dd-mm-yyyy) on my local machine. However when I deploy it to a server it reverts to American format (mm-dd-yyyy). Does anyone have any idea of when this might be happening? This might be outside the scope of stackoverflow but ...

Testing web applications

My question so general, but I think the answer will be specific. All I want to know is: Is there a way or steps or mechanism to test the application (web application) in a professional way? Many times when I finish developing and try my application, testing it with dummy data several times, and when I think every thing is okay and I t...

Application Domain in ASP.NET

Hello Experts, I am beginner.I want to study about Application Domain in ASP.NET. Can anyone explain what is it or give me some good link where I can study for it. Thanks in advance. ...

SiteMap based on user roles doesn't works

I have sitemap which looks like this: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/default.aspx" title="Prva stran" roles="*" description="Shema ISEF"> <siteMapNode roles="2" title="Analize" id="Analize" description="" > ...

GridView HeaderText is empty in some cases

It returns an empty string! <asp:TemplateField HeaderText='<%= "2323" %>'> How to solve it? Originally i want to invoke a page method. ...

Can I assign a value to a variable which Sticks to this variable in every scope?

Can I assign a value to a variable (int) and never lose this value inside any scope ? the problem is I am assigning the value to the variable in some scopes but the variable returns to its default value (zero) in other scopes.. Example : protected void Button_AddNewCourse_Click(object sender, EventArgs e) { ID = 10; } so when...

Problem filling data table with SQL adapter in ASP.NET

I have a username db table that I'm trying to connect with to compare the username/pass. Here is my code, it's not working, what am I doing wrong? DataTable dt = null; protected void btn_Click_Login(object sender, EventArgs e) { string query = string.Format("SELECT * FROM Users WHERE Username='{0}' AND Password='{1}'", txtUsername...

Lucene security search asp.net c#

Hi, Im hoping this would be a really easy question for someone.... Basically we are indexing security information against my documents in lucene.net, the information is stored in 2 document fields called viewuserids and viewroleids, so when we construct a query - only documents which the user has view access to are returned. The requir...

How to perform Cause Validation with CheckBox?

By default cause Validation is false in case of checkBox but I want to perform some operation (any operation) when cause validation is true. how to do this? ...

Could not create Windows user token from the credentials specified

Hi All, I have developed a web service in and installed in a server success fully, its working fine there. I tried to work in another server, But I had some error there in the new server. I trying to access a network folder, Its accessible for the user which I have mentioned in the web config, But I'm having error. in the web config...

ASP.NET: Download Powerpoint file with Save as....

I'm generating a PowerPoint file using this as reference. A user can search other users based on many criterias. Information based on the user is saved in the PowerPoint file. But I can't save all PowerPoint files on the server. So, the user needs to right click a link, choose "Save as", and save the file locally. Nothing should be s...

Http file download problem with IIS 7

I'm having a virtual directory that holds videos of format MP4. My problem is that i'm not able to access some of the "mp4" file via http. But i can browse and play the file through the shared folder not via http. I added the MIME extension for MP4 also. Please find the event log as below Log Faulting application w3wp.exe, version 7.0....

How to get details of ASP.NET host environment from code

What details can I get of the process hosting my ASP.NET code (i.e. Cassini, IIS etc)? I know of System.Environment but its not overly informative for web apps. Is there anything else available? Thanks ...

Cancel Upload Operation ASP.NET

Hi guys I have a problem which i need some help on. I am using asp.net 3.5 to build a video website. Users can upload their videos to my site. Now here is were i need help, when the user is uploading a video and trys to open another page before the page is complete i want to either cancel the upload or warn the user that by navigatin...