|
But, I can get values for those controls. If i enter Data for 2 rows and click Submit button, 2 rows will be inserted with the entered values and the remaining 8 rows will be inserted with null values. I dont want that 8 rows to be inserted.
Thanks & Regards,
Radha
|
|
|
|
|
Before insertion, check the controls has a value. If not sip it,
|
|
|
|
|
But, I can get values for those controls. If i enter Data for 2 rows and click Submit button, 2 rows will be inserted with the entered values and the remaining 8 rows will be inserted with null values. I dont want that 8 rows to be inserted. How can i do this?
Thanks & Regards,
Radha
|
|
|
|
|
hi,
Can anyone tell me how to bind a DataTable Column field to a DropDownList Items which is present in a GridView.
DataTable and GridView is generated at runtime.
A key to every Solution
|
|
|
|
|
You need to find DropDown from GridView in GridView's RowDataBound event and bind it.
|
|
|
|
|
Thanks,
Can I add it like Eval on Bind method as we do for label..
<asp:templatefield headertext="CUST_ID">
<headertemplate>CUST_ID
<itemtemplate>
<asp:label id="lblCustID" text="">]]>' runat="server">
I have the DropDownList instead of Label and CUST_ID is the Column anme present in the DataTable
A key to every Solution
|
|
|
|
|
Thanks,
Can I add it like Eval on Bind method as we do for label..
<asp:templatefield headertext="CUST_ID">
<headertemplate>CUST_ID
<itemtemplate>
<asp:label id="lblCustID" text="">]]>' runat="server">
I have the DropDownList instead of Label and "CUST_ID" is the Column name present in the DataTable
A key to every Solution
|
|
|
|
|
You can add the dropdownlist to the template column at runtime. then, In rowcreated event of Gridview, you can find the dropdownlist that you have added and bind the data.
|
|
|
|
|
hi,
thanks friend..
can u give a sample of code how to it...
A key to every Solution
|
|
|
|
|
Hi all,
Can I add Change the PageStyle Button like HTML Buttons in Datagrid using ASP.Net 1.0
Thanks
Dana
|
|
|
|
|
You can't add a HTML button there. Use CSS to style current pager links to look like a HTML button.
|
|
|
|
|
Thanks for the reply Navan,
Can I add the sylesheets in the desing view itself ?
Dana
|
|
|
|
|
Yes. Datagrid allows you to add a pager style tag.
|
|
|
|
|
Thanks.. I wll have a try
Dana
|
|
|
|
|
I tried like this .But it is not displaying any box arround the Next or previous buttons<br />
<br />
<br />
<br />
<PagerStyle NextPageText="Next" PrevPageText="Previous" Position="TopAndBottom" BorderStyle="Solid"<br />
BorderWidth="1" Mode=NextPrev ><br />
|
|
|
|
|
Pager links are just hyperlinks. So create a CSS class which can style the hyperlinks and assign that class to the pager style.
|
|
|
|
|
I tried this one...
But It applied the whole row...
color: #FFFFFF; text-decoration: none; text-transform: none; background:
#800000;
|
|
|
|
|
Hi there,
I created an installer which installs two msi files. This installer is working fine in Xp and 98. But it's giving error in Vista. The error is: Another Process is running. Is there any other way to rectify this problem? Please help..!!
Regards n Thks
Sam.M
modified on Monday, January 14, 2008 4:33:04 AM
|
|
|
|
|
Hi,
I've done research on this topic, but couldn't find much information.
Does CP have good articles on creating ASP.NET intaller packages using Visual Studio 2003 and VS 2005, with different options defined clearly, or other article on internet?
Do you normally user VS built in Deployment project or third party installer software?
Regards,
Blumen
|
|
|
|
|
|
N a v a n e e t h wrote: Which bit you are stuck ?
I had issues with adding custom functionalities. Normally when we install software, we can see Company image in the installer, custom validations, et al. I needed to know how to achieve these with VS installer. Also, adding reference dlls, like if I want the installer to intall Telerik dlls which my product would use.
|
|
|
|
|
Few days back I downloaded MOSS 2007 trial version to try creating custom workflow using InfoPath forms. But could not locate "InfoPath Forms Services" option under "Application Management" tab, and any other means to publish InfoPath forms in MOSS.
MOSS installation is pretty simple and I dont think I missed anything there. Does it means InfoPath Forms Service is not included in the latest MOSS 2007 trial version and I need to install Forms server 2007 also ?
Or I would greatly appreciate if any body could figure out the silly mistake I am doing here
|
|
|
|
|
Hi all,
I have a database that conatins a list of quotations like this:
ID Quote
1 Hi, how are you?
2 Who is this?
... ...
Let's assume that my site is www.myquotes.com, the site doesn't have any pictures stored on it, only the database and the site code. I want to create a website that works as follows:
When a user requests the address "www.myquotes.com/1.jpg" (1 is the ID of the Quote). I want to my ASP .NET application to do the following sequence of events:
1. Extract Quote #1 from the database.
2. Generate a JPEG image that has the writing "Hi, how are you?" written on it
3. Return this image back to the client, so the client will receive a picture that has a writing on it.
so from the client's point of view, he will just request a JPEG image and receive it.
My Questions:
1. Can this be done in ASP.NET (I suppose yes).
2. Are there any .NET compatible tools that can help in dynamically generating JPEG images that contain text on them.
3. Is the process of JPEG image generation time-consuming for the web-server? In other words, if I start to get hundreds of image requests per second will this bring my web application down?
4. Any other tips for doing this?
Regards,
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: 1. Can this be done in ASP.NET (I suppose yes).
Correct
Mohammad A Gdeisat wrote: 2. Are there any .NET compatible tools that can help in dynamically generating JPEG images that contain text on them.
The .NET BCL exposes functionality that allows images to be dynamically generated. Create an instance of a Bitmap[^] class, use the Graphics.DrawString[^] method to draw the text onto the image. Call Bitmap.Save and save the bitmap data to a MemoryStream . Finally, and write the contents of the MemoryStream out to the browser by calling HttpResponse.BinaryWrite .
Mohammad A Gdeisat wrote: 3. Is the process of JPEG image generation time-consuming for the web-server? In other words, if I start to get hundreds of image requests per second will this bring my web application down?
I'm not an expert on this, but I would have thought that generating images is somewhat performance-intensive. You should run some tests to investigate this.
Mohammad A Gdeisat wrote: 4. Any other tips for doing this?
Nothing else I can think of.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks mate for the reply,
just another related question:
When a client requests the web address "www.myquotes.com/1.jpg" can ASP .NET handle the request? I mean that IIS might not handle the HTTP request because the extension of the file is JPG not ASPX.
Is there a way to make my web application handle HTTP requests for JPG file types? btw, I will run my application on public servers so I might not be able to set IIS configuration.
Thanks
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|