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

scar_face

@scar_face
About
Posts
52
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Images not getting displayed
    S scar_face

    i had tried givin that path but it dint work ..

    scarface

    ASP.NET database sysadmin

  • Images not getting displayed
    S scar_face

    thanks christian.. i think thats the reason..checking on it..

    scarface

    ASP.NET database sysadmin

  • Images not getting displayed
    S scar_face

    Hi, I am trying to load images in my login page,but they are not getting displayed.I am also using image button for images of submit and reset.Tried using ~ but still not getting displayed.

    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/img snip.jpg" Style="z-index: 100;left: 78px; position: absolute;
    top: 189px" AlternateText="img" />

    scarface

    ASP.NET database sysadmin

  • calendar control
    S scar_face

    hey, thanks for such a quick reply.... i have a button, which when clicked, opens the calendar(calendar is inside a div whose display is none in the begining. when button is clicked, the display is 'block', so the calendar shows up.) but when a value is selected in a calendar(server control), the whole page is refreshed and the div display is 'none' again. this happens everytime i click on the calendar control....

    scarface

    ASP.NET help

  • calendar control
    S scar_face

    hi, i am using an asp calendar control. i have written code for onSelectedIndexChange for the calendar control. but whenever i click on the calendar control, the whole page is getting refreshed. there is no autopostback property in the calendar control to stop refreshing the page. can anybody help me plz....

    scarface

    ASP.NET help

  • calendar control
    S scar_face

    there is no autopostback property for a calendar control...

    scarface

    ASP.NET question

  • calendar control
    S scar_face

    But i am not getting the autoPostBack property for the calendar control..........

    scarface

    ASP.NET question

  • calendar control
    S scar_face

    hi, i have a calendar control in my .aspx file. every time i select a date from the calendar control, the whole page is getting refreshed. i am displaying the selected date from calendar to a text box. how can i stop it from refreshing the whole page?

    scarface

    ASP.NET question

  • page refresh at the click of a button....
    S scar_face

    hi frns, I have a button, on the click of which the whole page is getting refreshed. I am using it only to make a div display as 'block' or 'none'. Is there any other way than using AJAX to stop refreshing the whole page?

    scarface

    ASP.NET question

  • label font and textbox sizes
    S scar_face

    Hi frns, I have some labels, textboxes and buttons in my forms. The problem that i am facing is that whenever i click on the buttons, my label font sizes get increased and textbox size get decreased. I have used skinfile for labels, textboxes and buttons. Can anyone help me please......

    scarface

    ASP.NET help

  • Drop Down Z-index
    S scar_face

    hi, I have a drop down list box and a menu bar above it. The menu bar produces drop down sub-menus on mouse over. But the Drop down list box is being displyed over the menu option. What can i do to display the sub-menus above drop down list. I am not able to get the z-index property for drop down list.... I am creating the menus in the master page, and the drop down list boxes are in some other .aspx files.

    scarface

    ASP.NET database

  • Drop down list z-index
    S scar_face

    hi, I have a drop down list box and a menu bar above it. The menu bar produces drop down sub-menus on mouse over. But the Drop down list box is being displyed over the menu option. What can i do to display the sub-menus above drop down list. I am not able to get the z-index property for drop down list....

    scarface

    ASP.NET database

  • Displaying menu items
    S scar_face

    hi all, Can anyone please tell me how to write the menu items in one file and display it in all the aspx pages???

    scarface

    ASP.NET

  • button onclick method written in javascript
    S scar_face

    Hi, I have a button in my .aspx file and i have written a method called btnGetDetails() in javascript. But when i run the file, its saying ASP.something_aspx does not contain a definition for btnGetDetails(). Can anybody help me please........

    scarface

    ASP.NET

  • Crisis with a dynamically created drop down list
    S scar_face

    Here's the deal! I'm creating two drop down lists dynamically in a GridView control and populating the second dropdownlist(let's call it ddl2 from now on) on the basis of the selection on the first dropdownlist control. The crisis is that, for multiple rows on the gridview the ddl2 starts appending values to itself and therefore ends up having repeats of the data it should originally hold. How do I stop this repeat from happening? My code is as below.

    <asp:GridView ID="grd" runat="server" OnRowDataBound="grd_RowDataBound"> <Columns> <asp:TemplateField HeaderText="names"> <ItemTemplate> <asp:DropDownList ID="name" runat="server" OnSelectedIndexChanged="onSelectChangeddl"></asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="age"> <ItemTemplate> <asp:DropDownList ID="age" runat="server" AutoPostBack="true"> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>

    In c# code, i am trying to change the values of the second drop down list based on the value selected in the first. I am doing this as below:

    foreach (GridViewRow row in grd.Rows) { DropDownList ddl1 = (DropDownList)row.FindControl("name"); DropDownList ddl = (DropDownList)row.FindControl("age"); if (ddl.SelectedValue.ToString() != "---Select---") { } else { ddl.Items.Clear(); } SqlCommand SPComm = new SqlCommand("someStoredProcedure", myConn); SPComm.CommandType = CommandType.StoredProcedure; SqlParameter param = SPComm.Parameters.Add("@something", SqlDbType.NVarChar, 50); param.Value = something; dr = SPComm.ExecuteReader(); //dr is sqlDataReader int i = 0; while (dr.Read()) { ddl.Items.Insert(i, dr.GetString(0)); } dr.Close(); ddl.Items.Insert(0, "---Select---"); }

    In the above code, all the values in the second drop down list are getting duplicated based on the selected index changed event handler of the first drop down list. Can anyone help me with this? Been trying all kinds of stuff with this since three weeks now! H-e-L-p!

    scarface

    ASP.NET question csharp database sysadmin help

  • Drop down list selected value changed
    S scar_face

    hi, can we check if the selected value of the drop down list box has been changed?

    scarface

    ASP.NET question

  • Drop Down Lists
    S scar_face

    Please have a look at my code:

    <asp:GridView ID="grd" runat="server" OnRowDataBound="grd_RowDataBound">

    <Columns>

    <asp:TemplateField HeaderText="names">

    <ItemTemplate>

    <asp:DropDownList ID="name" runat="server" OnSelectedIndexChanged="onSelectChangeddl"></asp:DropDownList>

    </ItemTemplate>

    </asp:TemplateField>

    <asp:TemplateField HeaderText="age">

    <ItemTemplate>

    <asp:DropDownList ID="age" runat="server" AutoPostBack="true">

    </asp:DropDownList>

    </ItemTemplate>

    </asp:TemplateField>

    </Columns>

    </asp:GridView>

    In c# code, i am trying to change the values of the second drop down list based on the value selected in the first. I am doing this as below:

    foreach (GridViewRow row in grd.Rows)
    {
    DropDownList ddl1 = (DropDownList)row.FindControl("name");
    DropDownList ddl = (DropDownList)row.FindControl("age");

    if (ddl.SelectedValue.ToString() != "---Select---")

    {

    }

    else

    {

    ddl.Items.Clear();

    }

    SqlCommand SPComm = new SqlCommand("someStoredProcedure", myConn);

    SPComm.CommandType = CommandType.StoredProcedure;

    SqlParameter param = SPComm.Parameters.Add("@something", SqlDbType.NVarChar, 50);

    param.Value = something;

    dr = SPComm.ExecuteReader(); //dr is sqlDataReader

    int i = 0;

    while (dr.Read())

    {

    ddl.Items.Insert(i, dr.GetString(0));

    }

    dr.Close();

    ddl.Items.Insert(0, "---Select---");

    }

    In the above code, all the values in the second drop down list are getting duplicated based on the selected index changed event handler of the first drop down list.

    scarface

    ASP.NET help

  • Drop Down Lists
    S scar_face

    Hi, I am trying to create two sets of drop down lists in a gridview. If i change the index of the first drop down, the values of the corresponding drop down should change. I used event handler for the first drop down, but if i change the index of any one of the drop downs in the first set, all the values of second drop downs are getting changed.

    scarface

    ASP.NET help

  • Drop Down Lists
    S scar_face

    Hi friends, I want to create drop down lists for all the rows of a gridview. But i dont want to use TemplateField because i want to give different id's for all drop downs. Can anybody help me please.

    scarface

    ASP.NET help

  • Drop down list inside the itemTemplate in template Field of a gridview
    S scar_face

    Hi all, I am generating drop down list boxes for every row of the gridview using the itemTemplate in template Field, i want to give different ID's for each drop down list, how can i do it??? Please help.........

    scarface

    ASP.NET question help
  • Login

  • Don't have an account? Register

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