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 > february 2008 > threads for wednesday february 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

OT: I am confused. use LINQ or sprocs etc to fetch data in a web page
Posted by Martin at 2/13/2008 11:26:47 PM
Hi! First of all, sorry if this is the incorrect NG for this question. I have just begun to develop web applications. I have also upgraded to Studio 2008 using c# Now i have tried several examples using the new LINQ. But i am getting a bit comfused. What to use? LINQ, Stored Procedur...more >>

Executing Javascript on Page Load
Posted by Jonathan Wood at 2/13/2008 10:53:30 PM
I've created some javascript and added it to my page (from a user control) using Page.ClientScript.RegisterClientScriptBlock. The javascript hides and shows certain elements in response to radio buttons being selected. It seems to work fine except that I really need to run the script when the...more >>

emailing newsletter from XML recipient list
Posted by slinky at 2/13/2008 9:54:18 PM
Thanks in advance for for any clues: I have a website I'm building using MS-Visual Web Developer Express (Asp.Net/VB.net). I'm tooling it to collect names and emails to send out our newsletter. I have successfully setup an XML file with some sample names and emails. I populated this through a w...more >>

Input string was not in a correct format
Posted by Bart at 2/13/2008 9:51:00 PM
Hi, i defined a linkbutton in a gridview. In code-behind, i want to perform the delete query when the user clicks on the linkbutton, but this code gives following error: "Input string was not in a correct format." at line: r = Convert.ToInt16(e.CommandArgument) Thanks for help Bart ...more >>

Need advice ...
Posted by shapper at 2/13/2008 6:39:34 PM
Hello, I have a SQL table to hold files information. One of the table columns is Path which holds values as: C:\Assets\MyPic.jpg C:\Assets\MyCV.doc .... I need to get all record which are images, i.e., which extension is .jpg, .gif, .png. Should I use a SQL Stored Procedure or LINQ t...more >>

Remove word from string
Posted by shapper at 2/13/2008 5:20:24 PM
Hello, I have 2 strings: A = "filename.extension" and B = ".extension" I want to remove B from A to get the filename ... I prefer to do it this way just in case filename has also dots. How can I do this? Thanks, Miguel...more >>

Dynamic controls, postbacks, and view state
Posted by J at 2/13/2008 4:30:21 PM
My application calls for a lookup table in which the user can add records. When the application is run, an html table will be created dynamically to show checkboxes (and .Text) for each of the values stored in the lookup table. The checkboxes will be checked/unchecked depending on data in a...more >>

Rename and Replace file
Posted by shapper at 2/13/2008 3:20:02 PM
Hello, I am moving file from a folder A to folder B using: System.IO.File.Move(path, newpath) I am not sure if this is the best way to do this but I also need to: 1. Rename the file before coping it (I want to keep the extension. I just want to rename the filename) 2. If the file al...more >>



display data to user question
Posted by Dave at 2/13/2008 3:05:06 PM
I'm stuck on something and I've been trying to find some examples on it. I'm trying to show the data to my users as such: year1 year2 Q1 Q2 Q1 Q2 Smith my dataset looks like this: <?xml version="1.0" standalone="yes"?> <NewDataSet> ...more >>

Where is the javascript that disables postback the postback control?
Posted by gnewsgroup at 2/13/2008 2:43:55 PM
Somewhere sometime ago, I got a few lines of javascript that disables any web control that just caused the postback. And when the postback is done, the control is again enabled. I cannot find it anywhere now, does anyone happen to have a clue? Thanks....more >>

manual call to FormView1_PageIndexChanging
Posted by rodchar at 2/13/2008 1:37:00 PM
hey all, is there a way to call FormView1_PageIndexChanging manually and pass it a specific index i want to go to? thanks, rodchar ...more >>

Gridview textbox has data check without postback.. javascript?
Posted by wildman@noclient.net at 2/13/2008 1:34:02 PM
RE: Gridview textbox has data check without postback.. javascript? I have a gridview with a textbox. I can set the textbox to autopostback and check for a value in a prerender event to decide if I should make a button on the grid row visible. However, the problem with autopostback on a textbo...more >>

