|
Try this. I think this is exact one
"\d{0,16}(\.\d{1,2})?"
Best Regards
|
|
|
|
|
How can i Open File Dialog without html file field. By clicking on a server button i need to Open File Dialog from server side coding.
Thks
|
|
|
|
|
try using the following code:
if (file.Exists)
{
Response.Clear();
Response.AddHeader("Content-Disposition", "filename=" + file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/pdf";
Response.WriteFile(file.FullName);
Response.Flush();
Response.End();
Response.Close();
}
Incase the content type has been defined for word doc or xls file, the file dialog box will open itself.
Hope this is of some help !
|
|
|
|
|
i mean not to open file.. i want to open Open File Dialog box for choosing a file to upload from the local system , without using file field control
|
|
|
|
|
I hope follwing code is sufficient for you.
I open a new page but closes the window and only dialog box appears.
onload= function(){
file1= document.getElementById("file1");
file1.click();
window.close();
}
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
I am having the master page and a aspx page(of type master property).Now the question is which form load will execute first master page form load or the master page aspx type
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
|
Why don't you try it out yourself? Put a Response.Write in each method, and see which ends up first in the generated code.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I think master page load will execute first...But this think u can check practically...
Regards
Aavesh
|
|
|
|
|
First content page will be loaded and later master page will be loaded.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
|
Hi,
I am developing intranet website.it automatically takes username as user logs in to system using active directory.
using User.Identity.Name and gives msg to user as welcome Mr. to our Intranet application.
this entire application is under inetpub/wwwroot in my system.it is not on server.
My computer name is bhuraa.
now, i tried it to start from another computer using http://bhuraa/intraApplication.
It works absolutely fine.even displays welcome msg as per system username.
But now the problem is here.
I am trying to fetch user information from active directory.User already logged in.
It works fine only on my pc(system). I tried it from another computer.it doesnt work.even using another username or my username.
so, please help me out where could be wrong ? i need to configure something ?
code is below,
I couldn't understand.it works on my computer.and not working on aonther computer.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lblmail.Text = GetUserInfo(User.Identity.Name, "mail")
lblgn.Text = GetUserInfo(User.Identity.Name, "givenName")
lblsn.Text = GetUserInfo(User.Identity.Name, "sn")
lbllocation.Text = GetUserInfo(User.Identity.Name, "l")
lblstAdd.Text = GetUserInfo(User.Identity.Name, "streetAddress")
lblzip.Text = GetUserInfo(User.Identity.Name, "postalCode")
lbltel.Text = GetUserInfo(User.Identity.Name, "telephoneNumber") lblcountry.Text = GetUserInfo(User.Identity.Name, "co")
End Sub
Public Function GetUserInfo(ByVal inSAM As String, ByVal inType As String) As String
Try
'Dim objsearch As DirectorySearcher = New DirectorySearcher()
'Dim strrootdse As String = objsearch.SearchRoot.Path
Dim sPath As String = "LDAP://RCJY01DC01"
' Dim uname As String = Request.ServerVariables("REMOTE_USER")
Dim SamAccount As String = Right(inSAM, Len(inSAM) - InStr(inSAM, "\"))
Dim myDirectory As New DirectoryEntry(sPath)
Dim mySearcher As New DirectorySearcher(myDirectory)
Dim mySearchResultColl As SearchResultCollection
Dim mySearchResult As SearchResult Dim myResultPropColl As ResultPropertyCollection
Dim myResultPropValueColl As ResultPropertyValueCollection
mySearcher.Filter = ("(&(objectClass=user)(samaccountname=" & SamAccount & "))")
mySearchResultColl = mySearcher.FindAll()
Select Case mySearchResultColl.Count Case 0
Return "Null"
Exit Function
Case Is > 1
Return "Null"
Exit Function
End Select
mySearchResult = mySearchResultColl.Item(0)
myResultPropColl = mySearchResult.Properties
myResultPropValueColl = myResultPropColl.Item(inType)
Return CStr(myResultPropValueColl.Item(0)) Catch ex As System.Exception
End Try
End Function
|
|
|
|
|
I think you can directly use LoginView Control.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
I don't know where to put tag to link to my style sheet within web user control.
How can i do this?
thank
=)
|
|
|
|
|
You can't. The css file has to be linked from the head section of the page.
You can add a link element to the Page.Header.Controls collection. If your control can be used more than once in a page, you have to check so that the element is only added once.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi, I am using VS 2003.
I have a Textbox inside a DataGrid Template Column.
i need to find out the value of the Textbox using JavaScript.
How to get the value..
please help me..
Thanks & Regards,
Jai Shankar
|
|
|
|
|
The datagrid is rendered as a table...try to get the id of the the textbox and then access the value...
Koushik
|
|
|
|
|
Hello guys.
Im trying to create some aspx menus but all I can find are licensed ones.
Im looking to use Visual Studio this time, but dont knw wher to start.I was using another software but requires licence so Im thinking of using VS.
Is there another great software that i can maybe download and use without any licencing.Thank you in advance.
kagiso
|
|
|
|
|
There's nothing built in, but there's tons of free js menus
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Ok, thanx.Will sure look for something.
kagiso
|
|
|
|
|
Hello Everyone,
I've designed a placeholder which takes some links from the database at run-time like monthname(Jan,Feb,Mar,Apr,..........)
And now i want to enhance it..
I want as i click on Jan link then it should bring images of month Jan.
If i click on Feb link then it should bring images of month Feb.......
and so on.....
|
|
|
|
|
OK. And what's the problem?
|
|
|
|
|
Problem is "I'm not getting the way to solve it"..........
Can u tell me.............
|
|
|
|
|
Your description of the problem is a little lacking in detail. Makes it a little hard to provide any guidance.
|
|
|
|
|
I've a PlaceHolder which holds some links like months name e.g. Jan,Feb,Mar,Apr...
These links are coming from the database and also an authorised can create more links at run-time........
Next, I want as an user clicks on a link like Jan then it must bring the images belongs to month Jan. If he clicks on Feb then he should brings images of Feb month.....
Plz try to understand what i'm trying to say ...........
|
|
|
|