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 2005 > threads for monday june 6

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

form in a form that runat server?
Posted by wrytat at 6/6/2005 11:05:02 PM
Can't I put a normal form within another form that runs at server? I tried putting 2 forms in a form that runs at server, and problems occur~...more >>


Upload Files : Set Filter
Posted by vishpala kadam via .NET 247 at 6/6/2005 10:54:09 PM
Hi, I am using <input type="file"> to upload files in my asp.net application. I want to set the filter so that user can view only .xls files once he/she clicks the Browse button. Is it possible? How? -------------------------------- From: vishpala kadam vishpala_kadam@yahoo.com -----------...more >>

deploying asp.net applications
Posted by Kilo Bravo at 6/6/2005 10:47:13 PM
When you finally move your web application from the developement server to the production server what files should you actually upload? Are the source files necessary? Or just the dll. Why did microsoft not build a simple way into VS.net to deploy this stuff on the web??? I can't even find cle...more >>

another several questions
Posted by Eitan M at 6/6/2005 10:43:41 PM
Hello, 2 questions about refresh. 1) I want to do elegant refresh of the html page. When refreshing a page, the page is blink. Is there anyway to refresh the page, without the blink (something like in other languages : 1. freeze any changes 2. do the changes 3. unfreeze the changes ) ...more >>

Error accessing SQL Server:
Posted by news.microsoft.com at 6/6/2005 10:31:56 PM
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. I guess I get this because, my pages are hosted on WinXP IIS and the sql server is on Win2k3. So my aspnet a/c doesn't match with the Win2k3's aspnet a/c. But what is the solution for th...more >>

How can I refresh the page.
Posted by Eitan M at 6/6/2005 10:18:20 PM
Hello, By how command can I refresh the page ? Thanks :) ...more >>

Where is the built-in ASP.NET account?
Posted by cwbp17 at 6/6/2005 10:06:01 PM
I've reinstalled my Windows 2003 server and VS2003 without much luck on finding this ASP.NET account. Using IIS 6.0. My c# application requires access to read a file (C:\\Test.jpg) from the file system. Got the following error: *********** General access denied error Description: A...more >>

deploying asp.net
Posted by Kilo Bravo at 6/6/2005 9:46:11 PM
I am totally lost, how do I get my webapplication from VS to the production server and keep it working? The database connection is pointing to localhost right now, but when I go to the live server I have no idea how to change it to point to the live database. KB ...more >>



pageLoad event on a frameset
Posted by Eitan M at 6/6/2005 9:29:19 PM
Hello, Is there any way to do pageLoad event (which can generaly don in simple HTML), also in frameset. (Or other way doing events when first loading the page, All in frameset). Thanks :) ...more >>

QueryString problem
Posted by wrytat at 6/6/2005 8:44:02 PM
My application redirect to a another page after the user click a button. The url looks like this: http://localhost/WebApp/prtDelReq.aspx?prtindex=0 So in my prtDelReq page load codes, I try to get the prtindex by doing: Dim prtindex As String = Request.QueryString("prtindex") The problem is...more >>

Accessing Active Directory
Posted by Diego F. at 6/6/2005 7:56:42 PM
I'm trying to access Active Directory from my ASP.NET application to get address books. Firstly I want to get the address from the connected user. I found some code, but I get an error: rootEntry = New DirectoryEntry("LDAP://RootDSE") contextPath = rootEntry.Properties("defaultNamingContex...more >>

Impersonation in remote file server
Posted by Philip Lee at 6/6/2005 6:54:02 PM
Dear all, How can I access files in remote file server through my ASP.NET application only, but deny all other users? I have added <identity impersonate="true" userName="test" password="123abc" /> in web.config, but I cannot browse the folder by browse button ...more >>

Trace.axd File Not Found
Posted by Joe Rattz at 6/6/2005 6:18:08 PM
I can't seem to get to trace.axd. I have turned tracing on in web.config. Here is how I currently have i configured: <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="false" /> When I go to the traxe.axd file in my application directory, I get...more >>