PagerTemplate=LoadTemplate("myPager.ascx")
Posted by rodchar at 2/13/2008 1:00:06 PM
hey all, recalling the subject line: is it possible to have a DropDownList in my pager template user control? if so, if the datasource needs to be sent in to say a public property how would i do that? i mean i have: FormView1.PagerTemplate=LoadTemplate("~/PagerTemplate.ascx"); where wou...more >>

signing assembly files
Posted by Tem at 2/13/2008 12:37:03 PM
Do signed assembly dll files run a little bit slower? due to the extra overhead? the dlls will be used on our own web server and won't be distributed. Is it still worth signing the files? Tem ...more >>

How does caching affect logging?
Posted by Ken Fine at 2/13/2008 12:20:31 PM
I'm looking for a clear answer regarding how caching (ASP.NET and classic ASP) might affect IIS6 server logs. Related: I'm wondering if ASP.NET output caching might affect tracking schemes of the sort used by Google Analytics, that use a javascript embed to communicate with the mother ship....more >>

UpdatePanel acts differently inside Content area of Master Page
Posted by John Kotuby at 2/13/2008 12:16:25 PM
Hi all, Just wondering why this would happen. I had created a standalone ASPX page in which 5 controls are wrapped in an UpdatePanel. The idea is Control1 selection populates Control2 then Control2 populates Control3, all depending upon which selection the user makes in each contol. For exa...more >>

Gridview only show row button if something was selected and something has been entered??
Posted by wildman@noclient.net at 2/13/2008 9:07:43 AM
I've coded a gridview that has used bound data to determine if I should show a button on a particular gridview row as follows: <asp:TemplateField> <ItemTemplate> <asp:Button ID="Submit" Text="Test" CommandArgument='< %#Eval("CNumber") %>' CommandName="Sub...more >>

a timed event in asp.net
Posted by Larry Bud at 2/13/2008 8:39:21 AM
With the help of some of you guys, we're making progress here. I have a webservice that outputs a file which another apps picks up. I write a row to SQL that has some status flags of this output file. The other apps processes this file, and will set the status in one of the columns to true w...more >>

Required field and canceling out of a page.
Posted by Mufasa at 2/13/2008 8:37:29 AM
I have a page with required fields but also want a cancel button so the user can stop doing what they are doing. Problem is, if I use a required field validator and they then click cancel, it says the fields are required. Any way around that other than writing the required code myself? TIA...more >>

check broken links?
Posted by george.alliger@groupoe.com at 2/13/2008 7:40:50 AM
Interdev used to be able to check the links on a website and generate a report with a broken links. How do I do this in VS2008? Thanks, G...more >>

POST to another page simulating click
Posted by Alhambra Eidos Kiquenet at 2/13/2008 6:38:01 AM
Hi misters, I want to submit form in a console application to simulate user click button to submit in browser There are controls in page. Four TextBoxs and a Button (type submit). And i have registered an event for button to handle the request: void button_Click(object sender, Event...more >>

ASP + Outlook
Posted by Austin_newFlexer at 2/13/2008 2:49:39 AM
hi! By clicking any href link , i want to open outlook express in my asp.net page. And i need to display the webpage on that outlook express. if any one have any idea pls note thanks in advance Austin...more >>

Declare UserControl in a class
Posted by Chris Zopers at 2/13/2008 1:43:09 AM
Hello, I have a UserControl with the name Toolbox, so the UserControl's class name is UserControls_Toolbox. I want to pass this UserControl to a function in another (static) class, just as you would do with for example a string value: For example: string sValue = 'hello'; OtherStaticC...more >>

Best way to do this
Posted by Tem at 2/13/2008 12:52:36 AM
When a user submits a photo on my site, a confirmation page is shown. Your photo has been submitted. I want to generate a link to the photo he just posted on the confirmation page. what's the best way to do this? right now there are two queries on the page - insert photo - select where...more >>


DevelopmentNow Blog