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
F

fififlowertot

@fififlowertot
About
Posts
44
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • jquery dialog autosize [modified]
    F fififlowertot

    Hi, I have a jquery dialog which loads another aspx page inside iframe. I want dialog to resize as per the contents inside Iframe. Tried setting

    width:'auto' and autoResize: true

    in the dialog constructor but no luck.

    modified on Wednesday, August 24, 2011 9:25 AM

    JavaScript javascript

  • repeater databinding @ server side
    F fififlowertot

    yes I had set the autogenerate columns as true and it works fine. Issue is I also had a jquery to select the selected row value and it ended up having lots of magic numbers for the colums in different states. Very difficult to understand and maintain. I want to access dataItem value on row click and hence trying to map dynamically . Thanks,

    ASP.NET sysadmin docker question

  • repeater databinding @ server side
    F fififlowertot

    Hi,
    I have a repeater in my aspx page. The datasource for this will change for different types of call hence I cannot do

                        <%#DataBinder.Eval(Container.DataItem, "Id")%>
    

    ...

    as the dataItem will be different. Which is the best way to do it server side?

    Thanks,

    ASP.NET sysadmin docker question

  • json object in repeater row click
    F fififlowertot

    :omg: no answers ?!

    JavaScript javascript docker json question

  • json object in repeater row click
    F fififlowertot

    Hi I have a repeater in my Jquery modal and onclick of row this is how i am creating an object with each column value for that row.

    <%#DataBinder.Eval(Container.DataItem, "Id")%>
    <%#DataBinder.Eval(Container.DataItem, "Name")%>
    <%#DataBinder.Eval(Container.DataItem, "details")%>
    

    This as I understanhd will give me a myObj json object on the click of row with row value. but how could i use this object to assign the values to say a textbox or value? also i need to acess this myObj object when i click a button on my modal to close it and pass this object back to main window.

    JavaScript javascript docker json question

  • jquery and html encoding
    F fififlowertot

    have a search grid and when I select any row and close it the values get mapped to textboxes in aspx form. Issue is evrytime I have a value like ' ab & cd' it gets mapped as ' ab & amp ; cd' I am finding the value as follows in the click event of tr

    $(this).find("td:nth-child(1)").html();

    Thanks

    JavaScript javascript html css help

  • Populating a textbox inside usercontrol thru jquery.
    F fififlowertot

    super thanks

    JavaScript question javascript hardware regex help

  • Populating a textbox inside usercontrol thru jquery.
    F fififlowertot

    Hi, I have a usercontrol embedded in my content page.This usercontrol has a text box in it. The label and regular expression validators on the page use ucid:txtboxid for associatedcontrolid/ControlToValidate respectively. Now i try to populate the textbox in usercontrol using jquery as follows: $("#<%= ucid:txtboxid.ClientID %>").val(myvalue); this gives a compilation error. I tried a few combinations of brackets but no luck.I then tried $("#<%= ucid.ClientID %>").val(myvalue); and it builds fine but value doesn't get assigned at runtime. How do I populate the usercontrol textbox? Thanks

    JavaScript question javascript hardware regex help

  • GridView Paging
    F fififlowertot

    Super. Thanks Sneha Bisht

    ASP.NET css sysadmin algorithms help

  • regular expression
    F fififlowertot

    Hi, I want to check if the string ends with '-0000' when all the remaining characters are numbers. I tried Regex.IsMatch(mystring, @"\d*(0){4}") but it returns true even when there is no '-' which regular expression to check with for a string which ends with '-0000'

    ASP.NET regex

  • GridView Paging
    F fififlowertot

    what do u mean by rebind, rewrite the code?

    ASP.NET css sysadmin algorithms help

  • GridView Paging
    F fififlowertot

    my page load checks if it's not postback it calls the gridview load which does what i've posted and i have seperate event handler.

    ASP.NET css sysadmin algorithms help

  • GridView Paging
    F fififlowertot

    my datasource is a list of objects returned from the service. Since I need to format it before displaying I convert it into a datatable and this datatable is datasource to the grid. I have stepped thru and found that datatable has populated fine with all the values. even the page comes up fine with all the data and 123 page links down. it's when i click page 2/3 link in pager that it goes blank. am using vs 2008 .net 3.5

    ASP.NET css sysadmin algorithms help

  • jquery wait
    F fififlowertot

    Hi , I on button click I open a jquery modal with iframe which loads another aspx page. Now this other aspx page makes a call to webservice and then loads data. I have the service call on the page load of this page. So there a gap between the modal window opens and the data load in it. How can I implement a wait gif or just a text like say 'processing' till the data loads? Thanks My code is as below

    <div id="mydiv" >
    <iframe id ="popup" width ="100%" height="50%"></iframe>
    </div>

    jquery/javascript

    function openDialog() {

            var url = "test.aspx?NAME=" + encodeURIComponent($("#<%=txtName.ClientID %>").val());            
            $("#popup").attr("src", url);
    
            $("#mydiv").dialog('open');
        }        
    

    $(document).ready(function() {

            $("#mydiv").dialog({
                autoOpen: false,
                modal: true,
                width: 500,
                scroll: true
    
            });
    
        });
    
    JavaScript javascript question

  • GridView Paging
    F fififlowertot

    yes my code is inside if (!IsPostBack) block.. but evrytime i click say page 2 the screen goes blank.

    ASP.NET css sysadmin algorithms help

  • GridView Paging
    F fififlowertot

    Hi, I have a grid which is bound to data coming from a service at runtime. The issue is every time i select next page number the page goes blank. My code is as follows: for grid in aspx

    <div>
    <asp:Label ID="Label1" runat="server" Text="Searching....." Font-Bold = "true"></asp:Label>
    <asp:GridView ID="grid1" runat="server" OnPageIndexChanging= "grid1_PageIndexChanged"
    AutoGenerateColumns="False" Enabled ="false" AllowPaging="True" PageSize="5">
    <Columns>
    <asp:BoundField DataField = "Name"/>
    <asp:BoundField DataField = "ID"/>
    </Columns></asp:GridView>

            </div>
    

    the codebehind(.cs) is typically is as follows:

    on pageload:

    grid1.Enabled = true;
    DataTable dt = new DataTable();
    dt.Columns.Add("Name");
    dt.Columns.Add("ID");
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    dt.Rows.Add("Jack", 1);
    dt.Rows.Add("Jill", 2);
    grid1.DataSource = dt;
    grid1.DataBind();

    protected void grid1_PageIndexChanged(Object sender, GridViewPageEventArgs e)
    {

        grid1.PageIndex = e.NewPageIndex;
        grid1.DataBind();
    }
    

    what am i missing here

    ASP.NET css sysadmin algorithms help

  • jquery grid paging and textbox event
    F fififlowertot

    Hi, I have a textbox on my aspx page and a search button. When I enter text in textbox and press search it populates the results in a jquery modal and on selection of one of the values returns me the data which gets mapped to various controls on the aspx page. My issue is how do I send the textbox values to the service? I tried using on text_chnaged where I call the service and load the data into grid and on click of the button i call the div to open. But this requires two clicks and is not a neat solution..:( as every time i click the searhc button it loads an empy window and on next click opens a window with the populated grid. please can you suggest how to overcome this. which even to be used load the data from service from also how to enable paging in jquery grid.

    JavaScript question javascript css help tutorial

  • Jquery Autocomplete
    F fififlowertot

    Thanks Gerben, I read it again and understood what u mean!!.. I was just wondering if it's possible to use a wcf with it? Also since this wcf is being used extensively and returns an object which is a list thanks,

    JavaScript javascript question

  • Jquery Autocomplete
    F fififlowertot

    I 've tried the following:

    <script type ="text/javascript">
    $(document).ready(function() {
    var a = $("input#names").val();

            $("#tags").autocomplete({
                url: "CodeFile1.cs\\SearchNames",
                data: $("input#names").val()
            });
            	    });
    </script>
    

    <div class="ui-widget">
    <label for="names">Names: </label>
    <input id="names" />
    </div>

    and my codefile is :

    public string[] SearchNames(string Name)
    {
    string [] Names = null;
    int i;
    i = 0;
    ServiceClient serviceClient = new ServiceClient();
    SearchResponse searchResponse = new SearchResponse();
    principalSearchResponse = bondInformationServiceClient.SearchPrincipals(principalSearchRequest);

                   foreach (Name name in SearchResponse.NameList)
            {
                Names \[i\] = name .nameField.ToString().Trim();
                i++;
            }
        }
    
    
        return Names ;
    }
    

    gives me an runtime error: object expected.

    JavaScript javascript question

  • Jquery Autocomplete
    F fififlowertot

    Hi, I have a dropdown list populated with the list of names on my aspx page. I want to use this as a data source for autocomplete in the name textbox. Which is the best way to do it in jquery?! Thanks,

    JavaScript javascript 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