Search results for query: *

  • Users: kpao
  • Content: Threads
  • Order by date
  1. K

    Question How to cast e.NewValues item to DictionaryEntry in DetailsView

    The following is part of my code: Protected Sub DetailsView1_ItemUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewUpdateEventArgs) Handles DetailsView1.ItemUpdating For Each entry As DictionaryEntry in e.NewValues...
  2. K

    User.Identity is always null

    I have used form authentication in my web application. This works in my local pc. When I put it to my server. Then try logging in using I.E. 6. The server cannot not return the user identity. I tried logging in again. But this time, I use firefox. The server can return the user identity. That's...
  3. K

    Problem about using WebClient DownloadFile

    The following is my fragment code: Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Dim myWebClient As New WebClient myWebClient.DownloadFile(New Uri("http://www.google.com"), Request.MapPath("Files\") & "google.htm")...
  4. K

    Question about using index server

    I have created the index server in my server. And I have created the catalog named "Testing". And the directory contains a text file. The following is the content of the text file: "I want to buy a house." After setting up the index server, I tried to do a simple search. The keyword I searched...
  5. K

    Regular Expression Questions

    Suppose I have a string like that: Dim s As String = "a b c d e f g h" how can i use the regular expression to capture the space characters and return the following result?
  6. K

    question about string.replace

    Is it possible to do the following: String : "I am in office now" Replacement : "I am in e1ffice ne2w"
  7. K

    What's the usage of .resx files

    When you create a new form(Suppose we use VB.Net), there are two files will be generated. One is the .vb file, and the second one is .resx. What's the usage of resx file? is it just for the visual editor?
  8. K

    Problem about the AutoPostBack of the WebControl

    There are a button, radiobuttonlist, and dropdownlist control in my own page. And I set the AutoPostBack = true to the radiobuttonlist, and dropdownlist control. When the selectedItem of radiobuttonlist or dropdownlist is changed, the following action will be triggered...
  9. K

    The problem of HttpWebRequest in .Net 2.0

    I'm developing the website that can capture the html source from other website. The following is the fragment code of my web: Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Dim myReq As HttpWebRequest =...
  10. K

    Question about controlling the com objects (Microsoft.Office.Interop.Excel)

    I have recently written a web application that allow people to obtain the Excel Report. Anyway, I use Microsoft.Office.Interop.Excel to implement this. But the speed of generating Excel is not good. It takes me more than one minutes to obtain the report. So, I suspect the reason why the speed is...
  11. K

    Question about OnInit(EventArgs e) function in ASP.Net

    override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } In the above function, what is the usage of base.OnInit(e)? I have tried comment this. override protected void...
  12. K

    Why do i cannot use Convert.ToXXX in window application?

    I'm developing a window application. However, when I'm using Convert.ToChar() method, The error occured and the message is the following: Overload resolution failed because no accessible 'Convert' accepts this number of arguments. I've tried using another convert. the result is the same...
  13. K

    Questions about TcpClient And TcpServer?

    I've written the telnet window application. And I've set up a tesing server so that my program can telnet to that server. My problem are that when I telnet to the server after typing username and password through my program, there is no response output anyway. Another problem is some strange...
  14. K

    the values of the form is missing?

    Suppose I have two forms. one is Monitor, another is ConnectionProperties. When I click connect button from Monitor, the ConnectionProperties form is popped up. After inputting the data in the ConnectionProperties form and pressed OK, the ConnectionProperties is hidden. The source code of OK...
  15. K

    How to do telnet?

    Is there any component for VB.Net to do telnet?I've searched many websites that provides many telnet function. Such like PowerTCP, However, It's not free and so expensive. So, I would like to write it by myself. Any suggestion?
  16. K

    Crystal Reports in Vb.net problems

    What's the problem with that CrystalReportViewer?did I leave out installing any plugins?
  17. K

    Can Crystal Reports generate report like this?

    This table records that shifts of all staff, the following is the report structure. Can crystal reports generate this kind of report?
  18. K

    Question about Calendar Control

    Is there any way to implement multiple selection in Calendar Control? Can anybody post me the link about calendar mulitple selection. Thanks you:) :)
  19. K

    VB.Net Generate Excel Problem

    I've already try generate excel by using C#, It works exactly. private void Button1_Click(object sender, System.EventArgs e) { Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = ""...
  20. K

    How to generate Excel files in VB.Net?

    I've found that there is a namespace called Excel in VB.Net. However, I can't figure out how to use. Can anybody post some examples about generating Excel files. Thanks~
Back
Top