Search results for query: *

  • Users: kpao
  • Order by date
  1. K

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

    Sorry, I have made a mistake about the CType. My original code is the following. 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...
  2. 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...
  3. K

    User.Identity is always null

    I found the problem already. What cause this problem is the server name. The name of my server contains "_" character. IIS may not handle this case. So, if anyone who has ever met the similiar issue, please pay attention on your server name.
  4. 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...
  5. K

    Problem about using WebClient DownloadFile

    I found the solution finally. The reason why I got this error message is leaving out to indicate the proxy server to the WebClient. The internet of my office is managed by a proxy server. So, I changed the code to the following: Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As...
  6. K

    Problem about using WebClient DownloadFile

    Sorry, may be my threads misunderstand you. I have edited my post. Dim myWebClient As New WebClient myWebClient.DownloadFile(New Uri("http://www.google.com"), Request.MapPath("Files\") & "google.htm") Dim myWebClient As New WebClient...
  7. 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")...
  8. K

    Regular Expression Questions

    thank you very much~~!
  9. 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...
  10. 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?
  11. K

    question about string.replace

    Is it possible to do the following: String : "I am in office now" Replacement : "I am in e1ffice ne2w"
  12. 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?
  13. 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...
  14. K

    The problem of HttpWebRequest in .Net 2.0

    Thanks you very much. JohnH
  15. 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 =...
  16. 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...
  17. 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...
  18. K

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

    Have you ever tried this function in VB.Net window applicaion? Convert.ToString('Something you want to convert')It is not a legal syntax because 'Something you want to convert' is a comment in VB.Net. I've tried to correct to Convert.ToString("Something you want to convert") It still doesn't work.
  19. 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...
  20. 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...
Back
Top