|
Most vb.net code can be easily converted. Most of the .NET namespaces are the same.
There are also free converters on the web that you can use. I would recommend trying to do it yourself, it's a great learning experience.
|
|
|
|
|
cool thanx man. ill give it a go. lol, lets just hold thumbs that i works. anyway have a great one
|
|
|
|
|
how to make the text field first char to upper case when text enter
|
|
|
|
|
In order to do this, as it's typed, you must add a Javascript attribute to the Textbox.
In your Page_Load Event, assuming your text box's ID is 'TextBox1':
add the following code:-
TextBox1.attributes("onKeyUp")="this.value=this.value.toUpperCase();"
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
|
Hi all,
I am trying to send an mail from localhost(VB.NET), but my mail messages are in the mailroot/queue folder, my system is connected in net also,
My code:
objEmail.To.Add(e_mail)
objEmail.Subject = "test mail"
objEmail.IsBodyHtml = False
objEmail.Body = bodytxt
objEmail.Priority = MailPriority.High
Dim Client As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient("localhost")
Client.UseDefaultCredentials = True
Client.Send(objEmail)
Plz suggest me an solution
Thanks in advance
Bye
Know is Drop, Unknown is Ocean
|
|
|
|
|
hi there...
Why validation controls are not working from the server when I uploaded to the server? In my local mechine validation controls are working fine.Please help me.
Regards
Sam.M
|
|
|
|
|
|
Hi,
In my web app,I have a table,when i am on the last column and press the keyboard enter button a new row is dynamically added to the table,How it possible?how we capture keyboard events,Give some idea regarding this
Advanced Thanks
Regards
Srilakshmi
|
|
|
|
|
use this code in you project
e.KeyCode = Keys.Enter // This will handle your key enter press
|
|
|
|
|
hi,
In my asp.net application, i want to upload files to my server i.e to my server hard disk and not to application folder. Also i need to browse my server directories,make directories,delete directories.
Pl suggest me a technology to be followed for the above scenario. How far would ftp be useful in this case.
|
|
|
|
|
I did something similar using c#. I was able to create directories and files and write them to my server using the standard stream. Although I didnt allow for browsing.
As far as ftp I dont think that would be the best option in this case.
Let me know if u want me to paste a quick example.
MySweet10! - The Search Ends Here
|
|
|
|
|
Hello,
I tried, unsuccesfully to make a webservice that returns objects with webmethods of their own, using a asp.net webservice.
I need to log every action made by the client and still maintain a nested interface.;)
for example: a flat regular web service interface: wsclass.getFlower returns a flower object - only with fields(not functionality).
I want to return the Flower and record what the user has accessed in the object.
I tried returning a webservice complient in interface to the object's instead of the object as a returning type of the getFlower.
But when i ran it it raised an error about a serialization failure.
THANX;
bv
|
|
|
|
|
Hi,
Is the type (Flower) declared Serializable ?
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Yes,
but it doen't matter.
If I want to return an object only with data, it's possible using serialization.
I want to maintain the logging functionality which requires a connection to the server.
It is not a problem if I expose an assembly but the trick is doing it with a web service that has a nested interface.
I need the web service for interoperability and keeping the deployment simple.
I don't want to rely on the client to have a .net framework installed (or Mono for linux) to avoid the deployment of a .Net assembly.
thanks
|
|
|
|
|
hi all,
i want to redirect from the code behind (server side) C# file to a blank Page,
like about:blank on the ie;
using Response.Redirect("about:blank"); doesn't WORK!
do u have any idea??
10X.
|
|
|
|
|
Hi habeb
i dont think there is something available for that. but you can achieve that very easily using javascript. you can write some function like this
function openwin()
{
window.self.location='about:blank';
}
and then call this function on the click of button
|
|
|
|
|
Hi
You may combine function specified by gspowar with RegisterStartUpScript to run the function after the desired event has occurred, which will provide functionality euqivalent to Response.Redirect
Regards
Don't Quit
|
|
|
|
|
hi guys
In my form there is one treeview which is fill from database at the time of page load. And when user select any node from tree then information of that node will be displayed on gridview on right side.
And in grid view i have button field so when user click that button then i am passing control to next page with help of response.redirect and passing id of that node, where detail information is given.
when i am coming back to the original page then that tree is again loaded and all information will gone so i want to retain that state from where i went to next page of detail information
Is there any property so that i can save state of my form????
Regards,
DJ Rock
|
|
|
|
|
|
hi can you tell me more about it.
I dont know anything about state bag.
Regards,
DJ Rock
|
|
|
|
|
Dear Sir or Madam,
I need an implementation of one of the applications of parallel cellular automata.
Looking forward to hearing from you
Thanks in advance,
Mozhdeh Qeraati
|
|
|
|
|
CustCMD.CommandText = "INSERT INTO QuestionDetail(QuestionDetailID,DateofCreate, " & _
" Content,TimeofQuestion,OptionType,Answer1,Answer2,Answer3,Answer4,Answer5,Result1," & _
" Result2,Result3,Result4,Result5)Values('" & _
strQuestionDetailID & "','" & txtDate.Text & " ','" & strContent & "'," & _
intTimeofQuestion & "," & chkOptionType.Checked & ",'" & strAnswer1 & "','" & _
strAnswer2 & "','" & strAnswer3 & "','" & strAnswer4 & "','" & _
strAnswer5 & "'," & chkResult1.Checked & "," & chkResult2.Checked & "," & _
chkResult3.Checked & "," & chkResult4.Checked & "," & chkResult5.Checked & ")"
Try
objConn.OpenCnn(strConnection)
CustCMD.Connection = objConn.Conn
CustCMD.ExecuteNonQuery()
---------------------------
I have error message:Operation must use an updateable query.
when trying to insert a record into database, can everybody tell me what error is and how to solve it.
Thanks everebody very much
I tried so hard and got so far
|
|
|
|
|
This is an insert statement in "update" form
try this one
<br />
CustCMD.CommandText = "INSERT INTO QuestionDetail('" & _<br />
strQuestionDetailID & "','" & txtDate.Text & " ','" & strContent & "'," & _<br />
intTimeofQuestion & "," & chkOptionType.Checked & ",'" & strAnswer1 & "','" & _<br />
strAnswer2 & "','" & strAnswer3 & "','" & strAnswer4 & "','" & _<br />
strAnswer5 & "'," & chkResult1.Checked & "," & chkResult2.Checked & "," & _<br />
chkResult3.Checked & "," & chkResult4.Checked & "," & chkResult5.Checked & ")"<br />
<br />
Tell me what happens with u
Best Regards
3ala2
|
|
|
|
|
Thanks for replying me, but it still error with message:
Syntax error in INSERT INTO statement.
I tried so hard and got so far
|
|
|
|