Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
W

wilf57

@wilf57
About
Posts
17
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Visual Studio doesn't resolve localhost
    W wilf57

    Aha and 'ping localhost' works on the laptop. Wilfried

    Visual Studio visual-studio csharp help question

  • Visual Studio doesn't resolve localhost
    W wilf57

    Yes it was on. But turning it on or off doesn't make any effect. when i put it on and make an entry '127.0.0.1 localhost' in the file lmhosts.sam and make import lmhosts with this file in the network connections it doesn't help either. Should it be on or off? When its searching the website it shows in the status line at the bottom of the explorer: Connecting to site [::1] --- but cannot connect This problem occurs on my laptop. Its the same installation like on my PC, where there is no such problem. The only difference is, that there is an English windows xp on the laptop, while a German one on the PC ;-) thanks for ur try. Wilfried

    Visual Studio visual-studio csharp help question

  • Visual Studio doesn't resolve localhost
    W wilf57

    When I want to run my project in VS2005 choosing File/Open in Browser it says: website cannot be opened When I replace the word localhost in the address line by 127.0.0.1 everything works fine. In the file .../system32/drivers/etc/hosts tere is an entry: 127.0.0.1 localhost so where visual studio is looking for the name resolve? Reinstall VS doesnt help. Thanks for any suggestions Wilfried.

    Visual Studio visual-studio csharp help question

  • Visual Studio cannot resolve localhost
    W wilf57

    When I want to run my project in VS2005 choosing File/Open in Browser it says: website cannot be opened When I replace the word localhost in the address line by 127.0.0.1 everything works fine. In the file .../system32/drivers/etc/hosts tere is an entry: 127.0.0.1 localhost so where visual studio is looking for the name resolve? Reinstall VS doesnt help. Thanks for any suggestions Wilfried.

    Visual Studio visual-studio csharp help question

  • sql server transactions
    W wilf57

    Ok I solved that, the MsgBox() calls were the reason. When I pulled them out it works well on the targhet system

    ASP.NET help csharp asp-net database sql-server

  • sql server transactions
    W wilf57

    Ok I'll use parameters later, but if you could give me a hint to my problem it would be a great help. Thanks Wilfried.

    ASP.NET help csharp asp-net database sql-server

  • MsgBox() Function
    W wilf57

    Is it right, that the MsgBox() function from asp.net 2.0 cannot be used to show a messageBox in the browser? It only works well on development systems, where server and browser are on the same system? If yes: sorry for my naivity. :-O, :-)) Plz treat this post seriously. PS. I know how to display on the browser, but I thought MsgBox() does this functionality for us per hidden script, like viewstate for example.

    ASP.NET tutorial csharp asp-net sysadmin tools

  • sql server transactions
    W wilf57

    ok thats the code: I execute it in the gridview_RowCommand() and on the development system everything is great. sqlKont = "Update tbnKontBib set fest=fest+ CONVERT( money," & "'" & Komma2Punkt(diffFest) & "') " & _ "where bh='" & Session("bHalle") & "'" sql = "Insert into tbOrder(artnr, odatum, bh, oanz, opreis, bhoper) Values( " & _ "'" & artnum & "'" & "," & _ "'" & Date.Now.ToShortDateString & "'" & "," & _ "'" & Session("bHalle") & "'" & "," & _ "'" & anzBest & "'" & "," & _ "CONVERT( money," & "'" & Komma2Punkt(preis) & "')" & "," & _ "'" & Session("bUser") & "')" 'Ausfuehrung mit Transaction Try t = conn.BeginTransaction cmd = New SqlCommand(sqlKont, conn) cmd.Transaction = t erg = cmd.ExecuteNonQuery() If erg <> 1 Then 'Fehler MsgBox("K-Fehler in Bestellung! Bitte Administrator benachrichtigen!", MsgBoxStyle.Critical, "!!! Achtung !!!") t.Rollback() GoTo ende End If cmd = New SqlCommand(sql, conn) cmd.Transaction = t erg = cmd.ExecuteNonQuery() If erg <> 1 Then 'Fehler MsgBox("O-Fehler in Bestellung! Bitte Administrator benachrichtigen!", MsgBoxStyle.Critical, "!!! Achtung !!!") t.Rollback() GoTo ende End If t.Commit() MsgBox("Ihre Bestellung wurde ausgeführt!", MsgBoxStyle.Exclamation, "Bestellvorgang") Catch ex As Exception t.Rollback() MsgBox("Ihre Bestellung ist fehlgeschlagen! Bitte wiederholen sie die Bestellung.", MsgBoxStyle.Critical, "Bestellvorgang") End Try ende: conn.Close() Bye Wilfried

    ASP.NET help csharp asp-net database sql-server

  • sql server transactions
    W wilf57

    I'm using asp.net 2.0 and sql server 2000. I'm using a transaction to wrap the execution of 2 insert commands on the sql server together. On the development system everything works fine. On the target system it executes the 2 inserts properly but then displays the error message: Sqltransaction is finished and cannot be used anymore the stack: System.Data.SqlClient.SqlTransaction.ZombieCheck() +701167 System.Data.SqlClient.SqlTransaction.Rollback() +120 kurz.GV1_RowCommand(Object sender, GridViewCommandEventArgs e) +2901 System.Web.UI.WebControls.GridView.OnRowCommand(GridViewCommandEventArgs e) +104 System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +76 System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +200 System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +170 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5612 does it try to make a rollback? but the things are inserted properly. And then it makes the funny Zombiecheck and maybe found one. Did anybody solve a similar issue? Thanks in advance. Wilfried.

    ASP.NET help csharp asp-net database sql-server

  • MsgBox fails because no user interactive mode
    W wilf57

    When I use MsgBox() with asp.net 2.0 it causes an error on my target system (and only there) saying: application should be run in user interactive mode, use the format: Service notification or Default Desktop only (thats translated from the german message - so not word by word) How to put the aüülication i user interactive mode. How can I avoid that error. Thanks Wilfried.

    ASP.NET csharp asp-net help tutorial question

  • ASP user control and client scripting
    W wilf57

    The first one is simply a textbox on the page. Thats why it works fine. The client script is on the page, not in the user control. I wrote a public property (Text) in the user control, so I can read and write the listbox(the one in the user control) on the server side but that doesn't help on the page client side, right?! So you say in the page client script I cannot access the listbox inside the user control by its ClientID property , only by the hard coded ID. Ok next week I'm going skiing, I have do deal with that thing after that. Thanks again Wilfried

    ASP.NET tools question

  • ASP user control and client scripting
    W wilf57

    Ok I got that. I read about it in the help too.

    Now I tried this in the client script: document.getElementById("<%=artnr.ClientID%>").value document.getElementById("<%=sodatum.ClientID%>").value the first statement with the textbox works fine, the second one with the user control doesn't it says: document.getElementById("<%=sodatum.ClientID%>")is not an object. and indeed when I execute on the server side (in page_load() or even aftzer loading in a button event: Msgbox me.sodatum.ClientID it always prints 'sodatum' and not 'sodatum_sodat' as I'd have expected. any explainations? Thanks for your patience Wilfried

    ASP.NET tools question

  • ASP user control and client scripting
    W wilf57

    the last one is an argument, but still: if there is a user control on the page like this: then document.getElementById("sodatum").value doesn't work what works is: document.getElementById("sodatum_sodat").value try it (I'm using ie6) for me it seems logical, because if the control's ID in the server produced HTML code is 'sodatum_sodat' any javascript cannot access the control by 'sodatum'

    ASP.NET tools question

  • ASP user control and client scripting
    W wilf57

    So I found the shit myself asp.net renders a user control differnt than a normal control. The ID of a user control on the webpage is a combination of the ID used on the page and that in the user control HTML code. Best way: look at the source code of the page created by asp.net and wich ID asp.net used to address the specific control. Ex. If the user control is implemented the following way:

    |ucSod:sodat ID="sodatum" runat="server"/>

    client script access is thru: formxxx.sodatum_sodat.value (there's a '<' instead of the '|', but then it's not displayed in the forum, why??? -- modified at 9:36 Monday 26th February, 2007

    ASP.NET tools question

  • fire client alert script from submit button
    W wilf57

    try onClick="return confirm('Ready to submit');" or in ASP.Net onClientClick="return confirm('Ready to submit');" the return value influences the submit process: false stopps the submit if that works write a java script function (ex. Check), wich checks the textbox for empty and returns false if so and tie it to the onClientClick-event onClientClick="return check();"

    ASP.NET javascript tools question

  • ASP user control and client scripting
    W wilf57

    Thanks for answering. Sorry probably my description was not precise. I used the normal access methods already. My user control has the ID sodatum, so I try to access it by: sodatum.value or document.getElementById("sodatum").value but it both returns null. There is another textbox on the same page, named 'artnr' and even another listbox too, both of them accessible. It must be, because it's a user control. It's implemented in the following way:

    <%@ Register TagPrefix="ucSod" TagName="sodat" Src="~/uc/sodatum.ascx" %>
    <%@ Page Language="VB" CodeFile="Suche.aspx.vb" Inherits="Suche" %>

    alert(document.getElementById("artnr").value;
    alert(document.getElementById("sodatum").value;
    

    |asp:TextBox ID="artnr" runat="server"
    |ucSod:sodat ID="sodatum" runat="server"/>

    I used '|' instead of '<' here, because otherwise it's not properly displayed in this forum message. In the code there are '<' of course. The first alert works, the second doesn't. Wilfried

    ASP.NET tools question

  • ASP user control and client scripting
    W wilf57

    Is it possible to check the value of a user control, used on a website by means of a client script on that website. I think it should be of cource, but the 'element.value' notation doesn't work. My user control contains a listbox, initialized in the user control's code. What I'm doing wrong? Wilfried

    ASP.NET tools question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups