Jump to content
Xtreme .Net Talk

wessamzeidan

Avatar/Signature
  • Posts

    382
  • Joined

  • Last visited

Everything posted by wessamzeidan

  1. I don't get it, so you're telling me you're not using a serverside form in your page??? This is impossible, since you're already using serverside controls.
  2. Give the linkbutton any ID you want, ASP.NET will take care of generating unique ids for them at runtime. And yes, thats how you bind the CommandArgument to the record ID. All what you need to do now is write an eventhandler to the ItemCommand event
  3. add a linkbutton to the item template. Bind its CommandArgument property to the id of the record, set its CommandName property to something line "Delete", write an eventhandler for the ItemCommand event, check for e.CommandName to see if its "Delete". If its so, use the e.CommandArgument to get the ID of the row and perform the delete
  4. is your question about asp or asp.net?
  5. are you loosing your sessions during development time? When you rebuild your project, the sessions are cleared.
  6. check out http://www.dotnetnuke.com
  7. place your banner in a table and set the table width to 100%. Be aware that the banner will not stretch, so what you can do is set the background of the table to be the same color of the banner background
  8. get the selected where?? client side or server side? If server side, you'd better use the DropDownList server control.
  9. you can change the session timeout in the sessionState element in the Web.Config file
  10. No, because you need to copy the ascx file of the user control to the project, so you have to change the @Page directive to reflect the c# changes as I said earlier. User controls are different from custom controls.
  11. You can also increase the session timeout period. One thing I want to note is that if your user needs more than 20 minutes to fill out a form, then I think you should reconsider designing your data entry form to span multiple forms, thats IMO.
  12. Not sure if it will solve your problem, but try giving read and write permissions to your dlls for the aspnet account.
  13. If you want to do this you need to use AJAX. Check out this link for more info http://weblogs.asp.net/mschwarz/archive/2005/04/07/397504.aspx
  14. you can't add it to a c# project before changing all the serverside code to c#. The ColorChooser.ascx.vb file should be changed to ColorChooser.ascx.cs and all the code in it should be changed to c# code. In your ColorChooser.ascx file, change the Codebehind and Language attributes of the @Page directive to reflect the c# changes
  15. check forums.asp.net, thats a forum done with asp.net
  16. yes, cookies are enabled
  17. put this code in your pageload event handler Page.RegisterHiddenField("__EVENTTARGET", "BtnLogin");
  18. Because you have to rebind to the datasource each time you change the page in the datagrid, so the datatable should be filled. What you can do is when you fill the dataset for the first time, put it in the session and then use it when binding again.
  19. Ok, then you can do this Sub page_Datagrid(ByVal o As Object, ByVal e As DataGridPageChangedEventArgs) dgMembers.CurrentPageIndex = e.NewPageIndex fillDataGrids() End Sub
  20. not sure if it works for u, but you can pass values in the query string
  21. where does dsDataset come from?
  22. its Page.RegisterStartupScript, not Page.RegisterStartupScriptBlock
  23. The Session_Start event fires on each postback in my application. Any one knows what might cause this weird behavior?
  24. You have to check for Page.IsValid, which will tell you if the result of executing the validation function was true or false
  25. Are you using sqlSelectAdapter.SelectCommand some where else?? If yes, clear its Parameters before adding the @p1 parameter to it.
×
×
  • Create New...