Remote debug setup
Posted by dneupane at 6/6/2005 5:00:40 PM
Hi I would like to debug ASP.NET page remotely. Here is the scenario Remote Server: win3k running IIS 6.0 (.NET Framework preinstalled with OS) Client: XP Pro SP1 with Admin right (VS.NET 2003 installed) Do I need to configure any of the above machines to be able to debug remotely A...more >>

Databinding syntax with xmlnodelist
Posted by Roshawn Dawson at 6/6/2005 4:57:00 PM
Hi, I have the following line of code that continues to give me the "Object not set to an instance of an object" error: <%# CType(Container.DataItem, System.Xml.XmlNode))("ElementName/ElementName").InnerText %> Could someone tell me why this isn't working? It may help to tell you tha...more >>

Easy - Datagrid displaying a comma
Posted by Sandy at 6/6/2005 4:33:02 PM
Hello - I didn't exactly know what to put in the Subject line, but here's my problem. I have the following in my html. I would like to put a comma in after the city. I tried just putting it in between the %> and </td>, but the comma displays with an extra space before it., e.g. "someCity...more >>

Validator question on positioning
Posted by tshad at 6/6/2005 4:20:04 PM
I have about 8 validators on my page and I want to show the error message next to or below the field that has the error, but I also want to put 1 message on the top of the page and one on the bottom of the page that just says something like: "Errors in some of the fields" I don't want to ...more >>

Any good tools for generating css files for non-i.e. explorer browsers?
Posted by moondaddy at 6/6/2005 3:15:18 PM
I have several web apps that need to be cross browser compatible, however, I don't have the time to learn how to write html and css files for Netscape and all the other main stream browsers out there. Can anyone recommend some good tools that I could use to model out a webpage for 1 or more n...more >>

search page
Posted by Rob T at 6/6/2005 2:33:53 PM
I would like to set up a search page for our site. It's several .aspx pages that links to a bunch of .htm pages. Also, we have several .pdf that I would like to ssearch on, but not as important. Is this the indexing server that would do this.... of so is there documentation on how to set...more >>

Are you using vs.net 2003 & 2005 beta on same machine?
Posted by VB Programmer at 6/6/2005 2:13:44 PM
Just wondering... Have you had any issues using both vs.net 2003 and 2005 beta on your machine? (including the 2 frameworks) Or, do they work pretty autonomously? Any suggestions? Thanks. ...more >>

Groupbox equivalent in ASP.NET
Posted by Nad at 6/6/2005 2:06:01 PM
Hello, Could someone please tell me the equivalent of Windows Forms' Groupbox control in ASP.NET? Thanks. ...more >>

Question on Repeater DataItem
Posted by jw56578 NO[at]SPAM gmail.com at 6/6/2005 1:47:08 PM
What is the explanation for the following. if i do: reapeter1.datasource = somedatasource repeater1.databind() foreach(RepeaterItem ri in repeater1.Items) { object o = ri.DataItem; } but DataItem is always null, even though it binds and displays properly ...more >>

Using PartialCaching with dynamically added Webcontrols
Posted by DC at 6/6/2005 1:42:28 PM
Hi, we are dynamically adding webcontrols in a page like so: Type t = Type.GetType("controls.namespace.control, controls.namespace", false, true); Control c = (Control)Activator.CreateInstance(t, true); this.Controls.Add(c); Now we would like to cache this webcontrol. Using the same a...more >>

Cannot Debug the DLL??
Posted by MrDotNet at 6/6/2005 1:18:02 PM
Hi I need help to debug the code in Dll I have myCom.dll and myCom.pdb files but I canot debug myCom.dll. Thanks -- -MrDotNet MCAD, MCSD Sr. Software Engineer / Lead Architect ...more >>

