|
Hi !
First time web application. Application looks and works ok when debugging. Do I need to build it somehow or what should I do next to get it working in WWW. I have a webhotel service. But what do I copy there... I have VB.NET 2003 std version with Win XP pro.
|
|
|
|
|
Look at this links for information on deploying ASP.NET 1.1 applications.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
I am writing a windows app, and in the function I need to check and see if a variable (email), is a valid email address. I know how to use the one in the aspx pages, but as I am new to windows apps, I am struggling.
my variable is called "strEmailAdd"
How can I pass this to a regular expression, and check if it is valid. If valid, return "Y", else return "N"?
|
|
|
|
|
Hi,
Here is an article which explains email validations using Regular expressions.
Email validations using Regular Expressions.
dim reg as Regex = new Regex(@"^[a-zA-Z'.]{1,40}$")
Response.Write(reg.IsMatch(txtName.Text))
if (!Regex.IsMatch(txtName.Text,
@"^[a-zA-Z'.]{1,40}$")) Then
end if
This is a simple example from msdn. Change the regex according to the article i suggested in the link provided.
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Thanks, this definitly helps me!
|
|
|
|
|
i set a picturebox control on my form and i load an image to it from the image property , i also set the Visible property to "True" but when i debug the application , i can't see the image in the run mode, only the border of the picturebox. The extention of the image is "JPG" and "Gif" , and i can open those pictuers easly as i'm using windows XP, but i still can't see the picture on the run mode. is there a code i should use to load the image in the picturebox at run time , and if yes where to place this code, in the main code body of the form or behind the picturebox itself. please advise and thank you again
i could found a possible code which is
< Dim img As Image
img = picturebox1.image >
but when i use it i have an errore which state that Image is not a type.
please advise and thank you.
Ali
|
|
|
|
|
You can use given command to load picture at run time
Dim bmp As New System.Drawing.Bitmap(FileName)
PictureBox1.Image = bmp
Thanks & Regards
Kumar Prabhakar
abc
|
|
|
|
|
Thank you so much, this was really helpful and solve the problem but the point now is , when i place the path for the image in the code. i can't run this application on any ther machine also when adding the setup wizard to the solution i added the image within this wizard. but when i tried to run the application on another machine after installing it, the application didn't work,
so how i can over come this problem, please Advise and thanks for your help
Ali
|
|
|
|
|
how do i filter the report between 2 dates and/or 1 item code as report is already designed!
susmita
|
|
|
|
|
You have to create parameter for report that parameter will be assigned at run time.
Thanks & Regards
Kumar Prabhakar
kumar Prabhakar
|
|
|
|
|
Hi
you can use the record selection formula to specify your filter
Kanniah
|
|
|
|
|
HI,
how can i get the index of the selected item in the combobox in a column of the dataGridView?
thanks,
regards
|
|
|
|
|
check out this code
aspx page
asp:datagrid id="Datag" runat="server" Width="100%" AutoGenerateColumns="False" PageSize="10"
asp:TemplateColumn HeaderText="Dropdown test"
ItemTemplate
asp:DropDownList id="DropdownAction" AutoPostBack="True" OnSelectedIndexChanged="DdAction_SelectedIndexChanged" Runat="server"
Code behind file (.cs)
public void DdAction_SelectedIndexChanged(object sender, System.EventArgs e)
{
DropDownList list = (DropDownList)sender;
if (list.SelectedIndex == 0)
{
//Actions for item 1
}
else if (list.SelectedIndex == 1)
{
//Actions for item 2
}
}
Navi
|
|
|
|
|
i set a picturebox control on my form and i load an image to it from the image property , i also set the Visible property to "True" but when i debug the application , i can't see the image in the run mode, only the border of the picturebox. Please Advise
Ali
|
|
|
|
|
Hi!
check the extension for your image, maybe it's not supported on your machine. You may need plugins to see some pictures. Cheers!
Regards,
Hesbon.
|
|
|
|
|
The extention is "JPG" and "Gif" , and i can open those pictuers easly as i'm using windows XP, but i still can't see the picture on the run mode. is there a code i should to load the image in the picturebox at run time , and if yes where to place this code, in the main code body of the form or behind the picturebox itself. please advise and thank you again
Ali
|
|
|
|
|
hi
try to resize the picturebox
Tamimi - Code
|
|
|
|
|
Hello,
I'm trying this code written in VB Script and its returning 0 records, inspite there are records. When I query the index server directly, I get records, but with this code i get 0 records. Can someone help?
Thanks in anticipation,
Rakesh
Dim ixQuery ' Index Server query object.
Set ixQuery = CreateObject("ixsso.Query")
If (Err.Description <> "") Then
MsgBox err.Description
End If
ixQuery.Columns = "filename,rank"
ixQuery.SortBy = "rank[d]"
ixQuery.Query = "Agreement"
ixQuery.Maxrecords = 1000
ixQuery.Catalog = "query://coiw2ptidbdev/system"
Dim util
Set util = CreateObject("ixsso.Util")
util.AddScopeToQuery ixQuery, "/", "deep"
If (Err.Description <> "") Then
MsgBox err.Description
End If
' Run the query (i.e. create the recordset).
Dim queryRS
'Set queryRS = CreateObject("ADODB.Recordset")
Set queryRS = ixQuery.CreateRecordSet("nonsequential")
' Check the query result. If it timed out or return no records, then show
' an appropriate message. Otherwise, show the hits.
If (Err.Description <> "") Then
MsgBox err.Description
Else
If queryRS Is Nothing Then
MsgBox "No records found"
ElseIf (ixQuery.QueryTimedOut) Then
MsgBox "Query Timedout"
ElseIf ( queryRS.EOF or queryRS.BOF or queryRS.RecordCount <= 0 ) Then
msgbox cstr(queryRS.RecordCount)
'MsgBox "No Matches found"
Else
queryRS.PageSize = rowCount
MsgBox cstr(queryRS.PageSize)
If (Err.Number <> 0) Then
MsgBox "Record Display Error: " & Err.Description
End If
End If
End If
-- modified at 2:35 Tuesday 29th August, 2006
rakeshsharma
|
|
|
|
|
Hi,
I cant disable the right window logo key in my application?Can anyone help to find out the solution.
Here is my code
Private Sub Textbox1_KeyDown(Byval Sender as Object,Byval e as System.windows.Forms.KeyEventArgs) Handles Textbox1.KeyDown<br />
if e.keyCode=Keys.Rwin Then<br />
e.Handled=true<br />
End If<br />
End Sub<br />
Pls help me....
|
|
|
|
|
Hi,
i cant disable the right window logo keys when i run my application.
i use the following code to disable the window logo keys, but it just can disable left window logo key.
private sub Textbox1_KeyDown(Byval sender as object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Textbox1.KeyDown
if e.keycode=keys.LWin and e.keycode=Keys.RWin then
e.handled=true
end if
end sub
Pls Help me...
|
|
|
|
|
How about changing your If statement to 'OR':
If e.KeyCode=Keys.LWin Or e.KeyCode=Keys.RWin Then
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
still cannot disable the right window logo key.
If e.KeyCode=Keys.RWin Then
code here also just allow me to disable the left window logo key.
|
|
|
|
|
You might want to set a breakpoint on that If statement and see if its even being called when you hit that key. If it is, then you can peek at the e.KeyCode to see what value it holds. Then you can change the code to look for that value. Be warned! Not every keyboard has 2 Windows logo keys.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
There is an application in VB6 and n no. of user are using that application (.exe). In this applicatin (.exe) every user are interacting with a recordset of SQL Server 2000. If any of user update or delete any of row, a message should be sent to every users telling them that a specific id's row is updated or deleted by <username> in a message box.
I think this can be done by using recordset's dynamic property i.e. "Row Update Notification Property" and "Row Delete Notification Property". But i do'nt know exact coding for it.
Please guide me.
Thanks and Regards
Girish Kumar Sharma
|
|
|
|
|
Girish481 wrote: Row Update Notification Property
This won't tell you the backend database was modified, only that the row in that copy of the recordset was changed.
You're looking for SQL Server Notification Services[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|