In gridview I have 3columns.. DoctorId,name and VisitDate.. I am binding data from database. but during runtime I don't want to diaply doctorid.
for this I have put code in pageload event like this:
GVDoctorActivity.Columns.Visible = false; ok. its fine. when I am trying to get the doctorid of selected row it is showing null.. when I put Visible= True am getting the value. I have written code in GridviewSElectedrowchanged event..
i have a web application in which i am allowing the user to upload an excel file on my server. i want this excel file to be stored directly in my oracle server.it's not just the file. i would like to insert row by row data in my table.can anyone help me in that. pls send me the code to do this. i am making my application in visual studio 2005, .net framework 2.0 and oracle server 10g.
I need help regarding ASP Calendar control. I am developing one web page in which I am displaying a calendar (month view) using ASP Calendar control.
And I am displaying jobs on particular day. i.e. if job starts on March 1 then I will have to display that job on March 1 cell and so on.
Now what I need to do is to display a bar in the calendar as per the start date and end date of the particular job. i.e. if job starts on March 1 and ends on March 5 then I will have to display a bar starting from March 1 to March 5 and that particular job number on this bar just like Google Calendar. When we create an event in Google Calendar from one date to another date, you will get to see one bar displaying from one date to another date.
in this event am getting the perticular column data item. if i put this code in rowcommandevent it is giving error... so in this eventonly i want to know which itemhas been clicked.. can you tell me how I can approach?
I was just wondering, does anyone know of a way to programmatically control page loading in .NET?
The reason is this. I'm using an open-source text editor control in a private project of mine for content management, where users can edit whole pages and save them to the database, to be approved and displayed later on the front of the site. The control is brilliant, really powerful, but it takes a while to load, and it looks really disjointed when it's doing so, as the page appears like a swiss cheese coming at you out of the mist... I've had a stab at it myself and asked the good men at Google, but no joy so far. Ideally I would set a point, like after the page header, and not display anything to the user until the entire page has loaded, so that it looks more, well, slick. Anybody have any ideas?
Off the top of me head:
It would be easy to cover the page with a shim that has a nice Web 2.0 animated AJAX loading image (buzzword dump all the way!). This could be done with CSS so the rest of the page would be set to display:none while the shim would fill the whole page (or whatever portion it is you need hidden). You could then set the shim to display:none and display the hidden content once the control is loaded and ready.
The problem is knowing when this happens. document.onload wouldn't work as I assume thats where the control starts loading. The simplest option would be to set a timeout of how long it roughly takes for the control to load, then show the content, but this has loads of drawbacks as you never really know what the time will be.
So after all that it boils down to: does the control have an event that you can hook into that gets raised when the controls loads? If so, use that to hide the shim and show the content.