Search

You searched for the word(s): userid:46418

Matching Posts

  • Debug Stored Proc in VS.net 2005

    Hi everyone, In VS.net 2003, there is an option where I can enable debugging of stored procedure. But I cannot find this option in VS.net 2005. Without setting this option, when I try to debug stored proc in VS2005, the breakpoint is always grayed out and the message tells me the breakpoint will not be hit. Do you know where is the option in VS.net 2005? Thank you. henry
    Posted to Data Presentation Controls (Forum) by weiwei99 on 5/10/2005
  • variables in shared sub

    I asked the similar question 4 months ago. http://forums.asp.net/809922/ShowPost.aspx
    Posted to Microsoft Application Blocks (Forum) by weiwei99 on 5/6/2005
  • Create MyDB Object for every database operation?

    Hi everyone, When I use Data Access Application Block, I don't use it directly in each webform. Instead, I put all the codes into a Class file: Public Class MyDB Public Function GetContact(ByVal UsrID as int32) ...... Public Sub UpdateContact(....) ...... End Class Then in the webform, I will use some code like this: Dim oMyDB as MyDB=new MyDB Contact=oMyDB.GetContact(UsrID) For each database operation, I have to create this oMyDB object and later it will be destroy automatically by garbage collection
    Posted to Microsoft Application Blocks (Forum) by weiwei99 on 5/6/2005
  • Lifetime of DataSource?

    Hi everyone, On my webform, I have: a SqlDataSource, a GridView (bound to the datasource), I have set GridView.AllowSorting=true. User first request this page----Step 1 Then he click on the column head to sort the GridView----Step 2 Now based on my experiment, these two steps cause the SqlDataSource to query the Database twice (if we don't consider any cache feature). Originally I want to set SqlDataSource.DataSourceMode=DataSet, hoping the second request can simply reuse the dataset. But the lifetime
    Posted to Data Presentation Controls (Forum) by weiwei99 on 5/5/2005
  • How to wrap the literal control?

    Hi everyone, In my application, after user input some text in page 1, I then need to display them on a confirmation page, page 2. The problem is that if user input a long line of text or simply copy a large block of text, page2 will not be able to wrap the text. So page2 will be extremely wider than the screen and user has to scroll painfully. I try both literal control and label control to display the text. None of them has wrap property. I tried to specify the width of the label and the width of
    Posted to Data Presentation Controls (Forum) by weiwei99 on 5/4/2005
  • Re: OldValues in the FormView_ItemUpdating event

    Actually, if I debug the program and check the value of e e As System.Web.UI.WebControls.FormViewUpdateEventArgs I find that e.OldValues.count=0 and e.NewValues.count=11
    Posted to Data Presentation Controls (Forum) by weiwei99 on 4/2/2005
  • OldValues in the FormView_ItemUpdating event

    Hi everyone, I try to retrieve the oldvalues of a record in FormView_ItemUpdating event. But the following code return nothing. e.OldValues("Host").ToString while e.NewValues("Host").ToString does return the new value. Host is a field bound to a textbox for user input. Could you please tell me why? Thank you. Henry
    Posted to Data Presentation Controls (Forum) by weiwei99 on 4/2/2005
  • CheckboxList binding selection field

    Hi everyone, CheckBoxList has only two bindable properties: text and value. I strongly suggest that CheckBoxList should have the third bindable property: selected. Then we will be able to have a datasource listing Text, Value, Selected and bind the CheckBoxList to this datasource. Currently, if CheckBoxList is placed inside a FormView, etc, we can bind its SelectedValue. However, unlike RadioButtonList, CheckBoxList allows multiple choices. Binding SelectedValue only allow one choice which is not
    Posted to Data Presentation Controls (Forum) by weiwei99 on 3/29/2005
  • How to implement TextList?

    Hi everyone, How can I create a list which contains many text items and allow programatically insertion? We know that, for RadioButtonList or CheckBoxList, we can write such code: RadioButtonList1.Items.Add("Choice1") Now I want to do the similar things with text: TextList1.Items.Add("hello") However, there is no TextList control in asp.net 2.0, the close one will be BulletedList. But BullitedList always show a bullet, and it doesn't allow horizontal RepeateDirection. I know I can use datalist or
    Posted to Data Presentation Controls (Forum) by weiwei99 on 3/28/2005
  • Is membership.createuser really useful?

    Hi everyone, I am still learning membership feature. It seems to me that the membership.createuser is not useful in real-world applications. When a user sign up, we ask for some more info, such as company name, country, zip code, etc. And then we will insert a record into User table for him. This record contains fields more than just username, password and email. Besides the personal info I mention aboved, this record might contain some more application-specific field, such as Balance=0. Also, we
    Posted to Security (Forum) by weiwei99 on 3/20/2005
Page 1 of 6 (53 items) 1 2 3 4 5 Next > ... Last »