| HTTPModule - an interceptor indeed, but without communication skills! (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation is TEST if javascript is enabled on the browser some other plugin checks via javascript. Id rather implement this check without touching any of the aspx files. Reason is the usual I dont want "same code" c... |
|
| httpModules :: BeginRequest Behavior (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I'm trying to implement some kind of page controller, a class that will intercept all incoming requests and route them appropriately. More specifically, I'd like to intercept a request for a non existent url, say "http://www.somesite.com/view/UserName", and have that request URL parsed so that I could route all URLs containing "view" to the appropriate form which would fulfill the request with "Us... |
|
| HTTPRequest Get Response Method and Time out problem with VB.NET (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, I am new to .NET framework. I am trying to get data from the third party web application using WebHTTPRequest and Response class. I am getting TimeOut exception at GetResponse Method.. Dim objResponse As HttpWebResponse objRequest.GetResponse() tried out different solutions but still problem persist. Here is the code from my test applicaiton Thanks, James Private Function readHtmlPage(ByVal Ur... |
|
| HttpRequest parameter read (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I am developing a web application. If i call an aspx page with several parameters, is there a way to get access to parameter values by key? I am using C# E.g. void PageLoad(object sender, EventArgs e) { string album Request. ??? ("album"); } And a call the page: http://mywebsite.com/pics.aspx?album FirstAlbum. As i could see, it only provides methods to get a list of parameters and then loo... |
|
| HttpRequest parameter read (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, I am developing a web application. If i call an aspx page with several parameters, is there a way to get access to parameter values by key? I am using C# E.g. void PageLoad(object sender, EventArgs e) { string album Request. ??? ("album"); } And a call the page: http://mywebsite.com/pics.aspx?album FirstAlbum. As i could see, it only provides methods to get a list of parameters and then loo... |
|
| HttpWebRequest - GET Method (VIP replies) |
| ASPFriends.com 'ngfx-io' list |
| I'd like to GET the page inside an HTTPWEBREQUEST Class, but it doesn't seem to like GET as the Method. Keeps displaying the following error. Cannot send a content body with this verb type. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception De... |
|
| HttpWebRequest Session/Timeout Problem (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I wrote a generic page to do HttpWebRequest operations based on 3 querystring parameters for the uri, username, and password for basic authentication pages. The page is designed to help with network management... You would use the page like this: http://localhost/webform1.aspx?uri http://pagetomonitor.com&user someuser&pass somepass Anyway, what seems to happen is that the first 2 or 3 calls to th... |
|
| HttpWebRequest.GetResponse() throwing Timeout (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I'm trying to create a simple screen scraping application and I kept getting a System.Net.WebException thrown back with a message of "The operation has timed out." At first I thought it was some kind of connectivity issue on the machine. It didn't make sense though, because I can open up a browser on the same machine and easily browse the web. I'm stumped. I looked over my code for any errors and ... |
|
| Hyperlink problem (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| I am sure that there is a simple answer to this, but i have not been able to find it. I have a hyperlink column to send the user to an external webpage. But when it is clicked it appends the URL to the current URL i.e http://www.mywebsite.com/datapage.aspx#http://www.externalwebsite.com Thanks for any help you can give Andrew Outgoing mail is certified Virus Free. Checked by AVG anti virus system ... |
|
| HyperLinkColumn not functioning (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| There is a datagrid with a hyperlinkcolumn within. The hyperlink when clicked on redirects to "Data11b.aspx?BulkLoadId 1". The page load function does not run when page1 is activated, but page init does. What is required for the page load to execute. ******************************************** asp:HyperLinkColumn DataNavigateUrlField "BulkLoadID" DataNavigateUrlFormatString "Data11B.aspx?BulkLoad... |
|
| I am getting the following Error What is the proper syntax for this line (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| I am getting the following Error What is the proper syntac for this line Compiler Error Message: CS1513: } expected Source Error: Line 330: if(Request.QueryString["Category"] ! null) Line 331: { Line 332: category NVarChar.Parse(Request.QueryString["Category"]); Line 333: public void Submit4 ServerClick(string, category); Line 334: } Source File: D:\Domains\aspalliance.com\dotnetsolutions\testGetS... |
|
| I am trying to convert my VB script to C# here are the line that are the culprit (VIP replies) |
| ASPFriends.com 'aspngcs' list |
| I am trying to convert my VB script to C# here are the line that are the culprit // in VB the failing line was like this // Dim parameterSearch As SqlParameter New SqlParameter("@Search", SqlDbType.NVarChar, 255) parameterSearch SqlParameter New SqlParameter("@Search", SqlDbType.NVarChar, 255) parameterSearch.Value Request.Params("txtSearch"); myCommand.Parameters.Add(parameterPortalID); Descripti... |
|
| I can't create MDB File with ADO.net (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| thank |
|
| I completely disagree (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi all. I completely disagree with the ASP.NET Event Handling model. This is a final conclusion I came to after weeks of hard work on a quite more realistic web app than the MSPetShop ;) I firmly believe that the Event Handling model is cumbersome, complicated, unefficient and just, well, ...unpredictable! Last but not least, it comes to a complete contrast with the old ASP processing logic. Here ... |
|
| i have to know what button of mouse clicked... (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| panel has not Key press event... that's why.. if i have to figure invoking any event out when panel clicked it is so difficult...what button is clicked .... button of Mouse like .. Left, Middle, and Right... how can i distiguish... i have to use Click event because panel has not key events... private void panScreen Click(object sender, System.EventArgs e) { MouseEventArgs mouse (MouseEventArgs)sen... |
|
| I keep getting this error. pl help (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I get the following error. Ihave no idea why? Pl help Server Error in '/WebApplication1' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'EventHander' could not b... |
|
| i know that is a stupid question but i need know. - httpWebRequest (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| private void button5 Click(object sender, System.EventArgs e) { HttpWebRequest request (HttpWebRequest)WebRequest.Create ("http://192.168.0.2/card/default.aspx?card " textBox1.Text); HttpWebResponse response (HttpWebResponse)request.GetResponse(); String ver response.ProtocolVersion.ToString(); StreamReader reader new StreamReader(response.GetResponseStream() ); string str reader.ReadLine(); while... |
|
| I miss C inline and macros / Optimizing functions (VIP replies) |
| microsoft.public.dotnet.framework.performance |
| Is there any way to mark functions for optimization or is the only way for that to use something like an external preprozessor. Say e.g. i have a verrry simple function like... bool SetValueAndFire(string name, object value, EventHandler handler) { if(base.GetValue(name).Equals(value)) return true; if(!base.SetValue(name, value)) return false; if(handler ! null) handler(this, new EventArgs()); ret... |
|
| I need help on how to build a cache for the following (VIP replies) |
| ASPFriends.com 'aspngcache' list |
| I am trying to build a cache for caching all records and even groups of records that would not be alter for even a day... even though there could be other querys that would not be cached. I would like to know how to cache the Select ALL records. I put together this code..what major mistakes have I made??? SQLStatement.Text "select * from dwKnowledgeBase "; SqlConnection myConnection new SqlConnect... |
|
| I need help on how to email a Datagrid as a HTML (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| I need help on how to email a Datagrid as a HTML So far i get the email message as a text with all the HTML code in it. Thanks Below is my code email message. this is what i have Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create MailMessage instance, set properties, and send Dim Mail As New MailMessage Dim sw As New System.IO.String... |
|
| I need help with a login form too (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hello. I was wondering if someone could help me too with a login form. Upon startup, I have to display a password screen and it should accept a user name and password. User name can be anything non blank. If there is no user name, an appropriate error message must be displayed. All of the following passwords are valid IT160, VB2Manager, BackDoor. No other password is valid. It must allow the user ... |
|
| I'd guess I can't do this (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Given a button name Btn 5 and Index 5 I want to do something like dim zz as string Btn ??Index??.Text or given an array of buttons, do: BtnArray(4) Btn ??Index?? Not necessarily that simply, but is there a way I can create the name of a variable at runtime? Thanks |
|
| I'm wondering about the .NET event model (VIP replies) |
| microsoft.public.dotnet.framework |
| I've been wondering about the proper way of doing events in .net! This is what I have right now: When an event is used by more than one class, you put it in the namespace, set the sender to object, and MyEventArgs e. When an event is only used by one class, you put it inside that class, set the sender to the class type, and MyEventArgs e. namespace Foobar { public delegate void FoobyEventHandler(o... |
|
| ID of a newly created record (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| Hi, I'm trying to get the ID of a newly created record into a variable, so I can display it in a Label or something after being created. I know you can use @@identity in the sql statement, but I just can't seem to get it to go. Any help appreciated, Glyn Williams Here is my code: Public Sub addBike(Sender As Object, E As EventArgs) Dim myCommand As new SqlCommand() Dim myConnection As New SqlConne... |
|
| IDE crashing (VIP replies) |
| microsoft.public.vsnet.ide |
| I am using Visual Studio.Net 2003 and have created a form that crashes the IDE EVERY TIME ; ). All I have to do is go anywhere into a procedure, type this. At the "dot", intellisense appears (as usual). When I use Tab, or click on an item in the list, I get an error about the IDE closing, save/send a bug report, etc. Any ideas? OFFENDING CODE using System; using System.Drawing; using System.Collec... |
|