|
hi,
I want a folder browser dialog control for asp.net. can any one help me?
sam.
|
|
|
|
|
I'm afraid that not possible without using an active x- control or a java applet on the page.
|
|
|
|
|
do u know any activeX control?
|
|
|
|
|
How would i pass values from one form to another?
Like if i want to retrieve a variable's value on the login form and use it on the home page?
thank you
Nothing lasts but nothing is lost
|
|
|
|
|
If your value is not very big then you can send it through querystring. From the login page you have to send the value through the URL and in the home page you can retrieve it from the URL.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Not a very secure method. After all the data you are passing would be in plain text attached to the url.
You could use a session variable to pass the values around
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Not a very secure method.
Quite correct. This method should only be used if the data is not that much valuable.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thank you it worked
Nothing lasts but nothing is lost
|
|
|
|
|
Always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Does the session variable pass like a quary string or does the server keep track of the session variable?
Chad Dolan
|
|
|
|
|
A session variable is maintained by the server and is not passed via query string
only two letters away from being an asset
|
|
|
|
|
Hi,
I have a table for users of a system. A datagrid is databound with the table's details. However, there is another table which stores the users' title(Mr/Mrs).
In the user table, it is a foreign key. How can I display Mr/Mrs on my datagrid and NOT a number ID representing the user title?
Any hint would help, Thank you in Advance.
|
|
|
|
|
From database itself you can get the title text with the user details using join in the query.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I think you ay have misunderstood me, or may i be i misunderstood you :S
Let me rephrase.
Currently, in my datagrid, if I add new user to the databse table "User", using the webform, this is what is displayed:
**Title****Firstname****Lastname****Username**
----------------------------------------------
**1****Joe****Blogs****jbloggs**
I want to replace that "1" with "Mr", which can be read from the "Title Table".
I think it may have something to do with views, a friend of mine advised.
-- modified at 10:46 Wednesday 23rd August, 2006
|
|
|
|
|
Hi,
Just make a join with the table which has Mr, Mrs, etc.. with this table like,
Select a.idfield, b.MrMrsfield as title, a.firstname, a.lastname, a.username
from nametable a, mrmrstable b
where a.idfield = b.idfield
and on the grid hide the idfield column, hope it makes sense for your requirement.
Ram
|
|
|
|
|
This makes complete sense.. Thank you for your replies.
There is something I'm missing tho. I will figure it out!
Thanks again.
|
|
|
|
|
I figured out what the problem was!
The BOUND COLUMNS in the datagrid were referring to the ID of Mr/Mrs.
Since I have made a qurey referring to the JOIN in the VIEW of both tables, I was able to point to the DESCRIPTION field of the TITLE table which holds the values Mr/Mrs.
In other words:
(COLUMN) DataField="Description" SortExpression="Description" HeaderText="Title"
(COLUMN) DataField="Forename" SortExpression="Forename" HeaderText="Forename"
(COLUMN) DataField="Surname" SortExpression="Surname" HeaderText="Surname"
(COLUMN) DataField="Username" SortExpression="Username" HeaderText="Username"
which work with the query: select * from VIEW_USER
I hope any who searches for an answer to this will find this post useful!
Thanks again.
|
|
|
|
|
Can anyone tell me what needs to be done to get the enterprise library
(june release) to work with VS 2005. I have changed the paths in the bat
files as reccomended in the following post
http://www.codeproject.com/dotnet/EntLibJune2005_VS2005.asp
and made all the changes but at runtime when calling
FormatData obj = Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.GetConfiguration("FormatSection") as FormatData;
I get the following error,
"Unrecognized attribute 'requirePermission'
(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machin e.config line
14)"
Any help would be appreciated
Praveen
|
|
|
|
|
Did you open the machine.config file and search for requirePermission. Remove that attribute or change it.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
I have got .netframework 1.1 and .netframework 2.0 installed on my machine.
I searched for machine.config for .netframework 2.0 and removed requirePermission attribute from it.
But it did not solve the problem, now it generates following error :
Unrecognized configuration section configProtectedData. (C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 97)
Praveen
|
|
|
|
|
Due to format like below, we are not able to save properly this information in SQL server 2000
Migración Líneas 1&2
Above information is saved as in SQL SERVER 2000
Migración sistema control Abelló Linde Alcalá
Can someone help me in this regard?
Thanks
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
Hi,
I am having problems looping through an array.
I have an arraylist, that has no values to it, once I start a while loop that fills a datareader. Once I get a specific value from a field in the database, I write that value to the arraylist. Once the reader is done, I also want to display the results from the arraylist in a label.
My code:
<br />
dim arrErrors as new Arraylist()<br />
<br />
While (objDr.Read())<br />
objInvoice = New Invoice()<br />
objInvoice.InvoiceDate = objDr(0).ToString<br />
objInvoice.InvoiceNumber = objDr(1).ToString<br />
objInvoice.InvoiceSubHead = objDr(2).ToString<br />
objInvoice.InvoiceTotal = objDr(3).ToString<br />
objInvoice.InvoiceSignoffBy = objDr(4).ToString<br />
objInvoice.InvoiceSubmittedBy = objDr(5).ToString<br />
<br />
<br />
If objInvoice.InvoiceSubmittedBy = "" Then<br />
arrErrors.Add("An error occured retrieving record" & objInvoice.InvoiceNumber)<br />
<br />
Else<br />
<br />
objInvoiceDetails.Add(objInvoice)<br />
End If<br />
<br />
End While<br />
'' I need code here to display the arraylist in an label<br />
<br />
Would really appreciate the help.
|
|
|
|
|
Dim intCount As Integer = 0
Do While intCount < arrErrors.Count
Me.Label1.Text += arrErrors(intCount).ToString
intCount += 1
Loop
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Thanks,
I have one more problem. I do the code in my data access layer. How can I display the arraylist on my aspx page? If I do the following, I still dont see the label with errors...
<br />
'label already in aspx page <br />
Dim lblShowDetails As Label<br />
<br />
Dim intCount As Integer = 0<br />
Do While intCount < arrErrors.Count<br />
lblShowDetails.Text += arrErrors(intCount).ToString<br />
intCount += 1<br />
Loop<br />
|
|
|
|
|
Are you getting any error or simply the data is not being displayed?
Best Regards,
Apurva Kaushal
|
|
|
|