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
S

Shimmy Weitzhandler

@Shimmy Weitzhandler
About
Posts
47
Topics
19
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • image and my.resources (wpf)
    S Shimmy Weitzhandler

    Take a look here[^]

    Shimi

    Visual Basic graphics csharp wpf help question

  • Looking for something that replaces the event DataGridView.SelectionChanging
    S Shimmy Weitzhandler

    meanwhile I am using CellMouseEnter this does the work though it reduces performance

    Shimi

    .NET (Core and Framework)

  • Looking for something that replaces the event DataGridView.SelectionChanging
    S Shimmy Weitzhandler

    what event happens immediately fater user changes the collection selection. I want to get access to the selected item collection before it is actually changed so I can either rollback or acces the previous selected collection indexes. thanks

    Shimi

    .NET (Core and Framework)

  • how can I set TextBox.ScrollBars to None or Both at call
    S Shimmy Weitzhandler

    this what I have made, and it does the trick (my WrapLines is set to false I didn't check when true): private void tbScroll(object sender, EventArgs e) { TextBox tb = (TextBox)sender; Size tS = TextRenderer.MeasureText(tb.Text, tb.Font); bool Hsb = tb.ClientSize.Height < tS.Height + int.Parse(tb.Font.Size); bool Vsb = tb.ClientSize.Width < tS.Width; if (Hsb && Vsb) { tb.ScrollBars = ScrollBars.Both; } else if (!Hsb && !Vsb) { tb.ScrollBars = ScrollBars.None; } else if (Hsb && !Vsb) { tb.ScrollBars = ScrollBars.Vertical; } else if (!Hsb && Vsb) { tb.ScrollBars = ScrollBars.Horizontal; } sender = (object)tb; } this event is raised at TextChanged and at ClientSizeChanged

    Shimi

    .NET (Core and Framework) question

  • how can I set TextBox.ScrollBars to None or Both at call
    S Shimmy Weitzhandler

    I want to create a method that maked the scrollbars of a textbox control visible only if needed. I tried to use the following method but it doesn't always work, because some times is the control's width much bigger than the Height (I am talking when the WordWrap is set to False): Private Sub TextBox1_TextChanged(ByVal sender As TextBox, ByVal e As System.EventArgs) _ Handles TextBox1.TextChanged, TextBox1.Resize, TextBox1.FontChanged Dim fS As Size = TextRenderer.MeasureText(sender.Text, sender.Font) Dim cS As Integer = fS.Height * fS.Width Dim dS As Integer = sender.Size.Height * sender.Size.Width If dS < cS Then sender.ScrollBars = ScrollBars.Both Else sender.ScrollBars = ScrollBars.None End If End Sub so here is some findings about the text box's control behaviour, maybe it's gonna be useful:

    these numbers just bellow (123456) charachterize th number of lines
        1 	2 	3 	4 	5 	6 	
    

    10 6 22 38 54 70 86 16^
    11 6 24 42 60 78 96 18^
    12 6 26 46 66 86 106 20^
    13 6 28 50 72 94 126 22^
    0 2 4 6 8 10 ^the numbers in this col. are the control's increment per font against line
    ^this column is the textbox's font's size

    the numbers within the table (6,22,38~72,94,126) are the Size.Height of the control, corresponding to font size and line numbers.

    well I don't want to waste your time, does any body have any solution? thanks for your time.

    Shimi

    .NET (Core and Framework) question

  • how do I refresh a page?
    S Shimmy Weitzhandler

    can you provide the line which refreshes the gridview against the database please? (I'm using an ObjectDataSource to a webservice database, and the database is sometimes updated by other external applications, I want the user to have a refresh button which retrieves the data from db anew). the GridView.DataBind() doesn't help. I prefer to do it by the ASP.NET CLR code rather then by javascript. best regards

    Shimi

    modified on Friday, February 8, 2008 2:13 AM

    ASP.NET question css database tutorial

  • how do I refresh a page?
    S Shimmy Weitzhandler

    when I insert a new row to the database (the adding controls are in the same page) I want after the adding action the grid view to retrieve the updated data from database adding DataBind or GridView.DataBind() after the insertion does not do the trick.

    Shimi

    ASP.NET question css database tutorial

  • how do I refresh a page?
    S Shimmy Weitzhandler

    i have two qustions: 1: how do I refresh the page generally 2: I have a gridview and after I make changes in the data I want the datasource or the grid view to refresh them selves, briefly I want to know how to refresh the gridview content against the database \ datasource

    Shimi

    ASP.NET question css database tutorial

  • how do I access a html element from code
    S Shimmy Weitzhandler

    I have created in my aspx file an input text html element which doesn't include the runat=server property. how do I access this control and its methods by the C# codebehind?

    Shimi

    ASP.NET question csharp html sysadmin

  • simple: need help handling a gridview against parameters
    S Shimmy Weitzhandler

    <%@ Page Language="C#" %> <html> <body> <form id="form1" runat="server"> <div> firstname:<asp:TextBox ID="TextBox1" runat="server"/> <br /> lastname:<asp:TextBox ID="TextBox2" runat="server"/> <br /> <asp:Button ID="Button1" runat="server" Text="Submit" /> <br /><br /> <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" /> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="returnByName" TypeName="myService.Service"> <SelectParameters> <asp:ControlParameter ControlID="TextBox1" Name="firstName" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBox2" Name="lastName" PropertyName="Text" Type="String" /> </SelectParameters> </asp:ObjectDataSource> <br /> </div> </form> </body> </html> I want that when the user clicks the button the gridview should be filtered by the parameter values in textbox1 & 2.

    Shimi

    ASP.NET csharp html sysadmin help

  • when I change the file extension from html to aspx all the javascripts that are supposedn to design the page with XSL and HTC doesn't work.
    S Shimmy Weitzhandler

    "when I change the file extension from html to aspx all the javascripts that are supposedn to design the page with XSL and HTC doesn't work." next time I'll use the title textbox for a brief message and write the quetion in the body now, could you please pay attention to my problem

    Shimi

    ASP.NET html design xml

  • when I change the file extension from html to aspx all the javascripts that are supposedn to design the page with XSL and HTC doesn't work.
    S Shimmy Weitzhandler

    pmarfleet (Paul Marfleet) wrote:

    Did you forget to ask a question?

    my question is in the title

    Shimi

    ASP.NET html design xml

  • when I change the file extension from html to aspx all the javascripts that are supposedn to design the page with XSL and HTC doesn't work.
    S Shimmy Weitzhandler

    I'm talking with you about an aspx file within an ASP.NET project, of course I can debug such a file. it doesn't matter, if it includes the %@page tag it works and all the works. but in this case the java scripts doesn't work for me. <div class="ForumSig">Shimi</div></x-turndown>

    ASP.NET html design xml

  • when I change the file extension from html to aspx all the javascripts that are supposedn to design the page with XSL and HTC doesn't work.
    S Shimmy Weitzhandler

    Paddy Boyd wrote:

    You can't just change a file extension and expect it to work...

    why? usually, when I change the extension to .aspx, I just have to add the <%@page%> tag and it works. when the 's property 'language' is set to javascript the server automatically knows that it's client code. only in this case I'm in now it does not work. <div class="ForumSig">Shimi

    ASP.NET html design xml

  • when I change the file extension from html to aspx all the javascripts that are supposedn to design the page with XSL and HTC doesn't work.
    S Shimmy Weitzhandler

    I didn't forget to add the <%@page%>

    Shimi

    ASP.NET html design xml

  • Coonection Strings in web.config
    S Shimmy Weitzhandler

    yes you configure a connection string programmatically in every class on your application. of course, I'm sure you wated the conection strings to be saved in the settings, ypu could do it by adding the necessarily references. as well you can use your dataset designer to do it.

    Shimi

    ASP.NET csharp asp-net question

  • call asp.net members from html page
    S Shimmy Weitzhandler

    could you explain to me how to this please? I mean, what I'm trying to do is to use a method \ function from VB\C#.NET compiled class in the App_Code folder from a simple html page at the OnClick etc. event that has been raised via a HTML and other pure client controls\events.

    Shimi

    ASP.NET question csharp html asp-net

  • call asp.net members from html page
    S Shimmy Weitzhandler

    I don't know to perform both of your suggestions

    Shimi

    ASP.NET question csharp html asp-net

  • call asp.net members from html page
    S Shimmy Weitzhandler

    let's say I have a page page.aspx, it includes a class named SampleClass and a method name myMethod. I want to call this method from a HTML page. how do I do this?

    Shimi

    ASP.NET question csharp html asp-net

  • How to use www.sample.com?sample=sample
    S Shimmy Weitzhandler

    I have a login page made in ASP.NET C#. i want to create a response for logout for example a void in the c# code that when the ?action=logout is attached to the end of the address this void should be ran.

    Shimi

    ASP.NET csharp tutorial asp-net com question
  • Login

  • Don't have an account? Register

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