|
|
pradeepsimha wrote: how to pass array from one page to another?
First of all what is the reason for passing the Array over page? If its same for all user try to store it in Application Variable or For different for every user use Session.
But why you are trying to do that ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
actually i m doing bus reservation project......in form user will select seats(using checkbox lists) and i need to pass those selected values from this page to next page.......so only........
|
|
|
|
|
But, is it homework, or paid work ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You've asked this a few times now. Is it homework or paid work that you're taking on, but have nothing close to the skills needed to do ? If it's homework, talk to your teacher. If it's paid work, tell the client you are a fraud. If you really want to do this, just read all the answers you got last time, and if you post again, post something like 'I was told to do xx, here is my code, and here is where I am still stuck'. The alternative, is to decide that programming is beyond you and to do something else with your time.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
thanx for u r concern bt programming is not behind me.......k
|
|
|
|
|
I'm not sure what this means ? Are you a student who has not studied enough, or are you being paid for your ignorance ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
if you know u help but pls dont try to degrade one's ability because one or other day u ll also in d situation to get help from others...
|
|
|
|
|
you're wrong. I have far more difficult problems than yours and I solve them myself, with google and with textbooks. I DO ask questions from time to time, but never as basic as this one, and never without reading and applying the answers.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi, you must have public property for your array.
example:
private _id as string()
public property strID() as string
|
|
|
|
|
Gosh - that's more clueless than even the OP. This thread is getting better all the time.
How does he pass the property between web pages according to your answer ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have a listbox and MovetoTopbutton,MovetoBottombutton
when i select an item in the listbox and if i click on MovetoTopbutton
then the selected item should be placed in top of the listbox
vise versa for MovetoBottombutton
how to do this one.................
|
|
|
|
|
Someone else asked this a couple of posts down ( or you asked twice with two different accounts) . It's done with javascript, which means it's not really an ASP.NET question. Google for samples
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Here is a sample which moves the selected item up. You can revise to meet your need.
protected void LinkButtonMoveUpProducts_Click(object sender, EventArgs e)
{
if (this.ListBoxProducts.SelectedIndex <= 0)
{
return;
}
int index = this.ListBoxProducts.SelectedIndex;
ListItem li = this.ListBoxProducts.SelectedItem;
this.ListBoxProducts.Items.Remove(li);
this.ListBoxProducts.Items.Insert(index - 1, li);
}
|
|
|
|
|
I have asp.net & vb.net Project it work fine in my local laptop but when i host it in ixwebhosting i have problem you can try it www.sudantrade.gov.sd the problem is :-
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
|
|
|
|
|
Why is it that so many people post here without even READING the error ? The error is TELLING you that you need to change your web config in order to see what the ACTUAL error is, this error is just telling you that the web config is set up to hide the error from a remote user.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have asp.net & vb.net Project it work fine in my local laptop but when i host it in ixwebhosting i have problem you can try it www.sudantrade.gov.sd the problem is :-
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
|
|
|
|
|
I want to get all names from an email that saved in contact. Just like a social network used to friend request to those contact name.
|
|
|
|
|
Hi Sir
I have one doubt that is
the list box having items i want to change the priorities of listbox using move up down first last please send code for that question
|
|
|
|
|
Moving items up and down on the client is done with javascript. Literally hundreds of samples are a google away
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hi,
I have codebelow to populate treeview it works fine & binds value & text to nodes perfectly,
I want to set background for selected nodes & get pathvalue of selected nodes
I tried to put code inside
TvFile_SelectedNodeChanged but it fires only for root node. it doenst fire for any other node.please help me to get selected node value
please help me out,
code
Partial Class FileApplication
Inherits System.Web.UI.Page
Private Const VirtualImageRoot As String = "~/FileFolder/"
Private ClsFileapp As New TreeFileApplication
Private GetCurId As String = String.Empty
Private ds As DataSet
Private Sub PopulateTree()
Dim rootFolder As New DirectoryInfo(Server.MapPath(VirtualImageRoot))
Dim root As TreeNode = AddNodeAndDescendent(0, Nothing)
TvFile.Nodes.Add(root)
End Sub
Private Function AddNodeAndDescendent(ByVal val As Integer, ByVal parentNode As TreeNode) As TreeNode
Dim virtualFolderPath As String
ds = New DataSet()
If parentNode Is Nothing Then
virtualFolderPath = VirtualImageRoot
ds = ClsFileapp.GetRootFolder()
Else
ds = ClsFileapp.GetRootFolder(val)
virtualFolderPath = parentNode.Value & val & "/"
End If
Dim node As New TreeNode(ClsFileapp.GetfolderName(val), val)
Dim reader As IDataReader = ds.CreateDataReader
While reader.Read()
Dim child As TreeNode = AddNodeAndDescendent(CInt(reader("id")), node)
child.NavigateUrl = "FileApplication.aspx?id=" & reader("id")
child.SelectAction = TreeNodeSelectAction.Expand
node.ChildNodes.Add(child)
End While
Return node
End Function
Private Sub DisplayFileNFolder(ByVal folderid As String)
ds = New DataSet()
ds = ClsFileapp.GetFilesFolder(CInt(folderid))
If ds.Tables(0).Rows.Count > 0 Then
DLDIsplayFiles.DataSource = ds
DLDIsplayFiles.DataBind()
End If
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
GetCurId = Request.QueryString.Get("id")
If GetCurId IsNot Nothing Then
DisplayFileNFolder(GetCurId)
End If
If Not IsPostBack Then
PopulateTree()
MPopupcreate.Hide()
End If
End Sub
Protected Sub TvFile_SelectedNodeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TvFile.SelectedNodeChanged
TvFile.SelectedNodeStyle.BackColor = Drawing.Color.Blue
End Sub
End Class
|
|
|
|
|
Does anyone know how asp.net 2.0 can dynamically write a .html file without saving it to the server. Can you stream a file down to the browser, anything.html, without anything.html physically being on the hard drive? I hope this makes sense.
Note:I want to create a completely seperate page with its own unique url only existing in the users' browser with its own name.
Any help or hint would be appreciated!
|
|
|
|
|
You seem to want to write a http handler, so that you can redirect a url like www.mysite.com/myuser to a URL which generates the page this fictional URL is pretending to point to.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Thank you for so quick reply!
I don't want to write a http handler.
|
|
|
|
|
Then you are utterly, utterly screwed. A HTTP Handler is both trival to write in ASP.NET and the ONLY way for the browser to point to a page that does not exist, and yet return something.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|