|
Only time I've had this problem is when I changed the applicationName in the web.config. If this is different to when you create the users it won't work.
|
|
|
|
|
I have an application in a Windows forms and I want to export it to a web service.
In my application, there is some initialization done in the constructor of my windows form, as well as in the Load event handler. Obviously, this code executes only once, that is, at the beginning of the program.
I've started to port this application to a Web Service, but I realised that the code in the constructor (where the InitializeComponent is) executes every time I call a function with the Invoke button of the testing interface.
My initialization code is somewhat long and it simply cannot be that way...
Is there a way to make my initialization code execute only once, just like it does in a Windows Form?
Thank you very much!
|
|
|
|
|
haven't done much work with web services but I think they have a Global.asax file much like a web site. Add this to the project (there should be an option for it in the add object dialogue) and it'll generate several methods one of which is Application_Start.
|
|
|
|
|
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??
|
|
|
|