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 2006 > threads for friday august 4

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

Dumb non-programmer question--what's redir.asp?
Posted by Hiawatha Bray at 8/4/2006 11:51:00 PM
I found this code in a website and wondered whtat it does. <A href="http://webmail.ibew103.com/exchweb/bin/redir.asp?URL=http://news.bostonherald.com/search/?searchSite=true%26keyword=Mitt%2BRomney%26mode=all%26sorting=pubdate" target=_blank> Why not just use the link to the Boston Herald ...more >>

preload images from sql server
Posted by ks at 8/4/2006 11:39:30 PM
HI is it possible to preload images to client browser directly from sql server without storing them on server space Have a nice day thanks in advance ks. ...more >>

Controls?
Posted by Arpan at 8/4/2006 11:37:28 PM
Consider the following code which retrieves data from a SQL Server 2005 DB table & displays it in a DataGrid: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Dim dSet As DataSet Dim sqlConn As SqlConnection Dim sqlDapter As SqlDat...more >>

Hyperlink & LinkButton?
Posted by Arpan at 8/4/2006 6:13:05 PM
Both the Hyperlink web server control & the LinkButton web server control display text as links; so what are the differences between the 2 web server controls? Thanks, Arpan ...more >>

Service Pack - How to tell
Posted by tshad at 8/4/2006 5:52:45 PM
How do I tell which service pack I am for asp.net? I am running asp.net 1.1, but not sure which service pack I am on. Thanks, Tom ...more >>

Export DataSet/ XML as Excel Sheet
Posted by Sachin Salgarkar at 8/4/2006 5:13:16 PM
I have a DataSet that I need to export to Excel. The dataset has multiple tables. I need a way to export the complete dataset to a single Excel Workbook with sheets for each table in the dataset. Is that possible ? I have seen solutions that export a single table to an Excel file. Openin...more >>

Polling mechanism
Posted by Mike at 8/4/2006 4:05:49 PM
Hi everyone, I would like to be able to send updates to my web page from the server. = If I understood correctly, this is not possible to achieve in a web = environment, unless some sort of polling mechanism is used. I read a few = articles and some of them suggest using some Javascript, whi...more >>

Empty Membership Provider?
Posted by xeroxero at 8/4/2006 3:36:17 PM
I do not have any membership provider information specified in my ASP.NET 2.0 web.config file. After digest authentication, the site "hangs" for 20 seconds and then gives a SQL Server error, I think because it is trying to set up default membership for my site. I do not want any membership i...more >>



Border Color & Width in DataGrid?
Posted by Arpan at 8/4/2006 3:25:43 PM
The output of a DataGrid is nothing but a HTML table. To color or change the width of the outer 4 borders of a DataGrid, one can use the properties "BorderColor" & "BorderWidth" respectively but how does one change the border color & width of the 4 borders surrounding each cell? There are 4 ot...more >>

session.remove vs session.contents.remove
Posted by tshad at 8/4/2006 3:19:51 PM
Is there a reason to use session.remove over session.contents.remove? Don't they both remove the key and data from the contents collection? I assume that session(x) = nothing does essentially the same thing but is actually deleted later by the GC. Thanks, Tom ...more >>

