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
A

asifmaniar

@asifmaniar
About
Posts
12
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Adding a subscript to a dynamic image
    A asifmaniar

    I am converting text to images in my c# code. I want to generate an image for the word H20 with the 2 as a subscript. The 2 doesnt work as the image is generated at the server and then send to the browser. And Ideas?

    C# csharp sysadmin question

  • Problem reading a textbox in a web control
    A asifmaniar

    Hi, I am writing a custom webcontrol. I added an asp text box to the control and the javascript populates in with the date. The problem is that on postback when i try to read the text property of the text box via a property in the control it always returns a blank. Any idea why am loosing the viewstate value. The viewstate of the text box is set to true. I assume i dont have to implement the IPostBackDataHandler coz the textbox am using is an asp control. Thanks Asif

    ASP.NET javascript help

  • Server Control
    A asifmaniar

    You have to write a composite control to be able to compile it. This type of control doesn't have an ascx file, you have to add all controls to the page on the render event. read: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondevelopingcompositecontrols.asp

    ASP.NET help sysadmin question

  • CMS Problem
    A asifmaniar

    Hi I am using CMS to manage content in my asp.net web application. I am facing a strange problem that I havent been able to figure out. I have been getting error emails with file not found exceptions. For some reason when my posting template is loading the asp template it is pointing to the wrong file. So instead of looking at /templates/homepage.aspx its trying to look at /en-us/www/home/homepage.aspx so the first part of the url is remaining the same as the path of the posting in cms and only the last part is being changed to point to the asp file resulting in a file not found error. Any thoughts?? Thanks

    ASP.NET help csharp asp-net wpf question

  • Merging Filtered Data
    A asifmaniar

    I have to filter data from two different but identical datatables into two different views. Then i have to merge the two views. Any ideas how can I do that. If I copy data from one view into another its no longer visible as it doesnt not necessarily meet the filter requirements for that view. I think i need to copy them to a 3rd datatable. Any help would be appreciated.

    ASP.NET business help question

  • Copying rows between two data views
    A asifmaniar

    I have to copy rows from one data view to another. Fot this am using the following loop and each time creating a new row. But somehow in the final result the resultatt view only has one new row. The loop actually runs for each added row but only the last row is actually added. Any suggestions? Am copying rows from view2 to view.... For i = 0 To view2.Count - 1 view.AllowNew = True Dim dv As DataRowView 'adding the new row dv = view.AddNew() ' copying each column value For j = 0 To view.Table.Columns.Count - 1 dv(j) = view2.Item(i).Item(j) Next dv = nothing Next no matter how many times the above loops get executed only the last row is added :(

    Visual Basic question

  • DataView Date FIltering Problem
    A asifmaniar

    Hi, I am trying to filter data from a dataview based on a date column. The problem is that I need to be able to compare just the day and month part of the date. I can't seem to figure it out. Code: I tried both the following filters but convert, ctype etc are unrecognized in the dataview. Any suggestions will be appreciated. Dim filter As String = "ListingID = '{0}' And convert.ToDateTime(StartDate).Day = '{1}' And convert.ToDateTime(StartDate).Month = '{2}'" view.RowFilter = String.Format(filter, ListingID, StartDate.Day, StartDate.Month) OR Dim filter As String = "ListingID = '{0}' And " & CType(view.Table.Columns("StartDate").ToString, DateTime).Day() & " = '" & StartDate.Day & "'"

    ASP.NET help

  • ASP to WORD Problem
    A asifmaniar

    I am trying to open up an asp page with a repeater. The page displays a list of apartment adds. Each record has an image and many text fields. I am using the following code to open the same page in word.. Response.Buffer = True Response.ContentType = "application/vnd.ms-word" Response.AddHeader("Content-Disposition", "inline; filename=searchresults.doc") Response.Charset = "" Me.EnableViewState = False Dim objSW As New System.IO.StringWriter Dim objHTW As New System.Web.UI.HtmlTextWriter(objSW) Me.RenderControl(objHTW) Response.Write(objSW.ToString()) Response.End() The page opens in word but the problem is that i can not resize images. The images are of various size but in the page am setting the width=200 and height = 150. In word the width and height of the image remains the same as the original images and looks really ugly coz all images are different sizes. Also although i have made borders of all the tables in the page to "0" I can still see the borders in word. I tried changing the border color to white but nothing. Thanks.

    ASP.NET design help

  • Questions
    A asifmaniar

    i found the following 2 questions in one of the question banks but can't seem to find an answer. Can anyone please help. Thanks. Questions - 1)In C#, what are the trade-offs that you should consider between interfaces and inheritance when designing for polymorphic behavior? 2)What are the advantages and disadvantages of streaming APIs like SAX, and ADO.NET’s Datareader vs non streaming APIs like the XML DOM and the ADO.NET Dataset?

    .NET (Core and Framework) csharp question html visual-studio xml

  • focus
    A asifmaniar

    try this method: so on page load call SetInitialFocus(TextBox_Name) public void SetInitialFocus(Control ctrl) { StringBuilder s = new StringBuilder() ; s.Append("") ; s.Append("function SetInitialFocus()") ; s.Append("{") ; s.Append(" document.") ; Control p = new Control(); p= ctrl.Parent ; while (! (p is System.Web.UI.HtmlControls.HtmlForm )) p = p.Parent ; s.Append(p.ClientID) ; s.Append("['") ; s.Append(ctrl.UniqueID) ; s.Append("'].focus();") ; s.Append("}") ; s.Append("window.onload = SetInitialFocus;") ; s.Append("") ; ctrl.Page.RegisterClientScriptBlock("InitialFocus", s.ToString()) ; }

    ASP.NET com question

  • Timing a Procedure/Trigger
    A asifmaniar

    Hi, I have this sql procedure that i need to run once every day. Can anyone please tell me how can i do that. Thanks

    Database database question

  • Link Button in a DataList
    A asifmaniar

    Hi I have a list of items in a datalist and for each item i have a linkbutton. When user clicks the link button I am enabling/disabling the item in the database and reloading the datalist to reflect the new status. I am using the Item_Command event to check if the linkbutton was clicked. However i noticed that the command fires even when the page is just reloaded and thus it reverses the status of the last item that is clicked. The code looks like this - Private Sub dlActivity_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles dlActivity.ItemCommand Dim rows As DataSet rows = CType(Me.dlActivity.DataSource, DataSet) If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then Dim colID As String colID = CType(rows.Tables(0).Rows(e.Item.ItemIndex).Item("ActivityID"), String) 'this line changes the item status t5Activity.ChangeStatus(colID) 'this line calls the method to reload the datalist GetList() End If End Sub Can I handle this in such a way that the ststus is updated only when someone actually clicks on the link button and not when the page is refreshed.

    ASP.NET database design
  • Login

  • Don't have an account? Register

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