Having trouble getting at the value of a Session variable
Posted by tperri at 6/6/2005 12:51:02 PM
Hi everyone, I have an .aspx file that is used by an external program to perform a function. There is no code behind, all code and HTML is contained in one file. the structure is like this: <% string strBlah = Request.Querystring("jdkfsd"); string userid = Convert.ToString(Ht...more >>

Panel loading question...
Posted by VB Programmer at 6/6/2005 12:43:22 PM
I have 2 flash menus. I put each of them into a panel (1 in each panel (2 panels total)). One flash menu is 200kb, one is only 50kb. (ie Menu for high speed or slow speed connections.) In my code I HIDE (visible=false) whatever panel I do not want to show. QUESTION: Will the Flash sw...more >>

different encoding handling between old ASP and ASP.Net
Posted by Mark at 6/6/2005 12:41:07 PM
Hi... Just noticed something odd... In old ASP if you had query parameters that were invalid for their encoding (broken utf-8, say), ASP would give you back chars representing the 8-bit byte value of the broken encoding, so you still got something for every input byte. This appears to h...more >>

problem with dropdownlist inside of datagrid
Posted by tfsmag NO[at]SPAM gmail.com at 6/6/2005 11:25:10 AM
Hello, I'm still relatively new to asp.net and i'm having troubles with a dropdownlist in a datagrid. Here is the code for the dropdownlist --------------------------------- <asp:DropDownList Runat="server" OnSelectedIndexChanged="ddlSelectionChanged" SelectedValue='<%# DataBinder.Eval(Con...more >>

Brain dumps, cheat sheets for exams like mcse ccna.
Posted by jeff101 at 6/6/2005 11:24:15 AM
Exam Prep site [url]www.examcheets.com[/url] is providing 30% to 50 exam questions, brain dumps, cheat sheets as a free sample and i helpful for the people who can’t spend money on the exam prep for ccn mcse and other certifications - jeff10 ------------------------------------------------...more >>

rich client ASP.NET app?
Posted by Bob at 6/6/2005 11:13:25 AM
We have a pretty complicated Excel based application that I'm looking to make the functionalities online. It has very rich UI and displays numerous input controls (think a tax form like screen). It's so customized that a user wouldn't know it's Excel. It does some simple calculations when user...more >>

saving file from asp.net
Posted by helpful sql at 6/6/2005 11:10:23 AM
Hi all, I dynamically generate Word Documents from my web application using XmlDocument object and need to save them on a mapped network drive. I use the Save method of XmlDocument object to save documents. Ican save them successfully on local drive on web server. But when I try to save th...more >>

DataList, ArrayList DataBinder.Eval
Posted by morisse caglis via .NET 247 at 6/6/2005 11:06:41 AM
Hi, I would like to list out all files in a directory. To do that, I created a CFileInfo class with string members (strName, strDate, strLength...) and I fill an ArrayList with those object. It works good, I can get an ArrayList with all CFileInfo objects that contain strName, strDate, strLength....more >>

What print options from ascx control with datalist
Posted by yer darn tootin at 6/6/2005 11:06:01 AM
Ahoy, I have an aspx web page that loads an ascx control that's populated with various items ( in a datalist ). Select an item and the page reloads and the datalist now shows the details. >From here I want to put a print option in, a button that will either immediately print the contents o...more >>

Object reference not set to an instance of an object
Posted by Max Gay via .NET 247 at 6/6/2005 10:56:26 AM
I am having a problem with a page that I am trying to develop=2E I= am new at asp=2Enet=2E The page I have created makes a datagrid that has two links a= edit and a cancel link=2E When you click either of the links it= throws the following error "Object reference noet set to an= instance...more >>

Display hyperlink in datagrid
Posted by Sandy at 6/6/2005 10:29:03 AM
Hello - I have an application that pulls website addresses (amongst other things) from a SQL Server database via a search page. How do I display the website as a hyperlink that can be clicked on by the user to take them to the site? I have the following in my html code: <asp:hyperlink ...more >>

ItemDataBound event woes...
Posted by Roy at 6/6/2005 10:24:19 AM
Hey all, This is a fairly broad question, but why is it that my datagrid hits the ItemDataBound event 3 times? Basically, I placed a response.write in all sub and functions in my codebehind and discovered that my page_load,prerender,and binddata subs all get called once, but my itemdatabound ...more >>

pass table back to webpage
Posted by klynn at 6/6/2005 10:16:03 AM
I'm wondering what the best way to do the following: I have a page with a table. I built a custom class that creates a System.Web.UI.WebControls table object and return it to the webpage as a property. But its not reading the table correctly. It doesnt see the tablerows and tablecell objects....more >>

Putting value in asp:TextBox
Posted by Patrick at 6/6/2005 9:53:06 AM
Try to put in a TextBox next month's date in format (MMM yyyy). The following does NOT work, why is that? <!--When rendered, the texbox is blank, although the text in the round bracket after the textbox is rendered correctly as (July, 2005)--> <asp:TextBox id="MonthTextBox" runat="server">...more >>

Quotes on Web Service's SOAP Exceptions
Posted by Leinal NO[at]SPAM gmail.com at 6/6/2005 9:37:34 AM
We are using c# win apps with web services, we have all quotes on our error messages getting to the client application not in the correct format, like the next example: Example: [WebMethod] public int hello_world () { try { throw new System.Exception ("sesi=F3n"); }catch Syst...more >>

2nd call from child window to parent fails
Posted by Bill Borg at 6/6/2005 9:29:18 AM
Hello all, Simple chat app, where the site owner has a master window with all requests for chat, status of each room, etc., and child windows for each separate chat in which the owner is engaged. When the owner closes one of his child windows, I want to update the master window. I unders...more >>

Rendering the page
Posted by simon at 6/6/2005 9:28:40 AM
When user clicks excel button on the page, I would like to do: 1. read the content of the page 2. throw out all redundant content (I would like to show only the content of dataRepeater) 3.set the Response.ContentType = "application/vnd.ms-excel" 4.render the page How can I do that? Any...more >>

validation control
Posted by Seelan at 6/6/2005 9:25:56 AM
Hello folks, I have made a dynamic control from a database table. Now I want to add validation to it from the same database table. Can some one please assist me with this. Any useful tutorial links would help too... Thanks...more >>

Back
Posted by vinay at 6/6/2005 9:21:04 AM
I am using a Server Side Button control to go BACK to the Previous Page.. I tried adding the code, but dosent work btnBack.Attributes.Add("onclick", "history.go(-1)") OR btnBack.Attributes.Add("onclick", "history.back()") What am i doing wrong in both cases?? Thanks -- http://...more >>

DataColumns
Posted by Paperback Writer at 6/6/2005 8:46:49 AM
Hi Folks, I would like to know how can i specify columns in my DataGrid manually ? I have a proc that is binding my DataGrid with 15 columns and i want just some of these columns, how can i ? Thanks in advance -- Please, check my theSpoke: http://www.thespoke.net/MyBlog/dgroh/MyBlog.asp...more >>

asp 2.0 wizard navigation with javascript
Posted by Ken Nipper at 6/6/2005 8:44:22 AM
Anyone know how to do this? I am trying to limit the amount of traffic to/from the server....more >>

open pdf in another window
Posted by JIM.H. at 6/6/2005 8:21:02 AM
Hello, Response.Clear(); Response.ContentType = "Application/pdf"; Response.WriteFile(Server.MapPath(myFileName)); Response.End(); I am using this to open a pdf file. How can I make sure that this pdf file is open in another window? Thanks, ...more >>

Are there dedicated newsgroups for asp.net 2.0
Posted by andy at 6/6/2005 8:00:26 AM
I can't seem to find them. -- Andy ...more >>

Shared Components
Posted by DavidS at 6/6/2005 7:59:21 AM
I've created web components (.DLLs) for web application. When I create the main interface for web application, ex: <web app name.dll>, I install this in folder on web server, i.e., c:\Inetpub\wwwroot\<web app name>\bin\. I'd like the componets to be reuseable by other web apps but saved only...more >>

Problem With Varchar2 Parameter in ASP.NET
Posted by Robert E. Flaherty at 6/6/2005 7:19:11 AM
I am using System.Data.OracleClient (Oracle Provider for OLE DB 9.2.0.4.0) in an ASP.NET 1.1 app. I am evoking a stored procedure with a number of input parameters and two output parameters, both declared ParametrerDirection.InputOutput. The first of these two output parameters is an integ...more >>

asp 2.0 menu and javascript
Posted by Ken Nipper at 6/6/2005 7:10:53 AM
Does anyone know how to access the menu items from javascript. I can use the onclick to perform an action but I would like to be enable/disable items based on page status. Thanks Ken...more >>

How compile on fly cs file when they are stored in database
Posted by Maurizio Poletto at 6/6/2005 6:07:08 AM
I should appeal to your experience to have a suggest as to solve my problem. I have developed an application using .Net (1.1) where a handler (derived by IHttpHandler) intercepts every web request beucase the files, formed the page, are stored in a database. No problem happens if the page ...more >>

Q: open a pdf file
Posted by JIM.H. at 6/6/2005 5:43:04 AM
Hello, How can I check if a PDF file available under ApplicationPath\Doc\ folder in the server and if yes, open it in the internet explorer. Thanks, Jim. ...more >>

populate ddl from two tables
Posted by JIM.H. at 6/6/2005 5:35:12 AM
Hello, I have two Tables: Table1: GroupID1, GroupName1 and Table2:GroupID2, GroupName2. I have only one dropdown list (DropDownList1) in my application and through a stored procedure I want to populate my DropDownList1 from GroupName1 and GroupName2. How should I write my query? Thanks, ...more >>

Cannot connect to Access 2000 DB using impersonated user
Posted by stueyh at 6/6/2005 4:25:11 AM
When attempting to connect to an Access 2000 DB using ADO.Net from within ASP.Net running under an impersonated local user account receiving the following error. ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Disk or network error. ERROR [IM006] [Microsoft][ODBC Driver Manager] Dri...more >>

dynamic events for dropdownlist not working in datagrid
Posted by rt at 6/6/2005 2:43:04 AM
hi, iam a having a datagrid, pls check the code ---- Public WithEvents bgt As System.Web.UI.WebControls.DropDownList --- If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then ' pls don't add foooter SqlDataAdapter2.SelectCommand.Comm...more >>

Checkbox in a datagrid
Posted by wrytat at 6/6/2005 2:43:04 AM
I have a datagrid that has a column of checkbox in every row. And also 2 columns of 2 forms, each form with a textarea and a submit button. I have a button below the datagrid. And I place a form that run at server before the datagrid and after the button. When I click the button, i want to...more >>

Security.Exception
Posted by Diego F. at 6/6/2005 12:00:00 AM
I think I'll never come across that error. It happens when running code from a DLL that tries to write to disk. I added permissions in the project folder, the wwwroot and in IIS to NETWORK_SERVICE and Everyone, with Full Control to see if it's a permissions problem. The project is hosted in...more >>

Is there a C# equivalent of the VB.NET asc function?
Posted by Alan Silver at 6/6/2005 12:00:00 AM
Hello, I'm converting some old VB6 code to use with ASP.NET and have come unstuck with the Asc() function. This was used in the old VB6 code to convert a character to its ASCII numeric equivalent. Is there such a function available in C#? I can see that VB.NET has one, but I couldn't see...more >>

Catch duplicate primary key exeption
Posted by ad at 6/6/2005 12:00:00 AM
The code below can only catch common excption. I want to catch duplicate primary key exeption and do something more. How can I catch duplicate primary key exeption try { Insert a record to table } catch (????) { Do some thing more ...more >>

[OT] NNTP/newsgroup server
Posted by Lloyd Dupont at 6/6/2005 12:00:00 AM
Does anybody of you know about company hosting newsgroup server? I google like a madman but I'm rather unsuccesfull so far .. :( ...more >>

ASP.NET & Access database
Posted by MW de Jager at 6/6/2005 12:00:00 AM
I'm having endless problems with gaining access to an Access Database that sits on a different server. My ASP.NET app cannot gain control. The errror message I get is: The Microsoft Jet database engine cannot open the file '\\Server1\DataFolder\Countries5.mdb'. It is already opened exclus...more >>

Access QueryString value in a UserControl
Posted by Nick at 6/6/2005 12:00:00 AM
I've created a user control that extracts data from a database. The VB code is all contained in a code-behind file. I'm trying to extract a value from the request.querystring but keep getting the following error: Description: An error occurred during the compilation of a resource required ...more >>

retrive control from ViewState
Posted by epigram at 6/6/2005 12:00:00 AM
I've tried asking this question several times and have received many good answers, but ones that don't quite answer my question. This leads me to believe that I am trying to do something very awkward or I don't know how to pose the question correctly. Let me try again. I appreciate any inpu...more >>

create zip
Posted by Alexander Widera at 6/6/2005 12:00:00 AM
hello, is there a free .net-control that'll do zipping (archiving)? I only want to create a zip-file of some files. Or has somebody an idea? Thank you Alex ...more >>

INSERT INTO...(password) syntax error
Posted by jinhy82 at 6/6/2005 12:00:00 AM
Hi! I am currently creating a Registration form which contained: UserID Password, FirstName and LastName. These details would be inserted into Ms Access when I click submi button. But I encounter with the problem to insert 'Password'. It work fine if I did not insert 'Password' but if I did,...more >>

Cannot generate SSPI context
Posted by Diego F. at 6/6/2005 12:00:00 AM
I'm getting this error after some time. When I start my computer my SQL connection works fine, but after some time I get that errors. Other computers from the intranet don't have that problem. We have the SQL Server on a Windows 2003 server and we log with windows authentication. -- Reg...more >>

Data Table
Posted by simon at 6/6/2005 12:00:00 AM
If you have <asp:repeater> filled with data, how you get dataTable from it ? lp,Simon ...more >>

How can i write java script in .Net Window Application ??
Posted by Alex Smith at 6/6/2005 12:00:00 AM
Hi Friends, I want to know, how we can write java script in .net window application ?? In Web application we can write java script with use OnClientClick. and we can also defila <language=javascript>, But in Window Application? Alex. ...more >>

End user draw an image and post back to webserver?
Posted by M O J O at 6/6/2005 12:00:00 AM
Hi, I'm creating a webapplication where the end user must fill in a form, draw an image and post it back to the webserver. My problem is, that I can't figure out, if it's possible to have the end user draw an image and post it back. I don't mean the end user must upload it drawing, but h...more >>

I want to open a pdf file in richTextBox using C#.Net
Posted by Alex Smith at 6/6/2005 12:00:00 AM
Hi friends, I want to open a .pdf file in in richTextBox using C#.Net,(Window Application). I have use this type of code,but I got "Catastrophic failure". I am trying this type of code. PdfLib.PdfClass newpdf = new PdfLib.PdfClass(); void Browse_Click(object sender, EventArgs e) { ...more >>

html code of repeater
Posted by simon at 6/6/2005 12:00:00 AM
I have <asp:Repeater runat="server"> control in my page. How can I get(read) HTML code of <asp:repeater> which is render to the page? Thank you, S ...more >>

SmtpMail.Send causes exception: Error loading type library/dll
Posted by Diego F. at 6/6/2005 12:00:00 AM
I'm having this error after reinstalling VS. When using SmtpMail.Send I get an error. I was searching about this and I see that there's an error with my CDO.dll library: it's not registred. How can I register the library? -- Regards, Diego F. ...more >>

Open new window
Posted by Alessandro at 6/6/2005 12:00:00 AM
Hi ! There is a way to use a Linkbutton as an hyperlink? I want execute some code and then open a new window: if i use a linkbutton no new window will be opened, if i use an hyperlink i open new window but i don't execute code before opening it ! ...more >>

How to thow a customise exception
Posted by ad at 6/6/2005 12:00:00 AM
I throw a exception in codes: But the err.Message is all the some whether the error is thrown or not How can I throw an error with a particular try { if (Checked()) { throw (new Exception()); } do something..... } catch (Exception e...more >>


DevelopmentNow Blog