Loading Forms Side-by-side?
Jul 3, 2010I have form 1 and form 2 form 1 is already loaded. When i load form 2 i want it to apprear right next to form 1 on the right hand side. What code should i use to accomplish this.
View 3 RepliesI have form 1 and form 2 form 1 is already loaded. When i load form 2 i want it to apprear right next to form 1 on the right hand side. What code should i use to accomplish this.
View 3 RepliesCan I send an object from client-side javascript to server-side code via ASP.NET ?
View 5 RepliesI know this defeats the purpose of client side vs. server side (refer to title of this thread). What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser. [Code]
View 8 RepliesI have a basic asp.net web page. I have a menu bar divided into 3 columns. Each column displays an xml file. However instead of showing them side by side it displays them one on top of each other. i think it might be to do with my css?
My asp.net web code:
<div class="menubar">
<div class="menuleft">
[code]....
Using the following script:
$("#some_button").click(function() {
var changed = [];
[CODE]...
I need to send back the id, the old value from _1 and the new value from _0 back to the server. What is the best way to format this data so I can easily extract the data from the server side so I can easily email someone for example to let them know which textboxes have changed, what the old values were, and what the new values are
At the serverside level, I am using .NET-3.5 (VB). I know how to send the data bacl. and how to email the data, I just wanted to know how to best format the data at clientside before sending it back. I could have upto 50 sets of id, old, and new values to send back. Sorry for not making that clear earlier.
Example:
How can I modify the script above to generate this?
[
{
"id": "name_0",
"new": "text",
[CODE]...
I'm working on a 2d game. making a button that can move in a path random up,down, side -side, etc. in a selected space. and once hits end of the form to slide out and reappear at other side of the selected space and do same thing over.
View 1 RepliesHere are my two grids -- they are ExtJs grids however we wrap the declarations in vb.net code:
Dim VehicleOptionsGrid As New Framework.WebControls.Grids.Grid
With VehicleOptionsGrid
.ID = "VehicleOptionsGrid"
.Title = "Vehicle Options"
[code]....
Using javascript, is there anyway I can add a bottom scroll bar to these grids? Doesn't seem like we have a wrapped command to do it...
I currently have a parent Listview and its child Listview displaying in the centre column of an HTML page that consists of three columns left, centre and right. And all looks very good. However I would like to display the child list view in the right column beside the parent list view.
To do this it seems I must somehow generate from the code behind page a new row in the table every time the parent Listview displays a record of its data and then some column HTML so the first child list view will appear in the right hand column.
I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.
Here's what I have on my server-side code so far:
Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing
[CODE]...
I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.
I am struckup with a problem from last two days. I am creating a web application using VB.NET, Ajax & RAD Controls. When user clicks on a button I want to open a RAD Window and show the list of ledgers available to the user, so that he can select one from the list. And to open that window I have to call a java script function from client side, which is already achieved using the below code.
[Code]...
I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event.
And the HTML is all correct after I add the option.
Is it a coding problem or I don't understand something?
$(selectCourant)
.append($("<option></option>")
.attr("value",$(dropdown).val())
.text($(dropdown + " option:selected").text()));
I have an application which have multiple tab pages. On of these pages I have a group box with many controls that do something.Now the problem is I want to add exactly the same group box by the current one that can have different paparemeters.This is exactly the way that i want to add comparison capability between to set of parameters.I have more than 500 lines of code that responde to changes of these parameters and does something.Is there any way to replicate the the whole gropbox and use the same code for both and and being able to difrentiate between gropboxes.I think there was an array control in vb 6 but I am not sure if this the best way to do this in vb.net.What is the best way to do this for the least amount of changing the code and wasting time.
View 1 RepliesBasicly I have a program that retrieves data and parses it, which is fine, so it starts from:11:981.8 which equals to November 981.8 now what I have done is split the "November" and the "981.8" into 2 different arrays, with other similar data, now what I need to be able to do, is sort the array in either Ascending or Descending order, however keeping in tact, the November and 981.8 side by side in a list box.
My current code is:
Private Sub sortData(ByVal strYear As String, ByVal strSort As String)
lbDispData.Items.Clear()
Dim strData As String = My.Settings.usage2011
Dim arrRawData() As String
[Code]...
EDIT: Just to mention, there are many more values, not just November and 981.8, there would be for example December and 128.1, January and 191.1, etc.
I am starting a butterfly program and having an issue and really just barely have it started and would like to get some helpfeedback on how to do this. The following is the instructions and I will make a second post on what code I have so far...The butterfly is going to be moving from side to side in a slightly upward assent when the animation starts. You need to build a set of controls that allow the user to control whether the butterfly ascends (up) or descends (down) and also allows the direction of the butterfly to change (left or right). The best way to implement this feature is through the use of keystrokes that when pressed act to control the direction of the butterfly. Whether you implement this feature through keystrokes or controls, make sure that the feature is communicated to the user.
Butterflies fly by opening and closing their wings. So it is expected that the butterfly will alternate between opened and closed as it wings its way across the form. If the butterfly is moving right, make certain the butterfly graphic displayed shows the butterfly as moving toward the right. If the butterfly is moving to the left, make certain the butterfly graphic displayed shows the butterfly as moving toward the left.
If the butterfly reaches the top of the form in its assent, it should wrap around to the bottom of the form. If the butterfly reaches the bottom of the form in its descent, it should wrap around to the top of the form. If the butterfly reaches the left edge of the form, it should begin flying toward the right side of the form. If the butterfly reaches the right edge of the form, it should begin flying toward the left side of the form. If the user changes the direction of the butterfly, insure that the correct graphics are used in relation to the direction of the butterfly and that the butterfly moves in the indicated direction. Please note that when the butterfly reaches the edge of the form, the butterfly must change direction regardless of any user input.
Ultimately, what I want to accomplish is an AJAX-based messaging system. I already have a database table for messages, and an ASPX to add new messages (and declare old messages no longer relevant).
The current messaging system simply polls the server every 15 seconds, and re-pulls the current message set.
What I am looking to do is: On $(document).ready(), register an ajax callback function that listens for a server-side event (e.g., MessagesUpdated) On table insert/update, fire MessagesUpdated server-side.
This way, whenever the table is updated (or new records added), any clients listening know that new data is available and can re-poll the server then.
Ideally, I'd also like to make the new data available as an event argument (to minimize re-polling the db).
I can find references to something like this in other languages, but I cannot find any actual code examples to get me started.
Assuming this is possible to do via .Net, can anyone help get me started on this?
I'm using the 2.0 Framework. Also while I added a VB.Net tag, I can read C# reasonably well, so please feel free to post in either language.
Im creating a space invaders game that has a group of "invaders" moving side to side and when i shoot one it gets destroyed, my invaders are in an array. So in order for the invaders to keep moving right until they get to the edge, i made a function that detects which invader is right most. But this was crudly done as I wa trying to make the opposite of my left most function which works. So my rightmost function dosent work
[Code]...
I would like to display 2 forms side by side. Frm1 will call Frm2. The problem is, if Frm1 is too near the edge of the computer screen, when Fr2 is shown, part of it will be outside the screen. How do I make it so that if Frm1 is near the right-side of the screen then Frm2 will show on the left-side of Frm1 and vise-versa?
View 2 RepliesI have my main form which will have the option to hide itself and open up a mini version. I would like this mini version to start at the top-right of the users screen.I have went through other posts and understand that you can set distance from top-left.
View 9 RepliesI have an ASP program that synchronizes 2 databases. I also have a VB.NET program compiled down to an EXE that fills the source database before the synch happens. In the back of my mind I know I should be able to link the VB & ASP .NET programs together since that's the power of .NET. Alternatively, if I could run the EXE from ASP it would be just as well for my project. I do have the source to both programs. The ASP script was written with a text editor - the VB was in VB 2008 Express.
assume I know nothing of linking assemblies and such because I don't - I just read that in an article. I'd prefer ASP but if necessary I could use the ASP.NET script to launch the EXE. The code is legacy ASP with VBScript so all our ASP.NET stuff is the VB flavor as well. C# makes my other programmer's head hurt so for his sake this will have to remain VB.
Is there a way I can relatively easily launch the EXE pre-sync program and have it run when the ASP synch script starts?
The server is MS Windows Server 2003 SP2 / IIS 6.0 / the .NET version is 2.0.50727.3603.
By the way - I'd love to "learn to use .NET properly" but time is short for this project and in-depth research will have to wait.
EDIT: Aaron's answer below gets me most of the way to the solution but I'm getting:
Exception Details: System.ComponentModel.Win32 Exception: Access is denied
Source Error: Line 17: process1.Start();
SOLUTION: Aaron's answer below plus the knowledge that ~/ in MapPath is the virtual root of the website and the file to run is relative to that.
We have a three tier windows app:
- data layer
- Business layer
- Windows Forms
We've half upgraded to .net from vb6 the only thing left to upgrade is the datalayer. They datalayer still uses VB6 ADO.For a smooth transition can we have both the OLD ADO VB6 and ADO.net libraries worlk along side each other:
- Could they use the same connection Object?
- Will using both mean I have to have two active connections?
Your probably thinking why do we want to use both?
- Its mission critical code so the old stuff must still use ADO VB6
- all new classes will use the ado.net objects
I wanted to build a front end web page so that I can start and stop various programs on my server remotely. I know that Shell will open something locally, but how can I make an ASP.Net page which activates programs server-side? Googling got me the "Shell" method, but I don't think that works server-side.
View 1 Repliesi am using this code to print Its working but i want to take print on right side of the page how can i do this form width is '352' and form height is '498'.
Dim linesPerPage As Single = 0
Dim yPosition As Single = 0
Dim count As Integer = 0
[Code].....
how can I use both the left and the right side of a toolstrip?I mean, f.e. on the left side are some buttons, on the right side two text fields.
View 4 RepliesI know this has been asked a lot, but I have a server-side custom validator that is not being fired, and I cannot find why (also, I've copied examples that work from other places and cannot make it work...)
The code:
<asp:CustomValidator ID="MyValidator" runat="server" ErrorMessage="My error message" OnServerValidate="MyValidator_OnServerValidate" />
Validate function
[Code]...
EDIT 2: Added a Page.validate() on my button code, and it does not call the server side of the validator.Also, the custom validator is being called (at least the client/javascript side of it, but not the server side)
I'm new to programming and I'm trying to create a hex editor. I got some source from internet which I want to modify to my needs. But this hex editor is opening the hex files in text box. I want to open it like a grid(Like Excel). Also I want to add the line number on the left side and I want to remove the right stuff info.
View 1 RepliesI was having problems inserting a string into the following tag : <tr id="rowBulkOptions" style='<%# sBulkOptionsRowStyle %>'> Don't ask why I'm using tables sBulkOptionsRowStyle is a Public string in the aspx.vb file. Seemingly the only way I can get this to render is to put Page.DataBind() in the Page_Load, Page_PreRender etc.. However this causes me problems because Page.DataBind() binds all controls on the page. I could use <%= BUT another part of the code inserts controls into the page and apparently you can't use <%= and insert controls.Is there a way I can just say 'look, put sBulkOptionsRowStyle into the page
View 1 RepliesI have an asp.net dropdown like this
<asp:DropDownList width="95%" ID="RessourceComposantes" runat="server"
DataSourceID="Composantes"
DataTextField="Description" DataValueField="ComposanteID">
</asp:DropDownList>
[code]....
Is it normal that when I do dd_ressource_composante.selectedvalue on the server side I have no value. It's always "". the source looks like this :
<select name="ctl00$Tab$dd_ressource_composante" id="ctl00_Tab_dd_ressource_composante" style="width:95%;">
<option value="1">Composante</option>
<option value="3">DGAG</option>
[code]....
I just tried to fill my dropdown in vb.net and I have the same result. The dropdown is full but when I do a postback I have no selected value Actually on the server side when I put a breakpoint on the dropdown, the item count is 0. I don't understand why... It's like the 8th dropdown list in this project and everything is the same but this one doesn't work.
I don't do any binding on the page load. it's all in the aspx file well it works ONLY when I add autopostback="true" SelectedIndexChanged="dd_ressource_composante_SelectedIndexChanged" for the dropdown.And theres no code in dd_ressource_composante_SelectedIndexChanged It's vb.net for the server side?
Be able to instantiate the object and hook up the MessageReceived and ConnectionChanged events (or ones with similar purposes). Be able to send data (duh) When data is received, it fires the MessageReceived event on the same thread that the object was created on (this would be nice, but not absolutely required). Have a blocking and non-blocking options for connecting and possibly sending data.
View 2 RepliesI'm curious about how to perform client-side filtering, where Javascript is involved (it may not need to be written, but his is what the user's browser will run). It shouldn't need ajax (though ajax related solutions are welcome).
I'm brand-new to Asp.NET programming. This example pertains to a problem I am having at work. I've done many years of application based programming, and even some php. But learning Asp.NET is giving me a hard time (something I wasn't expecting).I have three combo boxes. But I want to filter out what gets put into them based on what is selected and what is available (an extra table).
Here is the example code page. Right now there is only a blank Page.Load() in the code-behind .vb file.
[Code]...
p.s. I work in the morning, so I will be around again in about 12 hours. Off to sleep with another day of no solution. Example Project is where the initial code is from.
i have a question ( i am learning VB) is there is a way in vb.net to make the Me.LoadComplete loads after the client side , i develop this simple code to make it easy to understand my question
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.LoadComplete
MsgBox(myhiddenField.Value)
End Sub
[Code]...
when the page loads , the MsgBox will be empty but when you click the link button the MsgBox has the value you set in the javascript , so i assume that the page_load function gets excuted first
the question is how can i load the client content before the page_load ?