Topics
-
-
- *Experts*
- *Gurus*
- 19 replies
- 3.7k views
Ok... here is a new one concerning properties on a usercontrol. I would like to have the nifty nested properties on my control (i.e. Size, Location, DockPadding, etc.) Anyone have a clue as to how this is done?
Last reply by Lexus, -
-
- 2 replies
- 1.4k views
With this in my code at the top of the page: Dim str1Err = "This is required." ,my old, Classic ASP site uses this: <span><%Response.Write(str1Err)%></span>How do I do this in ASP.NET? "str1Err" is still defined in the ASP.NET version, but it seems to be out of scope. Could someone show me the way? I tried this: <span><script runat="server" type="text/VB">Response.Write(str1Err)</script></span>but then I get that Response is not declared. Using VS2005 Professional. Thanks.
Last reply by joe_pool_is, -
- 2 replies
- 1.5k views
Hi, I have a page where I have some animation that fades an image in and then out again: <cc1:AnimationExtender ID="AnimationExtender1" runat="server" TargetControlID="pnlSuccesConfirmation"> <Animations> <OnLoad> <Sequence> <FadeIn AnimationTarget="pnlSuccesConfirmation" Duration="2" Fps="20"/> <FadeOu…
Last reply by davearia, -
Web Browser
by SIMIN- 1 reply
- 775 views
Hi, When I use Web Browser to navigate to a page from my application, it will go to Internet Explorer history! I mean that page will be shown in the visited pages of IE. This is something I wanna disable. Is that possible? Thanks.
Last reply by Diesel, -
- 1 reply
- 1.3k views
Hi, I was playing around with some javascript earlier, I got everything working in a test page and then put it into the page it needs to be in which happens to have a master page. If I give 2 really basic pages, the first is a non-master page which the javascript correctly fires from: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> &…
Last reply by Diesel, -
-
- Administrators
- 2 replies
- 1.1k views
I have a problem with 2 dropdownlist inside logiview. how we can fill second dropdownlist filtering by first dropdownlist?. example : when i select "animal" on first dropdownlist, the second dropdownlst will only show "dog", "cat", "fish", etc... when i select "vehicle" on first dropdownlist, the second dropdownlist will only show "car", "truck", "motocycle", etc... n more important is the 2 dropdownlist inside loginvie.. Please help me??:confused:
Last reply by Diesel, -
-
-
- Administrators
- 8 replies
- 2.2k views
i have a program that contains the current text in its textbox: Blaaaat Blaaat Blaat Now another program accesses this textbox and reads it out, but some problems occur, with hidden characters messing up some things: aSplitted = strTextBuff.Split(Environment.NewLine) For Each aElement As String In aSplitted Debug.WriteLine(aElement.Length & " - " & aElement) Next the output of this debug is: 7 - Blaaaat 7 - Blaaat 7 - Blaat Not exactly what you would expect, this is what i was expecting: 7 - Blaaaat 6 - Blaaat 5 - Blaat How can i prevent this? What is the problem here? I tried replacing all chrs from 0 to 31 w…
Last reply by Ontani, -
-
-
- Administrators
- 3 replies
- 1k views
First off, I'm not a database guy. My background is in C/C++ and I'm just getting the hang of this C# stuff. With that being said I'm setting up a DataGridView with a SqlDataSource that connects to an Oracle database. I have my select statement working, but the update statement either updates every row in the table when I don't include a WHERE clause or it won't update any rows at all. To give you an overview of what I'm trying to do, I want to edit comments in a table and have everything else remain the same. There are 5 or 6 fields that make the row unique and I try to add these to my WHERE clause but it causes nothing to get updated. I also try to use just …
Last reply by PlausiblyDamp, -
-
- 4 replies
- 2k views
For some reason my textbox does not scroll to the end of its content. my code: Private Sub txtConsole_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtConsole.TextChanged txtConsole.SelectionStart = txtConsole.TextLength txtConsole.ScrollToCaret() End Sub
Last reply by Ontani, -
-
- Administrators
- 2 replies
- 5.3k views
Hello All I'm attempting to parse a datasource into individual entities and inserting those into a database. However, some of those entities might already exist so I need to check my primary keys. I failed at my first attempt - trying to simply catch the exception thrown when the PK constraint is violated. try { dc.SubmitChanges(); } catch { } However, on any consecutive calls of dc.SubmitChanges the exception is still thrown. Obviously not the solution. (Is there a way to discard those changes that cause an exception?) So my next option is checking whether the entity already exists. Preferably in a single operation. Does Linq provide this? Currently I'm…
Last reply by JCDenton, -
-
- 1 reply
- 1.2k views
Anyone figured out how to provide a floating toolbar in conjunction with ToolStripPanels? I'm using four ToolStripPanels rather than a ToolStripContainer because it's an MDI form and the ToolStripContainer doesn't seem to allow the display of MDI children.
Last reply by rbulph, -
-
- Administrators
- 6 replies
- 2.3k views
Hello, I found the code to export contents of a gridview to excel on a webpage: Sub doExcel(Source as Object, E as EventArgs) If Grid1.Rows.Count.ToString + 1 < 65536 Then Grid1.AllowPaging = "False" Grid1.DataBind() Dim tw As New StringWriter() Dim hw As New System.Web.UI.HtmlTextWriter(tw) Dim frm As HtmlForm = New HtmlForm() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "attachment;filename=Test.xls") 'Response.AddHeader("content-disposition", "attachment;filename=" & txtFile.text & ".xls") …
Last reply by phoenixfire425, -
-
-
- Administrators
- 6 replies
- 7.7k views
Hello ! How can I export gridView to Excel ? I'm using ASP.NET 1.1 code: Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" 'Me.EnableViewState = False Dim tw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(tw) gvw.RenderControl(hw) Response.Write(tw.ToString) Response.End() that works with 1.1 but here (2.0) this code rise error: "Control 'ctl00_Main_gvw' of type 'GridView' must be placed inside a form tag with runat=server." Any idea ?
Last reply by phoenixfire425, -
-
- 2 replies
- 1.3k views
I create a connection to my access database like this: Dim StringConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + "C:\Access.mdb" Dim MyConnection As New OleDbConnection(StringConnection) MyConnection.Open() ... MyConnection.Close() The question is that how can I password protect this database file "C:\Access.mdb"? Thanks.
Last reply by Machaira, -
- 2 replies
- 848 views
Hello all, im new to .NET C# programming. Im experimenting with tabcontrol now. I created a tabcontrol with two tabs. I want to be able to do some stuff after i change tabs.I want to capture that i clicked on tabpage2 and execute some code and then show tabpage2. How do i go about doing that? I've tried by putting this code in my Form1.cs. But when run the application and switch tabs, nothing happens. private void TabControl1_SelectedIndexChanged(Object sender, EventArgs e) { MessageBox.Show("You are in the TabControl.SelectedIndexChanged event."); } Any help would be great!. Thanks Laura
Last reply by pinkpig, -
- 1 reply
- 1.5k views
Hi I had this page: <%@ Page Language="VB" AutoEventWireup="true" CodeFile="FadeTester.aspx.vb" Inherits="_Default"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Fade Tester</title> <script language="javascript" type="text/javascript"> <!-- //Hide image when page loads. function hideImage() { var object = document.getElementById('imgInfo').style; object.opacity = 0; object.MozOpacity = 0; …
Last reply by davearia, -
-
- Administrators
- 9 replies
- 2.3k views
Hi, I have some code: Imports System.Net.Mail Public Function SendEmail(ByVal recipients As String, ByVal ccRecipients As String, ByVal subject As String, ByVal body As String, ByVal userName As String, ByVal userID As Int32) As Boolean Dim from As String = System.Configuration.ConfigurationManager.AppSettings("ITHelpdeskEmailAddress") Dim objMM As New MailMessage(from, recipients, subject, body) If ccRecipients.Length > 0 Then objMM.Cc.Add(ccRecipients) End If objMM.IsBodyHtml = True objMM.Priority = MailPriority.High Dim sender As New System.Net.Mail.SmtpClient("?") sender.DeliveryMethod = SmtpDeliveryMethod.Network send…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 8 replies
- 8.7k views
I have an application in C# which uses a dialog box with a textbox and a button to submit. A barcode scanner is used input the data. Currently after the scan the user must use the mouse to click the submit button. What can I do to submit to data automatically after scanning. I know there is something about a carriage return character, but I have no idea what to do. If I scan the barcode with any other program (even WordPad) it would carriage return to the next line, but its not working in my C# app. Is there something I need to add to my code or a property I need to set to the textbox or button? Thanks.
Last reply by techmanbd, -
-
-
- Administrators
- 4 replies
- 849 views
Hi, I want to create a table in my database, and also create a field in it named "Names" which is text, and also set a primary key named ID. So I use this string connection: "CREATE TABLE '" + TableTextBoxX.Text + "' (ID INT PRIMARY KEY, Names Text(255))" But I get syntax error! I played around with that but could not find how it should be correct! Please help me:(
Last reply by SIMIN, -
-
-
- Administrators
- 6 replies
- 1.1k views
Hi, I wanna create an access database programmatically. How should this be done? Do you recommend that I do it via code? I don't know how to create an access 2003 compatible file at run-time! Please help me:)
Last reply by FZelle, -
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online