microsoft.public.dotnet.framework.aspnet Archive - August 2002
Post a message to this list
Messages
Page: 1234567
How can I use "response.redirect" in a Class ? (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, how can I use "response" or "session" or "server.mappath" in a Class like this Imports System.Data Imports System.Data.Oledb Imports System.IO Namespace MyClass Public Class MyFunc Sub mySub() response.redirect ("xxx.aspx") End Sub End Class End Namespace now I want to make a .dll like this: vbc /t:library /out:..\bin\MyClass.dll *.vb /r:System.dll /r:System.Web.dll /r:System.Data.dll /r:Sy...
POST via HttpWebRequest not working. HELP! (3 replies)
microsoft.public.dotnet.framework.aspnet
Here's how I'm trying to POST a request via HttpWebRequest: If Request.Method "POST" Then Form zGetPostForm(ASPPack, Request) ' Don't worry about this ' returns a byte array ' of Form data (X Y&A B) If Not Form Is Nothing Then If Form.Length 0 Then Request.ContentLength Form.Length zPostForm(Form, Request) ' See method below End If End If End If Response CType(Request.GetResponse, HttpWebResponse)...
How do I Set Focus? (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet
Newbie question: What would be the easiest way to set focus to the first textbox on my web page when it's loaded? I tried setting the tab order but I can't get it to work...Or if someone can provide me a script (java) I'd really appriciate it! TIA.
StateServer (2 replies)
microsoft.public.dotnet.framework.aspnet
Why doesn't state server support the On Session End event? I need to save my sessionstate dataset when the session ends, not after every page request (which is so inefficient). Also why does SQLStateServer store all the state information in the encrypted 64 bit mode? Isn't there a way to read that data and move it to a standard OLTP SQLServer database ... un encrypted? Thanks for your time.
Show datagrid vertical (columns going down instead of across) (3 replies)
microsoft.public.dotnet.framework.aspnet
Is it possible to turn the datagrid vertically so that the columns headers go down the left instead of across the top? Thanks a bunch! Bill
Unable to start debugging on the web server - solved, but WHY? (3 replies)
microsoft.public.dotnet.framework.aspnet
I have searched both the MS KB and these newsgroups for this problem and ultimately "solved" it, but I don't really understand what was fixed. I found the KB articles on this topic tried the "Things to Check", etc but am clueless as to what I am missing. I have developed an ASP.NET application and when I press F5 I get the following: "Error while trying to run project: Unable to start debugging on...
Only getting first letter when reading data of SQL Server (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello, This is a weird problem. Am attempting to extract information of a database and display it on a ASPX web page. The information extracts ok but it seems that not the whole word is displayed. For example, when user logs in, the main page should say, "Greetings Joe Bloggs", instead it says "Greetings J B". When in the database, the column for first name is in full "Joe" and column for second n...
Dynamic Feedback on a web page (2 replies)
microsoft.public.dotnet.framework.aspnet
"Toby Riley" riley toby@hotmail.com wrote in message news:... How do i get a web page to dynamically display text as code is executed. i.e. as each step is performed in the code provide output to the web page a step at a time. Thanks Toby toby.riley@exmlsystems.com
Property access must assign to the property or use its value. (4 replies)
microsoft.public.dotnet.framework.aspnet
I have a page that has two buttons. First button is initially enabled, second one is disabled. When the first is clicked, it calls its OnClick subroutine, where stuff happens, at the end of which, I want to disable the first button and enable the second. however, when I try to do this, I get the error listed in the subject header. I use a code behind file but I declare them like so: Public WithEve...
Templated control - problem accessing properties on template item (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I have made a custom control inherited from WebControl. I want to be able to use templates to set the inner html of the control and therefore made three templates (TopTemplate, ContentTemplate and BottomTemplate). When instantiating the TopTemplate I transfer a string, that I want to access from within the template like this from my HTML: MyControl Message "my message" TopTemplate Some html......
Right Justify a DataGrid column (2 replies)
microsoft.public.dotnet.framework.aspnet
Does anyone know the syntax for right justifying the contents of one datagrid column (i don't want all of the columns to be right justified.) Thanks
Error with Web Service (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi all, We have an application calling a web service on the same network and got the following error, System.InvalidOperationException: Client found response content type of 'text/html; charset Windows 1252', but expected 'text/xml'. The request failed with the error message: This error only happened in our UAT environment and not in the Development envionmnet. Does anybody have any ideas? Is it a...
Binding raw XML to a DataGrid (3 replies)
microsoft.public.dotnet.framework.aspnet
I wan't to bind raw XML to a DataGrid. I will not load the XML into a DataSet ! The XML must be bound directly to the XmlDocument. I'm trying to bind a XML like this to at ASP.NET DataGrid Employees Employee ID 1 /ID Name Sam /Name /Employee Employee ID 2 /ID Name Peter /Name /Employee /Employees I read the xml into a XmlDocument (xmlDoc) and bind it like this: grdResult.DataSource xmlDoc.Document...
SQLConnection Access denied error (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I am having a pretty strange problem when I call the .Open() method on a SQLConnection object. I am moving an asp.net site from one server to another. On the new server, every once in awhile an error pops up that says: Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the e...
Two ImageButtons.. (3 replies)
microsoft.public.dotnet.framework.aspnet
Two ImageButtons.. In the top of page, "login" image is ImageButton. and the middle of page(Board Write page), there is another Imagebutton. After writing finishied, press the "Enter"Key,then login ImageButton is pressed. I want...... in the id,password textbox.. Login ImageButton Pressed in the title,content textbox.. Write ImageButton Pressed
Exception: Word cannot print. There is no printer installed. (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello! I try to print out some document from aspx page (forms auth. is used) Word.ApplicationClass word new Word.ApplicationClass(); word.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible); word.ActiveDocument.PrintOut(ref isBackground, ref missing, ref missing, ref missing, ...
Denied access to the eventlog (Requested registry access is not allowed) (2 replies)
microsoft.public.dotnet.framework.aspnet
I m trying the following but I get an " Requested registry access is not allowed. " error (code is from the framework.documentation) What can I do to remedy this?: // Create the source, if it does not already exist. if(!EventLog.SourceExists("MySource")){ EventLog.CreateEventSource("MySource", "MyNewLog"); } // Create an EventLog instance and assign its source. EventLog myLog new EventLog(); myLog...
Howto set the filename for the "File download" dialog (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello I have created a aspx page that read some information from a database, and then writes it to the client and then let the client save it as a file. It goes something like this: Page Load() { ArrayList res GetData(); Response.Clear(); Response.ContentType "text/txt"; 'is this the correct mime type for a text file? foreach(string s in res){ Response.Write( s "\r\n" ); } This works quite OK. The...
DataGrid question (3 replies, VIP)
microsoft.public.dotnet.framework.aspnet
Hi NG! I have a question about the DataGrid: I want to display all things about ONE car (Engine, Color, ...) in one DataGrid. But not horizontal (too long), but vertical. I need the DataGrid for Editing the values. Any ideas? Thanx rudi
Cache dependency question (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello I have a .html file that I plan on using as a template for my ASP.NET application. The idea is that my app opens the .html file, parses it and returns it as string. The app then searches the string and inserts the appropiate web control for the page in question where I have placed custom html comment tags in the template .html file. Any changes to the template ..html file are reflected in al...
FindByText Problem (2 replies)
microsoft.public.dotnet.framework.aspnet
HI @ll! ok, i have a problem with DropDownList.Items.FindByText(String).Selected True here's my code: mybereich.Items.FindByText(AuswBereich).Selected True should work, but it doesn't...I declared AuswBereich as a string and converted it with CStr to a string again, but it doesn't work! Can anybody help me? Must I import something? thx chris
Object persistence during several page requests? (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello NG, up to now I thought that with every page access (doesn't matter if it's a Postback or not) , ASP.NET creates a new instance of the Page Class. Now my problem is the following: I create a DataTable object (out of a dataset application variable that is created in global.asax) when receiving the page: public class CBMitarbeiter : System.Web.UI.Page { private DataSet dataset; private DataTab...
events for DataGrid (2 replies)
microsoft.public.dotnet.framework.aspnet
I have a datagrid with Button and ListBox columns how to write events for them thank you
html code in class - minor problem, expert help required! (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi All, I'm almost there with my current problem but if you think you can help out, please read on. I call the code below from by Load event on the Form. It basically puts html onto the web page. This means I can inherit from a C# class and don't require an aspx form (to inherit from). All my forms can look the same! The two hyperlinks are appearing as text but I can't get the asp buttons to appea...
DataGrid's ItemCommand question (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello all, How to get an actual data when ItemCommand event occurred? Digging the help I found only the DataGridCommandEventArgs.Item.DataItem or DataSetIndex that both returned me current data representation but this is not what I'm looked for. For the right now I'm including invisible BoundColumn pointed to this data field and then parsing the text to get integer value: int id Int32.Parse(e.Item...
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