microsoft.public.dotnet.framework.aspnet Archive - October 2002
Post a message to this list
Messages
Page: 12345
How to prevent Web Form from default generating button with type=submit? (5 replies)
microsoft.public.dotnet.framework.aspnet
Hi, In Web Form with multiple buttons (Web Control), it seemed that all of them always generate at client side as HTML button with type submit? How can change? Thanks, Tien,
'Replace' and 'Trim' not working in code behind page (6 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I am currently converting some in line vb code to code behind pages and when I try and use the replace() or Trim() commands I get the following error: BC30451: Name 'replace' is not declared. Same error with trim....What am I missing? Thanks in advance. Stu (Newbie) Outgoing mail is certified Virus Free. Checked by AVG anti virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Databa...
Displaying Data Sorted by Category (2 replies, VIP)
microsoft.public.dotnet.framework.aspnet
I need to display data from a dataset in the following manner. Category 1 Text Text Text . . . Category 2 Text Text Text . . . Category 3 Text Text Text . . . I am trying to use the Repeater control, but I am having a very difficult time getting it to display the data in the correct order by. I am at wit's end. Can anyone help? Any sort of examples would certainly help, as I am new to ASP.NET. Tha...
Row numbers in datalist (3 replies, VIP)
microsoft.public.dotnet.framework.aspnet
How do i get a row number in a databound datalist? Like this: 1. Text 2. Text 3. Text
Dynamically Loading User Controls (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello, Im wondering if it is at all possible to load User Controls dynamically. At the moment I just have all the possible modules that can be loaded in a master User Control. Then, on loading the user control the code behind will show and hide the modules that are not necessary. The problem with this is that I dont know if having all these other User Controls on the page[10 ] is having a performa...
Loading XML data to DataSet (2 replies, VIP)
microsoft.public.dotnet.framework.aspnet
Hello, is there any place where I can get more info about loading of generic XML files to DataSet? Especially regarding to data types. In XML files, i use as format of date/time the language independent form "YYYYMMDD hh:mm:ss". It's no problem to load it into VB.NET DateTime variable, using method ParseExact(MyString, "yyyyMMdd hh:mm:ss", Nothing). But when I'm loading it into DataSet, it renders...
DataEntry security issues on XP. (4 replies)
microsoft.public.dotnet.framework.aspnet
Hello! I have written a Web/Win form application in C# to dynamically add Virtual Directories in IIS using the DirectoryEntry object. The code appears to be fine, but as the code calls the RefreshCache method of the DirectoryEntry, I get an "Access Denied" error. System.Runtime.InteropServices.COMException (0x80070005): Access is denied at System.DirectoryServices.DirectoryEntry.Bind(Boolean throw...
Dynamic EventHandlers (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I am looping through and adding LinkButtons to a placeHolder. I need to assign an OnClick event to each control. Here's my code: LinkButton b new LinkButton(); this.phOrg.Controls.Add(b); b.ID "lnk" Org; b.Text OrgName; b.Click new System.EventHandler(this.OrgClick); the OrgClick() is: private void OrgClick(object sender, System.EventArgs e) { Response.Write("Click"); } Although the control...
special security/session scenario (3 replies)
microsoft.public.dotnet.framework.aspnet
Scenario: We have over 2000 users in our database.What is different from our user accounts to common user accounts is that, one or more users can share the same account. We have a MAXUSERS field in our database telling how many simultaneous users can be logged on at the same time. In a CURRENTUSER field we keep track of how many users are logged in with the account. If this exceeds maxuser, you ca...
Not possible? (2 replies)
microsoft.public.dotnet.framework.aspnet
I'm trying to create a number of DataColumns based upon the length of an array. Like this: Dim arrDataColunmHolder AS System.Array arrDataColunmHolder System.Array.CreateInstance(GetType(DataColumn), 4) For intCounter 0 To arrDataColunmHolder.GetUpperBound(0) Dim arrDataColunmHolder(intCounter) AS DataColumn New DataColumn(arrListDataColumns(intCounter), GetType(System.String)) Next Is this possib...
Getting selected item from a DropDownList control (2 replies)
microsoft.public.dotnet.framework.aspnet
I have a simple web form with a datagrid that lists some items from a database. On the same web form I added some controls to add a new item to the database. One of those controls is a DropDownList control that is populated from another table in the database. Now the problem is that after the "Add" button is clicked, when I check the selected item in the DropDownList control it is always 0! I trie...
ExecuteNonQuery on Access DB Error (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello All, I am very new to the ASP.NET and web development world. I have one simple and easy question, that has been some trouble for a few days now. I am creating a webservice with user input that would be stored in a Access DB. string myInsertCommand //Insert Command. OleDbConnection myConnection new OleDbConnection("Provider Microsoft.Jet.OLEDB.4.0; Data Source minnoch.mdb"); OleDbCommand myCo...
Error Message in VBNet Web application (5 replies)
microsoft.public.dotnet.framework.aspnet
I have created several VERY simple web applications. For some reason, when I build and run the applications, I consistently get the error message below. I have not edited anything in the code behind and am an extreme amateur so rest assured, I have done nothing but drag a few controls onto a page and set a few properties to play with. Any and all help resolving this is appreciated. brian ERROR MES...
Getting radiobuttons value after grouping them in a repeater (2 replies)
microsoft.public.dotnet.framework.aspnet
Needed to group radiobuttons in a repeater, I used the itemcreated event to add radiobuttons using LiteralControl. Now the radiobuttons are grouped, but how to reference them to determine which one is selected? private void rpt ItemCreated(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e) { if (e.Item.ItemType ListItemType.Item || e.Item.ItemType ListItemType.AlternatingItem || e.I...
Getting data from page into user control (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I'm facing the current problem: I have a page wich contains some homemade properties. A user control is placed onto the page. Now I want to retrieve the data via the readonly properties of the page. Anyone got some nice code example how to accomplish this? Grz, Kris.
URLEncode (3 replies)
microsoft.public.dotnet.framework.aspnet
asp:hyperlink NavigateUrl ' %# "EditDeliverables.aspx?ProgramID " DataBinder.Eval(Container.DataItem, "ProgramID") "&ProgramName " HttpServerUtility.UrlEncode((string)DataBinder.Eval(Container.DataItem, "Name"))% ' runat "server" Edit Deliverable /asp:hyperlink How do I get the UrlEncode to work? I'm importing %@ Import Namespace "System.Web" % This is inside of a datagrid item template. The error...
Can I Run a SQL Statement against a DataSet? (2 replies)
microsoft.public.dotnet.framework.aspnet
Here's my situation: I have a table of over 3 million records. I run a complex SQL statement against it which takes about 10 to 15 seconds to run. This generates a DataSet of say 100 records. Next I would like to fill some dropdown lists with data from those 100 records. But I don't want to wait 10 to 15 seconds per dropdown list while I rerun the SQL statement against 3 million records. I would l...
Traffic Loggin HttpModule can't reference Session.SessionID (3 replies)
microsoft.public.dotnet.framework.aspnet
I have an HttpModule that reads in Request.Browser and Request.ServerVariable values and inserts a record into a database table. My problem is that I would like to also access the SessionID from the ..Net Session object, but I do not know how. Here is the stack trace I get when I try to do it through the HttpApplication reference passed in through HttpModule.Init() HttpException (0x80004005): Sess...
HtmlInputFile setting the FileName (3 replies)
microsoft.public.dotnet.framework.aspnet
I have an aspx site which creates a word document with the help of a javascript. I know where this document is saved on the client and I want to uplaod this file to the server to send it by mail. I tried to hide a HtmlInputFile on my page and I would like to set the FileName but this property is readonly. Is there a way to set this property? Thanx Markus
Disabling DropDownList without changing colour / greying out (3 replies)
microsoft.public.dotnet.framework.aspnet
I have some web forms that sometimes work in readonly mode. I can turn off the TextBoxes without changing their colour by setting to ReadOnly (and I also remove the border around it by changing the CssClass to one I have defined appropriately). However with DropDownList controls, the only property I can see is the Enabled property, which greys (grays in U.S.) them all out. I dont seem to be able t...
Server.transfer (3 replies)
microsoft.public.dotnet.framework.aspnet
I have very simply code to do a post back, page 1 to page2 Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Server.Transfer("webform2.aspx") End Sub all was fine i dont know what has changed in my environment. Now if i press a button page1 simply reloads. EVEN THOUGH i can debug all the way to page2 but at the end of the page load event it...
Dynamically changing size (5 replies)
microsoft.public.dotnet.framework.aspnet
hi I know this looks to be simple.Can u any one help me to change the size of a Select box.I am filling the listbox dynamically, i want the list box width to be equal to the size of the longest item in it.Is there any way to show the long item in a tool tip. thanxs in advance abdul
Save image to Image control? (4 replies)
microsoft.public.dotnet.framework.aspnet
Hi. I am using a System.Drawing.Graphics instance to draw some graphics in a aspx page. I have an image control which i set its property ImageUrl to the image when finished creating it. I wonder if it is possible to show the image inside this image control, or any other control, without saving it. I know i can use the Response.OutputStream property to get the image binary data. How can i write thi...
HttpUtility.UrlEncode does not encode &s? (3 replies)
microsoft.public.dotnet.framework.aspnet
Why does HttpUtility.UrlEncode not encode &s? These clearly needed to be encoded... Keith
When using InProc cookieless Session, where is aspnet_wp.exe saving all IDs? In memory? (5 replies)
microsoft.public.dotnet.framework.aspnet
Hello, When using InProc cookieless Session, where is aspnet wp.exe saving all IDs? In memory? On Harddisk? Where can I look up? Thanks in advance, Andreas
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification