|
Hi,
We want to use the resource with the ability to be able to over-write the resource file? Based on maybe an Hierarchy model, set a default resource file but something specified in the Hierarchy should be able to over-write this file to new settings.
We do not want to store this information in the database, creating different languages translations for the data we want to use, and want to take advantage of this .Net framework feature.
Thanks for your time.
|
|
|
|
|
hi
i am doing a website in visual studio 2005.in my asp.net page i have got a grid view which takes the data from the database dynamically.i have given the following code:
protected void GridView1_DataBound(object sender, EventArgs e)
{
int i = ds.Tables[0].Rows.Count;
int j = ds.Tables[0].Columns.Count;
for (int k = 0; k < i; k++)
{
for (int l = 0; l < j; l++)
{
GridView1.Rows[k].Cells[l].Width = new Unit("50px");
}
}
}
i want the output in such a format that i dont want the data in the cell to go to the next line(i.e) it should not wrap the data in a cell. i want only the first 10 characters to appear in my cell and i want the rest to be truncated.i have tried to set wrap to be false also in the source code:
<rowstyle font-size="Medium" wrap="false">
but nothing seems to work. how do i wrap and truncate.
Please help me out. my deadline is nearing.Thanking in advance.
|
|
|
|
|
Can you not just return the first ten characters of the data in your sql statement?
|
|
|
|
|
int len = GridView1.Rows[k].Cells[l].Text.Length;
if(len>5)
len=5;
GridView1.Rows[k].Cells[l].Text= GridView1.Rows[k].Cells[l].Text.Substring(0,len);
All the best
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thank you so much!This code work perfectly.
|
|
|
|
|
I am using C# together with ASP.net.
I need to check if the screen resolution is equal or bigger than 1024 x 768, if not so, the page wil display a message that wil inform the user to change his res.
Thanks
Icarus
|
|
|
|
|
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thanks the code works, but now, how would i use the message in the actual web-page? (display it in a table ...et.)
|
|
|
|
|
Generally speaking this is a very bad idea. For one there is no way to 100% accurately tell the screen size, whatever method you use. Using javascript will only get the view port size, that is the size of the browser (minus any menus, scrollbars) not the actual screen resolution. Also forcing the user to use a specific resolution is very bad usability practice and any website that does that is either totally crap or hasn't been updated since 1999.
|
|
|
|
|
please i need help on developing an online testing system.The system will have multiple choice questions and options for answers.IT should be able to generate a test result page immediately after the test-taker clicks finish.Please, i need your support.
akaprinceally
|
|
|
|
|
|
|
Oh those are JavaScript functions on mouse over
Thomas
|
|
|
|
|
do u know the code?
so that we can use...
|
|
|
|
|
Can this be done without using JavaScript.
|
|
|
|
|
|
Here's the problem:
On the client site, they are able to open the login page in their browser, but the asp.net controls (textboxes, buttons) do not display. The table, labels, and an image on the login page all show up fine.
They are using windows XP Pro, IE 7.
I've had them install the .net framework, but it didn't help. I couldn't find anything in the browser settings that I think could cause this problem.
I'm pretty new with using ASP.net. Does anyone have any ideas of what else I can try?
|
|
|
|
|
Having .NET on the client machine is irrelevant, it doesn't need it. Have you tried a different browser? Have you checked the output to see if the HTML is even being rendered? Do you have code anywhere changing the controls visibility?
|
|
|
|
|
badgrs wrote: Having .NET on the client machine is irrelevant, it doesn't need it. Have you tried a different browser? Have you checked the output to see if the HTML is even being rendered? Do you have code anywhere changing the controls visibility?
we do need the .net framework installed on the server machine though, right? For test purposes we're viewing the page from a browser on the same machine as the server (I should have been clearer about this).
There is no code changing the visibility of the controls.
How can I tell if the HTML is being rendered? I've tested this app on other machines, and the page displays correctly.
Any thoughts would be greatly appreciated.
|
|
|
|
|
KwikBill wrote: How can I tell if the HTML is being rendered?
IE: view->source
FF: view->page source
And yes you need .NET installed on the server, you also need the web site set up as an ASP.NET website in IIS.
|
|
|
|
|
Thank you for your help.
I did some investigating and found that when the application was registered with IIS, it failed to add a mapping for .aspx files in the application configuration. (Not sure why -- maybe because we registered the app before installing .net framework??)
I ran the aspnet_regiis utility under "Windows\Microsoft.NET\Framework\[version]\aspnet_regiis -i" and that seems to have resolved the issue.
Maybe the .net framework didn't fully install? well, it was certainly a strange one...
|
|
|
|
|
How can I create a pop-up window using C# in my Asp.net web application??
|
|
|
|
|
You can't, you need to do it using Javascript.
|
|
|
|
|
|
i want to have the data of the first cell of the first row of the gridview at runtime . on PageIndexChanging event i want to have this value.
thanks in advance.
|
|
|
|