|
susan_151615 wrote: tell it to Graus how to reply in civilised manner u donno what were his responses to my past questions
You mean where he repeatedly told you to post your ASP.NET questions in the ASP.NET forum?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Your grammar makes me want to hang myself.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Hi i have a page where i display certain records inside datagrid inside the datagrid there is a textbox i need to check if the text box is empty or not if it is empty i need to display an errormessage please fill it can anyone tell me how to validate a text bopx inside datagrid
|
|
|
|
|
With a validator. I guess this flood of messages are all in the wrong forum, so the help you'd get would be useless to you, as you don't specify that it's ASP.NET until the last question ?
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
I think this is vb.net forum isnt not dont u know that asp .net can be done using the language vb i think if u cant answer leave it
|
|
|
|
|
Actually, what you're asking has nothing to do with VB.NET, rather it's entirely ASP.NET related since you're trying to do validation of the fields of a Web Forms page.
|
|
|
|
|
Hey man i just mentioned my language is vb.if it is vb or whatever language am doing a web application(am using asp.net )naturally ok
|
|
|
|
|
Would you care to translate this into English?? I can't understand what the point of this statement. Seriously...
|
|
|
|
|
and any lang whatevert u use(c# or vb) thses validations would have been done by anybody thats what i was asking for for that take a book read i know to do it u dont want me to tell these things
|
|
|
|
|
and this statement made even less sense...
|
|
|
|
|
2 point Member
susan_151615
Joined on 09-23-2008, 5:09 AM
Posts 69
I have a datagrid with a drop down and a txtbox
The user has to fill the text box and then only he can fill the ddl
so i have written a javascript function to the ddl toche k if text box is filled or not in this manner
in code behind i have written
Private Sub dgUpdtasksave_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgUpdtasksave.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
If e.Item.ItemType = ListItemType.EditItem Then
Dim ddlStatus As DropDownListddlStatus = DirectCast(e.Item.FindControl("ddlStatus"), Web.UI.WebControls.DropDownList)
ddlStatus.Attributes.Add("onClick", "ConfirmApply();")
End If
End if
Sub
and the javascript function i have written is
function ConfirmApply() { var x = document.getElementById("txtEffort").value; if (x == "") alert("Please enter the efforts spent"); else document.Form1.submit(); }
but its not working dono why can anyone help me in this problem
|
|
|
|
|
You need to read a book on ASP.NET. Along the way, you need to learn why we have an ASP.NET forum, and try asking there.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
susan_151615 wrote: but its not working
Could you specify what you mean by "not working"? What happens exactly, and how does that differ from what you expect? Do you get any error message?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Dear Gents,
I want to create a virtual comport through vb.net coding. Please help me how can i go for it
Regards
Azeem
|
|
|
|
|
Not really possible. This requires writing driver code, which you cannot do (efficiently) in VB.NET or C#. It's best left up to VC++.
|
|
|
|
|
Hi,
I've created a custom tru Add User Control, the control is present in my
Toolbox and shows up when placed on the Form in the Designer. However if I
try to run the form I get the error 'Type MyProject.MyControl not defined'.
This must be something simple, but I cannot find it.
regards,
John
|
|
|
|
|
When I have had an issue like this with my projects, I always needed to clean up some of the Visual Studio auto-generated designer code. Make sure you build the solution, clean the solution, and re-build the solution again.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Thanks Thomas,
I can do this but it keeps comming back.
Regards John.
|
|
|
|
|
As I want to Print the Barcode(128 or 39) of the contents of a TextBox from VB.Net application, I beg to help me please.....
NB: I have tried to print the Barcode from BarTender Software. It is working ...But I need to print it from VB.Net.
Expecting Ur Kind Step by Step Procedure since I am a Beginner.
|
|
|
|
|
There are number of useful articles present on the Codeproject site itself.
Just search for articles.
|
|
|
|
|
I am using barcode image of type bitmap and have assiged to picturebox. The original image size is larger than picturebox size, so i have used the property "Sizemode=stretch" because i want the image to be displayed in picturebox size.
after doing so and trying to print the form, the quality of image present in picturebox comes out very poor,the lines of barcode look like they have got mixed with each other,image is distorted .
if i increase the size of picturebox, print is very clear, but i need to print image in small size.
may i know some solution?
modified on Saturday, November 8, 2008 9:27 AM
|
|
|
|
|
What's the component you're using to generate the barcode image?? Does this component let you specifiy the size of the image you want?? If not, I suggest looking for another component.
|
|
|
|
|
Probably that`s because the bitmap you`re loading has a different aspect ratio from the picture box ur fitting it into. Stretch means that the image will fill the container, so it your picture box has a size like Width:200, Height:150 and the barcode has let`s say Width: 100, Height: 120 it will appear disproportioned in the picture box.
One way to get around this would be this:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim _hW As Single = Me.PictureBox1.Image.Width
Dim _hH As Single = Me.PictureBox1.Image.Height
Dim ratio As Single = IIf(_hW >= _hH, _hW / _hH, _hH / _hW)
'resize image according to which is the highest ... Width or Height
If (_hW > _hH) Then
Me.PictureBox1.Image = ResizeImg(Me.PictureBox1.Image, New Size(Me.PictureBox1.Width, Me.PictureBox1.Width / ratio))
Else
Me.PictureBox1.Image = ResizeImg(Me.PictureBox1.Image, New Size(Me.PictureBox1.Height / ratio, Me.PictureBox1.Height))
End If
End Sub
Public Function ResizeImg(ByVal img As Image, ByVal size As Size) As Image
Dim bm As Bitmap = New Bitmap(img, Convert.ToUInt32(size.Width), Convert.ToUInt32(size.Height))
Dim myNewImage As Graphics = Graphics.FromImage(bm)
myNewImage.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
Return bm
End Function
The above code assumes that the barcode image is loaded in the picturebox at runtime. You can modify the code to fit ur exact needs moving the Form1_Load code to the place in code where u need it.
If the program that generates your barcodes allows it, try increasing the HEIGHT of the bars to fit into the picture boxes aspect ratio.
|
|
|
|
|
I tried the code you have given but the image is still not clear.
Can this happen beacause of Virus? My system is badly infected.
modified on Sunday, November 9, 2008 11:41 PM
|
|
|
|
|
Hi Friends I am Converting my VB6 project into VB.net but I an able to convert these lines of code into VB.net Some body plz help me...
UnRGB picImage.Point(r, c), clrr, clrg, clrb
where r c can be any point related to x,y
Private Sub UnRGB(ByVal color As OLE_COLOR, ByRef r As Byte, ByRef g As Byte, ByRef b As Byte)
r = color And &HFF&
g = (color And &HFF00&) \ &H100&
b = (color And &HFF0000) \ &H10000
End Sub
WHERE THE PROBLEM IS THIS THAT OLE_COLOR IS NOT VALID INTO VB.NET.......
Please guide me if you can
|
|
|
|