|
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
|
|
|
|
|
Please write this code c#
|
|
|
|
|
string YourString = Request.QueryString["QuesryStringname"];
|
|
|
|
|
vb.net
Dim StrCom As String
StrCom = CType(Request.QueryString.GetValues("CID")(0), String)
Lable1.text = StrCom
c#:-
string StrCom = (String)Request.QueryString.GetValues("CID")(0);
Lable1.text = StrCom ;
i think soniya have done this type of work in past
Piyush Vardhan Singh
|
|
|
|
|
Error: Method Name Expected
|
|
|
|
|
use this
string StrCom = Request.QueryString["CID"];
Label1.Text = StrCom;
its working 100%
Piyush Vardhan Singh
|
|
|
|
|
Piyush Vardhan Singh wrote: Dim StrCom As String
StrCom = CType(Request.QueryString.GetValues("CID")(0), String)
Lable1.text = StrCom
WHY ? Request.QueryString returns a string value. Why you need to cast it again to string ?
|
|
|
|
|
yes u r right. but i use this code in my last project so i paste this code for deep.
Piyush Vardhan Singh
|
|
|
|
|
Error : Method Name Expected Please Correct Code
|
|
|
|
|
use this
string StrCom = Request.QueryString["CID"];
Label1.Text = StrCom;
its working 100%
Piyush Vardhan Singh
|
|
|
|
|
I have ASP.Net(vb) 1.1 app with SQL 2000 back-end, Crystal for VS. Here is my situation:
I have a crystal report that is populated dynamically using param stored procs which i load into a dataset to populate a datagrid. I take the current record selected from the datagrid and query for a max 5 of the customer's previous records, from the current record. I apply the current record to the dataset (table 1) I then take the previous 5 from the current record, flatten it, and populate (table 2) of the same dataset. This is an existinig report with over 500 fields and formulas so a redesign would be a monumental task. The problem is:
When there is 1 record in the datagrid or if I choose the last record from the datagrid, I get a blank PDF. In other words, if there are no previous records from the current record I get a blank PDF. The report should at least show me the current record, because if it is in my datagrid the record exists. But I don't get the currrent record (when there is only one in the grid) or the last record of multiple records from my datagrid. If there is at least 1 previous record the report is not blank.
I'm trying to state it from every angle possible.
I hope this makes since.
Please Help!
Where there is a Will there is a way. Right now, I'm looking for a good Will, because he knows the way!
|
|
|
|
|
I have a WebApplication Project (I installed the Visual Studio Add-In to create the project). This is not a Web Site Project.
I have two language resourse files. Resource.resx and Resource.es-es.resx file.
I have written code to change the culture dynamically. At first it was not working properly.
When I went and added the language into IE, I am able to change the language.
How can I do this without adding culture code into the IE's Language settings?
Please advise,
Shrini
|
|
|
|
|
|
Hi,
Seen this article already (http://kbalertz.com/306162/Current-Culture-Programmatically-Application.aspx) while trying to figure out everything.
currenly the tag is set to <globalization culture="auto" uiculture="auto"> in the web.config. I am manually changing it by changing the currentthread's culture. this only functions if I have added that culture in the IE language settings.
Otherwise the culture is not changing when I change it from a list. This is what I am confused about. Why would it not change? I should be able to just change the thread's culture and have the same effect without having to change my language settings.
Please advise,
Shrini
|
|
|
|
|
I m using vb.net 2005. I dont want to hard code my connectionstring I want to be able to pass the Database name and teh server name to my connectionstring
any vb.net code will be appreciated.
How do i serach a domain or a network for the servers
t.aransiola
|
|
|
|
|
I created a class which is to declare constant string variables used to store messages shown for the users. But now I heard about the resource file. I am doubt which one is the better. Is there any another better method to store messages to users? Please let me know your valid advice.
Thanks and Regards,
Hogan
|
|
|
|
|
hogan.smith wrote: Is there any another better method to store messages to users?
I never seen a resource file storing messages to user or constants. I'd like to use a XML file to store user specific messages, and write a XML serializable class which gives access to all these values.
|
|
|
|
|
Hi,
How can I make a installation project for a web Application with Setup and deploy Project of VS2005,
in fact copy files to wwwroot, but Setup and deploy Project, copies them to Program Files.
Best wishes
|
|
|
|