Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > june 2007

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

ViewState and more.
Posted by Stan SR at 6/30/2007 10:31:07 PM
Hi, I need to understand a basic process. I generate dynamic linkbuttons like public int PageIndex { get { if (ViewStage["pg"]==null) return 0; else return Convert.ToInt32(ViewState["pg"].ToString()); } } protected void Page_Load(object sender, Event...more >>


Scope of Cache
Posted by ThatsIT.net.au at 6/30/2007 10:14:31 PM
There are a few different ways to use cache in Asp.net. What I want to know is what is the scope of these cache methods. what I mean by scope is are are they cached for the one user or not. if I use System.Web.HttpRuntime.Cache am I caching for all users who come to the site? Can I set a ...more >>

question about compilation
Posted by Ben at 6/30/2007 8:57:47 PM
Hi, i read that the entire application is compiled by default when an user requests one page of the application. The compiled code is put into cache. My question is: if the webserver is shutdowned, when it's online again, is the application again compiled at the first request of an user or...more >>

Hidden Values
Posted by shapper at 6/30/2007 6:30:27 PM
Hi, Is there a way to hold values on an ASP.NET page but not make them visible? I want to use them only in my runtime code. Thanks, Miguel ...more >>

GridView
Posted by shapper at 6/30/2007 6:28:25 PM
Hello, I have a GridView and I an ASP.NET panel with various controls which is a form. I need to fill the form controls with the values of the gridview record that was clicked. I will need not only the values visible in the GridView but also all the other values including the PK. How ca...more >>

javascript debugger; statment not working for me.
Posted by active at 6/30/2007 4:16:42 PM
Q317094 mentions the debugger statement. I tried: <script language="JavaScript" type="text/JavaScript"> function resizeImg(oID) { debugger; .... An at run time (F5) I get: debugger undefined Am I doing something wrong (debug is on in IE6)? BTW I also tried JScr...more >>

How do MSDN web pages access the clipboard?
Posted by Steve Richter at 6/30/2007 3:49:34 PM
I am using the window.clipboardData.getData javascript method to copy from the clipboard. <SCRIPT LANGUAGE="JavaScript"> function ShowClipBoard() { var data = window.clipboardData.getData("text") ; alert( data ) ; } </SCRIPT> This works, but I am not pr...more >>

Pop-up form sending data to the calling form?
Posted by Bjorn Sagbakken at 6/30/2007 1:19:01 PM
With ASP.NET 2.0 I want to add a nice and sleek feature to my application where the user typical clicks a button to open a smaller window to enable a search, lets say for customers or products or whatever. So far this is easy by adding a script tag and window.open with appropriate settin...more >>



Check password answer
Posted by shapper at 6/30/2007 7:31:43 AM
Hello, How can I check, in ASP.NET 2.0 membership, if a given password answer given by a user is the same as the one in the user record? Thanks, Miguel ...more >>

total pages
Posted by rodchar at 6/30/2007 2:04:01 AM
hey all, i have a gridview of records and i'm trying to display the total pages with 10 records per page. int totalpages; totalpages = 1148 / 10; totalpages = 114; there's actually 115 total pages. how can i make sure i don't miss that last page? thanks, rodchar...more >>

image background
Posted by rodchar at 6/30/2007 1:06:00 AM
hey all, i was able to make the background of my image transparent on my web page. However, it looks fine in ie7 but a background shows up in ie6? any ideas? thanks, rodchar...more >>

Is it possible to call button click event before page load on postback
Posted by GauravGupta at 6/30/2007 12:00:00 AM
i am displaying a table in page load whose data is fetched from database . it also check what data is to be displayed from data base by a session variable. and i have few button which change the session variable value. when i click on some button page load is called before button click event,...more >>

Mysterious addition to URL in ASP.Net 2
Posted by Cyril Gupta
Hello Friends & Experts, I am having a little problem with my new Asp.net 2 website. Whenever I run the website (in debug, or on server) a mysterious text is added to my URL like this: - http://localhost:1385/BlogAggregator/(S(mlsbaxvec14tfxigjuyhsi55))/Default.aspx First the app loads ...more >>

Avoiding "SelectedValue which is invalid because it does not exist in the list of items"
Posted by Dave at 6/29/2007 11:25:49 PM
Why doesn't this work? My webpage changes databound items in a dropdown list depending on what form the user selects. And the page needs to remember what the user selected, and reselect the dropdown items between posts (using selectedValue). The problem is I get the above "does not exist" ...more >>

Accessing Masterpage Variable
Posted by Al at 6/29/2007 11:13:44 PM
Hi, I'm working on a site with master page with a few more pages that will show up in the content placeholder. The master page has a few variables as follows: public partial class Main : System.Web.UI.MasterPage { DataTable objDT; DataRow objDR; . . . ...more >>

Attribute 'ms_2d_layout' is not a valid attribute of element 'table'
Posted by CdnRebel at 6/29/2007 8:56:48 PM
Hi, I got the above message on the code below. The code is in an ASP.NET program (I think from version 1.1) and the error message shows up when I open the file in Visual Studio 2005. I am new to ASP.NET and Visual Studio. Is there another way to write that to get the same results? This is ...more >>

Allow the user to select a folder
Posted by Kuldeep at 6/29/2007 8:34:19 PM
Hi all, I have a requirement, where the user has to select a folder and all the files in that folder have to be imported to my databse. To acheive this i need a control which enables the user to select only a "FOLDER", and does not expect the user to select a file. When "html - fileInput"...more >>

how to render <br> tag from a user control?
Posted by Steve Richter at 6/29/2007 7:47:40 PM
I am using HtmlGenericControl to render html tags like <div> and <span>. the problem is the <br> tag does not render correctly when I use this method. ( it renders as <br></br>, which is seen by the browser as 2 consecutive <br> tags. public class Html_br : HtmlGenericControl { pu...more >>

Strange Characters in Asp.Net Text Box
Posted by shapper at 6/29/2007 7:24:44 PM
Hello, I have a form which saves some data to an SQL 2005 database If the text written in the text box contains characters such as "=E7=E3=E1=E0=E9=ED" when I load the data again I get a few strange charact= ers: "=C3=A7=C3=A3=C3=A1=C3 =C3=A9=C3" What is going wrong here? How can I solv...more >>

Code Coverage tools for asp.net
Posted by maralle.fakhereddin NO[at]SPAM gmail.com at 6/29/2007 5:19:13 PM
I am wondering if anyone knows of a good code coverage tool for ASP.Net applications? I already looked at NCover, ANTS profiler and am evaluating AQtime at the moment. Any help would be great. Thanks! ...more >>

Sticking the column names in the middle of a datagrid.
Posted by Mufasa at 6/29/2007 4:46:01 PM
I have a datagrid that get's longer than a page so when people scroll it, the don't remember what the fields are. But they want all of the records on the screen so that they can have IE do a find on the records. So I was thinking of shoving the column headers in every x rows ( with different ...more >>

How to download file
Posted by Tim McGavin at 6/29/2007 4:09:09 PM
When I make a link like this on my page... http://www.domain.com/file1.smp I get "page not displayed". The extension SMP is not a typical extension. It needs to launch a local application. Similar to the way a DOC extension would launch word. Do I need to use ASP to do this? It seems...more >>

Problem with Login Control
Posted by Juan Romero at 6/29/2007 3:54:39 PM
Hi Guys, I have setup a SQL 2005 DB with ASP.NET membership tables. Everything seems to work and I am able to connect to this DB (sitting in different server) because the WSAT allows me to create users and roles. However, when I place a login control on the application and hit the login b...more >>

Content-Type="Application/pdf" & Byte[]
Posted by Stan SR at 6/29/2007 3:02:42 PM
Hi, I call a web service method that returns an array of bytes. This array is a PDF document and I would like to display this array as pdf document within the browser. So I wrote this code, but I don't get my pdf byte[] myPDF = myWebService.GetDocument(pdfID); Response.Cle...more >>

Membership and Roles
Posted by bbawa1 NO[at]SPAM yahoo.com at 6/29/2007 2:47:47 PM
Hi, I am working on Membership and roles in Asp.net 2.0. I am using logincontrols in asp.net 2.0. When I use these login controls it automatically creates ASPNETDB.mdf database. which has it's own tables for membership. But I can't move this database to live server. Over live server I ha...more >>

Forms authentication, user login status is not maintained
Posted by at 6/29/2007 1:54:49 PM
I am testing ASP.NET 2.0 Forms athentication with user credentials in SQL Server 2005. I don't want to put user credentials in web.config, so the credentials section is commented out. The following is the relevant part in my web.config. <authentication mode="Forms"> <forms name=".M...more >>

firing button click event before page load event.....????
Posted by GauravGupta at 6/29/2007 1:45:32 PM
i want to know that is it posible to call button click event before page load event on post back.... please help me.... ...more >>

connection string.
Posted by bbawa1 NO[at]SPAM yahoo.com at 6/29/2007 1:14:09 PM
Hi, How can I create a connection string in my web config file. If I create dataset it automatically appars in web config file but what if I don't create dataseta nd just want to create database into amy asp.net application and create a connection string. Thanks ...more >>

Visual studio 2005 corrupt MS SQL 2000 stored procedures
Posted by DZanke NO[at]SPAM Yahoo.com at 6/29/2007 1:13:09 PM
When our developers access a MS SQL 2000 stored procedure using Visual Studio 2005, it seems to save the stored procs in a format that causes problems w/ MS SQL 2000. When I view the stored proc w/ a binary editor, there are all kinds of null characters and hex characters like "FF FE" , This mak...more >>

Visual Studio .Net 2003 Project running in IIS with ASP.NET 2.0
Posted by clockemail NO[at]SPAM alltel.net at 6/29/2007 1:07:06 PM
I have a VB ASP.NET project that was compiled using Visual Studio 2003, and which works perfectly when using ASP.NET 1.1 in IIS. However, if I run IIS with ASP.NET 2.0, controls within repeaters become relabeled, which leads to bugs in my JavaScript code. For example, a textbox that is labeled a...more >>

Unicode characters error when save
Posted by VB Programmer at 6/29/2007 12:40:12 PM
In Visual Studio 2005... When I'm saving an HTML file it gives me this message: "Some Unicode characters in this file could not be saved in the current codepage. Do you want to resave this file as Unicode in order to maintain your data? Yes No Save With Other Encoding Cancel" An...more >>

Continuously scrolling gridview
Posted by SandpointGuy at 6/29/2007 12:30:03 PM
I want to take a control like the gridview, limiting it to show 5 rows at a time. The source for it has 20 rows of data. I would like the gridview to continously show them, so that every second the "oldest" row leaves and the next roll comes in. Sort of like the stock ticker tape effect, bu...more >>

Urgent Requirement For .NET Programmers In Bangalore
Posted by at 6/29/2007 11:43:51 AM
Hi Friends, There is urgent requirement for .NET Programmers in a MNC based in bangalore. Please mail your resumes with the subject line, years of relevant exp and your present location. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Designation: Senior Programmers/TL (Team L...more >>

Web Form DataGrid not displaying - please help me!!!
Posted by at 6/29/2007 10:44:42 AM
Hi, This is weird, please help. Its probably very simple but I'm stuck! I have populated a dataset with some data from a session variable: Dim dsTables As DataSet = Session("soLookupTables") And now I am trying to display it to a DataGrid widget using the following code: Dim myTabl...more >>

Set connection string of table adapter dynamically
Posted by Orit at 6/29/2007 10:35:31 AM
Hello . I am stucked with the following problem and hope you can help me : - My ASP.NET 2.0 application has one master database . - This master database has a Databases table with list of children databases . - All children databases have the same schema ( only the data is different ) . M...more >>

creating my own TextBox
Posted by George Ter-Saakov at 6/29/2007 10:33:00 AM
I am adding some functionality to HtmlInputText so i derived my class from it. The problem is when i switch page to desing mode the VS shows an error and do not render control. Unable to cast object of type 'System.Web.UI.Design.HtmlIntrinsicControlDesigner' to type 'System.Web.UI.Design...more >>

Is all script run client-side and othe simple questions.
Posted by active at 6/29/2007 10:00:58 AM
Because I received much help from this NG I have this in the .master.vb file: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Image1.Attributes.Add("onload", "resizeImg('" + Image1.ClientID + "')") End Sub and define the Script for res...more >>

Rendering using XML and XSLT
Posted by Sadagopan at 6/29/2007 8:12:01 AM
Hi We are evaluating the process of rendering controls using XML and XSLT in ..Net 2.0 Questions 1. Is there an article which describes the pros and cons and how to go about rendering? 2. What will happen to the view state , and how do we access the control values on the server side Any h...more >>

how to trap carriage return
Posted by HockeyFan at 6/29/2007 8:10:03 AM
I have a couple of text boxes that the user keeps hitting return after entering their data. I don't want a submit. I'd like the return to be trapped, and then cause a tab to the next control. How is this done? ...more >>

Escape Sequence
Posted by C at 6/29/2007 8:10:01 AM
Hi, I have a label where I set the text to "Input value in format xxxx\xx" This gets rendered as "Input value in format xxxx\\xx" I have tried to set the text in the codebehind and use an escape sequence. What am I doing wrong? ...more >>

VirtualPathProviders & precompiled/deployed website
Posted by Steven Berkovitz at 6/29/2007 6:44:01 AM
I have been troubleshooting an issue with a VirtualPathProvider not working on projects deployed with the Web Deployment Project (basically pre-compiled and merged). Some reading I've done seems to indiciate that you can't use VPP's with precompiled websites. What I don't understand is, how...more >>

How to create Dynamic Control(Label) in asp.net with c#
Posted by Manoj Mittal at 6/29/2007 6:16:48 AM
I have created the Dynamic control in asp.net c# like for (int i = 1; i <= 5; i++) { Label label = new Label(); label.ID = "Label" + i; label.Text = "Label"+i; form1.Controls.Add(label); } problem is how to get label1or labe...more >>

Regular Expression to enforce format?
Posted by C at 6/29/2007 4:04:01 AM
Hi, I have an asp.net textbox and I want to enforce that the user inputs values in the following format 1498159\102 How can I do this using a Regular Expression or otherwise? Any advice appreciated. ...more >>

I want to find some good CMS
Posted by at 6/28/2007 11:38:59 PM
I want to find some good CMS , who can tell me some thank you ...more >>

Permissions Error When Accessing Access Database
Posted by Nathan Sokalski at 6/28/2007 8:50:00 PM
When I attempt to access a Microsoft Access database from my website, I recieve the following error: Server Error in '/' Application. -------------------------------------------------------------------------------- Security Exception Description: The application attempted to perform an ope...more >>

Can't access set property in custom control
Posted by Chris at 6/28/2007 7:30:46 PM
I have created a date picker user control. I want to have a boolean property, which I can set to determine whether the control defaults to today's date. I have created a property which I set to true but when I create the child controls it has always reset to false. I know it has been set to ...more >>

Client side radiobutton selection
Posted by Mike at 6/28/2007 6:16:02 PM
Hi Guys, I have a gridview and the first column is a template that generate a radiobuttons in the gridvew. and I would like that user will be able to select one option from the list of the generated radio buttons in my first column - in Client side. (as if in multiple choice exams) Th...more >>

Tightest integration of C++ and C#
Posted by 2b|!2b==? at 6/28/2007 5:08:47 PM
Die-hard C++ enthusiast hear (only been recently converted - actually dragged kicking and screaming to ASP.net). I have loads of C++ libraries - what is the technology/methodolgy that provides the tightest integration of C++ and the .Net languages (C# especially - since that is my target la...more >>

ajax error on firefox
Posted by germ at 6/28/2007 5:00:28 PM
doing a simple page webmethod call an a page via PageMethods works fine in ie7 & opera9 the same call on firefox ( and I assume netscape ) generates the following error : Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" ...more >>

Charting in ASP.Net 2.0 (is this possible?)
Posted by Bartholomew Simpson at 6/28/2007 4:37:58 PM
I'm building an application that has realtime charting and allows a user to interact with displayed chart (drag and drop, zoom, select items in chart, add anotations to chart etc). I haven't seen a .Net application that is this "rich client" - is it possible to do have this level of "rich c...more >>


DevelopmentNow Blog