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 > october 2006 > threads for wednesday october 11

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

Internel website search
Posted by Nishu at 10/11/2006 11:24:56 PM
I am working on web portal.& i want to make internal serch for that website can any body help me on that givingme logic or sum helpful code on that Thnx Nishu Mahendra ...more >>


Can Macintosh users able to access ASP.NET 2.0 site?
Posted by dreamamit2001 NO[at]SPAM gmail.com at 10/11/2006 10:59:23 PM
Hi, I am new user to ASP.NET2.0? I would like to know can Macintosh users able to access ASP.NET 2.0 site ? I also want to know what are the features of ASP.NET2.0 which are not supported for Mancintosh pcs? what are the workarounds for them? Please guide me if anybody has accessed ASP.NE...more >>

session
Posted by drabee at 10/11/2006 10:59:02 PM
Dear All I have this command in ASP.NET 2.0 session("test")="hello" I’m trying to retrive the seesion vale for onather web form using this command Dim a as string=ctype(Session.item(“test”),string) But always giving me empty value .NO error message I tried also Dim a as string=se...more >>

Hi
Posted by dreamamit2001 NO[at]SPAM gmail.com at 10/11/2006 10:55:56 PM
Hi, I am new user of ASP.NET2.0? Can Macintosh users be able to access ASP.NET2.0 site? What are the features of ASP.NET 2.0 which creates the problem for Macintosh users? Whate are the workarounds for them? Please guide me, if anybody has accessed ASP.NET2.0 site from Macintosh Pc. Than...more >>

Simple put current date in a txtbox in Formview - Gozirra
Posted by Phillip Vong at 10/11/2006 10:54:27 PM
Using VS2005 w/ simple aspx in VB.net I have a simple databound textbox "LastMtgText" in a formview in the Insert template. All I want to do is make the default date of today when someone goes to Insert template so they do not have to put in todays date. Here is my code, what am I doing...more >>

Form Authentication Across Web Servers
Posted by Nitya Prakash at 10/11/2006 10:05:59 PM
Hi, I have a two ASP.NET2.0 Web applications which are published/deployed on two different servers. These application are interacting with each other. Users of these website can switch between these website as per the flow. User must be authenticated to access resource from web site. Form ...more >>

RegisterStartupScript doesn't work at all!
Posted by AmitKu at 10/11/2006 9:33:09 PM
The function simply doesn't add anything to my source. I've added the following: ClientScript.RegisterStartupScript( this.GetType(), "SomeScript","<script>alert(\"Hi there\");</" + "script>" ); and not a thing is added to my asp file upon view source. What am I doing wrong? Thanks ...more >>

