|
Please change the file path from UNC to Virtual. It will then work. Client site should have permission to show the image directly.
|
|
|
|
|
Thanks for your reply Abhishek..
I cannot use a Virtual path here because, this path is obtained from a browse button text field. The user will be selecting file from any physical location on the disc and my program is supposed to preview it. It is working fine with IE6... but not in IE7
How can I achieve this?
Thanks
Rijesh
|
|
|
|
|
I guess it's not working in FF also
This is normal behavior, in IE6 this is security problem. Unless user uploaded something to page, neither JS or ASP should be able to access any information of that file.
All new browsers in FileUpload html element don't anymore show file path, instead only file name.
I think you will have to do it without preview.
|
|
|
|
|
ohhh..
Anyway thanks enver for your help...
|
|
|
|
|
Hi All,
I need to know,In how many ways we can bind our data to asptable?
Actually,the requirement is explained as follows:
In a shopwebsite,I am planning to show a table which contains 24cells as hours per day and 7 rows as weekdays.In which I need to show opening hours which is getting from the database,as shaded in colors.
Can any one help me?
waiting for your valuable reply
Thanks & Regards
Yamuna
|
|
|
|
|
|
Take a look at ASP.NET Calendar control, it might be a good candidate writing a time sheet like thing.
|
|
|
|
|
Hi,
"System.Configuration.ConfigurationManager.AppSettings" I cannot get ConfigurationManager to show up as an option in intelesense. It shows as an error if I try to use it anyway.
Please help me
Thanks
Denny
|
|
|
|
|
Go to your Solution Explorer and Right click on your Web Project and go to Properties. In the in the Properties Dialog, look for References and Click on add Reference and look for System.Configurations. after that in your application in the usings , add it and everything will be fine.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Public Function ParseCSV(ByVal inputString As String, ByVal Delimiter As String) As DataTable
Dim dt As New DataTable
Dim re As New Regex("((?[^""" + Delimiter + "\r\n]+)|""(?([^""]|"""")+)"")(" + Delimiter + "|(?\r\n|\n|$))")
Dim colArray As New ArrayList
Dim rowArray As New ArrayList
Dim colCount As Integer = 0
Dim maxColCount As Integer = 0
Dim rowBreak As String = ""
Dim field As String = ""
Dim mc As MatchCollection = re.Matches(inputString)
For Each m As Match In mc
'Retrieve the Field and Replace Two Double Quotes with Single Double Quote
field = m.Result("${field}").Replace("""""", """")
rowBreak = m.Result("${rowbreak}")
If field.Length > 0 Then
colArray.Add(field)
colCount = colCount + 1
End If
If rowBreak.Length > 0 Then
'Add the Column array to the Row Array List
rowArray.Add(colArray.ToArray)
'Create a new arraylist to hold the field values
colArray = New ArrayList
If colCount > maxColCount Then
maxColCount = colCount
End If
colCount = 0
End If
Next
If rowBreak.Length = 0 Then
'This is executed when the last line doesnt end with a line break
rowArray.Add(colArray.ToArray)
If colCount > maxColCount Then
maxColCount = colCount
End If
End If
'Create the Columns for the table
For i As Integer = 0 To maxColCount - 1
dt.Columns.Add([String].Format("col{0:000}", i))
Next
'Converting The RowArrayList to Array Object for easier access
Dim ra As Array = rowArray.ToArray
For j As Integer = 0 To ra.Length - 1
Dim dr As DataRow = dt.NewRow
'Converting the Column Array List into an Array Object For Easy Access
Dim ca As Array = CType(ra.GetValue(j), Array)
' for each field into the new datarow
For k As Integer = 0 To ca.Length - 1
dr(k) = ca.GetValue(k)
Next
dt.Rows.Add(dr)
Next
If dt.Columns.Count = 0 Then
dt.Columns.Add("NoData")
End If
Return dt
End Function
I am trying to use the above code to parse csv file but get the error unrecognised grouping construct on line Dim re As New Regex("((?[^""" + Delimiter + "\r\n]+)|""(?([^""]|"""")+)"")(" + Delimiter + "|(?\r\n|\n|$))")
|
|
|
|
|
Then I guess your regex is broken. I suggest you download expresso and/or buy the book 'mastering regular expressions' to learn how they work. You should also break down your regex, removing a part at a time until you work out which bit is broken, and then work out why, or ask a more specific question here that shows you've tried to solve your own problem
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi all
i create a virtual directory in IIS 6, it contains all PDF files
i tried to open it from my client in same lan with Internet Explorer... it show me following error message
" You are not authorised to view this page"....
how can i solved this error ????...
i tried by giving Integred windows authentication
but falied...
what should i do ??? should i give impersonation ???
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: i create a virtual directory in IIS 6, it contains all PDF files
So, you want to to download those pdf file from client system?
koolprasad2003 wrote: " You are not authorised to view this page"....
Its means user does not have the sufficient permission to access the site.
koolprasad2003 wrote: i tried by giving Integred windows authentication
Just give Anonymous access and Give the folder read access to every body.
|
|
|
|
|
Abhijit Jana wrote: So, you want to to download those pdf file from client system?
no i want to just view these PDF files from my client...but when i click link it ask me for server password (authentication) if i give administrator and password
then it shows me in IE "You are not authorised to view this page"
=============================================================
Abhijit Jana wrote: Its means user does not have the sufficient permission to access the site.
Yes ..... but how should i give ????
==================================================
Abhijit Jana wrote: Just give Anonymous access and Give the folder read access to every body.
i have done that already but.......falied...
what should i do ????
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hello every one,
I am using MYSQl data base.There is an option "DATABASE DIAGRAME" for database degining when we use sql server as data base,is there any facility for desining database when we use MYSQL,guide me how can i desing database.
|
|
|
|
|
Hi,
This is ASP.NET Forum. Please post it to General Database forum.
|
|
|
|
|
Hi friends,
Could you suggest me the article links (easily understandable) to learn JSON for without using ajax in asp.net?
Thanks
G Nathan
|
|
|
|
|
http://www.json.org/[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Anyn have idea about fre online tution for asp.net
Sabari MD
Application Developer
Veloxit Info Solutions
|
|
|
|
|
Perhaps this[^] may help.
Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya
|
|
|
|
|
Sabari MD
Application Developer
Veloxit Info Solutions
|
|
|
|
|
I got a problem while printing a text document in ASP.net with c#
I have to print a text by generating as user needed how much he needed to print for which i am willing to use loop and dynamic label.
I want good suggesion ad also how to print document longer than a single page document with long paper.
Plz help me as fast as possible.
|
|
|
|
|
Well, there are small things that you can do with @Media CSS element. Check W3School for all the things you can do.
From your code you can just open Print Dialog of the browser using Window.Print. You can make a Div and print a div as well. But Customization is totally depends on the User, I think. User have to specify the page size and all margins himself.
|
|
|
|
|
Hi all,
I have an old project that have to be integrated to a new one, the issue i encountered is about Globalization and Localization, the old project uses .resx files for local resources and the new project uses database to store resources.
Can i use database and resx files as resource storage at the same time? when the project share only one config?
if not, can anybody have an idea how the two ways will work? Or there's no other choice but to transfer to database all the items in the 50+ resx files?
thanks alot!
-ewin
|
|
|
|
|
Hello All,
how to remove item from viewstate i have two list box when i shift item from one list box to another list box using js then after that item display on view state so can you please tell me how to remove item from viewstate?
Thanks in Advance,
Anish Patel
modified on Thursday, July 16, 2009 5:14 AM
|
|
|
|