|
Dan
Do you mean i can use the C# samples in my Vb.net project?
Im not sure how i can convert the C# samples to VB.NET. Can you tell me how?
|
|
|
|
|
|
|
he means that you have to find functions in VB.NET that are same functionality as in C#
google it, there are a lot of this stuff
convert c# vb.net
<< >>
|
|
|
|
|
wrote: I have been looking in ASP.NET section and find most of the articles and code samples in C#.
I want ASP.NET in VB.net .. am i looking in the wrong place?
No, this is the right place for questions on ASP.NET. What you are seeing is probably an indication that most people are using C#.
|
|
|
|
|
Hi
What I mean is that both C# and VB.NET are using the Microsoft .NET framework. This means they are capable of calling the same functions and only the syntax needs changing to work (in most cases)
so for example
for(index = 0; index < columns.Count; index++)
{
if(m_reader.Name = columns[index]
{
elementString[index] = m_reader.ReadElementString().Replace(",", ":");
}
}
becomes in VB.NET
For index = 0 To columns.Count - 1
If m_reader.Name = columns(index) Then
elementString(index) = m_reader.ReadElementString().Replace(",", ":")
End If
Next
as you can see it is using the same functions and constructs (loops) but the syntax is different
Dan
|
|
|
|
|
Alright now i get it.
Thanks for the help!
|
|
|
|
|
No problem
glad I could be of assistance
Dan
|
|
|
|
|
how can i show a message box??in asp.net using c#.
i have to show one message when a specific condn satisfies..;P
|
|
|
|
|
If you are doing a post back you can use code like this:
NOTE you need:
using System.Text;
private void ShowMessageBox(string aMessage)
{
aMessage = aMessage.Replace(vbCrLf, "\\n").Replace("\"", "'");
StringBuilder myScript = new StringBuilder();
myScript.Append("<script>");
myScript.Append(Environment.NewLine);
myScript.Append("alert(\"").Append(aMessage).Append("\");");
myScript.Append(Environment.NewLine);
myScript.Append("</script>");
Page.RegisterStartupScript("TagMessage", myScript.ToString());
}
NOTE in .net 2.0 the call to registerstartupscript has changed.
If you are not doing a post back you have to use javascript.
Hope that helps.
Ben
|
|
|
|
|
im getting an error on tis code
|
|
|
|
|
Are you using .net 2.0? What is the error?
Ben
|
|
|
|
|
yes im using 2.0..n wats this vbCrLf,and the Page.RegisterStartupScript error...im using c#
|
|
|
|
|
ah, replace that with Environment.NewLine. Sorry about that.
Ben
|
|
|
|
|
hi..........
ex:-
if(TextBox1.Text!=null && TextBox1.Text!="")
MsgBox1.alert("Please input something in the text box.");
else
MsgBox1.confirm("Hello "+ TextBox1.Text +
"! do you want to continue?", "hid_f");
hope your prob. slove........
Imagine the I.T
|
|
|
|
|
|
|
Hi Developers
I have dirty URL like...
search.aspx?cat=cars&make=Honda&model=Accord
and I need to reWrite it in a better way like...
search/cars/Honda/Accord
How???
Lets work it Out.........!
|
|
|
|
|
|
Hi
have a look at this page http://msdn2.microsoft.com/en-us/library/fk49wtc1.aspx it is a string replace function. All you need to do is think carefully about your logic and it should help you.
Or have a look at some other string functions such as http://msdn2.microsoft.com/en-us/library/system.string.substring.aspx that you may be able to use to dynamically create the string.
I suggest you make a simple flow diagram outlining how the clean URL is made and then look at the System.String class and its members http://msdn2.microsoft.com/en-us/library/system.string_members.aspx
Hope this helps
Dan
|
|
|
|
|
halo...
can anyone tell me how to connect a textbox to a database.
i mean, when i enter smthg in the textbox it will save it in the database.
i'm quite new to this stuff, so if u don't mind, plizz teach me step by step...
|
|
|
|
|
hi there:
Just do a search from the uncle Google abt ADO.NET...you can start learning...how to interact with DB
Good luck
<< >>
|
|
|
|
|
Hi
in which platform u r doing c# or vb
|
|
|
|
|
Please help me
I have a GridView(Control)to display the information store in the table.I need to the user to have option to delete,Edit and View the information in each and every Row.How can I do that?
Thank you in advance
oga m
|
|
|
|
|
U can use template column and add appropriate buttons for view edit and delete
|
|
|
|