Web Forms :: Make Public Variable (Visual Basic 2008)?
Jan 18, 2010
I have declared a variable as public (Visual Basic 2008). As a result I can call its value in all subroutines. However I cannot change its value in any of the subroutines?! How to do that? The variable I'm having trouble with (see code below) is called 'antwoordbestand' and I want to change its value in subroutine startKnop_Click.
[Code]....
View 1 Replies
Similar Messages:
Jan 6, 2010
VWD 2008 Express. Windows 7 (64 bit). I want all my work and settings for VWD 2008 to be stored in the public (shared) documents folder. There are settings under Tools>Options to specify where projects and templates are stored, that is part of the answer. However, whenever I open VWD it always creates a "Visual Studio 2008" folder in my personal Documents folder where it apparently stores some settings. How can I make VWD work entirely in the "Visual Studio 2008" public folder for everything and NOT create the personal folder?
View 2 Replies
Jan 14, 2010
I'm trying to pass a value (address) from a listview control using visual basic to a google map address control on the page load event. Here is the code I have so far in vb:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Pass address from Listview to Googlemap address
GoogleMap1.Address = ???
GoogleMap1.Zoom = "14"
GoogleMap1.ShowScaleControl = True
GoogleMap1.EnableInfoWindow = True
[Code]....
View 3 Replies
Jan 3, 2011
I have just started using VWD Express 2010.
I have created a new website which has on the Default page Source view
<p>
To learn about ASP.NET visit .... etc
</p>
When I change the text to " To learn about the new ASP.NET" etc
and press F5 to run, it still displays the original text.
What am I doing wrong ?
View 1 Replies
Aug 26, 2010
How do declare a public variable .aspx web page that can be used in all the pages within my web application? And/or create a Public Sub?
View 3 Replies
Aug 10, 2010
I want to make spider charts like this one: [URL] I want to know can I prepare it using reporting service 2008? I am using sql server 2008 as the database and working with Visual studio 2008.
View 4 Replies
Jan 27, 2011
I have a question about C Sharp ASP.NET:Is there a difference (in code speed, resources) between:public static variable declared in public static class MyGlobals in a 'Code File' template;and the variable declared in a normal 'Class File' template;I use this variable in 2 different Class Files and also in _Default Page codebehind cs file.In fact in my case I need about 20 global variables of type List<string>.
View 9 Replies
May 17, 2010
I have a web application which uses a session variable to store the logged in userid. If no user is logged in, of course this variable will be empty and the contents displayed on my website are meant for guests. If there is a user logged in, the user specific controls/access/links will then be a displayed.
I am now having issues with my hosting where on shared application pool, the worker recycle is triggered every 90 minutes, this will clear sessions causing all my users to be logged out. I opted for a dedicated application pool, which got worse because I am only allocated 50MB memory limit and if this is reached, the worker recycle is triggered and I lose my sessions again. I have tried as much as possible optimization techniques, e.g. dispose where possible, close connections, disable viewstate for static controls etc but my memory per instance keeps building up from page to page without any signs of improvement. I don't use loops nor store huge objects like bitmaps etc but my sessions are now gone even faster than 90 minutes in shared application pool before.
I have considered using SQL Session State but there isn't a simple guide on using this with MySQL. I am getting desperate and considering using a public variable, a string as a replacement to store logged in user id instead of in a session variable. I am pretty sure this will solve my issue with sessions being recycled but are there any negative consequences of doing this? One problem I can think of is if the user closes the browser, the system will never know that the user is now logged out and this public variable should be nothing. In this scenario, will the GC eventually clear this abandoned public variable.
View 10 Replies
Mar 7, 2010
[Code]....
The variable is assigned a value in another class like this:
[Code]....
View 1 Replies
Mar 29, 2011
I have a JavaScript wrapper that I initialize on body load and set to a global variable.
Just after creating the object, I have full intellisense, but when referring to it later, from another function, the intellisense is lost. I presume this is because of dynamic typing:
var myWrapper;
function onload() {
myWrapper = new Wrapper(args);
myWrapper. //intellisense here.
}
function whatever() {
myWrapper. //intellisense lost.
}
I get round this by pretending to create the object again before my code, and then deleting the line:
function whatever() {
myWrapper = new Wrapper(); //pretend to create object again.
myWrapper. //intellisense returns!
}
Has the inference been improved in vs 2010, or is there any way to tell Javascript about the type of object I'm currently working on?
View 1 Replies
Jul 18, 2010
[Code]....
I have a publice variable to be used in the same webpage. when the user click on button 1, it does some process and assign a value to my public variable. After that, the user can click on button 2 which needs the public variable value to function. However I see the value of the public variable is 0 when I click on button 2.
View 2 Replies
Mar 21, 2011
how i could make a forum in a visual studio 2008 website , or any software that i could use .
View 13 Replies
Feb 12, 2010
i have VS 2008 and i want to creat some asp.net sample applications with framework 4.
is there some method or update for vs2008 that let the vs 2008 users use framework 4 and controls?
View 1 Replies
Apr 10, 2010
I have a problem to pass along public variables from C# code to the HTML code. I assign the variables in the Page_Load event and then pass along them to the Panel and Image control in the HTML code. Though I get this compileerror for the Width: "Cannot create an object of type "System.Web.UI.EbControls.Unit" from its string representation '<%setWidthImage%>' for the 'Width' property."
[Code]....
View 7 Replies
May 9, 2010
I'd like to know how to declare a variable in my code behind page that I can use in all the subs of my code behind.
I tried in after the Partial Class declaration to declare a "Public String" :
[Code]....
and to use it in my subs but when I use it from a sub to another I loose the value affected in another sub.
Is there a way to use a Public variable from a sub to another (I'm actually using a session variable in order to do it and I'm not sure it is the best way)
View 4 Replies
Jan 27, 2010
how to make exe file of window application in Visual web developer 2008
View 1 Replies
Jan 14, 2011
I have a variable in an aspx file I need to use/recover it's value into an ascx web control that's in this aspx file. It's possible to do it? The aspx dynamically loads web controls depending the scenario, so this web control not allways is loaded.
View 2 Replies
Jul 3, 2010
I need to write a paper on the comparison between (Microsoft Visual studio 2005 to develop web applications using asp.net) and (visual basic and Netbeans to develop j2ee applications using java).I need suggestions for good webpages,journals or documents which can help me out here. I have to write at least 1500 words
View 1 Replies
Feb 14, 2010
Even though I when I create a linqtosql class I mark C# as the language it was always shows up as a Visual Basic file in the App Code file. I can't get it to stop doing that. ????? What is going on?
View 5 Replies
Mar 28, 2011
public static string SEARCH_STRING = "searchkey";
string key=Request.QueryString.Get(SEARCH_STRING);
How to change the above code to make SEARCH_STRING be accessed using a Property(get; set;) instead of a public variable
View 8 Replies
Apr 14, 2010
I want to create a search button and put the results in a data grid.
Select Company_Name,Contact_Name,Contact_Number From ClientSystem WHERE Company_Name=txtSearch.Text
View 2 Replies
Dec 3, 2010
Is there a way to delete an entire gridview with code? I have a gridview that is created based on a value is selected in another gridview, and the bound columns keep being created on top of the previously created gridview. I would like to completely delete it and create it anew based on the new selection.
View 4 Replies
Apr 26, 2010
For my Dynamic Data site I have a table that has a join to a number of other tables. If I use the standard page for this table I get all of my columns from the primary table and related tables (which is good) and the appropriate literal values from the related table (which is great). The bad part is the order of the columns.
To address the order of the columns I created Custom Folder/Page for the table. I also have a partial class that controls date formatting. This takes care of the ordering of columns fine (which is a step forwared), but now I'm seeing the foreign key IDs instead of the literal values from related tables (which is a step backward).
All I did was copy the standard page to the Custom folder for the table, turn off AutoGenerateColumns, and specify the column order and display name. Why would the foreign key change occur? As a side note, if addressing column order in the partial class is the preferred method I could go that route, but I haven't been able to understand how to do that in VB (I've seen many examples in C#, but that's not my strong point).
View 2 Replies
Sep 11, 2010
i have created a login.aspx file in visual web developer .now i want to connect the username and password details to SQL database
View 1 Replies
Jan 25, 2010
I try to use internationalization in MVC but I can not make the resource strings public to my application.If I follow Steve Sanderson then I have to create a resource file and enter my strings. But in the window to enter the strings I can not choose the drop down to change the modifier because it is inactive (grey).
View 2 Replies