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
R

rain1178

@rain1178
About
Posts
12
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CSS setting in datagrid
    R rain1178

    Thank you so much! My problem is solve :laugh:

    ASP.NET css help question

  • CSS setting in datagrid
    R rain1178

    I follow the way u said,but i still can't get the output i wanted. This is the code i wrote, is that anything wrong in my code? /* Default CSS Stylesheet for a new Web Application project */ BODY { BACKGROUND-COLOR: #ffffff; FONT-FAMILY: Arial; FONT-WEIGHT: normal; LETTER-SPACING: normal; TEXT-TRANSFORM: none; WORD-SPACING: normal } GridHeader { vertical-align: baseline; font-size: 1em; font-weight: bold; font-family: Arial, Helvetica, sans-serif; } TD { font-size: 12px; font-weight: normal; word-spacing: normal; letter-spacing: normal; text-transform: none; font-family: Arial, Helvetica, sans-serif; } A:link { text-decoration: none; color: #3333cc; } A:visited { text-decoration: none; color: #333399; } A:active { text-decoration: none; color: #333399; } A:hover { text-decoration: underline; color: #3333cc; } SMALL { font-size: .7em; } BIG { font-size: 1.17em; } BLOCKQUOTE, PRE { font-family: Courier New, monospace; } p { font-family: Arial, Helvetica, sans-serif; font:12px; font-weight:normal } Datagrid code:

    ASP.NET css help question

  • CSS setting in datagrid
    R rain1178

    Hi, I am using Css to control the font setting in my web application. Everything work fine except datagrid. I want to set the header of my datagrid to bold = true and font =Comic Sans MS. And i also want to set the item in the datagrid to font size 11px. But i'm not able to see the expected result although i set those setting in the properties windows. I discover the font,font weight and font size is all follow what i define in TD part in my css sheet. Can anyone help me? This is my code..... Style.css /* Default CSS Stylesheet for a new Web Application project */ BODY { BACKGROUND-COLOR: #ffffff; FONT-FAMILY: Arial; FONT-WEIGHT: normal; LETTER-SPACING: normal; TEXT-TRANSFORM: none; WORD-SPACING: normal } TH { vertical-align: baseline; font-size: 1em; font-weight: normal; word-spacing: normal; letter-spacing: normal; text-transform: none; font-family: Arial, Helvetica, sans-serif; } TD { font-size: 12px; font-weight: normal; word-spacing: normal; letter-spacing: normal; text-transform: none; font-family: Arial, Helvetica, sans-serif; } A:link { text-decoration: none; color: #3333cc; } A:visited { text-decoration: none; color: #333399; } A:active { text-decoration: none; color: #333399; } A:hover { text-decoration: underline; color: #3333cc; } SMALL { font-size: .7em; } BIG { font-size: 1.17em; } BLOCKQUOTE, PRE { font-family: Courier New, monospace; } p { font-family: Arial, Helvetica, sans-serif; font:12px; font-weight:normal } Webform4.aspx <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm4.aspx.vb" Inherits="TryWeb.WebForm4"%> WebForm4

    ASP.NET css help question

  • Display multiple record in 1 page
    R rain1178

    Hi, I want to create a web page which will display multiple record (can be one or many). I want the record to be display like this: Record 1: Name : Alex Age : 23 Address : xxxxxxxxxxx Other : (Datagrid display data here) Record 2: Name: Alice (No datagrid display data here coz no data for this person in database) Record 3: Name: Alicia Age:24 Other : (Datagrid display data here) Notice that Name will be display in every record. If no data for age and address, then no need to display. My question is how to dynamically display data like above eventhought the number of record is not fix. How do i repeat to use the control? :confused:

    ASP.NET question database help tutorial

  • Printing by VB.NET
    R rain1178

    Hi, I'm want to print the text file from my application. I use the code below and i use dot-matrix printer to print. However, i find that the printing process is very slow because the printer will print twice per line. What other method that can be used other than the method below? What other object can be used to print instead of ev.Graphics.DrawString? Or what other setting can used to make the printing faster/print once per row. Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim prtdoc As PrintDocument = New PrintDocument() Dim strDefaultPrinter As String = prtdoc.PrinterSettings.PrinterName Dim strPrinter As String For Each strPrinter In PrinterSettings.InstalledPrinters ComboBox1.Items.Add(strPrinter) If (strPrinter = strDefaultPrinter) Then ComboBox1.SelectedIndex = ComboBox1.Items.IndexOf(strPrinter) End If Next End Sub Private Sub pd_PrintPage(ByVal sender As Object, ByVal ev As PrintPageEventArgs) Dim linesPerPage As Single = 0 Dim yPos As Single = 0 Dim count As Integer = 0 Dim leftMargin As Single = 0 Dim topMargin As Single = 0 Dim line As String = Nothing ' Calculate the number of lines per page. linesPerPage = ev.MarginBounds.Height / printFont.GetHeight(ev.Graphics) ' Iterate over the file, printing each line. While count < linesPerPage line = streamToPrint.ReadLine() If line Is Nothing Then Exit While End If yPos = topMargin + count * printFont.GetHeight(ev.Graphics) ev.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, _ yPos, New StringFormat()) count += 1 End While 'If more lines exist, print another page. If Not (line Is Nothing) Then ev.HasMorePages = True Else ev.HasMorePages = False End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try streamToPrint = New StreamReader("D:\abc.txt") Try printFont = New Font("Verdana", 10) Dim pd As New PrintDocument() pd.PrinterSettings.PrinterName = ComboBox1.SelectedItem If (pd.PrinterSettings.IsValid) Then AddHandler pd.PrintPage, AddressOf pd_PrintPage ' Print the document. pd.Print() Else MessageBox.Show("Invalid Printer") End If Finally streamToPrint.Close() End Try Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub

    Visual Basic csharp graphics question

  • Combo Box
    R rain1178

    Hi, I hv an application that need user to key in value for 2 text box. After that i will bind data to combo box based on the values of text boxes. However, i don't hv a button to trigger that binding process. I want to perform this process in combo box click event. But i hv to click the combo box twice. How to make user only click combo box once and then the value will directly pop out in combo box?:confused: Private Sub cbSubconRoute_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbSubconRoute.Click If (txtN.Text = "" Or txtC.Text = "") Then lblTxnStatus.Text = "Please Key In NSID And NSSPEC!" Return End If If (cbSubconRoute.Items.Count < 1) Then bindDataForComboBox() End If End Sub Private Sub bindDataForComboBox() cbSubconRoute.Items.Add("") cbSubconRoute.Items.Add(txtN.Text) cbSubconRoute.Items.Add(txtC.Text) cbSubconRoute.Refresh() End Sub

    Visual Basic database wpf wcf tutorial question

  • ItemCommand &amp; PageIndexChanged event in Datagrid
    R rain1178

    Hi, I have a datagrid and i allow paging in this datagrid. So when the user click on the number then the page will link to the clicked page. However, after i added some code in ItemCommand in order to get some value. The PageIndexChanged event cannot be triggered. My page got error in ItemCommand part when the user click the page index on the datagrid. The error msg is "Object reference not set to an instance of an object. ". Why the PageIndexChanged event can't be trigger? How to make it trigger?:confused:

    ASP.NET database help tutorial question

  • datagrid in asp.net
    R rain1178

    u can try to set the backcolor in SelectedItemStyle in datagrid properties windows

    ASP.NET csharp asp-net help tutorial question

  • Print on next page In VB.NET
    R rain1178

    Is there any one know how to set the text file to be printed on next new page? I mean if i read certain line contain string start with "*", then i want the line below "*" to be printed on next page. Any one know how to do this?:confused:

    Visual Basic csharp tutorial question

  • Add index in repeater/datalist/datagrid
    R rain1178

    Thanks to Raymond and Jim MacDonald!:rose:

    ASP.NET database tutorial question

  • Add index in repeater/datalist/datagrid
    R rain1178

    Any one know how to add an index column in repeater / data list or datagrid? Thank you!

    ASP.NET database tutorial question

  • Change date format in compare validator
    R rain1178

    Hi, I have a web page which allows user to key in start date and end date. I used compare validator to validate the start date cannot earlier (greater) than end date. However, my date format to be enter by user is dd/mm/yyyy. Thus the problem arise here, the compare validator validate the date in mm/dd/yyyy format. How can i change the compare validator format to dd/mm/yyyy?:confused:

    ASP.NET question help
  • Login

  • Don't have an account? Register

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