i am developing a page having a grid view. For one system it is displaying the gridview properly... but in other system the same grid view is not displayed properly.. i could find that the first row of the gridview overlap with the header...
I am asked to do an user control which takes the input for the PageSize
and PageNumber.The User control also has a button on clicking which would set the PageSize and Page Number of a Grid.Grid is not part of a user control.
If a Page has a Grid control and my user control is registered in it.
How should I be doing this?I need an approach.Do I need to raise an event
from user control which will be captured by the page containg grid.
So that I can do databinding in that by assigning the values of pageSize and Page Index from User Control.
Any suggestions or links would be helpful.
Today is a gift, that's why it is called the present.
Right, sticky little problem. I have a standard upload form in my web app, and I need to protect against people trying to upload massive files and getting crappy responses back. I'm catching the error in the Application_BeginRequest event by checking the inputStream, but here's my problem; If I do a response.Redirect to a URL with a meaningful error message, the application still won't display the page, as the massive HTMLStream is still there (at least I think that's what's happening. I've artificially triggered the redirect with a smaller file size, and it works, so it must be something to do with the size of the request).
I've tried using context.items.Clear(), but to no avail. also, a Server.transfer is not an option, because all the pages in the application inherit from a base page class that uses loads of session stuff, and server.transfer seems to lose all session information. So every way I turn I come up against a brick wall.
Does anybody have any ideas? If there was some way to do a server.transfer while preserving session state without preserving the input request stream, I think that would do it. But I can't see a way to do it.
Smokie, this is not 'Nam. This is bowling. There are rules.
I have a standard upload form in my web app, and I need to protect against people trying to upload massive files and getting crappy responses back. I'm catching the error in the Application_BeginRequest event by checking the inputStream
I am not getting why you chose application_beginrequest for this ? I guess you need to do the checking in the uploader form itself. Check the FileUpload1.PostedFile.ContentLength property to check for files.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia
i have used a datalist control and data bounded.in that i have used
asp:Literal to display text.the width of datalist 730px and cant more width. When i showing data in literal control it doesn't show all text.i want to show all text in that control. are their any ways/tips to display all my text in one controls.
I am working on asp.net project where my company already two different domain
1.auds.aud.edu for (student)
2.auda.aud.edu for (staff)
my system is in auda.aud.edu domain.
all user details are in active directory and we have two different active directory for auda and auds domain
my local pc is connected to auda domain and my projecte running under vs2005 with windows xp pro.
i am authenticating users using active directory .its working fine it only authenticating LDAP://auda.aud.edu users becs my PC is under auda domain.how can i connect to auds.aud.edu domain if i give the ldap path like LDAP://auds.aud.edu or LDAP://<servername>/DC=auds,DC=aud,DC=edu all i tried not working i am able to ping the <servername> from my mechine but i cannot access the active directory users from my PC
in template columns i can use the container.dataitemindex + 1,
if i have to use the bound fields , and in the first column , i have to make it an autogenerate column, for serial no , how should i do that ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
currently i m using ASP.NET with C# (.net 2005, 2.0 framework).
here currently i m trying to backup of my project.
when i copy my project and paste in another location, the changes are affecting the
how to rectify it? - KARAN