|
I have a gridview that is in a webpart, , one column is a checkbox column.
in the grid_row created event I set the proberties for the check box like so:
private void Grid_RowCreated(object sender, GridViewRowEventArgs args)<br />
{ TableCell cell;<br />
CheckBoxField column;<br />
CheckBox checkBox;<br />
if (args.Row.RowType == DataControlRowType.DataRow)<br />
{ for (int i = 0; i < args.Row.Cells.Count; i++)<br />
{ cell = args.Row.Cells[i];<br />
column = Grid.Columns[i] as CheckBoxField;<br />
<br />
if (column != null)<br />
{ foreach (System.Web.UI.Control ctl in cell.Controls)<br />
{ checkBox = ctl as CheckBox;<br />
if (checkBox != null)<br />
{ CaseCategory dataObj = args.Row.DataItem as CaseCategory;<br />
if (dataObj != null)<br />
{<br />
checkBox.ID = dataObj.CategoryId.ToString(System.Globalization.CultureInfo.InvariantCulture);<br />
}<br />
checkBox.AutoPostBack = true;<br />
checkBox.EnableViewState = true;<br />
checkBox.CheckedChanged +=new EventHandler(checkBox_CheckedChanged);<br />
checkBox.Enabled = true; <br />
} } } } } }
before converting this code worked perfectly, after the event does not get fired. I have removed the scriptmanager and related controls from the page, with no effect.
does anyone have any ideas what is going wrong, or how to fix it?
|
|
|
|
|
hi,
i installed visual studio .Net 2005.how i can work on the visual web developer ? and how i can open the ASP.NET Web application template?
when i click on new->web site then there are five templates show which are as ASP.NET Web Site,ASP.NET Service,Personal Web Site Starter Kit,Empty Web Site,ASP.NET CrystalReports Web Site.but there is no ASP.NET Web Application template how i can get it
|
|
|
|
|
|
thanks
I AM WORKING ON "PLOTTER ROBOT"(FYP).
|
|
|
|
|
Pls can anybody help me out on previewing image to be uploaded with
Fileupload. I have a javascript that loads the image in an image control
when fileupload is clicked, It works on IE 6 but on IE 7 the image is
not displayed
|
|
|
|
|
Hi,
Can you please post the code section that does not appear to be working, or give us an idea of how you are handling the image preview.
Thanx...
Clean code is the key to happiness.
|
|
|
|
|
Hello, I have created an ASP.NET web user control which has only one ImageButton. I have added 2 new properties to the class called OnMouseOverImage, OnMouseOutImage, these are both strings with getters and setters. Is it possible to make the designer open the file browser dialog when i click on these properties in the designer? Do I have to add some code, set some properties?..i don't know. I want them to behave like the PostbackURL or NavigateURL or ImageURL in the standard ASP classes for example. If this is possible, then please tell me how.
Uh...isn't there anybody who knows it? i didn't find anything about this problem.
modified on Tuesday, January 29, 2008 1:37:03 AM
|
|
|
|
|
Hi,
You should be able to accomplish this by marking your property with the required Editor attributes. By default all properties appear as straight text editable fields within the designer. By associating your property with an Editor that inherits from UITypeEditor, you should be able to achieve this. For example:
Reference the following namespaces within your class:
using System.ComponentModel;<br />
using System.Windows.Forms.Design;<br />
using System.Design;<br />
using System.Drawing.Design;
Mark your public property with the following:
Editor(typeof(FileNameEditor), typeof(UITypeEditor))
There are a number of pre-built editors that you could utilise so it may be worth having a play and seeing which works best.
Clean code is the key to happiness.
|
|
|
|
|
do you have to write something like this?
[Editor(typeof(FileNameEditor), typeof(UITypeEditor))]
public string PostbackURL
{
get
{
return ImageButton.PostBackUrl;
}
set
{
ImageButton.PostBackUrl = value;
}
}
It doesn't work, probably i'm doing something wrong.
modified on Wednesday, January 30, 2008 4:34:48 AM
|
|
|
|
|
I am developing a point-of-sales software on asp.net. When sending crystal
report to client browser for printing cash bill, browser always popup Acrobat Reader report viewer at client browser before bill can be printed.
Anyway for asp.net to send report directly to printer at client side? Too
many steps for cashier to get printed bills makes the system unfavorable.
):
|
|
|
|
|
ASP.NET works on the server and sends HTML to the browser. It don't have any access to the printer.
|
|
|
|
|
What about window.print()?
Thomas
|
|
|
|
|
thomas_joyee wrote: What about window.print()?
It's java script and won't send print command directly to printer. It will open the print dialog box.
|
|
|
|
|
Oh yes it will open printer dialog box. sorry that i forgot he want print directly. i think the window.print is the only way to print something from client side
Thomas
|
|
|
|
|
hi all
i am developing a website and maintaining session for user login.
problem is that
there is 3 sites all are diffrent sites
1 chating
2 blog
3 news
so user can switch to any of them so how to maintain the session for once login to visit all three sites
plz help
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
Did you try investigating in maintaining the state using cookies?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
no
but i am not getting any idea to do this.
if you have then plz give me a solution.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
I think if you have a cookie with a path like vrisoftware.com , the associated subdomains like
news.vrisoftware.com
chat.vrisoftware.com
support.vrisoftware.com
should be able to share it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi
I have recently moved an asp.net application onto a web server.
However I am getting the above error message.
How would I go about resolving this?
thanks in advance
feel free to ask for more details
cheers
|
|
|
|
|
|
thanks for the reply
I have already read that article but was not sure on a couple of things
What virtual directory do I need to right click on, where is this located?
"To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will
automatically create the "application" using the virtual directory's name. Now the application can be accessed." -
|
|
|
|
|
Hi.
I need to get the user's IP address (C#) of the machine they will be using to access my website.
I tried:
HttpContext.Current.Request.UserHostAddress;
Request.ServerVariables("REMOTE_ADDR");
I do not think I am using it correctly.
Any advice/help will be greatly appreciated.
Thanks
|
|
|
|
|
|
Use
Request.ServerVariables["REMOTE_ADDR"];
use square brackets instead of round brackets
Bhanu
|
|
|
|
|
I have to build some ASP.NET reports and for that I have to directly access peachtree DB.(Bitrieve or whatever format they are using)
Is it possible?
How do we go for that?
Any idea for of a good information source for this?
Thanks much
Regards
|
|
|
|