Custom 404 With Referring URL?

Dec 9, 2011

The redirect .NET uses to send users to my custom 404 page, wipes out the referringURL.[code]...

View 1 Replies


ADVERTISEMENT

Get The Referring Method In .NET?

Apr 3, 2009

See this example:

''//file1.vb
Sub Something()
''//...
Functions.LogInfo("some text")
''//...
End Sub

[Code]...

View 4 Replies

Referring Between Classes?

Feb 21, 2010

I am trying to do is get interoperability between my "mainwindow" and a class. As far as I know the way to do this is to create an instance of the class (in "mainwindow") for example and then use that instance to call the functions etc... This works. However I want to allow the class to call functions in the "mainwindow" The moment I declare the instance on the class as well it goes into an endless loop.

View 4 Replies

Variable Referring To Itself?

Jul 14, 2010

I need a string of code that refers to it's filename on the computer. Basically like how batch has %0% to refer to the batch file's name.

View 4 Replies

Close Form By Referring To Name?

Feb 24, 2009

I�m using a loop to open up a number of forms in my app. The forms are named after dates from a db. They are "created" at runtime so to speak.

Everytime a form is opened, the name adds to a dropdown list in an mdi parent form. The first item in that dropdown is a "close all". I want that item to do just that - close all the forms corresponding to the names in the dropdown list. I�m thinking of looping with an integer, starting on 1 (since the "close all" is 0).

So I need something like:

