|
|
If we need to increase the height of the dropdown list first set the font size.
ex: say 'ddlTest' is the id of the control then
ddlTest.Font.size = 20;
ddlTest.Height = 600;
smile
|
|
|
|
|
Hi,
I apologize if this is a stupid question, I'm new to asp.net. Is this code not allowed?
I don't get an error, but it seems that the code that i have in the external vb file which is inside a Page_Load sub does not execute.
Any advise would be greatly appreciated.
thanks in advance -> Frank
|
|
|
|
|
No, you cannot. The script tag is for client side script, it has nothing to do with what runs on the server. I recommend doing some reading on HTML, that's all this is.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Thanks for the reply. That was what I suspected, just needed confirmation. However, the script tag is not just for client side scripts, it can be used to run scripts on the server via the "runat" attribute. this is what caused my confusion since I have only used it to run client side scripts in the past, but I've seen some asp.net practices that use it to run some event handling scripts on the server side. In fact, this whole thing started when I was trying to move a script that handles the Page_Load event from within the page to an external file.
thanks again.
|
|
|
|
|
I'm in the process of converting a web application from .NET 1.1 to 2.0 using VS 2005. The web app is installed using a Setup & Deployment project, which works fine. However, when the application is uninstalled the virtual directory is not deleted, only the physical directory. The virtual directory appears in IIS, but an error icon is displayed next to it when an attempt is made to view the properties. Apparently, because a physical directory no longer exists. I then have to manually delete the virtual directory. This is not an issue with the .NET 1.1 based program.
I've found a few message posts on various websites about this issue, but there are no solutions.
Any ideas?
Thanks, Paul Mac
PMAC
|
|
|
|
|
Hi,
Can anyone tell me how can I show label inside a RadiobuttonList . I want to show some message next to each option.
Example: 0 With login
Choose this opton if you do ..
0 Without Login
Choose this option if you do...
Continue
I can do this using Radiobutton then label then Radiobutton.... but I have to validate at server side... I want to validate at client...That's why I wanted to use previous one "RadiobuttonList".
Thanks inadvance.
|
|
|
|
|
You're going to have to bind to a set of strings that render the way you want, you can't use the list control AND insert something between each line. You COULD use a repeater to define a table that looks like this, that may be your best bet.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Thanks for your reply.
I guess it will be very complicated to user repeater to make what I want. But thanks for your reply.
|
|
|
|
|
It would be less complex than trying to hack a radio button list, but a lot more so than just using a radiobuttonlist, I agree.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Have WebParts essentially replaced user controls in .NET applications?
|
|
|
|
|
No.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hello,
I am developing a C# application, using Visual Studio 2005, and .net 3.5 This application compiles asp.net webs an install them in IIS, and it works, at least with the small webs, but when I use the real web, no a test, the the asp compiler throught ClientBuildManager class returns this:
ERROR:
The type "ApplicationName.framework.controls.TreeViewControl2" could not be load
STACK TRACE:
bei System.Web.Compilation.WebDirectoryBatchCompiler.Process()
bei System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors)
bei System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors)
bei System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
bei System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
bei System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
bei System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(VirtualDirectory vdir, Boolean topLevel)
bei System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath startingVirtualDir)
bei System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirtualDir)
bei System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallback callback)
bei System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback)
bei System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback)
bei System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild)
bei System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback)
bei Database_Managing_Tool.WebCompiler.Compile() in C:\Dokumente und Einstellungen\MKnoppik\Desktop\Database Managing Tool\Database Managing Tool\WebCompiler.cs:Line 113.
bei Database_Managing_Tool.WebCompiler.Btn_Compile_Click(Object sender, EventArgs e) in C:\Dokumente und Einstellungen\MKnoppik\Desktop\Database Managing Tool\Database Managing Tool\WebCompiler.cs:Line 71.
I've founded this article en MS Support http://support.microsoft.com/kb/940700/en-us/ and talks about a hotfix impossible to download, I've called to MS like the website advise and they told me search in forums ...
Do someone knows how can I fix this error?
|
|
|
|
|
Hi everyone,
I need to save and retrieve images from mysql database using asp.net with c#. Please help me with some examples.
Thanks in Advance,
J. Mohan.
J. Mohan
|
|
|
|
|
Does mySQL have an image or blob datatype ? There are tons of articles on how this is done, although most are probably not for mySQL, the C# code would be the same.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
What is the easiest way to fit a website to every screen size?
Is it to set the widths to 100%?
thanks
We are not a Code Charity
|
|
|
|
|
Yes.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
As Christian has indicated, the short answer is yes.
The question is do you really want to do this?
Take a look at the design of the website on differently formatted height/width ratios. Sometimes a page rendered in one height/width ratio doesn't render very well when left to float at a different ratio.
I have run into this with wide screen formats where the width is considerably larger than the height. What looked good in a less radical ratio looked stretched out in a wide screen format.
It all depends on the layout and content of the website if letting the width vary unconditionally is a good design. Sometimes you may want to set the max-width CSS attribute on a block element.
Of course IE prior to IE7 doesn't recognize this attribute so you will need to implement one of those nasty IE hacks to get it to behave reasonably.
|
|
|
|
|
Thanks for the extended reply.
We are not a Code Charity
|
|
|
|
|
Hi, I am trying to put a data in a label but it gives me this error 'Object reference not set to an instance of an object', here is what I am trying to do: Label1.Text= GridView1.SelectedRow.Cells[0].FindControl("Status").ToString();
Any help how should I solve this bug? Thx
|
|
|
|
|
Your debugger should be helping you. Any of the following can be null.
1) Label1 (if you had missed the runat="server" in the ASP(C)X page).
2) GridView1.SelectedRow.Cells[0].FindControl("Status") returned NULL.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
label1 is running at server normally, and I am loading the gridview normally, but when I want to select the data in the first cell, I cannot do that. Is that the proper declaration?
|
|
|
|
|
This is terrible code.
laziale wrote: Label1.Text= GridView1.SelectedRow.Cells[0].FindControl("Status").ToString();
1 - are you serious with these variable names ?
2 - The places this can throw an exception are:
SelectedRow can be null
SelectedRow can have no cells
FindControl can return null
You need to write code that checks these things before assuming they have succeeded. Then you can see which part is failing, and work out why
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hai Friends.
I need to freeze the first column of the scrolling datagrid.
|
|
|
|
|