Search

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

Matching Posts

  • The Handles clause

    I am new to asp.net and c#. I am trying to convert some vb code that uses a handles clause. What does the handles clause do and how would you typically replace it in c#?
    Posted to Getting Started (Forum) by gringoese on 1/20/2009
    Filed under: handles
  • Re: Change Repeater presenation after x amount of loops

    Thanks, one other thing. If I am using the Eval method in my HTML and I need something like the following: <li><%# Eval("location") %></li> to disappear after 10 rows are printed is there a way to set it so that it is not visible or do I have to do this a different way?
    Posted to Data Presentation Controls (Forum) by gringoese on 12/16/2008
  • Change Repeater presenation after x amount of loops

    I am using a repeater to loop through results from a database. I need to change the presentation after a certain amount of results have been displayed. Below is what I normally do when I don't need to change the results. I figure the best way to accomplish this is set a count on the repeater using the itemdatabound event but I am not sure how to do this with C#. protected void Page_Load( object sender, EventArgs e) { if (!Page.IsPostBack) { SqlConnection conn; SqlCommand comm; SqlDataReader reader;
    Posted to Data Presentation Controls (Forum) by gringoese on 12/16/2008
    Filed under: repeater count
  • Re: Adding attributes to the body tag using c#

    I changed <body> to <body id="body" runat="server"> and I tried each version of the statements below, but it did not work. Body.Attributes.Add("class", "classname"); Page.Body.Attributes.Add("class", "classname"); Body.Attributes.Add("id", "idname"); Page.Body.Attributes.Add("id", "idname"); Any other suggestions?
    Posted to Web Forms (Forum) by gringoese on 10/14/2008
  • Adding attributes to the body tag using c#

    I would like to dynamically add attributes to the body tag using C#. I know I can add attributes to the form tag using the following code: protected void page_load( object sender, System.EventArgs e) { Page.Form.Attributes.Add( "class" , "classname" ); } This doesn't work for the body tag. Is there another way to add attributes to the body tag (or any other tag for that matter) using C#? I also tried adding runat="server" to the body tag. I'd rather not do this
    Posted to Web Forms (Forum) by gringoese on 10/14/2008
  • Re: Errors in Web Site Administration Tool when Roles are Enabled

    >> Check the property of the assembly. I just copied that out from the config file. Well I checked the "type" attribute of the "add" Element for providers for membership at http://msdn.microsoft.com/en-us/library/whae3t94(VS.80).aspx , but they don't really give any explanation of culture or PublicKeyToken. If I find more I'll post it here. >> You can put it in your web.config file. I had already put the add/remove for SQL Server 2000/LocalSqlServer within
    Posted to Configuration and Deployment (Forum) by gringoese on 10/2/2008
  • Re: Errors in Web Site Administration Tool when Roles are Enabled

    Hey that seems to have worked! Thanks a lot! What is "culture" and "PublicKeyToken" for and are they required? If so where do you get the "PublicKeyToken" from? When you say, an easier method is to "set up localSqlServer connection string to point to the same database server", do you mean by changing it in machine.config or some other way?
    Posted to Configuration and Deployment (Forum) by gringoese on 9/30/2008
  • Re: Errors in Web Site Administration Tool when Roles are Enabled

    My intention is to not use LocalSqlServer. I am trying to use SQL Server 2000 instead of LocalSqlServer and adding the following code does the trick - except when trying to "Create or Manage roles" or "Create access rules": < connectionStrings > < add name= "sqlConn" connectionString= "Server=SQLSERVERNAME; Database=SQLDATABASE; User Id=example; password= password" providerName= "System.Data.SqlClient" /> < remove name= "LocalSqlServer"
    Posted to Configuration and Deployment (Forum) by gringoese on 9/30/2008
  • Errors in Web Site Administration Tool when Roles are Enabled

    I am getting errors from the Web Site Administration Tool only when Roles are enabled. If I don't enable Roles everything seems to be fine. Once Roles are enable I get the error if I click Create or Manage roles or Create access rules. Also, I am using SQL Server 2000, not SQL Express. Anyone have any idea what is wrong? Here is the error message: An error was encountered. Please return to the previous page and try again. The following message may help in diagnosing the problem: The connection
    Posted to Configuration and Deployment (Forum) by gringoese on 9/29/2008
  • Add logic to web.sitemap?

    I know it's probably not possible since it's an XML file, but is there any way to add logic (C# code) to web.sitemap?
    Posted to Getting Started (Forum) by gringoese on 9/22/2008
Page 1 of 5 (47 items) 1 2 3 4 5 Next >