forms(mdiparent.toolstripmenu.dropdownitems(i).close

View 3 Replies

Getting The Title From A Referring Html <map>?

Sep 16, 2009

I have a map of the us that is broken into an html image map. (not asp). What I'm wondering is it possible to get the title of the refering link on the map?

[Code]......

View 1 Replies

Referring To Self In A Class Function?

Apr 1, 2010

I want to create a function inside my class that will return a boolean on the existence of some data within any structures created with the class.

Public Class MyObject
Public Object1 as String
Public Object2 as String

[code]....

What I don't know how to do is refer to the object that called the function to get values, including the number of items in the referring objects array.

View 2 Replies

Referring To A 2nd Imported Project, Within The Same Solution?

Jan 23, 2011

I Imported 2 programs that I made into one solution. I made a "BIG" main menu (new windows form), put two buttons. I code one button to open up the first project (that works fine). I code the other button to open the project I imported, however it says that the name is not declared. Am I doing something wrong?

here is my code for the "BIG" main menu:

[Code]...

now only the "Original name of first project" appears to be not declared, if I delete "Original name of first project", then "the project I imported"is not declared and so forth. Note: These are not the exact names I called my forms. I'm just trying to explain it clearer.

View 2 Replies

Referring To A Class In The Solution Explorer?

Jul 20, 2009

I have added some classes to my project and now i want to define a variable as one of the classes, for example the class is called xml and i want to create a variable called XMLfile and have it as the class XML.

Can this be done? Or can variables only be declared as types (like Integer, string, etc)?If you're not living on the edge, you're taking up too much room

View 4 Replies

Referring To A Previously Existing DataSet?

Jul 21, 2011

I'm working on a very basic VB.net frontend for an Access database and have stumbled upon a problem.

Dim ds As DataSet
MaxRows = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows.Count
i = 0
Private Sub Navigate()
txtCourseReference.Text = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows(i).Item(1)
txtCourseName.Text = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows(i).Item(2)
End Sub

I get the error that Object Reference is not set to an instance of an Object. I think this is because I haven't defined the DataSet as "Course_assignmentsDataSet"- the one I want to use- but I'm not sure how to do this.

View 1 Replies

VS 2008 Referring To The Object As New ListView

Jul 16, 2010

My LiveView Property is named lstView and is called by this line:

[Code]...

The first reference to objListItem gets this exception: I am referring to the object as new but obviously not in the right way. objListItem is not Null when this line executes.

View 12 Replies

Cannot Create Proper Formula - Cell Referring

Aug 18, 2006

Does anyone know how I can include an existing dimensioned integer in VB code in a formula when using location indices (either R2C2 or R[2]C[2])?

I have integer Location set to the value 6 in some earlier programming steps, and now I'd like to be able to create other formulas and someimes use this Location integer into these formulas. More specifically at the RC and R[]C[] locations in formulas.[code]...

View 3 Replies

Referring To Separate Lines In A Multiline Textbox

Feb 15, 2012

[code]...It is a multiline textbox, and I want to be able to enter different pieces of information (info1, info2, info3) into each line.

View 16 Replies

VS 2010 External Web Pop-up Referring To A Webbrowser Within A VB2010 App?

Mar 5, 2012

I have an app that pulls up a webpage that has a button on it with the following ( I CANT change the webpages, but I can change anything in the App.)

[Code]...

View 1 Replies

VS 2010 Get The Original Path Of EXE To Which The Shortcut Is Referring To

May 22, 2011

I use the following code to get the shortcut files in a folder and to list them in a Listview control. But is there a way to extract the path of the EXE to which this shortcut is referring to ?

vb.net
Dim di As New IO.DirectoryInfo("C: est")
Dim aryFi As IO.FileInfo() = di.GetFiles()
Dim fi As IO.FileInfo

[Code]...

View 2 Replies

Error Referring To Dynamically Created Control In Code

Sep 29, 2009

I am developing an application which created a series of labels using code such as this below[code]...

View 3 Replies

[2005] Export The Data From Datagridview Without Referring To Dataset/datatable?

Jan 22, 2009

I'm using VB.net 2005 and sql server 2000 i'm fetching the data into datagridview, but datagridview has several datasource depending on the "select case " Now can i export the data from datagridview without referring to dataset/datatable?

View 1 Replies

Remove Item From ListBox And Line Of Text From TextFile Referring To Same String?

Nov 17, 2010

How would one remove an item from a ListBox and then remove that line from the TextFile and repopulate the ListBox with new data in Visual Basic.Net?[cod]...

View 2 Replies

Why Would A .sln File Open As Empty In VB2010Express When It Should Open Referring To Projects Etc

Mar 6, 2012

Why would a .sln solution file open and appear empty in Microsoft Visual Basic 2010 Express - i.e. no windows showing projects and code files etc.When I inspect the file in a text editor, it contains references to vbproj files (which are present) which indicate that it should not appear as empty.No error messages are reported when the file is opened.

View 2 Replies

Create A Custom Messagebox, With Varying Number Of Buttons With Custom .Text Descriptions?

Feb 6, 2009

This is what I would like to achieve:To create a custom messagebox, with varying number of buttons with custom .Text descriptions, and other features. I intended to have a property array that would be redim-ed and have values (.Text values) set by the calling class:

[code]...

View 7 Replies

Apply Percentage Format To Custom Cell In Custom Column In DataGridView?

Jun 25, 2009

I came across this great article on creating a custom datagridview column which creates a graph-like effect in the cells of a custom datagridview column:[URL]..Does anyone know how you would edit this to format the number in the cell as a percentage? And does anyone know how you would set this up to take 0 values which do not create any graph effects at all.I have been trying to do this but keep getting errors.

View 1 Replies

Avoid Closing Of A Custom Combo Box Popup Window In A Custom Datagrid?

Jan 31, 2012

I was trying to block the closing of a custom combo box popup window in my custom DataGrid. The popup window comes by pressing F4 or ALT+DOWN keys in my datagrid which is getting closed if I press the down arrow for the first time, after showing the first value in the combo box as selected. Next time onwards, if I press the F4 key and down arrow, I can move to any item in the popup window and select the item using keyboard and in that case, the popup window is not getting closed till I press the ENTER key or selection using the Mouse. Is there any specific reason for this behaviour or something is missing in my code part? [code]...

View 1 Replies

Avoid The Closing Of A Custom Combo Box Popup Window In A Custom Datagrid?

Sep 2, 2010

I was trying to block the closing of a custom combo box popup window in my custom DataGrid. The popup window comes by pressing F4 or ALT+DOWN keys which is getting closed if I press the down arrow for the first time after showing the first value in the combo box as selected. Next time onwards, if I press the F4 key and down arrow, I can move to any item in the popup window and select the item using keyboard and in that case, the popup window is not getting closed till I press the ENTER key or selection using the Mouse.

View 13 Replies

Specify A Custom Icon For Display In The Toolbox Window When Create Own Custom Control?

Dec 29, 2011

how to specify a custom icon for display in the toolbox window when you create your own custom control? Something other than the dreaded "gearbox" icon.

View 2 Replies

Make Stand Alone, Custom Web Browser (with Custom Errors, Or Generic)

Dec 13, 2011

Cookies to be stored in folder and on close delete the cookies The ability to watch youtube vids, view images, and play js/flash games good security, no ads?

View 6 Replies

C# - Custom XML Serialization, Write Custom Root Element?

Mar 15, 2010

I'm using custom serialization and when the xml is generated it's putting the class name as the root element

Example:

<MyClassName>
<MyIntendedRootNode>
<ObjectType>

[code]....

I'm invoking the serialization by calling xmlserializer.Serialize(writer,Me) so I'm sure that has something to do with it.I've tried putting XMLRoot onto the class, but I think as vb is compiling this partial class with its aspx page, it's either overwriting this property or ignoring it entirely.I'd like to just tell it to either throw away everything it has and use a different root element.

View 5 Replies

Create A Custom File Association ( A Custom Extension ) In VB?

Dec 19, 2010

know how to create a custom file association ( a custom extension ) in VB .Net and how to open it on the application

View 1 Replies

Custom Principal & Identity Missing Custom Functions

Jun 21, 2010

I have a Custom Principal class that Implements System.Security.Principal.IPrincipal and a Custom Identity class that Implements System.Security.Principal.IIdentity. So when a user successfully login to my windows form application, I set My.User.CurrentPrincipal = CustomPrincipal, which worked great until I started adding custom functions to my Principal and Identity classes.

[Code]...

View 1 Replies

Not Getting Redirection To Custom Error Page Using Custom Errors?

Mar 24, 2010

Here's my Application_OnError event sink in global.asax.vb:
Sub Application_OnError(ByVal sender As Object, ByVal e As EventArgs)
Dim innerMostException As Exception = getInnerMostException(Me.Context.Error)

[code].....

View 1 Replies

Asp.net Mvc - Custom AuthorizeAttribute + Custom SiteMapProvider Related?

Jan 12, 2010

I have a custom SiteMapProvider (populated from database) and a custom AuthorizeAttribute (validates current users roles + requested page against Role_Page database) for controller classes.I have to implement the function SiteMapProvider.IsAccessibleToUser(context, node). I also have to implement AuthorizeAttribute.AuthorizeCore(context).How are these two functions related? Isn't there some way to 'attribute' the SiteMapProvider?

Some code:

edit: Might this be a solution (inside AuthorizeCore())? context however is HttpContextBase, and IsAccessibleToUser() only takes HttpContext as parameter.If Not SiteMap.Provider.IsAccessibleToUser(context, SiteMap.CurrentNode) Then

current code:

Public Class CustomValidateAuthorization : Inherits AuthorizeAttribute
Public Sub New()
End Sub

[code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved