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 > august 2007 > threads for monday august 13

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 31

master page refresh
Posted by Ganesh at 8/13/2007 10:05:11 PM
I've couple of button on master page, based on user login from default.aspx i control visibility of controls. I thought once i hide the button from default.aspx it should be same for other pages aswell. but it doesn't. it works only for default.aspx only. How can i do that? do i need refres...more >>

how to reach linkbutton programmatically?
Posted by Ben at 8/13/2007 8:44:32 PM
Hi, i try to reach in code-behind a linkbutton embedded into an ItemTemplate element of a gridview. But i'm stuck .... <Columns> <asp:TemplateField><ItemTemplate> <asp:LinkButton ID="lb1" runat="server" OnClientClick="return confirm(Sure?');" CommandName="Delete" Text="go" > </...more >>

questions about compiling
Posted by Ben at 8/13/2007 8:32:01 PM
Hi, 1) i read that the whole application is compiled at the first request of a page. Does 'at first request' mean for ever, or there are situations where the compilation occurs again? The common sense tells me: when a page is updated, but are there other situations (e.g IIs stops or no re...more >>

scriptaculousdotnet?
Posted by Darrel at 8/13/2007 7:10:33 PM
I've been working on a ASP.net 1.1 app using the scriptaculous javascript library. Digging around on the scriptaculous pages, I've found a couple of dotnet implementations using it. However, nearly all the links are dead. The one that looked most interesting is scriptaculousdotnet, whic...more >>

Javascript confirmation message in datagrid
Posted by Peter Afonin at 8/13/2007 6:24:22 PM
Hello, I need to add a confirmation message to the Delete button in the datagrid. I was always using this code to do this: Private Sub dgRoles_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgRoles.ItemCreated '--------------------...more >>

downloading files from filesystem
Posted by Tina at 8/13/2007 6:15:10 PM
My app needs to provide download of files (in this case .doc files) that exist on the file system. I have the physical filestring i.e. c:\myfilesdir\smith resume.doc. but if I load that into a navigateurl it doesn't work. Nor does file://c:\myfilesdir\smith resume.doc. Or any thing else I ...more >>

Image Path
Posted by seema at 8/13/2007 5:44:00 PM
I have three image groups. I have to create an XML document that models the image groups.Each grouping should include the name and location of the images within the group. ...more >>

FormView.ChangeMode and DataBind
Posted by J055 at 8/13/2007 5:41:44 PM
Hi I have a FormView control within a UserControl. After I DataBind I need to change the CurrentMode depending on a value from the ObjectDataSource Select method. When I do this the FormView DataBinds again. Also in the first DataBound event the controls are null so I have to check for null...more >>



Set Image Control to Bitmap
Posted by MikeB at 8/13/2007 4:43:09 PM
Hello All, want to be able to pull images from the database and load them into a bitmap through a stream which I have working. I then want to take the bitmap and load it into a Image control without haveing to save the bitmap as a file. Is this possible? Currently, I just display the bitma...more >>

Display .DOC file in Varbinary
Posted by GaryDean at 8/13/2007 3:54:26 PM
I'm storing Images and MSWord doc files in Varbinry columns. I have no problem getting and displaying the images but I'm looking for the right approach to allowing the user to download the MSWord doc in the varbinary. I've provided download of .doc files from my own directories but never from...more >>

dot net and sql server-2 quetion
Posted by pelegk1 at 8/13/2007 3:30:03 PM
1)when i call to a Stored Procedure and for exampe i do : myCommand.Parameters.Add("@flag", Data.SqlDbType.Int) myCommand.Parameters("@flag").Value = DEAULT how can i pass a DEFAULT value tothe stored procedure (in which the stored procedure for the specific variable uses its default defined v...more >>

read scheduled tasks
Posted by Steve at 8/13/2007 2:23:52 PM
Here is what I want to do. Currently I have to log into 30 servers every = morning and see if all the jobs under 'scheduled tasks' ran. Is there a = way from .NET to read that directory for the selected server? So I want a web page, it will have a drop down box with all the servers = I log int...more >>

regarding the apperance of dropdownlist
Posted by sarellaravi NO[at]SPAM gmail.com at 8/13/2007 2:13:56 PM
hi to everyone, just help me out to do this. On my page i have a dropdownlist control,which contain 80 items. when i select the dropdownlist.i am able to veiw 35 items of the list at single look. which gives a odd apperance. i want to restrict the no.of items visible to 10 at a single instance...more >>

how to restrict the appearance of dropdown list
Posted by sarellaravi NO[at]SPAM gmail.com at 8/13/2007 1:59:45 PM
In my dropdown list there are 70 items. when I select the dropdownlist I am able to view 35 items in a single view. But I want to restrict the no.of items to 10 when I select dropdownlist. Please help me out ...more >>

More questions on web.config
Posted by eagle at 8/13/2007 1:32:30 PM
In reading web.config and machine configs, what is the difference between the ConfigurationManager and the WebConfigurationManager, and when would you use one over the other. They both appear to be able to get values and connection strings from the config files. ...more >>

remove space in front of string
Posted by Steve at 8/13/2007 12:06:57 PM
I'm getting string returned from my Database with a space in front of = it, it sometimes it looks like this 8 9 10 1 and so one, how can I remove the white space in front of the numbers? = Its actually causing an error on one of my pages and I'm not sure how to = remove it in the beginni...more >>

Padding is invalid and cannot be removed.
Posted by Amelyan at 8/13/2007 12:03:03 PM
Why does this happen? How to fix it? Once in a while I get error in ~/ScriptResource.axd?d=... System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be r...more >>

System.Drawing & Tiff images
Posted by Scott Elgram at 8/13/2007 10:50:26 AM
Hello everyone, I'm hoping someone here can pose an alternative that might work better than what I have created so far. I have a web site that needs to deal with Multi-Page TIFF images. Primarily they need to be split by page or group of pages and uploaded into a DB. The code I have curre...more >>

Page.FindControl
Posted by Rob Meade at 8/13/2007 10:32:43 AM
Hi all, I was wondering if you can help. I have the need to find a control on the page for which I don't know all of the ID, this is because it is made up from several id's forming one new id. Is there anyway to find this control with only part of the information (the part I have will def...more >>

Mirrored state servers
Posted by Bill Fuller at 8/13/2007 9:43:20 AM
Has anyone here had experience using technologies such as StateMirror (www.statemirror.com) as an alternative to managing state on a per server basis (thus requiring sticky-sessions in a web farm) or external state server or SQL Server, which can be a single-point-of failure or performance p...more >>

Why Can't I Edit My GridView?
Posted by Joey at 8/13/2007 9:42:21 AM
asp.net 2.0 VS2005 C# In my web app I added a gridview and then manually configured boundcolumns, for an in-session dataset to act as a datasource. Then I added an Edit commandfield. When I run the page, in each row in the gridview I see the data and the Edit and Delete links just fine. But ...more >>

Best Practices for handling sensitve data in the UI
Posted by Bill Fuller at 8/13/2007 9:37:22 AM
Here is the scenario. We will be writing a web application that will need to sometimes properly handle sensitive data (salary, ssn, profit, etc.) using roles. This data will be restricted at a macro level (for example, no access to accounting modules unless authorized) and a more granular leve...more >>

What is the best?
Posted by Paulo at 8/13/2007 9:11:16 AM
Hi, Im using VS 2005 C# Asp.net 2.0, and I would like to know what do you recommend, using the SqlDataSource component or using classes (MS SqlHelper for example) to connect to a datasource? If the best is the SqlDataSource component, must I have the component on each .aspx (web-form) ? Can I ...more >>

determine if textbox is cleared
Posted by Mike at 8/13/2007 9:02:56 AM
I have a textbox were users can enter data, then they can delete it all = and enter in new data again and click submit. Is there a way to = determine if the user deleted the text they entered in? I'm storing the = data in a Varailble for further use and if they delete the text my = varialble is ...more >>

global.asax in ASP.NET 2.0 ???
Posted by Chris Peeters at 8/13/2007 8:51:52 AM
Hi, How do you use a global application class as in ASP.NET 1.0 ? I try to use the following Global-class but it doesn't work at all: In Global.asax: <%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="Global" %> In Global.asax.cs: public partial class Global : Syste...more >>

Making an entire cell of a table respond to a click.
Posted by Mufasa at 8/13/2007 8:26:51 AM
I have cell that I want to be able to have the user click the cell anywhere and it will link to somewhere else. I want to use a cell because I want it to be 25% of the width of the screen ( I have 4 'buttons' to do this.) I don't want to use a graphic because I want it to be able to resize. ...more >>

Web Parts - Incremental Display?
Posted by rowe_newsgroups at 8/13/2007 7:50:21 AM
On our local intranet site it has been suggested to have customizable content on the start page. Most of the content already exists as user controls, so I'm all set there, the problem is now the loading times. Many of the to-be webparts perform long running (7 to 10 seconds) database queries whi...more >>

Send Email
Posted by Mike at 8/13/2007 6:40:03 AM
Hi Guys, I'm using this code to send an email with attachment but it's not working !! So, what I'm missing!!? knowing that both From & To email addresses are correct? MailMessage msgMail = new MailMessage(); msgMail.To = "badisrochdi@yahoo.com"; msgMail.From = "badisr@bigpond.com"; msgMa...more >>

problems understanding ViewState
Posted by Chris Peeters at 8/13/2007 1:56:50 AM
Hi, I have a Listbox with 3 strings added at design time : "Red" "Green" "Blue". I add a fourth string at run-time in Page_Load: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) lstColors.Items.Add("Yellow"); } Enabling the EnableViewState-property...more >>

