|
Hi dear,
For converting from VB to C# please go through the following link and that is very good tool absolutely free ....
http://www.eggheadcafe.com/articles/cstovbweb/converter.aspx
so enjoy it...
Vicky
|
|
|
|
|
convert vb to C# code follow the links
http://www.developerfusion.com/tools/convert/vb-to-csharp
http://www.dotnetspider.com/Convert/Vb-To-Csharp.aspx
priya
|
|
|
|
|
Hello all
I start developing a web application, in which I need to open other .aspx from the main master page, what is the best practice to implement this.
I have read about the QueryString, what is the full implementation of this, If I need to pass values to the same .aspx ..
What about creating contents page of the master page ...
Can someone help me to the best direction ...
Thanks, Best Regards
Waleed Seada
|
|
|
|
|
hi all,
i am having a situation where i have to club c# and vb.net projects togathere
and it is not running from server
pls. help me.
|
|
|
|
|
Smiles74 wrote: i am having a situation where i have to club c# and vb.net projects togathere
What does "club c# and vb.net projects togathere" mean exactly?
|
|
|
|
|
hii mike,
i am developing a project in vb.net. one of the module which i need for this project is alredy developed by another one in c#. my project manager asked me to use that. so i am using it. I added this that c# module into my project as another project. while i am running from my machin there is no problem. when i put it on server, it is prompting for username and password to logon to that server.
how to do this ??
i dono have much time also.. pls. give me some solution for the scenario..
or tell me is there any standard approch to do it??
thanking you
|
|
|
|
|
I AM USING .NETFRAMEWORK 1.1 AND VS 2003
|
|
|
|
|
check the web.config for settings
Best Regards
3ala2
|
|
|
|
|
|
Smiles74 wrote: hile i am running from my machin there is no problem. when i put it on server, it is prompting for username and password to logon to that server.
That sounds like a problem with the code rather than mixing VB.NET and C#. You'll need to supply more details on what the code is doing when the prompt appears.
|
|
|
|
|
I agree with Michael. This doesn't really sound like a c#/vb interoperability issue. Is sounds more like permissions on your server.
|
|
|
|
|
What type of projects are these??I mean website,class liabrary.Explain the whole scenario in detail with project types.
|
|
|
|
|
which is the best way to handle session state in asp.net
|
|
|
|
|
vasanth kabbur wrote: which is the best way to handle session state in asp.net
Can you be more specific by what you mean by "handle"? Do you mean you have special needs in your environment and want some suggestions on persisting the session state?
If so, the answer really depends on your environment. For most of the applications I build, using the default in-process persistence works plenty fine.
This technet article[^] may be useful.
|
|
|
|
|
Dear all
i created a javascript function to control some divs visibility
i want to call that javascript function on page load in some cases and in other cases i don't want to call it... how can i do that?
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
In your Page_Load server script, execute something like the following:
if (whatever condition)
ClientScript.RegisterStartupScript(typeof(Page),
"MyScriptKey", "MyJavascriptFunc();"
);
|
|
|
|
|
Thanx
That was helpful
Take care
Best Regards
3ala2
|
|
|
|
|
Hi There plz any one do help me
why it is not working with me the code
the Html code for datagrid is
<asp:label runat="server" text="<%# DataBinder.Eval(Container.DataItem,"UserID") %>" id="Label1">
now the problem is when i run the page it comes but when i click on Edit Button nothing change
i mean the update button doesn't come and so the TextBoxes plz any one help me
and if i put the OnCancelCommand and OnDeleteCommand and so the rest it gives me compile time errer so plz some one check it
i'm thankfull for ur help in advance
Nissren
|
|
|
|
|
Hi,
You might have bound the grid twice in code behind page after setting the edit index property to the grid.Please check it once. And, you have not mentioned the compile tme error when you try to write OnCancelCommand or OnDeleteCommand.
-Priya
|
|
|
|
|
As I mentioned in subject, I want to show my error page in new page. Old page should steel shows old data.
I write in applicationerror event in global, this:
response.write("window.open('errorpage.aspx')");
But there is a problem with it. The old page shows aspx error message displaying my code and exception. If I set custom error in config, my old page will be redirected to errorpage which is set in custom error tag.
If I use Server.ClearError() method, the old page will be clear entirely and shows blank page.
I WANT MY OLD PAGE TO SHOW MY OLD PAGE WITH USER CHANGES WHICH CAUSING ERROR AND THE NEW PAGE, SHOWS MY ERRORPAGE LIKE ERROR MESSAGE IN WINDOWS APPLICATION.
I don't want to handle my all errors by try catch. I want to handle all of them in allication error. Because I can find my latest exception by Server.GetLastError() method.
Please instruct me what to do.
Thanks
Rastgar
|
|
|
|
|
Hi all !
I have a NHibernate question and really need your help.
i have 2 tables with one-to-many relation like this :
-tblCategories with these fields:
catID int primary key ( reference category field of tblItems)
catName nvachar(30);
catDesc nvarchar(100);
-tblItems with fields
itemID int primary key
category int
itemName nvarchar(50);
itemPrice double;
Now i create a IQuery like this
IQuery q=session.CreateQuery("Select item.ItemID,item.Name,item.Price
from Item as item,Categories as cat
where item.Category.catID = cat.catID and
cat.ID=:_inputID ");
This query executes OK but the problem is that i don't know how to get the result as the datasource of a datagrid ( for example ). Can anyone help me???. I need it very much.
Thanks in advance
Merry chrismas and happy new year!!!
|
|
|
|
|
Guys,
I want the user to be able to select font (such as Bold, Italic, underline) and stuff like that from a dropdown list) and then I wanna apply these properties to all my page (all text). Now I'm doing something like this:
string font = string.Empty;
switch(ddl2.SelectedItem.Text)
{
case "Bold":
font = Convert.ToString(System.Drawing.FontStyle.Bold);
break;
case "Italic":
font = Convert.ToString(System.Drawing.FontStyle.Italic);
break;
}
myBody.Attributes.Add("Font", font);
Session["theColor"] = font;
This worked for changing the color of the entire page as I hard coded the colors hexa decimal values in the cases, but here these are enums, and can only be compared.
Anyways does anyone has any input on this???? I want this to happen when the user select from the DDL and on the button click event it should change the font.
Thanks
Tina
|
|
|
|
|
Hi, how can i know when the user refreshes the asp page? when he presses the F5 because i am havin a problem!! and when he press the back button as well? Thanks alot!!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi all! I got to know about NUnit framework. This is what I got
NUnit is an open source unit testing framework for Microsoft .NET. It serves the same purpose as JUnit does in the Java world.
NUnit.ASP is an expansion to the core NUnit framework and is also open source. It specifically looks at expanding NUnit to be able to handle testing user interface elements in ASP.NET.
Example of an NUnit test fixture:
using NUnit.Framework;
[TestFixture]<br />
public class TestWikipediaExampleOfNUnit<br />
{<br />
[Test]<br />
public void TestMultiplication()<br />
{<br />
Assert.AreEqual(4, 2*2, "Multiplication");<br />
}<br />
}
My question is how can I use it to test my code or What do I need to test my code with NUnit.
Thanks
Don't Quit
|
|
|
|
|
Nitin1981 wrote: My question is how can I use it to test my code or What do I need to test my code with NUnit.
which type code did you want to test.
look at the nunit doc you can find what you need.
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|