asp.net

What does IsPostBack actually mean?

I am interested to know what specifically Page.IsPostBack means. I am fully aware of it's day to day use in a standard ASP.NET page, that it indicates that the user is submitting data back to the server side. See Page:IsPostBack Property But given this HTML <html> <body> <form method="post" action="default.aspx"> <i...

IIS unable to resolve Image url

Hi, I have saved my website in the wwwroot folder. when i am running it through Visaul Studio 2008 it s running absolutely fine with path http://localhost:3840/GettingUserId/default.aspx but through IIS it is unable to resolve the images URL , not even the links to other pages r working (Parser Error). The path is ...

displaying a table's field in a textbox

I have a table and I want to select a field in it and then display it in a text box something like: SELECT userName FROM userTable WHERE (userLogged = 'ON') how can I display the selected username in a textbox? BTW the userLogged indicates wether the user is logged in or not if the user is logged in then the userLogged will be chan...

Grid with too many columns in fixed width website

I am using Telerik's Radgrid for a website. Often the grid columns exceed the available width, and extend outside the main content area (fixed width). So what are my options for presenting very wide grids. horizontal scroll bars just look ugly on my site ...

How to discover the reason of ASP.NET application restart

Is there a way to monitor (log) the reason for restarting of an ASP.NET application? We now having problem with rather complex site. It's restarting during file upload. Not on every file, but on every 5th-10th for sure. We use custom VirtualPathProvider, so this could be a reason. We also have a background worker threads, and this also...

ASP.NET, IIS and COM

Hello I'm not that familiar with COM and was hoping that someone out there, who is, could help verify what I have below is correct. If I have two completely separate Requests (request 1 & request 2), then this creates two separate instances of my WebApplication. So far so boring. If each instance then contacts the SAME web service,...

Telephone number is not displaying correctly in ajax control toolkit mask?

I have the following telephone number 866-234-5678. I have an asp textbox and I am applying the following mask: <cc2:MaskedEditExtender ID="maskPhone" runat="server" ClearMaskOnLostFocus="false" AutoComplete="false" MaskType="None" ...

subsonic with webservice

I am trying to get subsonic to run work in a webservice I am not sure how to return the data. I only get the word Object in my results when It return anything instead of values. What am I missing? <WebMethod(Description:="Method to retrieveCptCode subsonic List")> _ Public Function GetSubCptCodes() As CPTCodeCollection Dim coll A...

Website/Webservice deployment environment diff/monitor?

My companies' system is build from a collection of ASP.NET websites, webservices, windows services and databases. (around 40 all told) We maintain three environments - QA, PREPROD and LIVE; but managing what is installed (and working) on each environment is a real pain. We seem to spend more time debugging what is installed & working ...

call a c# .net aspx script from regular html

how can i do a form POST from a regular html file. and call a .net file that ends with .aspx what would my html file require? ...

Reporting Services 2005 Subtract 2 Values in a Table

I have a list of fees being displayed in a table object. I would like to display the difference between 2 of the fees in a text box (not sure if this goes in the table footer or in a group footer). I am able to sum values easy but I don't see how I can subtract values. In this example let's say I would like to show the difference of the ...

What does .d in JSON mean?

Hi, I have a .NET webmethod that I have called from jQuery. The method returns some HTML markup that I display within a DIV element. Once I have the response I use $("#div").html(result.d); My question is, what does the .d do? I don't like using code I don't fully understand? Could I get the same result using Eval? ...

asp.net :how to use eventargs for parameter passing on button onclick?

i have seen some code in which people pass parameter through commandParameter Property of web control.then what is use of eventargs. ...

Why is my WebService constructor getting called each time I call a webmethod?

My webservice constructor is getting called each time that I call a webmethod. This is causing some problems with some new functionality that I am adding and I cannot figure out what I am doing wrong to cause this. The only place that I am newing the webservice is in global.asax.cs's Application_Start, but if I remove the code to new the...

Web site project and WCF project in the same or different solution: pros and cons

I have a Visual Studio solution containing a web site project plus a bunch of supporting projects (domain model, data access, etc). I want to expose an API to the same underlying data, via urls under the same domain, so I developed a WCF/REST project to do this (which has dependencies on the same set of domain/data access projects). No...

hw to create line breaks between dynamically generated labels in a placeholder?

This is the code below in code behind file's Page_Load event: LinkButton linkButton = new LinkButton(); linkButton.ID = "LinkButtonDynamicInPlaceHolder1Id" + i; linkButton.ForeColor = Color.Blue; linkButton.Font.Bold = true; linkButton.Font.Size = 14; linkButton.Font.Underline = false; ...

asp.net:i want to change color of dynamically generated linkbutton on mouse cursor focus with javascript .

code: LinkButton linkButton = new LinkButton(); linkButton.OnClientClick="changecolor";--i need to change this to on mouse focus event there is no property for for link button like we have onClientClick. ...

Intercept Http call to SSL certificate

Is there a way to intercept a call made by WebBrowser to SSL (within in an asp.net application)? I need to pass parameters to http-headers at runtime before the request is made. Example: if I type "http://test.com", the browser communicates with the server and returns "https://test1.com" as the secured url. I should be be able to inter...

running aspnet_setreg.exe on a windows 2008 server

I have a site that uses aspnet_setreg.exe to encrypt the username and password of the identity user into the registry. It has always worked fine but when I run it on a Windows 2008 i get this: C:\aspnet_setreg>aspnet_setreg.exe -k:SOFTWARE\MYCODE\identity -u:"domain\user" -p:"password" Please edit your configuration to contain the foll...

Tailor the Publish feature in VisualStudio to use specific paths for individual files

Is there a way to tailor the Publish feature of VisualStudio (I'm using VS 2008) so that different files go to different directories. I'm developing a web application which is used within a CMS (Immediacy) and the folder structure of the solution is quite different from the target folder structure. e.g. in my solution I have: MySoluti...