|
I am writing a ASP.NET 2.0 web based application in which
I want the user to create & select a Folder using Windows Explorer.After the user creates and selects the folder, on pressing OK I should be able to get the PATH of the folder for storing in a database.
The problem is that there is nothing like FolderBrowserDialog in WinForms which allows me to select a Folder and get its path.
I got a good article in Code project but its written in VC++ 6.0.The article is
http://www.codeproject.com/dialog/cfolderdialog.asp
Can someone provide me the equivalent code in VC# Visual Studio 2005 or help me write a similar code. It will be greatly appreciated.
Thanks in advance,
Sunny74
|
|
|
|
|
Hi to all,
I have problem in modal Dialog box , when I show modal dialog box at first time it show the "Title" but when I do any posback event on modal dialog page the title for modal box is disappeared...
Any one know any idea .... how to persist title of modal dialog box "After post back event".
Regards
Yogesh M
|
|
|
|
|
Hi I have one usercontrol in that using repeater i shown some links in that template column...,
Now my question is,
The site maximize mode its showing the links asusual properly...,
But when i reduce the site size, in that time some links are showing down side,
I dont like to show those things down side,
In that time also the links have to be come same line...,
How to do that?,
Plz help me,
Regards,
Magi
|
|
|
|
|
For this, your tables which contains links and other elements should be sized in percentages. I mean giving a 100% width for table will resize the content when browser gets resized.
|
|
|
|
|
Hi navaneeth,
Thanks For ur reply,
Actually i given width=100% only...,
Eventhough when i resized the page i am getting the links in down side...,
See i have used that links in my usercontrol...,
I called that usercontrol in my aspx page...,
Now that usercontrols are displaying in that aspx form only...,
In that usercontrol table i given width=100%
But resizing window,i am getting some links in down side,
Regards,
Magi
|
|
|
|
|
what is your outer table size ?
|
|
|
|
|
Outer table?,
Means i didnt get ur quest...,
See that user control, i have a table in that i displayed the links...,
The table width is 100%...,
And that usercontrol i reffered in my aspx page...,
there,I wont tell that in any table...,
Just i inserted that user control in my aspx form...,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: Outer table?,
When you are designing a page that has to be fit on browser window when it resizes, needs an outer table with width specified in percentages. Outer table is the first table where you put other tables.
|
|
|
|
|
ya i given in that width 100%,
Eventhough coming some links are down sides
Regards,
Magi
|
|
|
|
|
May be the cell that contains links won't have sufficient space to allocate links. Try increasing the width of that cell which contains links
|
|
|
|
|
ya thanks for ur reply,
Regards,
Magi
|
|
|
|
|
There are seven checkboxes in my footer templet of the datagrid and also in the edit templet so my question is that i want a javascript for checking the status of that checkbox that wheather they are checked or not and also i want to maintain the status of that checkbox which are checked and store their value into the database. I require this script because i don't want to refresh the page and donot want to use required validator.
Please give me the solution as fast as possible for this question.
Hiren Dave
|
|
|
|
|
how i can add a new table to a editable iframe when user passing row size and column size
|
|
|
|
|
IFRAME will be having a pasteHTML/innerHTML (varies on different browsers) property, create table HTML tags with the user supplied values and pass it over to this.
|
|
|
|
|
sir u have answered to my qurrey .how we can do this sir using javascript
create table HTML tags with the user supplied values
|
|
|
|
|
Assume user is giving you the number of columns and rows needed. You have to create a JS variable which has HTML tags for making such a table. See the following sample
var TableJS = "<table>";
TableJS += "<tr>";
TableJS += "<td></td>";
TableJS += "</tr>";
TableJS += "</table>";
Hope this makes sense
|
|
|
|
|
thanks u very much sir, m getting now the table with user selected row and columns
|
|
|
|
|
sir can i get more than one table on iframe.its getting only one table
|
|
|
|
|
if you are able to do for one table, you can always extend the script to make it working for multiple tables
|
|
|
|
|
Hi
I am trying to List a folder Items which is in C:/
and my .aspx file is in server
My code
------
Public Shared al As ArrayList
al = New ArrayList
Dim FtpUpFiles() As String
If Directory.Exists("c:/songs/") Then
FtpUpFiles = Directory.GetFiles("c:/songs/")
If FtpUpFiles.Length > 0 Then
Dim i As Integer
For i = 0 To FtpUpFiles.Length - 1
al.Add(FtpUpFiles(i).ToString.Remove(0, FtpUpFiles(i).ToString.LastIndexOf("\") + 1))
Next
al.Sort()
dgUp1.Visible = True
dgUp1.DataSource = al
dgUp1.DataBind()
End If
------------------
It is working in Local fine But not in the server
How can access the folder form server
Than Q
Keerthi
|
|
|
|
|
kirthikirthi wrote: Directory.Exists("c:/songs/")
try following code
Directory.Exists(Server.MapPath("c:/songs/"))
best regard
pathan
|
|
|
|
|
If you mean that you want to access the folder on your computer from the server, that is not possible.
---
"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
|
|
|
|
|
This is not possible, because ASP.NET can access the directories which is located in side the virtual directory or allowed space.
|
|
|
|
|
I am using QueryString in asp.net. I am pick value and store in Label1
Lable1.text = Request.Querystring["dd"].ToString();
Now Label is = 1
But I want to pick a Text and store in Lable1
|
|
|
|
|
for example ur qry string is like this:-
http://192.168.8.5/file/Image.aspx?CID=20071012045958562
and text which u send through qry string is:-20071012045958562
u want this text display in ur lbl.
for this:-
Dim StrCom As String
StrCom = CType(Request.QueryString.GetValues("CID")(0), String)
Lable1.text = StrCom
Piyush Vardhan Singh
|
|
|
|