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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

cool_man

@cool_man
About
Posts
19
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Please help for a trouble with server form validate...
    C cool_man

    I had a server form:

    First Name
    Last Name
    I want to make the validate for this form in the follow rule: - If User specify FirstName they must provide the LastName too. - If User not specify FirstName they not need provide the LastName Anyone can help me, please? Thanks!

    ASP.NET sysadmin help question

  • how can use web control in List Controls?
    C cool_man

    I want to put some web control in some list control. Please help me, how can I access to these control method, property?

    ASP.NET question help

  • the selectList can't make selected in Netscape...
    C cool_man

    I want to make a select box in a Javascript function, this is my code: var val = new Array('0','1','2','3','4','5'); var lis = new Array('java','php','asp','jsp','vbscript','jscript'); function makeOption(obj,selectID) { obj.options[0] = new Option(lis[0],val[0],false,false) for(i=1;i<lis.length;i++) if (val[i]==selectID){ obj.options[i] = new Option(lis[i],val[i],false,true); } else{ obj.options[i] = new Option(lis[i],val[i],false,false); } } var selectID = 3 makeOption(document.form1.ProgramList,selectID); The trouble is in Netscape the selectlist can't make selected with selectID("asp"), the selectlist its always select the first item "java". But this code run correct in IE. Is Anybody can help me, please? Thanks for all response!

    Web Development java javascript php data-structures help

  • Help me about validate form use javascript!!!
    C cool_man

    Thank you very much :-)

    Web Development javascript help question

  • Help me about validate form use javascript!!!
    C cool_man

    I had a form like this: Type 1 Type 2 Type 3 Red Green Blue When Submit I want to use javascript check user had check at least one value in radio and checkbox but I dont want to use default "checked" for radio or checkbox. Can u help me, please? Thanks

    Web Development javascript help question

  • how to include a DropDownList in to the DataList for EditItem?
    C cool_man

    Ex: I have 2 table: ParentCategory(PID,Name) ChildCategory(CID,Name,PID) I bind ChildCategory table to a datagrid with columnbound(Name,PID) when edit datagrid, I include a dropdownlist with BindData from ParentCategory table, but I can't make selected Item(PID) for this dropdownlist. Can u help me please? Thanks

    ASP.NET tutorial database sysadmin help question

  • how to include a DropDownList in to the DataList for EditItem?
    C cool_man

    Thank Steve! I want to control a selected Item when the dropdownlist show in EditItemTemplate, how can i do that? Help me, please...

    ASP.NET tutorial database sysadmin help question

  • how to include a DropDownList in to the DataList for EditItem?
    C cool_man

    Thanks, Steve McLenithan!

    ASP.NET tutorial database sysadmin help question

  • how to include a DropDownList in to the DataList for EditItem?
    C cool_man

    I had 2 table in database Category(CategoryID, Name) ChildCategory(ChildCategoryID,Name,CategoryID) I want to use DataList for edit the ChildCategory table in EditItemTemplate I write: runat="server"/> runat="server"/> The textbox CategoryID will show the value that reference to the Category(CategoryID). But I want to use a DropDownList for use select from a list that select from Category table. Have anyone experience with this case, please help me to create it step by step...Thank a lot.

    ASP.NET tutorial database sysadmin help question

  • help me in show data with list control
    C cool_man

    I had 2 table: Category and ChildCategory in the database. Category(CategoryID, Name) ChildCategory(ChildCategoryID,Name,CategoryID) I want to show data like: Web Program (Category) ---- ASP (ChildCategory of this Category) ---- PHP (ChildCategory of this Category) ---- JSP (ChildCategory of this Category) Web Design (Category) ---- Photoshop (ChildCategory of this Category) ---- Illustrator (ChildCategory of this Category) ---- Dreamweaver (ChildCategory of this Category) Please help me to show this data with any control list(datagrid, datalist, or repeater). Thanks.

    ASP.NET adobe java php database design

  • datagrid editable error
    C cool_man

    anyone help me please...

    ASP.NET help html database sysadmin

  • datagrid editable error
    C cool_man

    I have bound data with datagrid dim ConnStr As String ConnStr="Data Source=localhost; Initial Catalog=yellowpage; User ID=sa; Password=admin;" dim myConnection As SqlConnection myConnection=New SqlConnection(ConnStr) dim sql As String sql="Select * from District Order by " & sortField dim mySqlAdapter As SqlDataAdapter mySqlAdapter= New SqlDataAdapter(sql,myConnection) dim ds as New DataSet mySqlAdapter.Fill(ds,"District") objDataGird.DataSource=ds.Tables("District").defaultView objDataGird.DataBind() sql="Select * from County " mySqlAdapter= New SqlDataAdapter(sql,myConnection) mySqlAdapter.Fill(ds,"County") In html code: I use the edit able datagrid runat="server"/> runat="server"/> But I receiced server error: Name 'ddlCountyID' is not declared ddlCountyID in objDataGird. Help me pls....

    ASP.NET help html database sysadmin

  • Datagrid Editing Capability trouble
    C cool_man

    I have one big trouble in write aspx. I 'm writing a page for user edit database, i used datagrid with Editing Capability. My database structure: CountyID Name 1 Adfsdf 2 Sdfvdf 3 Escvc 4 Dsdfn DistrictID Name CountyID 1 Dist 1 1 2 Dist 2 2 3 Dist 3 3 My page for user change data in District table. I had write: runat="server"> TextMode="SingleLine" runat="server"/> runat="server"/> '============================================================= 'BUT IN HERE I WANT TO SHOW A DROPDOWNLIST WITH SELECT ALL FIELD FROM COUNTY TABLE FOR USER CHOOSE ONE VALUE (by default it's a textbox) TextMode="SingleLine" runat="server"/> '============================================================= How can i do that? Pls, anyone had experience with this case, help me...thanks

    ASP.NET question database sysadmin help

  • trouble with dropdownlist on selectedIndex property
    C cool_man

    I had a function to create one dropdownlist: CountyID Name 1 sdf 2 rfd 3 fdf 4 tgg 5 dert sub SelectCountyList(Optional key As Integer=1) dim ConnStr As String ConnStr="Data Source=localhost; Initial Catalog=dtn; User ID=; Password=;" dim myConnection As SqlConnection myConnection=New SqlConnection(ConnStr) dim sql As String sql="Select * from County order by Name" dim mySqlAdapter As SqlDataAdapter mySqlAdapter= New SqlDataAdapter(sql,myConnection) dim ds as New DataSet mySqlAdapter.Fill(ds,"County") CountyDDList.DataSource=ds.Tables("County").defaultView key=ds.Tables("County").defaultView CountyDDList.DataBind() CountyDDList.SelectedIndex = key end sub I want to create a dropdownlist with the key parameter is value in database. ex: SelectCountyList(2) mean CountyDDList will selected "rfd" in we call the function BUT with CountyDDList.SelectedIndex = key that will selected in CountyDDList position 2( not is CountyID=2 ). Anyone help me, pls....Thanks

    ASP.NET database help

  • how to control a data before show with repeater???
    C cool_man

    Hi all, I have a problem when show data in repeater control. I want to control data(ex: check is Null OR ="") before show in webpage like: Name: <%#Container.DataItem("Name")%> Email: <%#Container.DataItem("Email")%> When data in <%#Container.DataItem("Email")%> is Null(=""), it's show: Name: XYZ Email: I want to show like Name: XYZ Email: none Please help, thanks for any response.

    ASP.NET help docker tutorial question

  • Help!! passing data from the form through page???
    C cool_man

    Thanks, But How do I save the value from the form to another page aspx? EX: txtName.value txtAddress.value In 2.aspx I can't call that...

    ASP.NET csharp help question

  • Help!! passing data from the form through page???
    C cool_man

    In 1.aspx page I have a form:

    I want passing data when user submit to the 2.aspx page. How a programer .net usually do it? Have anyone help me please?

    ASP.NET csharp help question

  • use datareader browse dataabse???
    C cool_man

    Thank you very much. It's different with asp3, we can use only one connection for all recordset.

    ASP.NET help csharp php asp-net database

  • use datareader browse dataabse???
    C cool_man

    I want to browse data fields with 2 datareader but in ASP.NET is it not done? Example: I have a table: [category] ID int primary key, Name varchar, SubID int default=0 ID Name SubID 1 Design 0 2 Web 0 3 Coding 0 4 Asp 3 5 Php 3 In webpage I want to browse this table like: Coding --Asp 'child of Coding --Php 'child of Coding Design Web With this case, I had think, I use 2 query and 2 datareader(like recordset) query 1: I collect all ID with SubID=0 "select * from Category where SubID=0" then I make a datareader for this query: dim myReader As SQLDataReader myReader = oCmd.ExecuteReader() now I use this datareader to browse data: While myReader.Read() response.write(myReader.Item("Name") & "
    ") 'with each ID I want to browse its child Category 'I make query 2: "select * from Category where SubID="&myReader.Item("ID") 'then I make a new datareader this query2 'dim myReader2 As SQLDataReader myReader2 = oCmd2.ExecuteReader() 'browse Child for this ID While myReader2.read() response.write("--"&myReader2.Item("Name") & "
    ") End While myReader2.Close() End while myReader.Close() I seem right for asp code(use recordset) but ASP.net have error: There is already an open DataReader associated with this Connection which must be closed first. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: There is already an open DataReader associated with this Connection which must be closed first. I try to replace with another Connection but I sitll error. Datareader in ASP.NET can not use like that??? anyone had experience with this case? Please help me, thanks

    ASP.NET help csharp php asp-net database
  • Login

  • Don't have an account? Register

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