|
hi ,
i have a datagridview(asp.net) and when i drag the gridview on to the form,columns displayed is column0,column1,..
now i want to change the names of columns to jan,feb,..etc.
I want this functionality to occur at desing time ,how can i do this .
would be helpful if anyone suggests me
Thanks
Mukkanti
|
|
|
|
|
After you drag and drop the datagrid into the form go to the datagrid properties there you can find the properties called AutoGeneratedColum set that to false after that right click the grid you can able to find PropertyBuilder you will be displayed datagrid property window their you can find the menu called Column after selecting the column you can find the column list from that select bound column their you can find the bound column properties in header text you can write whatever you want.
I thing you have got the solution
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Ya i got it
Thanks for your time
Thanks
Mukkanti
|
|
|
|
|
Hi All,
I would like to know that is there any sample or help where in i can edit the treeview. like go and add,delete, modify directly inside treeview?
Any suggestions or help on this?
Thanks and Regards,
Biju S
|
|
|
|
|
Hi,
Can someone guide me on this scenario:
I have a page A in which an iframe is present.
The src of the iframe is set to another page B. This page B contains a button btnReDir.
I want to redirect to another page C once btnReDir is clicked. Page C is a totally separate page. In short user should be navigated to Page C.
Any help will be apppreciated!
Regards,
Pencils
|
|
|
|
|
Hi,
Any code u have written for that?
Any exception r u getting?
In general we use "Response.Redirect" method to navigate to other page.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
This is the solution:
Response.Write("<script>window.open('../../C.aspx','_parent');</script>");
|
|
|
|
|
i am doing an application in which i want to show the value returned from database. the field has got a null value in dbase.
but when it is shown in the textbox it shows &NBSP; in form...
i am showing the data in gridview.. and when clicking any row there the values goes to textboxes...
there i want to show the it as blank textbox...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
Dude check the value using isdbnull. if it is true then set textbox1.text = string.empty
else the value from database.
Vb.net
|
|
|
|
|
thanks a lot dude....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
I'm in need of some advice. I'm in the process of designing an ASP.NET application. The site will need to accomodate three very different types of users. Each type of user will have different properties associated with it, and each will basically map to a role.
I'm considering how to best do this with the role/membership feature of ASP.NET.
I was first contemplating inheriting from MembershipUser, i.e. create three classes that inherited from MembershipUser (one for each kind of user), but as far I understand it that means I will have to provide three provider classes each inheriting from MembershipProvder, resulting in me having to dynamically change provider at runtime, and that seems very convoluted and far from optimal.
Instead I've come to the conclusion that I'll use composition instead. The idea is to create three user classes, each of which has a MembershipUser object reference in their belly. It seems much cleaner and leaner.
But, any advice/experience on this?
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
using System.Web.UI.WebControls;
Image thumbImage = new Image();
thumbImage.Attributes.Add("onclick", "window.location.href='" + @"\images\" + filePath + "';");
but the resulting page is giving following error:
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /thumbdb/imagesWaterlilies.jpg
-<>-shoaib-<>-
|
|
|
|
|
use this
thumbImage.Attributes.Add("onclick", "window.location.href='" + @"..\images\" + filePath + "';");
Vb.net
|
|
|
|
|
the problem is that after "window.location.href", browser discardes all the "\" characters.
For example the resulting url after following statement is..
thumbImage.Attributes.Add("onclick", "window.location.href='" + @"..\images\" + filePath + "';");
http://localhost:4258/thumbdb/..imagesWaterlilies.jpg
You can view that after images there is no any "\" character.
-<>-shoaib-<>-
|
|
|
|
|
good day again to all....
again i need your help.... on how to validate an asp.net 2003 textbox? that will only accept number values (0-9)...
i have two concerns:
asp.net 2003 textbox validation:
--1.) numeric validation only
--2.) alphanumeric (example : 100.00 / 9-9) ("." / "- ") will only be allowed other characters are not allowed....
sample codes is highly appreciated... or link will do....
thank you very much.....
start a new beginning in every ending; thats what life for......
|
|
|
|
|
I'm not 100% sure I understand what you mean.
You want a text box to only accept number values?
Then simply use a regular expression validator. \d* will match digits only.
-- modified at 5:28 Thursday 21st June, 2007
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
hello moo,
just try to use the Javascript and call the function on onBlur() event
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Sir can you give me a sample or link of your point of view?
start a new beginning in every ending; thats what life for......
|
|
|
|
|
In addition to the above post:
If you want to check while the user inputs data then you have to write some JavaScript that handles this (sorry no sample).
With ASP.NET AJAX it is a bit easier because in the Control Toolkit exists an extender that handles this case out of-the-box.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
thank you... i appreciate you thoughts
start a new beginning in every ending; thats what life for......
|
|
|
|
|
i have a n excel file at server, i need to print that excel file at client side by clicking a button with out opening that file...
is it possible?
plz any one help me plz...
Pradeep Reddy
|
|
|
|
|
You want to print the file client-side without opening it? Well, it has to be downloaded first anyway and unless you know of a way to print an Excel file on your desktop, for instance, without opening it your a bit stuck.
|
|
|
|
|
ok thank u...
Pradeep Reddy
|
|
|
|
|
Hello ,
I have a problem in crystal report page.I used the asp.net 2.0 and sql 2000 tools.Whenever I tried to run crystal report, the default images on the headaer part on the crystal report are not displayed.And specially the export and print images are not worked. Whenever you clicked on export or print images there was error on the page, and the error was:"object doesen't support this action".Actually when I run this project on local machine there was no error and all the images displayed correctly,but when I upload this project on web server and open pages from website the problem was occured.
Please help me to solve this problem.
Thanks.
Prashesh Kachhia
Software Developer
|
|
|
|
|
i am facing a problem in displaying a picture.
i am using an image control .
for displaying the pic , i am doing the following code using the datareader(in the query string , i am sending an id from the previous page(Query string), on the basis of which , i am refining the particular record).
now the code is
imgPicture.ImageUrl = Server.MapPath("photos\" & dr.Item("filepath").ToString)
image control is tying into the table.
Now my question is , Am I writing the correct code or there is some need of rectification.
There is no problem , when i am running the same code on the server.
problem arises when , i check at the client end.
|
|
|
|