<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[code]....
no alert box is displayed when i left the textbox blank and clicked the button
I have written the code below to generate an XML document and it works a charm however the smallest snippet of code is causing me a major headache:
SNOMlabel.text += 1
For some reason this is doubling up and SNOMlabel equals 2 i have debugged the code on this line and it appears to be something to do with when it leaves the Sub btnSave_Click and enters and returns from CreateBookNode, CreateBookNode2, CreateBookNode3.
Code:
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSave.Click ' Name of xml file to create Dim subs = SubscriberID.Text Dim name2 As String Dim fdate As String Dim length As Integer length = Len(Page.User.Identity.Name)..........
I have code behind which is being executed because it is causing an error. The problem is my breakpoint is not working. I have under debugger ASP.Net ticked and have this in my web.config
My application is working fine in local environment but not working after push code in live. My locale environment and hosting environment both are having same configuration. Same app working fine 2 month before but in different domain but same hosting server.
how to check the both config / any possible to run debug mode in hosting server please let me know. below code used in all page for checking user session status but when I click on any link page redirect to login.aspx I think session got timeout. I don't know why session got time frequently, but this issue not happening in local environment (desktop).
If Not IsDBNull(ext) Then ext = LCase(ext) End If Select Case ext 'Case ".htm", ".html" ' type = "text/HTML" 'Case ".txt" ' type = "text/plain" 'Case ".doc", ".rtf" ' type = "Application/msword" 'Case ".csv", ".xls" ' type = "Application/x-msexcel"........................
I have an ASP.NET page that has a wizard control. I need to see if the same user is working on the page so I first time I insert a record and next time I update database records. I am using Session.SessionID to check if the same user is working on the page, but on every postback, SessionID gives a unique string and always the "insert" construct executes. What is the best way to check the same user is working back and forth on the same page. User is not logged in, its an open form on the page.
To get the lok and feel and lil idea about my problem[URL]in this web site you can see the list of videos..when you click on the video it starts..in my case it does not work...i've made setting in IIS that it should support flv files in my HTTP HEADERSbut still it's not working on my local machine and also i have the latest flash player..when i click on video the player is not loaded..so any idea ...wot is going on...?
Works a charm locally but as soon as i upload this to the live server (hosted by heart internet) i get:
Code:
Server Error in '/' Application.
Specified argument was out of the range of valid values.
Parameter name: i
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
I have my body height to 100%. I then have a containers height set to 100%. If the window is smaller than the content of my container a vertical scroll bar is added but when I scroll down my container div is no longer 100%.
Please see the attached image.
I then add overflow:auto which sort of works but because it puts a scroll bar inside my container and not the window and my two images are the width of the container they no longer fit next to each other. grrrrr.com
I need my main container to extend with its content with out scroll bars because if the vertical scroll bar shows there is not enough to have my two images side by side.
I have use ajax calendar extendar which is working fine in development environment. But it is not not working in server. other Ajax controls are working fine.
How I populate a dropdownlist from code behind. I want to add the items from an access database. I know how to read the rows but don't know how I add them to the dropdownlist. What I mean by this is I need to add a value column and a display column because I want to save the code value not the display value.
I have a GridView where user can select multiple jobs to be processed. When user hits the 'Run" button, selected jobs are being processed, at this point I would like to show a message as the application steps through each job, like "Now Processing ABC", "Now processing DEF" etc
Is there an easy way to do this (from code behind). Could I force a postback and have a label / text box being displayed with different messages ???
In vb.net code behind we can go the code view and from right dropdown box we can view the page events. But i c# code behind i can find events for controls like button and other controls. but in c# how to view the page events.
I have been using visual studio 2005 Prof. Edition to debug stored procedure using this tool. However I cannot use the comment field as it is grayed out.
Is it possible to comment code in transact sql using visual studio 2005.
On one page, I have 2 buttons. One that says Clock-in and the other says Clock-out. As of this moment, the application will allow you to click on the clock-in button without having clocked out the previous day and will allow you to click the clock-out without being clocked in. If a user is clocked in and they click the clock-in button again, I would like an alert to pop-up that would say "you must clock out before you can clock in". And if the user clicks clock-out without being clocked in, it should say "you must clock in before you can clock out". I am using VB in the code behind and SQL Server 2005. My current button click events are below:
I did executed a db - contact form page successfully in the same project with the same connection string, but for this page its doing error and so I commented the binary file saving codes and all and put just simple 2 fields to see if the db is connecting and surprisingly getting sqlexception error and no data is written to the db. I am using sqlexpress 2005 and VS 2008. After this code I am listing the error I got.
Imports System.Data.SqlClient Imports System.IO.FileInfo Imports System.Data Partial Class picture2 Inherits System.Web.UI.Page Protected Sub upButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles upButton.Click '' SOME CODES ARE HERE Dim ctr As Integer = 0 Dim fleName As String Dim fleLength As Integer fleName = FileUpload1.FileName fleLength = FileUpload1.PostedFile.ContentLength Dim fleDatasource As New SqlDataSource fleDatasource.ConnectionString = ConfigurationManager.ConnectionStrings("CandidatesConnectionString").ToString() fleDatasource.InsertCommandType = SqlDataSourceCommandType.Text fleDatasource.InsertCommand = "INSERT INTO Picture (picLength,picName) values (&picLength, &picName)" fleDatasource.InsertParameters.Add("picLength", fleLength) fleDatasource.InsertParameters.Add("picName", fleName) fleDatasource.Insert() ----------------------- executed and now the prg returns to my code with the following sqlexception error box and while expanded I got this info ------------------------ message - Incorrect syntax near "&" Line number 1 Errorcode -2146232060
in order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user. fleDatasource.Insert() the prg stops in the code with the green highlight on the fleDatasource.Insert().