| Page within a page (6 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi all, I did get an answer for this off the HTML newsgroup but part of the solution was to change the page to a .shtml page and put in ! #include file "file.html" the only problem with this is that changing the page name to shtml obviously stops the dotnet code from being interpreted. Also changing the shtml to aspx doesn't work. Does anyone know how I can put a page in another page but keep the ... |
|
| http response writing: pdf, doc, ppt, xml, etc. (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Is it possible to write .pdf, .doc, .ppt file directly to the response object and if so how? .Net control, dll, regular asp or what? Here is my problem: I am using classic asp on this particular problem but can use .net. 1. I am hiding secure documents by placing them in a non read directory. 2.The user requests the file through a page with false links. 3.Those false links post to a security check... |
|
| EVAL security Exceptions (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| I've been messing around with some sample code that wraps the JScript Eval method in a class so I can call it from C#. When I first ran it everything was OK but all of a sudden I keep getting Security Exceptions.... An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for the permission of type System.Security.Permissions.Secur... |
|
| First time user help (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| Ok, I have a very simple piece of jscript on my page (least it looks that way) it swaps items of text in a loop. I can change the text and font etc, but what I want to do is have an email link in it. a) can it be done and b) how?? Thanks HALLAOW! |
|
| <a href...> To LinkButton style (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| I have recently changed my HTML links to LinkButtons and when I used to have this in the Head/Style: a:link {TEXT DECORATION:NONE; COLOR:#FFFFFF;} a:visited {TEXT DECORATION:NONE; COLOR:#FFFFFF;} a:hover {TEXT DECORATION:NONE; COLOR:#336699;} Worked fine but how do I do this now it is a LinkButton not a a href... ? If this is done by CSS can you explain it slightly I'm not really clued up on CSS T... |
|
| Button/LinkButton (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi all, I have a form with 2 text boxes and a asp:Button underneath them. When the focus goes to the bottom box I see the button go 'bold' and when I press enter it does as I expect. I wanted to change the button to a linkbutton but now when I press enter it does nothing. How can I get it to do what I want when I press enter? |
|
| DataGrid AllowPaging (4 replies) |
| microsoft.public.dotnet.languages.jscript |
| Is it possible to set the AllowPaging and AllowSorting Dynamically such as in Page Load? |
|
| how to set label's value of asp.net control at client? (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| put a asp.net control label on the page, I wanna to set its text attribute at alient using jscript, code: document.Label1.value "something" but it doesn't work |
|
| Template Controls (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi, Does anybody know how to access a control which is in a template column in a Datagrid? I have tried: OnItem DataBind() { var ctrlLB : LinkButton; ctrlLB LinkButton(E.Item.FindControl("btnEdit")); } However this does not find it: I have also tried: DataGrid1.Items[0].Cells[0].FindControl("btnEdit"); In which I get an error Index out of range. Has anybody come across this? Thanks Gav |
|
| Problems getting events from ASP-based web (18 replies) |
| microsoft.public.dotnet.languages.jscript |
| I have sample code (below), which works fine with IE6 against an Apache server on Linux. What the code does: I browse to a URL in browser instance "A". This page immediately launches browser instance "B" with a "click me" on the first page of the instance. When you click, you go to page two of the instance. At this point, I can click a button in instance A, which fetches the collection of objects ... |
|
| How to show 'b' if user press 'a' in TextBox? (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| How to show 'b' if user press 'a' in TextBox? In VB6 I can use the following code.... Private Sub Text1 KeyPress(KeyAscii As Integer) If Chr(KeyAscii) "a" Then KeyAscii Asc("b") End If End Sub How can I do the same thing in JavaScript? Thanks a lot. Clare Hsiao |
|
| EVAL throwing Security Exceptions (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| I've been messing around with some sample code that wraps the JScript Eval method in a class so I can call it from C#. When I first ran it everything was OK but all of a sudden I keep getting Security Exceptions.... An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for the permission of type System.Security.Permissions.Secur... |
|
| Error: document.all.item (4 replies) |
| microsoft.public.dotnet.languages.jscript |
| ASP.NET Snippet of page: %@ Page Language "vb" AutoEventWireup "false" Codebehind "Item MailBook.aspx.vb" Inherits "CQDB WIP.MailBookItem" smartNavigation "False" % %@ Register TagPrefix "iewc" Namespace "Microsoft.Web.UI.WebControls" Assembly "Microsoft.Web.UI.WebControls, Version 1.0.2.116, Culture neutral, PublicKeyToken 31bf3856ad364e35" % .... IMG language "javascript" id "cmdEnquiryDate" sty... |
|
| Using C# objects in JScript (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| I'm instantiating a c# class in JScript, however the instantiation does not succeed every time. Does anyone know of any issues with this? The c# class is used for database access, and the constructor does little more than declare a SqlConnection and a SqlDataReader. .... var rs : RecordSet new RecordSet(); // RecordSet is the c# class rs.Exec( sConn, sSQL ); // At this time, sometimes rs is null. ... |
|
| How to call CoCreateInstanceEx? (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| I want to start an application on a remote domain. Can I do that with .NET? Assuming I cannot, how do I call CoCreateInstance with COAUTHINFO and COSERVERINFO structures? This will give me a pointer. How do I then call the member functions in the remote object with the pointer? I'd have to cast it I suppose can I do that in C#? What would I do with that pointer in VB, J# and Jscript? What is the s... |
|
| determining key press (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| (asp.net) Javascript question How do you determine the key that was pressed with the keydown handler? I need to capture lower and upper case as well as non alpha's such a semi colons, brackets, comma's, etc. alert(String.fromCharCode(window.event.keyCode)) The above is not working for all cases |
|
| Math.Rount() is not what I want (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi, I just need the integral part, not round. which function should I use then? TIA |
|
| Wanted: Help translating C# attributes to JScript.NET (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Where is the documentation for using attributes? I want to translate the code below to JScript.NET. How would I translate this code? [System.Xml.Serialization.XmlRootAttribute()] public class Products { private int prodId; private string prodName; private int suppId; private int catId; private string qtyPerUnit; private Decimal unitPrice; private short unitsInStock; private short unitsOnOrder; pri... |
|
| Array (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| hello i have a Array var dagArray new Array("zondag","maandag", "dinsdag","woensdag","donderdag","vrijdag","zaterdag"); Is it possible to count the variable words in the Array? Thanks Ferry Lagarde |
|
| Email (6 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi people, I have a very large DataGrid so when viewing I allow paging for performance reasons. I have coded it so that if the user clicks on the Print this page Link it reloads the whole Grid without paging so that it prints it all out. Now I would like to add a page so that the user could email the list. This list is on a intranet so I can not send them a link. I was wondering what you lot think... |
|
| parent.contents.location.reload()- Access Denied! (4 replies) |
| microsoft.public.dotnet.languages.jscript |
| Got a situation involving 3 frames in a frameset. The "contents" frame is a treeview.NET aspx, whilst the main frame attends to inputs to a record (insert/update). If I add a new record to my database, I want the treeview frame("contents") to reload() to show the change. Here is my html code in the main frame aspx body onload "Page Load()" and my c# in the Page Load routine private void Page Load(... |
|
| how to create ado disconected recordset using jscript? (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| Does anyone know how to create a disconected recordset using jscript? I can do this in vbscript without any problems Dim conn, rs Set conn Server.CreateObject("ADODB.Connection") conn.CursorLocation adUseClient conn.ConnectionString "[connection string]" conn.Open Set rs Server.CreateObject("ADODB.Recordset") Set rs.ActiveConnection conn rs.Open "select * from sysfiles" rs.MarshalOptions adMarshal... |
|
| Cached Images via new Image() and appendChild() (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Following problem: I developed a tree view with clientside JavaScript. All works fine, except the caching of the images. If I want to display THE SAME IMAGE about 50 times dynamicly loaded via DOM js, IE doesn't catch them. Original Source: img document.createElement("img"); img.border 0; img.hspace 1; img.width PMICON SIZE; img.height PMICON SIZE; img.id "imgPM " this.id; a document.createElement... |
|
| DataSet.Tables(0).Columns(i).MaxLength didn't works... (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi! I'm working with Datasets to handle osme SQL Server 200 data, I can obtain different properties from the Columns object; I can obtain the column's name: DataSet.Tables(0).Columns(i).ColumnName I can obtain the column's type: DataSet.Tables(0).Columns(i).DataType But I can't obtain the size of the field or the presicion... I'm trying to use DataSet.Tables(0).Columns(i).MaxLength but it didn't w... |
|
| window.open (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hello, I'm using this code to open one window, but when it opens, the opener window has the focus, and the opened window is hidden. I would like that the opened window should be displayed on the front (i need to do this in c#). Does anyone knows a command that does something like 'always on top'? private void Button2 Click(object sender, System.EventArgs e) { if ( dl paises.SelectedItem ! null && ... |
|