How frowned-upon is not doing *.Close()?
Posted by TJ at 10/11/2006 9:00:09 PM
Hello all. I was wondering... I'm trying my hand at writing an MVC app in .NET 2.0. I'm using code-behind to implement pretty much all my logic, and I was wondering, how bad of a practice is it to *not* use .Close(), such as: public void MenuView() { // generate menu based on Uid...more >>



[Urgent] Build Problem - DLL not found
Posted by Janet at 10/11/2006 6:41:06 PM
Hi, I've converted my project from VS 2003 to VS 2005. But when I try to build the web project, there are no DLL files inside the bin folder. I've tried to create a new Class library project and build it, purely in VS2005, and when I build this single project, the bin folder will contain ...more >>

GridView Hyperlink Field Append URL?
Posted by barclay NO[at]SPAM fusionxstudio-dot-com.no-spam.invalid at 10/11/2006 5:31:40 PM
I'm trying to create a link in my gridview that will include th existing url parameters plus the ID of the field. I've trie everything I can think of to get it to work but this was my lates attempt below. I'm new to using asp.net and I'm just used t building my own url's in php and this is jus...more >>

Issue with Control.Attributes Property when adding Javascript
Posted by ChrisMiddle10 NO[at]SPAM gmail.com at 10/11/2006 4:02:25 PM
Sorry to bother everyone with this question, but the answer to this the question is difficult to search for. I want to add javascript to an HtmlInputButton control attribute. A portion of the javascript goes something like this: if( x < y && x != y ) { // do something ...more >>

Two problems
Posted by Nick Hatzis at 10/11/2006 3:42:49 PM
First Problem : I program an ASP.NET application that uses SQL Server 2005 Reporting Services. Recently I came into a dead end when I had to pass a parameter from my application to the report. I 've looked over the Internet and found absolutely nothing. If someone is capable of doing that h...more >>

Get the named anchor from the URL?
Posted by Greg Collins [Microsoft MVP] at 10/11/2006 3:18:01 PM
In ASPX, how does one get the named anchor from a URL? Its not in any of = the ServerVariables. If a url is: http://www.somerandomsite.com/page.aspx#named_anchor How do I get the value of the named anchor after the # character? --=20 Greg Collins [Microsoft MVP] Visit Brain Trove ( http:...more >>

HttpContext.Current.User.Identity.Name
Posted by Abraham Andres Luna at 10/11/2006 2:15:58 PM
hello everyone, does anyone know why i can't access the HttpContext.Current.User.Identity.Name property in a .cs file? this is the index.aspx page: <%@ Page Language="C#" %> <script runat="server"> void Page_Load(Object Sender, EventArgs E) { FormsAuthentication.SetAuthCookie("abe", fal...more >>

Validation of veiwstate MAC failed
Posted by Rahul at 10/11/2006 1:55:00 PM
Hi, We have upgraded our application from asp1.1 to ASP 2.0. We get the "Validation of veiwstate MAC failed" error when we submit the form again after waiting for 10 to 20 mins. This looks to be a timing issue but how do I fix it? ERROR: "Validation of viewstate MAC failed. If this appl...more >>

Web.Config - retrieving DB connection strings held in specific section
Posted by Griff at 10/11/2006 1:40:40 PM
Hi Bit confused about how to read a connection string from my web.config...I need to hold this data in a particular section (v2.0 specific). Extract from web.config: ------------------------------------- <configuration> <configSections> <sectionGroup name="OurCompanyName"> ...more >>

SqlCommand.CommandText
Posted by Rich at 10/11/2006 1:40:24 PM
I'm trying to update a sql DB using the syntax below and I'm having no luck. myView.CommandText = "Exec usp_ins_EFTRecord " & SourceProgramID The "Exec" works fine in query analyzer, and tests OK in enterprise, but my code doesn't recognize it. In fact, I can substitute gibberish for the ...more >>

Any way to reinitialize IIS on Win2003?
Posted by dgk at 10/11/2006 1:25:35 PM
It's our testing server and someone managed to zap it so that Default Web Site won't start. It complains about some file being in use. Can we reinstall IIS and start over without scrapping the whole thing?...more >>

ASP.Net Missing as a project type
Posted by Chris at 10/11/2006 12:41:02 PM
Hi, I just installed Visual Studio 2005 Professional Upgrade. I did a full install and everything seemed to go fine. Now when I open Visual Studio ASP.NET is missing as a project type. I did have the Visual Web Developer Express installed prior, but I uninstalled it and rebooted before run...more >>

Using Atlas UpdatePanels with GridView sorting?
Posted by jmdolinger NO[at]SPAM earthlink.net at 10/11/2006 12:35:11 PM
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all javascript, nothing really having to do with ASP.NET... I'm attempting to put together an application th...more >>

Style in asp control
Posted by simonZ at 10/11/2006 12:33:59 PM
I have checkBox control: <asp:CheckBox runat="server" ID="chkDelete" Checked="true" /> In code behind, I add stlye to this checkBox: chkDelete.Style.Add("display", "none"); When page is rendered to the client, the style is performed with span: <span style="display:none;"><input id="ctl00_...more >>

Side-By-Side cooexistence of my own assemblies
Posted by dave.dolan at 10/11/2006 12:18:01 PM
I have two versions of the same dll, one is in a production app, and the other is in a test app. When I run the test app, it intereferes with the operation of the production app, which leads me to believe that it's not really using the right version of the assembly... The two versions of the ...more >>

Which control caused cross-page postback?
Posted by Jason Wilson at 10/11/2006 12:06:06 PM
I have a page that has two seperate buttons that have the same PostbackUrl. How can I tell which button cause the cross-page postback? I posted this before and got the anser sender. Sender.ToString doesnt have the ID of the control causing the cross-page postback. Jason ...more >>

group dataset data and get totals
Posted by igotyourdotnet at 10/11/2006 11:58:02 AM
I'm getting my dataset like this: SalesMan Sales Make Smith 25,000 1 Smith 9500 10 Smith 72,252 1 Smith 125,000 5 Smith 25,252 10 Jones 65,000 5 Jones 12,500...more >>

Check if it is null
Posted by shapper at 10/11/2006 11:56:34 AM
Hello, I have 3 different properties in a class. The properties are of types: Mail.MailPriority, Mail.MailAddress and Mail.MailAddressCollection I wan to check if the properties were defined, i.e., if they are null or not. I was able to work this out for properties of type boolean and s...more >>

Newbie question on publishing to web server
Posted by AAJ at 10/11/2006 11:54:00 AM
Hi all I've written my first site (on my local server), and just getting to grips with publishing. I wonder if anyone can fill in a few gaps. 1) On my local server I have all my classes uncompiled and in debug mode. I run them by pressing 'play' or F5. Is there any way so that when I sel...more >>

Yes or No about DataSources
Posted by rodchar at 10/11/2006 11:45:02 AM
hey all, i have a multiview control that has 2 views in it. View1 has a gridview bound to a SqlDataSource and View2 has a FormView bound to a SqlDataSource also. If, in the code, i don't set any views to be active does any binding still occur in the background but it's just not visible? ...more >>

Data-Based User Controls
Posted by Jonathan Wood at 10/11/2006 11:33:44 AM
I'm new to C# and ASP.NET, and wondered if anyone could give me some pointers on this. I want a serious of boxes on the left side of my master page. Each box will display a graphic image followed by any number of links. Each box needs to correspond to a category in a database. So the number...more >>

Problem populating GridView!
Posted by Jeff at 10/11/2006 11:28:05 AM
Hey asp.net 2.0 I have this GridView in my web page. My problem is that it get populated with all the fields of the MembershipUser class. I thought only UserName would be displayed, but it displays all fields <asp:GridView ID="gvwOnline" runat="server"> <Columns> <asp:ButtonField ...more >>

Return value in function
Posted by shapper at 10/11/2006 10:59:55 AM
Hello, I have a function inside a compiled class which code is as follows: Public Function Send() As Boolean ' [Some code] Try ' [Some code] Return True Catch ex As Exception ' [Some code] Return False End...more >>

Tutorial or book recommendations please
Posted by Sheridan at 10/11/2006 10:43:18 AM
Dear Group, I've searched the newsgroup for the last few days and can't seem to find a thread regarding the best tutorials. I've learned programming in C, VB (version 6) and PHP but can't seem to understand ASP.Net or VB.Net (their web-type programming). Gone to the Microsoft site with the tuto...more >>

Database explorer
Posted by Guy Cohen at 10/11/2006 10:08:49 AM
Hi all. What is the use of this window? Is it only to see the objects/tables of the database? Lets say I have this code: Dim SQL As String SQL = "SELECT * from mytable" Dim Adapter As New Data.OleDb.OleDbDataAdapter(SQL, connection ) Dim DS As New Data.DataSet Call Adapter.Fill...more >>

random error when using page outputCache
Posted by Nalaka at 10/11/2006 9:51:25 AM
Hi, I get the following error, I thought at random intervals. Then I realized, that this happens around the time tha page outputCache is set to expire. So I disabled the page output cache and the problem went away. I put in the outputcache back and the problem is back. I am using forms auth...more >>

GridView RowCommand Not Firing
Posted by AG at 10/11/2006 9:48:51 AM
I have a gridview that I bind to a List(of Type) at runtime. Not using a datasource control. The gridview has a template column with an imagebutton whose commandname is set to 'Delete'. The footer template has an commandbutton with the commandname set to 'Insert'. Both buttons cause postback...more >>

Logon Page not using complete URL
Posted by tshad at 10/11/2006 9:36:48 AM
If you go to a secured page and have not logged in, I go to the Logon page defined in my Forms Authentication fields in my web.config. But I am only getting the first parameter in it. For example: http://www.staffstage.com/employer/secure/JobReviewApproved.aspx?pid=295&swrp=1 will get ...more >>

Screen capture from within ASP.Net
Posted by dumbledad NO[at]SPAM gmail.com at 10/11/2006 9:29:59 AM
Hi All, I'm using ASP.Net web services to provide the logic required for a Flash based prototype. The Flash and the ASP .Net run together on the client machine. One of the functions I'd like to offer is [WebMethod] public void StoreLogEntry(string tag, string description, bool screenshotRe...more >>

app_data folder question!
Posted by Artificer at 10/11/2006 8:46:15 AM
Why by simply having a .mdf file in the app_data folder it is made accessible? Does placing a .mdf in the app_data folder does some kind of attachment? Do this pseudo attachment works only with the express version of SQL Server? Do this feature works for access databases? ...more >>

How many typed datasets should I have?
Posted by Artificer at 10/11/2006 8:42:48 AM
I am creating an application that will have around 20 web forms. Should I create only one strongly typed dataset that includes all the DataTables required for all the forms or should I create one strongly typed dataset per web form that includes only the DataTables required by that specific form...more >>

IIS6 - Default content page
Posted by Andy at 10/11/2006 8:31:02 AM
Hi, We have an asp 1.1. app with a number of subdirectories, but still part of the same app. One of these directories is now to have a couple of plain html files in them, so I diligently look at the directory properties dialog in IIS manaer to look at the documents tab. I've removed index.a...more >>

Passing property values from popup to Main Webform?
Posted by VMI at 10/11/2006 7:59:02 AM
How can I pass variable or Property values from my popup webForm to the webform that opened this popup? For information that's in a control (i.e. Textbox), I'm using javascript and document.getElementById: var variable = document.getElementById('txtBox).value; But if the control is hidden...more >>

Requesting intranetpage from winapp security
Posted by Nenefta at 10/11/2006 7:58:05 AM
I have created an Intranet application that uses Windows authentication. Now I would like to show a page from that application in a windowsapplication using a webbrowser component. So I've setup the component to show the page, but it will not show, access denied. It seems to me the application ...more >>

Visible Property Set to False Inserts Null Value in Database
Posted by needin4mation NO[at]SPAM gmail.com at 10/11/2006 7:44:16 AM
Hi, I have a employee and address table. the address table has an addressid and and employeeid. I have two datagrids, an employee and address. The employee datagrid has a select. Clicking the select will product the detail address grid. If I hide the employeeid in the address table and ...more >>

dropdownlist autopostback with javascript confirm
Posted by robert NO[at]SPAM orisoft.co.uk at 10/11/2006 7:00:39 AM
I have a dropdownlist with the autopostback set to true. I want the user to be confirm whether they do indeed want to change the value, which on post back fires a server side event (selectedindexchanged). I have tried adding an onchange attribute "return confirm('sure u wanna change this?';") ...more >>

string parsing question
Posted by igotyourdotnet at 10/11/2006 7:00:02 AM
I have a question. I'm reading a CSV file that is uploading to my SQL db, I'm parsing out the file line by line. I'm getting the values and putting them into an arrayList seperate by commas. The problem I'm having is that one of the data values has commas in it so its blowing up on the other ...more >>

Unwanted window
Posted by mamin NO[at]SPAM o2.pl at 10/11/2006 6:38:22 AM
Hi, I have two files:1.aspx and 2.aspx. File 1.aspx contains code, that opens 2.aspx in modalDialog by: window.showModalDialog("2.aspx", "", ""); 2.aspx File has the following submit: <input type="submit" value="Save"> After click event on this submit, it calls postback event and openin...more >>

How to specify application default web page in web.config ?
Posted by thomas at 10/11/2006 6:21:13 AM
How to specify application default web page in web.config? I mean, default web page, not a login page. Is it possible? Tomasz ...more >>

What is Needed to Get an ASP.NET Page to Work?
Posted by Altemir at 10/11/2006 5:44:09 AM
SOME BACKGROUND: I am new to ASP.NET, but somehow managed to install a perfectly working ..aspx page on our production server that I compiled in Visual Studio. However, I recently needed to update it, so I first added a ".old" suffix to the MyPage.aspx, MyProject.dll, and global.asax files on ...more >>

Cannot run a ASP.Net website
Posted by vvenk at 10/11/2006 5:37:02 AM
Hello: When I was debugging an ASP application, I saw that it was using a Web.Config in c:\windows\Microsoft.Net\Framework\v2.0.50727\Config folder rather than my application's web.config file. So, like an idiot, I copied the web.config file from my project folder to the above folder, wi...more >>

Lost Dropdownlist....just &nbsp
Posted by OJ at 10/11/2006 5:19:55 AM
Hi, ASP.NET C# 2.0 I have a usercontrol which contains a Gridview. I create my own DataTable to bind to the GridView, which then fires the RowDataBound event of the the Gridview. Here I add a dropdownlist to the relevent row.Cell. I then expose the GridView as a public property of the userco...more >>

viewstate error
Posted by scottrm at 10/11/2006 4:35:02 AM
Hi Users seem to be getting the following intermitent error whe they post a form. Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate ca...more >>

Map code to assembly
Posted by יוני גולדברג at 10/11/2006 4:18:01 AM
I'm using Dot Net Nuke but this general question: I'm trying to debug the registration code, whenever i set breakpoint on the main function i get message: "breakpoint will not be hit, no symbols loaded". So i'm going to debug->windows->modules and i want to reffer the assembly to the correct ...more >>

repeater and databinding (postback)
Posted by tarscher NO[at]SPAM gmail.com at 10/11/2006 2:30:41 AM
Hi all, I have a repaeter rendering textboxes. I also attach a datascource (array) to the repeater with default valeus: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string[] list = {"string1", "string2", "string3", "string4", "string5"}; Repeater1....more >>

Problem accessing GridView
Posted by Jeff at 10/11/2006 2:24:12 AM
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a datasource to this GridView in runtime. But I cannot access thte GridView during runtime... I've ...more >>

strange compile error!
Posted by Jeff at 10/11/2006 1:22:27 AM
Hey asp.net 2.0 This line of code: MembershipUserCollection onlineUsers = Membership.GetAllUsers; In this script: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System....more >>


DevelopmentNow Blog