Topics
-
- 0 replies
- 1.1k views
The code is simple and it work fine in my development machine. But when I upload to hosting server, then unable to clear the cookies. Dim obj As HttpCookie = Request.Cookies("aaa") If Not obj Is Nothing Then obj.Expires = DateTime.Now.AddDays(-7) Response.Cookies.Add(obj) End If Any posibility of it? I really can't understand. Will the OS setting affect it?
Last reply by bungpeng, -
hi all, I have an ASP.NET page that gives me the following error message It suppose to close the Windows and display the "Record listing" after the information has being saved into the db. I don't want to click the retry button, can someone tell me what's wrong with it?
Last reply by miwaypro, -
- 0 replies
- 1.2k views
We are currently busy with a Sap Health care rollout. Our pharmacy system is being written in .net (c#) and is inserted into the Sap gui as a Activex control by compiling it with a com interop and accessing it by late binding. They have requested from me to find a way to unload the dll from memory so that we can recompile it and bind it again without leaving the sap gui.
Last reply by Bodybag, -
- 0 replies
- 846 views
hi all, I'm a ASP.NET newbie, the following line of code doesn't work. it has a blue line at the work "language" <script language = "vb" runat="server"> Public Class WebForm1 and it gives me an error of '>' expected hope someone can help me, thks in advance.
Last reply by miwaypro, -
-
- Leaders
- 6 replies
- 2.4k views
Every time I try to open a form from the project VS 2005 Express crashes. Yet, when I try to open the form's .rexs I get the following messsage: "The designer loader has not been initialized yet. You may only call this method after initialization." I'm using Both 2003 and 2005. I've uninstalled/re-installed 2005. The problem remains :(
Last reply by snarfblam, -
-
- 2 replies
- 1.5k views
I have an application that will display data depending on the county that a user chooses. The text "Download file for all facilities in this county in Excel file format" will not be displayed until the user makes a county selection. Once the selection is made, the page will display the data and also show a link to a downloadable file for that county. Everything works really well in IE. The data are displayed on the page and there is a hyperlink on the text "Download file". When clicking on the link, the user gets a download dialog box and is able to either open or save the file. However, when running in FireFox, there is no link on the text "Download file". H…
Last reply by marlin, -
- 3 replies
- 1.8k views
I though this was easy, but now that I tryed to scale a texture, I simply can't do it... Is the scale thingie done inside the Sprite.Draw2D() parameters?
Last reply by EFileTahi-A, -
-
- Leaders
- 3 replies
- 929 views
Hi all I'm not sure if my problem is a bug, or if its the first signs that I am going crazy. I drop my buttons or textboxes or any other control onto the page and then go to rename the ID of the control. After typing in a new unique id, I hit the return key, however instead of changing the controls id to the id I entered, vs.net changes the name back to the default value. The only way that I can change the Id of a contol is to go into the http source of the page, locate the code for the control and change the Id in the source. Has anyone experienced this problem before? Mike55.
Last reply by mike55, -
-
Hi all, just dipping my toe into DirectX from using OpenGL, does DirectX have any native support for Nurbs surfaces, or any form of spline curves? I cant seem to find anything, but confirmation would be much appreciated Talyrond
Last reply by Talyrond, -
- 0 replies
- 598 views
Form has dropdownlistbox. I want add selected item from DDL to DataTable in dataset and assume it with DataGrid. The first row adds normally, but when i add the second row grid consist only one row that i add last time. For example: 1. choice is "ddd" --> in a grid one row "ddd" 2. choice is "lll" --> in a grid must be || "ddd" || "lll" || but there is only "lll" row in a grid. code: procedure TWebForm3.Button1_Click(sender: System.Object; e: System.EventArgs); var nr:dataRow; begin nr:=datasetNew.Tables['new'].NewRow; nr['name']:=DropDL.SelectedItem.Text; dsNew.Tables['new'].Rows.Add(nr); D_Grid.DataBind; end;
Last reply by nosebleed, -
-
- Leaders
- 2 replies
- 1.8k views
I have an annotated string: ref class AnnotatedStr { public: String ^str; // the basic char data // there is one entry in each of the following for each char in str array<int>^ font; array<int>^ color; array<int>^ pointsize; } I need to use Regex.Replace() on the string. ex. Replace( MyAnnotatedString->str, "(?<ugg>[A-Z]{3,6}))", "Insert1 ${ugg} insert2", MyMatchEvaluator ) Problem -- The inserted text will then be mis-aligned with my annotated arrays of extra data. 1. I didn't see anything to support this in Replace(). 2. I thought about deriving from String, and overriding some function there,…
Last reply by snarfblam, -
-
Funny code 1 2
by snarfblam-
- Administrators
- *Experts*
- Leaders
- 28 replies
- 3.9k views
While translating some of my old VB to C#, I found this amusing line of code in a class I wrote a while ago. If [u][b][i]Not Me Is Nothing[/i][/b][/u] Then Save(Medium.GetKey) End If I couldn't help but share this stunningly witty piece of code. It brings Descartes' famous quote to mind, "I think, therefore I am." Perhaps this is why I don't program for a living. Anyone else?
Last reply by mskeel, -
-
- 0 replies
- 2k views
I am programming my web page to accept a range of crystal reports and display them. My problem is it simply is not working and i have been wrecking my brain about it for the past two days. Below is a copy of my cope and error displayed, it is also worth knowing that that the login details are correct not matter what the error page says! lol Before i let you at i believe the problem may be with the way i set up my login, is there some code i have to enter between the .reportsource and the .bind? Thanks in advance Dim strGenericAddress As String = ConfigurationSettings.AppSettings("ReportsLocation") Report.Load(strGenericAddress &…
Last reply by itagraham, -
- 1 reply
- 761 views
Hi Say i have two tables in Access Order and Order_Items where Order is the parent and Order_Item is the child and it is linked by the columns order_ID. order_ID in the Order table is the primary key and done by autonumbering whilst order_ID in the Order_Items is a foreign key. my problem is this. i have both tables and schemas put onto a dataset, where i create new rows, but i do not assign an order_ID for any of the rows i create because Access would autonumber them when i call an Update. The problem is that how do i link Order_Items record with Order record in the dataset? would i have to update the database every time i create an Order record in order t…
Last reply by tfowler, -
-
- Administrators
- 3 replies
- 811 views
--I have an application� --The solution consists of 2 projects --Project 1 properties show output type = Windows Application --Project 2 properties show output type = Class Library --I am able to add a reference to Project-2 within Project-1 (I am showing a form in Project-2 from a form in Project-1) --I am not able to add a reference to Project-1 within Project-2 (Error Msg �A reference to Project-1 could not be added. An assembly must have a �dll� extension in order to be referenced.�) So how can I see public variables in a form in Project-1 from a form in Project-2? This is probably very basic, but I can�t figure it out. Thanks for any help!!!!!…
Last reply by stewarts, -
-
- 9 replies
- 1.1k views
Hello I want to convert a money amount into dollars and coins. for example if i start with $20.35. it should tell me that i have 20 dollars, 1 quarter, and 1 dime. I have been working using the mod keyword to hold the remainder but it just isn't coming out right... here is my code. intamount = val(txtinput.text) intamount = dblamount * 100 dollars = intamount \ 100 quarters = intamount mod 100 intamount = intamount \ 100 quarters = intamount \ 25 when i input $20.25... it gives me... 20 dollars, and 0 quarters ??? Does anyone know what i am doing wrong in my code. If you can help then please post
Last reply by kejpa, -
-
- Administrators
- 7 replies
- 850 views
I have a simple form with a text box and a submit button. Once submitted the value in the text box is checked against a table, if there is a match it adds it to another table. The problem is this program is set up to allow scanning of barcodes, but the ID is for ex. A000123, and it works if I enter 000123 or 123, but the "A" gives me a "no value given for one or more required paramenters" error. I have tried doing a simple replace: Dim idx As Integer idx = Me.txtAddPrep.Text idx = Replace(idx, "A", "") That does not solve the problem. I will also post the SQL call: strSQL = "Select * FROM tablenam…
Last reply by Joe Mamma, -
-
- 0 replies
- 983 views
Hello everyone. I'm working on a project that I think will be very usefull to the community in general. (I will release complete code under GPL if I can ever get it working properly.) Anyway, here's the project in sum. I want to make a distributed content delivery system. Yes, that's a very big topic, which is why I don't even know what area of this forum to post it into. But after much big profound brain thingies in my head (just joking. it's a line from Madagascar...), i've decided to post it here since it's ultimate goal is to distribute live content via a network, hence the communications part. Anyway, moving along. Here's my theory: Pre-encode Avi (or Mpeg…
Last reply by W_Garabrandt, -
- 1 reply
- 2.6k views
i have a usercontrol with a textbox control in it, im trying to make a "Text" property for it with both get and set, setting a value isnt a problem but somehow i cant manage to retain the value of the textbox as it postback <Bindable(True), Category("Appearance"), DefaultValue("")> _ Public Property Text() As String Get Dim obj As Object = ViewState("Text") If Not (obj Is Nothing) Then Return CType(obj, String) Else Return String.Empty End If End Get Set(ByVal value As String) ViewState("Text") = value End Set End Property doing this won…
Last reply by lamy, -
- 2 replies
- 1.2k views
lets say i have several instances of the same custom control and i wanted the first one to load something and ignore that procedure with the rest of the custom control since its already loaded, anyone for directions? was thinking of putting this in my custom control <script language="javascript" src="something"></script> but i wanted it to load only once even if i keep dragging more of the same custom control, anyone? i can do a workaround like saving something in a session/viewstate, then check it from there, but there could be another way
Last reply by lamy,
-
Who's Online 0 Members, 0 Anonymous, 60 Guests (See full list)
- There are no registered users currently online