Creating a web page as a pass through page to other pages
Posted by nospam NO[at]SPAM nospam.sss at 8/4/2006 3:04:05 PM
The firewall at work is blocking some technical blogs that I need to read. I have a personal server connected to the web. I was thinking of putting up a web app on it which allows me to view these pages. It would function like services like anonycat.com and anonymizer.com (these are blocked too...more >>

RadioButtonList
Posted by Dot Net Daddy at 8/4/2006 3:02:32 PM
I have a radioButtonList. It is AutoPostBack Enabled. And on every postBack the selected item stays there. I want on every page_load no item in the RadioButtonList to be selected. How can I do this? Thanks in advance. ...more >>

runat="server"
Posted by Jeff at 8/4/2006 2:42:09 PM
hey asp.net 2.0 If I have a plain html table in my asp.net 2.0 webpage, and later decide to add this property: runat="server" to the table. Does this turn the table into a asp.net table (<asp:Table ID="Table1" runat="server">)??? Jeff ...more >>

ObjectDataSource has no data
Posted by Dot Net Daddy at 8/4/2006 1:48:42 PM
Hello, I have an objectDateSource. But sometime there might not be any data for my application. So how can I know if the objectDataSource has no data? I binded a dropdownlist to this objectDataSource and I want to set the dropdownlist.visible = False, if there is no data. Thank You, ...more >>

How to Pass UserName to ObjectDateSource?
Posted by Dot Net Daddy at 8/4/2006 1:45:16 PM
Hello, I need to pass the username to object data source. But I failed. As a parameter I passed Profile("UserName"), but it doesnt work. At the moment I am passing it via a control (HiddenField), but I know it is unsecure. I read somewhere that I need to add some code in web.config. But the...more >>

TextBox and Passwords
Posted by Gary Coutts at 8/4/2006 1:41:13 PM
Hi, When you set a textbox's TextMode to password, does this just stop the password being displayed on the client machine or does it send the data to the server encrypted. Cheers gwc ...more >>

Website security without javascript or cookies
Posted by oopaevah NO[at]SPAM yahoo.co.uk at 8/4/2006 12:41:13 PM
What are the pitfalls of passing a token in the url once a user is logged on so I can remember who they are? I can easily implement this by adding &token=abcdefghijklmnop123 to each internal link on my web pages once the user is logged on. I won't be passing the username or password in the u...more >>

Enumerate through Controls
Posted by Mike Collins at 8/4/2006 11:44:02 AM
I have some controls that I am creating dynamically. After the user finishes entering their answers in these controls, I would like to iterate through these controls and get the answers out. I have tried a couple of ways, but do not see those controls there. Can someone please help? Below is s...more >>

running ASP.NET 1.4 and ASP.NET 2.05 on the same IIS6
Posted by emstreet at 8/4/2006 11:41:02 AM
I have an ASP.NET 1.4 app running on W2003 IIS6. I created a new site (e.g. on port 85) where I want to run ASP.NET 2.0. When I set Asp.Net to 2.O on new site properties, the old site would give me a "SERVER ERROR". When I reset the old site to 1.4 the new one does not work. Is there a way...more >>

WebPageTraceListener
Posted by chaz at 8/4/2006 9:59:01 AM
I've followed the directions in ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_aspnetcon/html/18b560f6-120b-462d-8e9f-0baf34c4919d.htm but am not able to get trace output from the business object to the trace displayed in the web page . It shows up in the vs2005 output window bu...more >>

Compiler Error Message: CS0006
Posted by Bruce at 8/4/2006 9:43:57 AM
We suddenly got a mysterious error message on our Windows Server 2003 (SP1) after rolling out a bug fix on a web services application this morning. The application compiles and runs fine on the development workstation (from vs 2005 on Windows XP Pro), but when I run "Copy Web Site..." to ...more >>

CSS Help on making Div BGcolor across entire page when scroll bar appears
Posted by davidr NO[at]SPAM sharpesoft.com at 8/4/2006 9:12:23 AM
Hi, I am using Divs with CSS to setup a layout for a site. I am using the <Div>s and style sheets below. I want the TopMenu to go across the entire top of the browser. It does go across the entire top, but let say my screen resolution is 800x600 and the "Content" Div forces scroll bars for...more >>

Currency Converter Web Service
Posted by Raj at 8/4/2006 9:08:21 AM
Is there a current converter web service available? Currency rates are to be as per latest exchange rates. Raj. ...more >>

Problem while NOT debugging
Posted by nottheface NO[at]SPAM gmail.com at 8/4/2006 9:05:33 AM
I have a chunk of code I'm writing in a C# code behind. Not sure if this is the right place to post, but I'm hoping someone has come across this before... I have on a page a pair of drop down boxes. Based on the selection made in one drop down, the second is enabled or disabled. The code ...more >>

RegisterClientScriptBlock and "Key" Value
Posted by Alex Maghen at 8/4/2006 9:04:02 AM
Hi. Two questions about "RegisterClientScriptBlock": 1. I want to be able to insert a script block without having to worry about whether the "key" is unique. As it turns out, if a script block with that key has already been registered, I can't register another block with the same key. So th...more >>

Self-refreshing and non-self-refreshing controls
Posted by Harlan Messinger at 8/4/2006 8:59:15 AM
[sorry for the multipost but I got no response in m.p.d.f.a.webcontrols] If I have a dropdown list ddl, and the following code appears in Page_Load, then on each postback the rows previously added persist and I wind up with more and more copies of the same rows. To avoid this, I have to wra...more >>

How are Application_Start, etc., called?
Posted by Harlan Messinger at 8/4/2006 8:56:54 AM
How do the Application methods like protected void Application_Start get called? They aren't base class overrides and they aren't implementing interface methods. What mechanism does the system use to call them? In a Web form, a similar handler like private void Page_Load gets cal...more >>

How to Init Profile properties at CreateUserWizard
Posted by Pedro Mir at 8/4/2006 8:50:32 AM
Hi! I am only asking for username, mail, password and security question in my CreateUserWizard control with the LoginCreatedUser=false. I am doing this because I amd sending an email for email address confirmation. The question is, How can I assign or init values to the rest of Profile ...more >>

User control problem
Posted by Carl Maloney at 8/4/2006 8:41:00 AM
I have a user control that is loading and prerendering before the parent page is loaded. The user control needs a value from the parent page before the control gets pre rendered. I have tried calling the OnPreRender: protected override void OnPreRender(System.EventArgs e) { fillImageTable(Co...more >>

Html Control Changing Name Value
Posted by dcassar NO[at]SPAM cmcdataworks.com at 8/4/2006 8:34:15 AM
I am working on a complex server control that dynamically creates an HtmlInputHidden control that stores its value. As far as the postback process is concerned, this hidden input acts as the control itself. So when I render, I generate a proxy HtmlInputHidden like so: protected virtual void ...more >>

Building a URL w/querystring variables
Posted by Steve Hershoff at 8/4/2006 8:13:54 AM
Hi everyone, I'm noodling over the best way to construct a URL with a new querystring variable. Let's say I want to take my existing page's URL and append a new variable with accompanying value, then redirect, but I don't know up front whether the URL already has any variables defined. Is...more >>

PDF Download problem;
Posted by Ibrahim. at 8/4/2006 7:00:01 AM
Im using the following code for downloading attachments in web page, however I get the error "the file is damaged etc". But when I open directly from the folder it opens, *********** Dim myFileInfo As New FileInfo(sender.CommandArgument) Dim myFilePath As String = System.Configuration...more >>

User Control Renders on Separate Line
Posted by jdp at 8/4/2006 6:03:17 AM
I've created a user control that I then place in a panel. The reason it's in a panel is that it's part of search criteria that I hide/show panels based on the type of search begin done. I can place a label next to this control in the IDE and it looks fine but when I run the app, the label is o...more >>

authentication problem...
Posted by RAB at 8/4/2006 5:50:45 AM
Hello, I have rented an asp.net hosting site on Godaddy.com. The site has a URL which for the sake of this question, I will call http://www.mysite.com. I created a directory which I will call 'NewDirectory' and designated it as a root directory. I have forwarded another Domain name to thi...more >>

Using TemplateColumn and DataGrid in code
Posted by MrCrool at 8/4/2006 4:31:01 AM
Hi I need to be able to handle the following ASP programming in pure C# code: <asp:TemplateColumn HeaderText="Customer Information"> <ItemTemplate> <table border="0"> <tr> <td align="right"><b>Name:</b></td> <td><%# DataBinder.Eval(Conta...more >>

DataGrids and MySQL join?
Posted by JP2006 at 8/4/2006 4:09:56 AM
I have a situation where I have 2 tables - NODES and TAGS. Nodes is the main table and contains various columns one of which is tagID. Tags contains a list of tag names and tagIDs. When a user adds an entry to the Nodes table they can specify one or more tags for the entry. Then when the form i...more >>

About frames in asp.net
Posted by Sunil at 8/4/2006 3:59:24 AM
Hi All, I am working on ASP.NET. I am using frames. The top frame will be common where as the bottom frame changes. Now my problem is I want the top frame also change for some web pages which come in bottom frame. Is this possible. You can visit Smartmuve.net for further clarificatio...more >>

please gimme me a regular expression for date (dd-MMM-yyyy)
Posted by pavan at 8/4/2006 3:31:05 AM
please help me as i have to validate a text box for date.... ...more >>

App hangs when SQL table open
Posted by Jon at 8/4/2006 1:38:01 AM
Hello all, We have a strange problem with our app. If the database table to which the app is writing is open, the app hangs and just takes ages. Why would this be so? Thanks, Jon...more >>

Hide a column in asp:GridView
Posted by ghostwolf at 8/4/2006 12:00:00 AM
Hi, I want to hide a column in the asp:GridView, say one of the column of asp:BoundField. But it is not allowed to put <div> inside for setting it display:none. What can I do? Thanks in millions. ...more >>

WebPage Data on PostBack
Posted by Barry at 8/4/2006 12:00:00 AM
Hi have a webpage with some controls at the top and a Table control at the bottom. programmatically add the table header and Data rows using TableRow() and Cells using Cell(), the Table is populated when page is NOT PostBack. have a button to save data, when i click on the save button, ro...more >>

How to put <style> in content page
Posted by ad at 8/4/2006 12:00:00 AM
I use vs2005 to develop web application. I have used the new feature of master page of VS2005, and I have put some <style> in the master page. But I want to override some Style sheet in the content page. Where to put the <style> in the content page ? ...more >>

Asp.net 2 Upload component with progress bar
Posted by Stan SR at 8/4/2006 12:00:00 AM
Hi, I m looking for a good upload component with a progress bar (or code) that works with asp.net 2 Any idea ? stan ...more >>

What class in CSS affect the head of GridView
Posted by ad at 8/4/2006 12:00:00 AM
I use a pre-defined CSS to my webpage. There are many class in the CSS. The header of my GridView will be affected by the CSS, but I can't find the class which affect the header of the GridView. What class in CSS affect the head of GridView? ...more >>


DevelopmentNow Blog