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
K

KittyKit

@KittyKit
About
Posts
23
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Viewstate not updated after TransmitFile
    K KittyKit

    Thanks for the replies, guys. @Yusuf: The link seems to be really good and informative. will go thro it. thanks. As a quick try, I tried overriding the SaveViewstate function. But that didnt help. @Prosanta: It didnt work either. As I mentioned earlier I had placed the code at every possible location @Gray: I think i will try storing it in the session. What say? Cheers Kit

    ASP.NET help sysadmin tutorial question announcement

  • Viewstate not updated after TransmitFile
    K KittyKit

    Hello there I have been spending almost half-a-day to get this problem solved, but could not even find a single article that would help me. I wonder whether nobody else has faced this problem. Okay, my webpage involves creating excel files. My download button has code like this HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=clientcopy.xlsx"); HttpContext.Current.Response.TransmitFile(Server.MapPath("App_data/" + Viewstate["FileName"])); HttpContext.Current.Response.Flush(); HttpContext.Current.Response.Close(); HttpContext.Current.Response.End(); Alright. this works fine. The problem is, After downloading I want to make Viewstate["FileName"] to be null. But whatever I do, during the next post back after the filetransmit, the Viewstate["FileName"] still retains the old value and refuses to get updated to null. I tried writing the Viewstate["FileName"] = null; at every possible place in the above code - at the begining, in the middle and at the end after response.end(). BUT no way :(( Can someone help on how to modify the viewstate after a file transmit??? Note: ===== My webpage has an update panel. Button "GO" displays a report in the update panel based on some selections outside the updatepanel. Button "ADD" keeps on adding the displayed reports to an excelfile until Button "download" is clicked and excelfile is downloaded. "GO" and "ADD" triggers partial postback and "download" triggers fullpostback. thanks Kit

    ASP.NET help sysadmin tutorial question announcement

  • Retrieving non english characters from grid view [SOLVED]
    K KittyKit

    Sounds great. Thanks a lot.

    ASP.NET css database help tutorial question

  • Retrieving non english characters from grid view [SOLVED]
    K KittyKit

    Oh my goodness! This is what I was looking for since noon :) Thanks a ton! PS: Will it be a performance hit if I decode it in a loop which has -say - a 100 iterations?

    ASP.NET css database help tutorial question

  • Retrieving non english characters from grid view [SOLVED]
    K KittyKit

    Well, I am acutally exporting the datatable to Excel. And I dont see ä in excel, instead I see the numbers and special characters. How to make the excel display ä?

    ASP.NET css database help tutorial question

  • Retrieving non english characters from grid view [SOLVED]
    K KittyKit

    Hello My database has lots of german data stored. While I read it and display in the gridview, everthing works fine. The Grdview displays the german characters perfectly in the browser. After the display phase, I read a data from the gridview cells as gridview1.rows[1].cells[2].text, it returns special characters. For eg, 1st row, 2nd column in gridview has ä which is displayed in the browser properly, when I read the same from codebehind, it shows ä How to set it right? any help is deeply appreciated. thanks Kit

    modified on Monday, May 3, 2010 5:19 AM

    ASP.NET css database help tutorial question

  • How to access dynamically created Gridview HeaderRow
    K KittyKit

    In my scenario, I need to group the products based on category. The "main" header has columns Product name, Description, Unit and Unitprice. I am programatically adding "secondary" / "sub" header for each cateogry and list the respective product underneath. I overrode the render function like this GridViewRow NewHeader = new GridViewRow(rowIndex + 1, rowIndex + 1, DataControlRowType.Header, DataControlRowState.Normal); GridView1.Controls[0].Rows.AddAt(rowIndex + 1, NewHeader); The gridview is created as wished - First appears the main header. And Comes the first sub header followed by the related product rows and then comes the next subheader followed by the corresponding product rows at it goes on. I want to know how can I access these dynamically created "sub header"s. Gridview1.rows collection has only the data rows and the Gridview1.headerrow has only the default headerr row. Is there a way to access my "sub"header rows? Thanks Kit

    ASP.NET question tutorial

  • Home screen design for a website
    K KittyKit

    how about reading from an XML file?

    ASP.NET html design

  • disabling an list item not working in Firefox
    K KittyKit

    Hi.. My .aspx page has an unordered list. I need to disable few items (< li >). Here are the two approaches that I tried. Both working in IE. None works in Firefox. Please help! Apporach 1: ============ The runs at server and the < li >s are dynamically created in the code behind. I declare a variable li as htmlGenericControl and assign the required attributes and add this li to the list. Before adding the li to the list, I used li.disabled = true; Approach 2: =============== In javascript onpageload, document.getElementById("li1").disabled = true; both are not working in FF. please help. Kit.

    ASP.NET javascript sysadmin help

  • Confused by the behaviour of static variable
    K KittyKit

    Hello Guys I've a datatable whose values need to be maintained across postbacks. (Just single page, not across multiple pages). This datatable is not read only. I mean to say some data can be changed based on user selection during partial postbacks and need to be maintained till the final submit. I declared the datatable as static and could retain the values across partial postbacks. But the problem is that I've always thought that in multiuser environment only one copy of the static variable is created and shared across the users. But my datatable behaves differently. I opened the page in a browser and pressed Ctrl+N for new window. When I work on both windows, the datatable is not clashed. I mean - changes done in one window is not reflected in the other window. This is the behaviour I want exactly. One user's change should not affect other user. This is a reporting page and I store the user selections in the datatable before the final submit. Based on the options in the datatable, the report is created. Though I achieve the desired functionality, I am worried whether what I am doing is right. Is it true that a static variable is shared acorss users or not??? Any inputs? I am using VWD 2008 Express edition and c#. Kit

    ASP.NET csharp help question workspace

  • Problem with a newer version of a dll
    K KittyKit

    I tried putting the new version in bin folder. no help. I'll see whether its possible to include full path of the dll in dllImport However the last part of ur reply is not clear. What do u mean by my app should reside in system32?? thanks again. Kit

    C# help announcement csharp asp-net tutorial

  • Problem with a newer version of a dll
    K KittyKit

    Many thanks for the swift reply. The simIO project uses DllImport("config.dll", EntryPoint="ReadWrite@10", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true) I replaced the config.dll in system32 folder and recompiled simIO and replaced the new simIO.dll in the website. I am unsure whether this is sufficient. How to I change the reference of config.dll in simIO project?

    C# help announcement csharp asp-net tutorial

  • Problem with a newer version of a dll
    K KittyKit

    Hello We have a asp.net website that has reference to simIO.dll which was developed by my predecessor. I have the source project of simIO.dll in hand. This inturn refers to a 3rd party dll called config.dll (using DllImport). Now the 3rd party has released a newer version of config.dll that I need to update in our website. I first tried to replace the new version of config.dll in the system32 folder and got the following error. The specified module could not be found. (Exception from HRESULT: 0x8007007E) can not be loaded. But it works fine with the older version config.dll Can somebody advise me how to change the reference to the new dll? Many thanks Kit

    C# help announcement csharp asp-net tutorial

  • To draw over an image and saving the same
    K KittyKit

    oh..Is it not possible to achieve it only using Javascript amd asp.net ???(i mean without going for silverlight or flash) Kit

    ASP.NET architecture tutorial

  • To draw over an image and saving the same
    K KittyKit

    Hello there I've got an new assignment. The requirement is that I should be able to display an image in a webform and let the user draw circles(using something like a paint brush) on different parts of the picture. I should be able to save the image with the circles in position. I did google for a couple of hours but could not come up with anything solid. I would appreciate if someone could guide me which way to go. Thanks. Kit

    ASP.NET architecture tutorial

  • Naming a file on the server in Multiuser environment.
    K KittyKit

    Hey Guys, Happy newyear. Just came back from the vacation and am glad to see so many replies. Many thanks for all of you. I guess I will settle down with GUID. tahnks once again, Blue_Boy.

    ASP.NET sysadmin workspace

  • Naming a file on the server in Multiuser environment.
    K KittyKit

    Hello there I've a website that allows a user to create and download a document. I first save the file in the server and then let the user download it. This works just fine. But when multiple users try to do this, they must create their own copy of the file in the server. Can somebody suggest a foolproof way of naming the file - so that everyuser downloads only their copy of the file. Many thanks in advance.

    ASP.NET sysadmin workspace

  • Viewstate vs Rereading XMLDocument
    K KittyKit

    Many thanks for the reply Paulo. But I am able to reproduce the behaviour by declaring the datatable as static at page level. I have always thought that a single copy of the static variable is shared by all the users. I guess i should start a new thread on this. anyways, many thanks for your reply and the amazing article.

    ASP.NET visual-studio xml question announcement

  • Viewstate vs Rereading XMLDocument
    K KittyKit

    Thanks for the reply, Paulo. I think I should explain my situation a bit more in detail. I am working on the reporting stuff - that produces a chart. The datatable stores the different data entered by the user that should appear in the chart. For someother reasons there are a couple of partial postbacks before the chart is generated. I need to hold the user specifications until the actual chart is generated. I am really fine with the Ctrl+N problem ;P When the user presses Ctrl+N to open another instance of the same page, it might be like he wants to see two different formats of report. In that case I am glad if the viewstate values of old and new page remains different. thats what I exactly want. I could achieve this behaviour with viewstate and also by declaring the datatable as static at page level. eg

    static DataTable dt1 = new DataTable();

    Even with declaring dt1 as static, Ctrl+N does not affect the old page. Old and new page has their own copy of the dt1 which is what i want. But I wonder which is efficient and is there anyother better way of doing it. (Just to remind you that this datatable is used only in the single page)

    ASP.NET visual-studio xml question announcement

  • query help needed
    K KittyKit

    Check this out http://www.1keydata.com/sql/sql-concatenate.html[^]

    ASP.NET database 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