menu question
Posted by Victor at 8/13/2007 12:00:00 AM
Hi Guys. I am currently having a problem with my menu control. The requirement for menu is. All root menuitems will be displayed as images. The image for each root menuitem will be different. All the child menuitems are normal text. Previously, I just a customized ajax menu control, which wor...more >>

Advanced redirect
Posted by myalo at 8/13/2007 12:00:00 AM
In the transition of a website from one domain to another for exmaple from www.oldsite.com to www.newsite.com I need to "rewrite" the URL so all links to the old site will be linked to the new site as follows: 1. For URLs that reference pages: Change http://www.oldsite.com/dir1/content/content.a...more >>

Car Air Conditioners
Posted by Lepi Duja at 8/13/2007 12:00:00 AM
All the informations about car air conditioners can be found on this website... http://car-air-conditioning.blogspot.com/ ...more >>

how to distinguish two row in sql server
Posted by chenhong at 8/13/2007 12:00:00 AM
a query return with some identical rows, how can I distinguish them? what I want is like this: select rowid, column1, column2 from mytable TIA...more >>

Page scrolls up on update ?
Posted by luqman at 8/13/2007 12:00:00 AM
Whenever I Insert or Update the GridView Control, the page scrolls up. I have about 50 Rows in GridView and say, when I edit the Row No. 45 and click on Update Button of the GridView, the page refreshes itself and goes to the top row, how can I restrict this Page to position to the last edited ...more >>


DevelopmentNow Blog