|
I need regular experession for this pattern: some more text_11111-1234
I need to check for _ following 6 number
- following 4 number
Dim rgx As New System.Text.RegularExpressions.Regex("^[a-zA-Z0-9](-\d{4}){1}") ????
If (rgx.IsMatch("some text_11111-1234")) = True .....
|
|
|
|
|
Hello,
Try ([a-zA-Z\s]*)_(\d{5,6})\-(\d{4}) it matched following
some more text_11111-1234
Prasad Khandekar_435363-9353
Another Pattern_777777-8783
Regards,
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
Great. its working... thanks
|
|
|
|
|
+5
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks Ryan.
Prasad P. Khandekar
Knowledge exists, man only discovers it.
|
|
|
|
|
I want to add the multiple dropdownlist to my tool box...can u help me??????
Ashshu
|
|
|
|
|
What is the problem you are having?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
|
<pre lang="text">
<asp:DropDownList ID="drd1" runat="server" >
<asp:ListItem>select the value</asp:ListItem>
<asp:ListItem>sample</asp:ListItem>
<asp:ListItem>Anothersample</asp:ListItem>
<asp:ListItem>one more sample</asp:ListItem>
<asp:ListItem>none</asp:ListItem>
</asp:DropDownList
>
Ashshu
|
|
|
|
|
What is your question?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
At first your question was not clear. But after adding few characters I got it. Always post your question clearly.
You should customize the control. Check this article(and you could fine bunch more in Codeproject)
DropDown and MultiselectDropDown Controls for ASP.NET[^]
Or alternatively you could use ListBox[^]
|
|
|
|
|
How can i see if Ok or cancel is pressed?
Code:
Private Sub GridView1_RowCommand(sender As Object, e As GridViewCommandEventArgs) Handles GridView1.RowCommand
If (e.CommandName = "DelUser") Then
Dim index As Integer = Convert.ToInt32(e.CommandArgument)
Dim row As GridViewRow = GridView1.Rows(index)
Dim cmd As SqlCommand = New SqlCommand("DELETE [dbo].[MOVIuser] " & _
"WHERE ID = @U_ID ", conn)
cmd.Parameters.Add("@U_ID", SqlDbType.Int)
Dim message As String = "Möchten Sie den Benutzer " & _
CStr(row.Cells(3).Text) & ", " & CStr(row.Cells(4).Text) & " wirklich löschen?"
Dim sb As New System.Text.StringBuilder()
sb.Append("<script type = 'text/javascript'>")
sb.Append("window.onload=function(){")
sb.Append("return confirm('")
sb.Append(message)
sb.Append("')};")
sb.Append("</script>")
ClientScript.RegisterClientScriptBlock(Me.GetType(), "alert", sb.ToString())
/* Which Button is pressed? */
Try
conn.Open()
cmd.Parameters("@U_ID").Value = CInt(row.Cells(1).Text)
Catch ex As Exception
Finally
conn.Close()
End Try
End If
End Sub
|
|
|
|
|
Did you look at the sender object that calls the sub?
Oh, your talking about the Javascript.
You can't do it that way.
More like
Button calls JavaScript first by using a click event assigned to the button. if true is returned then the called function runs and deletes the user.
ASP.Net Button Code
OnClientClick="return deleteUser();"
Javascript Code
function deleteUser() {
if Confirm("Delete User") {
return true;
}
}
|
|
|
|
|
+5
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Aslam O Alaikum Every Body
I have Confusion How I Deploye an Desktop Application Exe File On Local Server
|
|
|
|
|
Alaikum Salam Bhai,
You just compile the program in "Release" mode, then copy the entire content of "Release" folder, put it on the deploy machine.
Hope this helps!
Thanks!
- Francis S
|
|
|
|
|
desktop application(.exe) is installed and not deployed.
|
|
|
|
|
If you want to go with installer, Please try the below link:
CodeProject URL
Hope this helps!
|
|
|
|
|
As a part of my project I have used chart control in which I a drawing a regression curve for the series of points. But the curve is not showing fully. Could anyone please help me to resolve this issue.
The code is below:
chrt_ScatterPlot.DataManipulator.FinancialFormula(System.Web.UI.DataVisualization.Charting.FinancialFormula.Forecasting, "Linear,1,false,false", dd_Location.SelectedItem.Text, chrt_ScatterPlot.Series["TrendLine"].Name.ToString());
|
|
|
|
|
I have a modalpopupextender and i have a panel inside that..in the panel i have a gridview.As the size of gridview increases it goes out of the modalpopup.How to keep the size of modalpopup increase according to that of the grid..
|
|
|
|
|
if you are looking to add scroll bar to your popup than set the css overflow property to auto...
<asp:panel style="overflow: auto;height:100%; width: 100%;" >
|
|
|
|
|
I was thinking for some time to try and do some home automation by building a system to manage my library of physical books.
Basically I'm thinking on building a system that automatically retreives and stores books from a shelf based on user input. Add to that, I'm also thinking on building a system that could browse through Amazon and order books for me.
I can handle the first part but I have absolutely no idea how to approach the automatic book ordering system. Now, I can imagine a dozen reasons why Amazon wouldn't want people abusing their website but I would really like to come up with something that could just grab whatever book title I tell it to look for and just do the order for me.
Is this even possible? To be fair I don't have much experience in web programming, I'm more familiar with embedded systems, desktop apps and games so I'm not sure if its feasable to write something in C# to do this or if there's some kind of API provided by Amazon that would allow me to automate the ordering process.
I know I can use POST to tell the server to accept data but I don't know if something as simple as this would work in my case.
Heck, if its not possible for Amazon, any other decent place where I can order books from would be nice.
|
|
|
|
|
Why not just buy a kindle?
|
|
|
|
|
|
I Have created Pdf file using ITextsharp.dll which is works. but it does not work with css. How I generat pdf with well formating??
|
|
|
|