Jump to content
Xtreme .Net Talk

wessamzeidan

Avatar/Signature
  • Posts

    382
  • Joined

  • Last visited

Everything posted by wessamzeidan

  1. Dim cn As New SqlConnection("...connectionstring here...") Dim qry as String="insert into table(field1,field2....) values('" & textbox1.text & "','" & textbox2.text & "','.......... Dim cm as New SqlCommand(qry,cn) cn.Open() cm.ExecuteNonQuery() cn.Close() I hope this helps
  2. use Array.sort(arr)
  3. I'm not sure but I think you have to update your windows installer
  4. Is there a way I can do it using a sql query. I'm using MSSQL.......
  5. If you already have a function that encryptes your string, define it in your code behind, and use it in your aspx file like this <asp:HyperLink id="buy" target="_blank" runat="server" navigateurl='<%# "buy.aspx?productid=" & myEncFunction(Container.DataItem("productid")) & "&price=" & myEncFunction(Container.DataItem("price")) %>' >BUY</asp:HyperLink>
  6. you can use this OraDataAdpt.UpDate(OraDataSet, "TEST_A")
  7. http://www.phpmyadmin.net
  8. Example of Datalist Paging Hope this helps
  9. 1. If you have the height of the datalist set to a number, remove this number, keep the height empty. 2. myDataList.DataSource=myDataReader myDataList.DataBind()
  10. Hi, does any one know how to get the names of fields of a certain table in a database? I need some sort of query in which I give it the name of a table and returns back its fields names.....
  11. What do you mean? Do you want to display as a normal html file or you want to process it in some way?
  12. So it worked......good. But I have a question for you, when you recreate the control, are you able to read the values entered by the user in this textbox??
  13. I'm not sure, but I think you just have to call ShowMyTextBox() again
  14. You can encode the values in the query string and then decode them in the recieving page......
  15. Dynamically created controls should be recreated on every postback....
  16. You can use Page.user.name to get the id of the logged in user and use it in your query, as I showed you before
  17. I hope I understood what you mean... dim qry as string="select * from user where id=" & Session.item("id")
  18. I think if you want to use breakpoints, you need to enable debugging
  19. Session does expire after some predefined time. I think the default is 20 minutes..........
  20. I think you have to do them manually, I mean something like textbox1.text=""
  21. When you're formating your datagrid, theres a checkbox that says 'generate columns at runtime'. Uncheck this checkbox and add as much as you want bound columns, give them header names, and specify the their table field
  22. you can place a literal control in your usercontrol and use it to display your html
  23. What do you mean by that? If you've placed your html in the usercontrol, then just placing the control on the page and running the page will dispaly the html of the usercontrol
  24. what you need is an sql query that joins the three tables, got nothing to do with ado.net, read more about sql queries......
  25. Any way, I don't think its right to bind a HtmlFileInput control. The text thats dispayed in this control is the path of a filename in the user's machine, so lets say you bind it to a field in a database table, what will be displayed in it will be the filename only. There are two major problems in this 1. There is no path information 2. Even if there is a path with the filename, what if the user doesn't have a file with this name on his computer. So I don't think its a good idea to bind a HtmlFileInput control.
×
×
  • Create New...