microsoft.public.dotnet.framework.aspnet Archive - July 2002
Post a message to this list
Messages
Page: 12345678910
Client side form (2 replies)
microsoft.public.dotnet.framework.aspnet
Can't I have a asp dropdownlist inside a client side form (without runat server attribute) ? This was working beta2. I have to submite the form to a different page so I'm using a client side form. The following code gives me an exception. form name "form1" action "xyz.aspx" method "post" asp:DropDownList id "shop" runat "server"/ /form Thanks, Biswajit
Datagrid Updating trouble (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I am having some trouble getting my Update to work in my datagrid, but my Delete works fine. I have a column in my datagrid called ID that holds the primary key that both Update and Delete pass to a stored procedure. In the HTML behind the grid, I have created a label id "edit ID" This works fine for my delete using the code: tmpLabel e.Item.FindControl("edit ID") to capture the current val...
Sam's teach yourself ASP.NET in 21 days Day 9 question (2 replies, VIP)
microsoft.public.dotnet.framework.aspnet
hello I have a problem with listing 9.8 in this book. when I compile it I get this error: The Microsoft Jet database engine cannot find the input table or query 'tblUsers'. Make sure it exists and that its name is spelled correctly. I can't find anything in the book to help me with this, has anyone else got the book and dealt with this listing at all please? thanks Gareth James
How can i position my User Control (4 replies)
microsoft.public.dotnet.framework.aspnet
Dear Sir, i made a user control for my self, but it can't be positioned on the correct place. even i add css in the user control with position:relative both in web page and user control, it still couldn't position well. who can help me. John Hu
Get an Item.ItemIndex of controls other than supporting CommandName inside composite controls (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello All Scenario : inside composite controls like DataGrid/DataList/Repeater we populate DropDownLists or CheckBoxes. Those controls do AutoPostBacks. They have a proper events assigned (for DropDownList SelectedIndexChanged) either on ItemCreated or Html level. Let's narrow it to DropDownLists SelectedIndexChanged fires properely as bubbled event. Inside that event we need to know to what row o...
Paging problem, always stay at the first page (4 replies)
microsoft.public.dotnet.framework.aspnet
I use the DataGrid and bind it to a dataview. Then the DataGrid show correctly, and there are page numbers below the grid. But when I click the 2nd page, the page posts, but it stays at the first page always. Thanks!
Client var accessible for server during Page_Load (4 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I have a variable (username) which i get from environment variables, on a VBScript Window OnLoad() sub i can pop up the value. I've tried to put it in a Hidden field, with no success. Here is the code in my VBScript : Sub Window OnLoad() Set WS CreateObject("WScript.Shell") Set Env WS.Environment("PROCESS") WS.Popup Env("USERNAME") Document.Form1.LoginUser.value Env("USERNAME") End Sub Logi...
HTML coding, Netscape, Asp:table inside a ASP:table (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi! One of our customers has hired an ArtDirector to make the design for their pages. He has delivered HTML code to us. My first intention was to just "draw the design" in Visual Studio...but then I heard that Netscape v4 was the target platform Bad luck. So now I'm trying to figure out how to make the best of it, my goals are: * Programmable HTML output * Readable code My first approach was like ...
***** CDO ***** (2 replies)
microsoft.public.dotnet.framework.aspnet
I am using the .NET system.web.mail.smtpmail class to send emails from an asp.net application. When I fill in one of my forms and click on submit, I am thrown the error shown below. The strange thing is that when I run the site from several different machines all with IIS and .NET, it works on some but not others. As far as I can tell, CDO is installed on all the machines. I have looked long and h...
Again problem with DataGrid... Sorting order... (3 replies)
microsoft.public.dotnet.framework.aspnet
Hallo! I have encounter a new problem with DataGrid control. When I'm using sorting on numeric column then I get the following order of the sorted elements: 1 11 12 2 23 4 5 But I always suppose that it should be: 1 2 4 5 11 12 23 Is that problem with my brain or what? ;)
Some more questions (3 replies)
microsoft.public.dotnet.framework.aspnet
I have two more questions: 1.. How can i convert a string, that contains a hexadecimal value in the form #ff0000, to a System.Drawing.Color object? b.. Is there a Class/Control (third party???) (in WebForms development) that gives the functionality of a color picker and/or a font picker (e.g. the end user can choose his preferred color from a color palette and/or font from a Font Palette)? Thanks ...
When are "Attributes" populated? (3 replies)
microsoft.public.dotnet.framework.aspnet
I've got a little problem. I'm subclassing a DataGrid control. I'm trying to add a custom attribute to my control using something like this: this.Attributes.Add("somename", "somevalue"); When I round trip back to the server, I need access to the Attribute's value in the OnInit overload because I use it to dynamically build the number of columns in the datagrid. All in all my code is working fine, ...
Creating DataGrid in Code - Problem With RenderControl? (2 replies)
microsoft.public.dotnet.framework.aspnet
I am working on a component, and want to dynamically create a DataGrid in code (without the asp:DataGrid in a page.) Anyway, I can get it to somewhat render, and it even shows the paging correctly (1 2 3 ... ) but the paging doesn't work. Actually, if you view the source, you would see: tr td colspan "8" a 1 /a   span 2 /span   a 3 /a   a 4 /a   a 5 /a   a 6 /a   a 7 ...
Readonly/Enabled for textbox in Netscape fails (5 replies)
microsoft.public.dotnet.framework.aspnet
I can't get Readonly or Enabled to work in Netscape 4.7 for a textbox. I created a very simple aspx page with 2 textbox's and then set the readonly t and enabled F properties. In Netscape 4.7 it didn't work. vs 7.0.9466 framework 1.0.3705 aspx page below HTML HEAD meta name "vs targetSchema" content "http://schemas.microsoft.com/intellisense/nav4 0" /HEAD body MS POSITIONING "FlowLayout" form id "...
how to use Selectedindex with dropdownlist and a table with one row? (4 replies)
microsoft.public.dotnet.framework.aspnet
I'm using this code... neither works with selecteditem or selectedindex.... it ALWAYS gives me index 0 or the string value of the table at index 0 private void actualiza grupos() { DataTable grupos server.leUtilizadores().Tables["Grupos"]; grupoDropDownList.DataSource grupos; grupoDropDownList.DataValueField "grupo"; grupoDropDownList.DataBind(); } private void removerButton Click(object sender, S...
Hot to get a Drawing.Image to an ImageButton (C#)? (4 replies)
microsoft.public.dotnet.framework.aspnet
I've got a System.Drawing.Image object that I want to display as a System.Web.UI.WebControls.ImageButton. The compiler will not let me cast or convert between the types. And I don't want to save it to a file first because this is an ASP.NET application. How do I convert between the two Image types? The imbedded image type will be a GIF. Thanks for your help.
converting \n to <p></p> (4 replies)
microsoft.public.dotnet.framework.aspnet
I have a form that passes content to an email page that sends HTML. I want to be able to replace line feeds with &quot; p /p &quot; tags. I tried the following, but it doesn't work: myString.Replace(&quot;\n&quot;, &quot; p /p &quot;); Any ideas why this wouldn't work?
Response.Redirect/Server.Transfer $ pdf files (6 replies)
microsoft.public.dotnet.framework.aspnet
Hi, As many discussion group member are aware, Response.Redirect will not display a .pdf file until the refresh button is clicked only then the pdf file is displayed. I then tried the Server.Transfer in order to hopefully automatically display the .pfd file after the Transfer, Server.Transfer(&quot;MyPDFPage.pdf&quot;,False), but it seems that you can't Transfer to a pdf file because of an &quot;Error executing ...
Control Width in CodeBehind (2 replies)
microsoft.public.dotnet.framework.aspnet
How do I specify that a contols width should be 100% in codebehind? Control.Width (only allows ints) Thanks
validate against regular expression on condition? (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi! I think the Regular Expression Validator is great, but I need to do something a little different... Let's say I have a textbox and depending on which radio button is selected, I have to validate the textbox's text against a different regular expression. Do you have any idea how I could do that? Thanks
htc files? (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi, Microsoft seems to put a lot of their javascript in .htc files. What are they? Thanks ... Ed
Struggling with postback theory (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet
Hello all, Consider this: I have a page whereby a user enters information that will be inserted as a row into a sql server table. I have Add and Clear buttons. The add button postsback, but as each page postsback to itself I was wondering what the correct approach to this type of web form should be. Ideally I would like to redirect to another page that confirms the insert or showsthe updated datas...
how to tell what dg row the user is on? (2 replies)
microsoft.public.dotnet.framework.aspnet
I have a dropdown in the dg w/ an onselectedchanged event specified in the aspx page to a method in my codebehind created called 'ddl hour changed'. And it fires. Great. The only problem is, I need to know the current row in the dg on which the user selected an item from the dropdown. I can't figure out how to do this... I can pass the dropdownlist in an arg to my 'ddl hour changed' function in co...
How do I turn an XMLDocument into a string? (4 replies)
microsoft.public.dotnet.framework.aspnet
I have loaded a text string into an XMLDocument, made some changes. Now I want to reverse the process and put the XML into a string. How do I easily do this? Kevin
Is there a combobox in asp.net? (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet
Hi! Is there a combobox in asp.net? Thanks
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com