|
I want to display columns dynamically(based on dates selected in dropdown).
I selected 15/11/2007 AND 17/11/2007. it displays only those 3days..
FromDate: 15/11/2007(selected from dropdown) toDate:17/11/2007(selected from Dropdown)
when I click on button it shoul display in gridview like..
-------------------------------------------------------
productId Name 15/11/2007 16/11/2007 17/11/2007
------------------------------------------------------
1 aaaa sucess fail success
2 bbbb fail fail success
--------------------------------------------------------
If I select in the range from 15/11/16 to 16/11/2007 it should display only 2 days columns).
----------------------------------------
productId Name 15/11/2007 16/11/2007
-------------------------------------------
1 aaaa sucess fail
2 bbbb fail fail
--------------------------------------------
can any one give me solution? am using asp.net 2.0 and c#
|
|
|
|
|
Hi,
I will tell u how to do this on datagrid. The same thing u can implement on gridview. set property AutogenerateColumns="true". Based up on the drop down selection return a dataset from backend and directly bind it to the datagrid.
Ur dataset may contain 4 columns i.e.,
ProductId Name 15/11/2007 16/11/2007 17/11/2007
or 3 columns i.e.,
ProductId Name 15/11/2007 16/11/2007 Based on ur selection.
Hope my solution will give u what u wanted.
Raj
|
|
|
|
|
Hi,
On button click call function to bindgrid in that u can add columns.
BoundField bfield = new BoundField();
bfield.DataField = "empno";<br />
bfield.HeaderText = "Emp No";<br />
GridView1.Columns.Add(bfield);<br />
GridView1.DataSource= MyDataTable;<br />
GridView1.DataBind();<br />
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Hi friends
I need to send the user billing address details to google checkout page.
if any one has some article or links plz forward me.
thanks
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I am having my .net application in C drive. I have a image control on my .aspx page. At run time I want to bind a image to this image control from D drive which is out application context. Please give me some tips to achieve this.
Thanks in advance.
Raj
|
|
|
|
|
You can't, an ASP.NET app cannot look above it's root. Move the file
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian Graus,
Using FileStream class i will establish a file stream to that file. Later i will declare a Byte[] datatype. then using binaryreader(filestream object,Byte[]) i will convert the image file and then i will show this to my image control. It has worked. But this solution is time consuming. Most of my users access my application thru dial up connection.To display 9000 photos it will take so much of time.
I am searching for a better solution. Please if u find one other than the above let me know
Thank u in advance,
Raj
|
|
|
|
|
raj@code wrote: Using FileStream class i will establish a file stream to that file.
I don't think that ASP.NET can access the file which is stored outside the domain.
|
|
|
|
|
Use the Absolute Image path to display the Image. I would suggest you to store the Absolute path in a common place like web.config or resource file and access it from there.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
John Prabhu wrote: I would suggest you to store the Absolute path in a common place like web.config or resource file and access it from there.
Even if this is done, ASP.NET won't be able to access it, because it's out of root.
|
|
|
|
|
I thought that physical path can be used to display the Images. I was wrong.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Why don't you create a virtual directory inside the application domain for the Images folder which is in the D Drive, so that you can refer the Images using the virtual path. I'm not quite sure... you can give a try...
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
how to create a attractive menu bar in asp.net web page.
coolsatty
|
|
|
|
|
|
get it Dynamic Drive Menu
bEst Regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
How can we change security setting of Trusted Sites programmatically. For example enabling ActiveX Control and Plugins enabling or disabling or setting it to prompt.
Please tell me how i can do that ?
thanks
destined to win
|
|
|
|
|
You cannot change the browser setting or install the Activex Control programmatically without the user's consent. No scripting language will allow you to do this due to security reasons.
-- modified at 5:08 Monday 19th November, 2007
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
I have a requirement for a site that has a feature to show previews of other sites. These previews would presmubaly be stored as an image but the code would have to power to produce them itself. ie got to the site, render what was there into an image, which could be saved, and then displayed as I required on the front end.
I have found the following product http://www.websupergoo.com/abcdrawhtml-1.htm[^] but it seems to be based around asp rather than .NET.
Does anyone know of any other products?
|
|
|
|
|
they say that You can use it flexibly under .NET. why don't you give a try?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi,
I have here a very complicated issue. I cant figure out how to implement it.
I have this folder path: C:\Inetpub\wwwroot\Site\Download\PDF
Inside this folder got many PDF files like:
1) 200709.pdf
2) 200705.pdf
3) 200701.pdf
4) 200606.pdf
5) 200502.pdf
6) ++ many more.
So i want a page to be implement this way, my page contains 30 sections of product descriptions, which sometimes there are long in words. I want each product description header to have 2 select box like:
Year select box and populate the specific filename of the PDF in format "May 2007" on month select box (which is side by side of those 2 select box).
Is it possible?
I hope you guys understand and pls help me.
|
|
|
|
|
|
Get all the list of file names from the folder and your filename has the details such as year and month. Use the substring method, manipulate and bind it to the dropDownList (Month and year).
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
VinothRao wrote: I hope you guys understand
No.I cant.
please don't forget to vote on the post that helped you.
|
|
|
|
|
If a user click on a control then a window will open using javascript.If the same user click on the same control then the window will not open .How is it possible,like in gmail chatting.In gmail when an online user is clicked thn he can chat with the user.again he tried to click the same user then it willnot open the window.how is it possible.please help.Thanks
|
|
|
|
|
Window.open() takes a optional argument that specifies the windowName. Give a windowName when you do a window.open(). Two Windows cannot be opened with the same name.
window.open('PagePath','WindowName','WindowAttributes');
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|