|
The DataTable is a class whose object instances are used to store data. It is not used for presentation purposes, but can used as the datasource for data-bound controls.
I don't know what control you are actually using, but you can embolden HLML text by using either the <b/> tag or through CSS.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
No, data is never bold. That's a rendering detail. Of course if you show the data in a grid, or whatever, you can add the HTML to make it render as bold, that's easy. Just put the data binding expression inside <strong> tags
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 )
|
|
|
|
|
is it possible to apply a custom validation to a grid view.if it is valid then how to declare a custom validator to a grid view
|
|
|
|
|
Validation applies when the user enters data. If you create a template for editing a row in a grid view, you can add any sort of validators that you like.
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 )
|
|
|
|
|
To the complete grid view control ??????? .Can you explain your situation more precise ?
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
iam having a grid view where some data is assigned to it using datatabe .now if the data is not there in the grid view then when a button is clicked it should validate that no data is there using custom validation
|
|
|
|
|
You want to press a button to validate the data that came from your data table ? What on earth for ?
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 )
|
|
|
|
|
I am able to save the csv file.
I want to convert the selected row from the gridview, which are selected on the selection of the checkbox of that particular row.
And i want to save the selected records in that CSV file which is getting saved at the specified location
I can do it by bytes of array.
But i don't know the procedure....
|
|
|
|
|
You can do something like this
protected void clientTeamList_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
StreamWriter write = new StreamWriter("c:\temp\test.csv");
for (int i = 0; i < gridTeamUserAccess.Rows[e.NewSelectedIndex].Cells.Count; i++)
{
write.Write(gridTeamUserAccess.Rows[e.NewSelectedIndex].Cells[i].Text + ",");
}
write.Close();
}
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Thanks for help!
THE PROBLEM IS SOLVED!
|
|
|
|
|
Hello,
I have a default website on a server, Inside the default website I have a virtual directory setup which has a webservice hosted.
When I try to run the webservice in a virtual directory. It throw an error in web.config file item for a default website.
Why is the default website config file called when I am running a webserive URL in the default web site.
How can I resolve this issue?
Regards,
Pavas
|
|
|
|
|
This is how the configurations file works. I think you can override the settings written in root configuration file. Try overriding the section which causes error.
|
|
|
|
|
This means, The virtual directory web.config will not be considered for execution. How can I override them
Actally I have a below statement in website config file
<pages theme="IMF" validaterequest="false" enableeventvalidation="false" />
But the above entry is not there in virtual directory and this cause issue when I run the virtual directory code.
Regards,
Pavas
|
|
|
|
|
Try declaring the same tag in your web.config with a valid theme present in virtual directory.
|
|
|
|
|
ok. Let me check this thanks
Regards,
Pavas
|
|
|
|
|
Can I use the below in the "Default Web Site"
<location allowOverride="false" path="Default Web Site">
<add key="smtpServer" value="smtp.gmail.com"/>
...
</location>
Virtual directory setting:
<location allowOverride="false" path="Default Web Site">
<add key="smtpServer" value="smtp.ourmail.com"/>
...
</location>
But in this case I get the below error:
Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this
section using <location allowOverride="false"> from an inherited configuration file.
Regards,
Pavas
|
|
|
|
|
Hi all,
I want to upload one large image through one website, while uploading image, the session time is out before image uploaded.
how can i solve this problem.bcz my website session time is fixed.
what to do?
Pls help me.
|
|
|
|
|
ASP.NET has a default file upload size of 4MB. Read this[^] to get an idea about changing it.
|
|
|
|
|
Hi Friends,
I have one doubt,i have a web page which contains company details, in the url i m passing the id value ,when i run my application i m passing the id in the url and then press enter key which displaying the details correctly and now i m updating the details its getting updating
when i press the enter key in the url ,now its not displaying the updated value its getting previous value.
Kindly tell me how to do?
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Hard to tell without seeing any code. Do you have caching ?
|
|
|
|
|
Hi Navaneeth,
Can i send the code?
|
|
|
|
|
hi
just show your both urla first in wchich u r trying to change the value and the original url
Jintal Patel
|
|
|
|
|
|
bhavna816 wrote: I know the openfiledialog available in Windows app.
But I want it in Web app. of ASP.NET2.0
You went out of concept. Take some books and learn how web applications works, and how ASP.NET works. You can't show a open file dialog in a web application. You can use upload control which shows a file select dialog box.
bhavna816 wrote: and save the selected data from the Gridview as CSV format
You need to save the file first on server and redirect user to the location where you saved the file. Alternatively you can add the file to response and set the headers. Check this[^] to get an idea.
|
|
|
|
|
yeah i have done it with these headers.
I am able to save the csv file.
I want to convert the selected row from the gridview, which are selected on the selection of the checkbox of that particular row.
And i want to save the selected records in that CSV file which is getting saved at the specified location
I can do it by bytes of array.
But i don't know the procedure....
|
|
|
|