asp.net

When's the earliest i can access some Session data in global.asax?

Hi folks, i want to check if the Session contains some key/value data, in my global.asax. I'm not sure when the earliest possible time (and method name) is, to check this. thanks :) ...

Changing my Repeater DataSource when there are no items.

I want to place a image with the text "NO IMAGE" in my Repeater when there is no image. What changes must i make in order to achieve this? I want my Repeater datasource to point to an image inside my IMAGE folder in my root directory. My Page Load If Not IsPostBack Then Dim sBasePath As String = System.Web.HttpContext....

Using SQL server 2008 for ASP .net 2.0 Membership provider

Hello all I tried to set-up the SQL tables for ASP .net 2.0 membership provider by clicking on ASP.net Configuration under Project. I have completely uninstalled SQL 2005 Express and installed SQL 2008 Express instead. It seems like that it can not connect to the database. Does anybody know how to get this fixed so I can use 2008 in...

Error SiteMap

hi. What is this error when I SiteMapPath and Configure whit siteMap.of course when I upload my website,I showing this error : "The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: Make sure that the Web site address displayed in ...

Why does Application_Start run in Cassini but not in IIS7?

I have an ASP.NET 3.5 sp1 app that's in development in Cassini. The app includes a global.asax file that should run some code - it works fine in Cassini but in IIS the debugger never hits the function. Why doesn't that code run? ...

print an asp .net page without considering IE version

hi i have an asp .net site with a print option (onclick = window.print()) the problem is that when using IE 7 it gets fine on the page but when users using IE 6 print the page they get it larger than the page is ...

Cannot create the Silverlight ASP.NET website in Visual Studio 2008 Web Developer edition

I need to create a ASp.net website with silverlight controls. I am having only express editions of 2008 (Web developer edition and C# express editions). I have created the WPF application sing C# expression and create the new XAML files. Then I have created asp.net website in web developer edition and linked the xaml files with the . ...

Can I move the automatically generated Edit and Delete columns ASP.Net to the end of the table?

I am using ASP.Net 2.0. I am using a gridview component over some data because I wanted to get the paging functionality it provides. The rest of my site where I do not need to provide paging because I have used an alphabetical index or because the result set is small enough to fit in the screen I use a repeater. In the repeater I have ad...

Calculating a T-SQL Query Parameter at Load Time

I'm trying to SELECT records out of an Events Database (with an EventDate field as Date) that have a EventDate that is in the current month. I have functions for calculating the first day of the month: public string GetFirstofMonth(DateTime dt) { int thisMonth = dt.Month; int thisYear = dt.Year; string firstOfMonth = thisMonth.ToStr...

my SiteMap don't work Correctly

hi. What is this error when I use SiteMapPath . when I click One link in my webSite , this error appeared in a page . of course when I upload my website,I See this error : The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. ...

If (fileUpload.HasFile)=false

hi all here the code then i will explain my question:- Protected Sub btnupload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click If (IsPostBack) Then HandleUploadedFile() Dim savePath As String = "Images\" If (fileUpload.HasFile) Then Dim fileName As String = file...

Runtime error

hi what is the meaning of error,and what do I do for solve this problem ? : Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running...

Configuration Error

hello what is meaning the error . I set and then appear this error . Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a sect...

Updating a dll in the GAC that contains aspx pages for a Web application.

Forgive me coder for I have sinned. I put some code into a dll in the GAC, and now I am confused about how the GAC is really working with IIS. In our intranet environment I have several related web applications (about 10). Each application runs from a separate url, and potentially runs in its own app pool. For now all of the apps are...

Creating a menu from the server side

I am creating my menu with javascript. How possible it is that on page load it is created from the server side (VB ASP.NET) rather than the client side? And if this is possible how is this done? My main aim is that I can create menu items from a database. Feel free to give your opinion. ...

How do I get the PK value within the ItemUpdated event handler of ASP.NET ListView?

I have a ListView that's bound to a LINQDatasource control and need to get the primary key value of the table within the ItemUpdated event handler. I have no problem getting the value from within the ItemUpdating event handler because the ListViewUpdateEventArgs parameter provides access to the keys collection. The keys collection does...

Do Asp.Net handlers pass data back to HttpResponse?

Hello, Q1: A) I assume web form passes rendered html to HttpResponse object, and in turn HttpResponse object passes these rendered data back to IIS? B) I also assume that regardless of which Asp.Net http handler processes the request, all Http handlers eventually pass data back to HttpResponse? Q2 - When request is received by...

IIS 5 session and Asp.Net session

Hello, If we open IIS 5 Manager and right click on virtual directory --> select Properties so that new window opens up --> click Home Directory tab --> click Configuration, so that again new window opens --> and if in this new window we select Options tab, we are then presented with Enable Session state option. Since Asp.Net already ...

Handler not yet determined error

Hello, I don’t know anything about deploying a website, so I probably made some stupid mistake. Anyways, I opened IIS 7 manager, created new virtual directory ( via Add Application ) and pointed it to physical directory where Visual studio saved my Web project. But when I tried to request an .aspx page, browser reported the followin...

What will my JSON array look like?

Hi, I am making a ajax call, and the backend is gonig to return a JSON array. Can someone give me an example of what my json array should look like so I can do the following in javascript? if(myJSON.ErrorCode == 100) { alert(myJSON.Response.Message); for(var x = 0; x < myJSON.Response.Values.Count; x++) a...