|
Rahul Babu wrote: OleDbCommand cmd = new OleDbCommand("select * from [chapters$]",conn);
Can anybody tell me how can i select a particular column. For eg: if the column name is like 'chapter_no'
Try,
OleDbCommand cmd = new OleDbCommand("select [chapter_no] from [chapters$]",conn);
You can aslo use name which has whitepaces like
OleDbCommand cmd = new OleDbCommand("select [chapter no] from [chapters$]",conn);
|
|
|
|
|
|
|
How to pass data from one Iframe to another Iframe. Like I place a link button in Iframe1 of page1.aspx and display label message in iframe2 of page2.aspx page.
Pls help me ...
Thanks in advance
|
|
|
|
|
Hi,
u can use hidden field in Main Page and can set value in hidden field then retrieve value from another Iframe using Javascript.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
can any body tell , if i transfer fund from credit card using paypal's dodirectpayment method i sufficient, is authorize.net required or i have to show the my user that from which way u want to choose payment method.
1.authorize.net
2.paypal
just tell me which is best .
|
|
|
|
|
chanu007 wrote: just tell me which is best .
For this I guess Paypal Developer Support Forum[^] is the best.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
For me, I will choose Paypal..
|
|
|
|
|
Your second option i.e Paypal is best
Thanks & Regards
Niranjan
|
|
|
|
|
Can any body tell me how to pass data from one form to another without using session,cookies or through url rewriting or even with view state just as used in PHP which uses GET or POST variable .
|
|
|
|
|
Hi
I think this four are basic methods for State Maintain. you can use anyone from it to get data at a aspx page passed from another page. Other solution is store data into database at one page and get it from database at another page.
But my suggestion is to use anyone from this four.
1)Session
2)QueryString
3)Coockies
4)ViewState
Regards.
"If I were not myself, I would like to be somebody like myself."
|
|
|
|
|
Shah_Thought wrote: But my suggestion is to use anyone from this four.
1)Session
2)QueryString
3)Coockies
4)ViewState
Have you ever tried using ViewState to send data from one page to another? Does it work?
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
oh sorry It's my mistake. sorry again....
"If I were not myself, I would like to be somebody like myself."
|
|
|
|
|
How about using Server.Transfer() method to redirect to the next page and accessing the values of the previous page?
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
|
exactly...
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi forum,
i am developing a c# based web app in .net 2.0. I wanted to add my assemblies to GAC.
I followed the required steps by creating a strong key, and then adding the following line to my Assemblyinfo file
[assembly: AssemblyKeyFile("C:\\mykey.snk")]
However, as soon as i compile my class lib, i get the following error.
Error 2 Assembly generation failed -- Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a strong name Test<br />
This seems strange to me, since my enterprise library dll`s are already in GAC (used the installer to do that).
can anyone please advise me on the same..
Kunal
|
|
|
|
|
By default, Enterprise Library dll are not installed under GAC.
If you are sure that those dlls are already installed in GAC, the dll that you used in your project is not from the GAC..
Try to check the path of dll that you have referenced.
|
|
|
|
|
Michael,
yes, the ent lib is not installed by default, but i did that using an installer. And i can be sure of this because i can view the ent lib dll`s in the Asssembly Cache Viewer, from .net 2.0 console.
Apart from that i get the Dll`s listed in the Add reference dialog.
However, as you mentioned about the path, i checked the properties and got this one
C:\Program Files\Microsoft Enterprise Library January 2006\bin\Microsoft.Practices.EnterpriseLibrary.Data.dll
Is that wat it should be. Also, the Copy Local property is true.
Please Advise
Kunal
|
|
|
|
|
hi,
some leads that i get after a drill down is that the web.config file contains the entries for the assemblies as follows
<code>
<configsections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
</configsections>
<dataconfiguration defaultdatabase="DbConnectionString">
<providermappings>
<add databasetype="Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" name="System.Data.SqlClient" />
</providermappings>
</dataconfiguration>
</code>
<code><add assembly="Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
<add assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />
<add assembly="Microsoft.Practices.ObjectBuilder, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=null" />
<add assembly="Microsoft.Practices.EnterpriseLibrary.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" /></code>
The PublicKeyToken=null attribute is probably the root cause of the problem, I tried changing it to the value from GAC, and it shows an error..
Can anyone please advise me on the subject.. been stuck on it for a long while now.
|
|
|
|
|
how i can pass an array into a viewstate and at the same time how i can retrive that array from a view state
|
|
|
|
|
Why do you want to use the Viewstate? I suggest you to use the Session or Cache..
For example:
Session["mysession"] = yourarrayvariable;
|
|
|
|
|
jagadeeshkumar2106 wrote: how i can pass an array into a viewstate and at the same time how i can retrive that array from a view state
To add an Array to a Viewstate
Viewstate.Add("KeyName", ArrayVal)
To retrieve the array from the viewstate
stringArrayVar = CType(ViewState("KeyName"), String())
Note : ViewState can persist the values during the postback and are accessible on the same page, can not be accessed accross the pages.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
hi
my aim is to ask user to input a number and square it then want to display it in another text box ..with out postback of the page
i have used a html button n tried but failed
plz do let me know
regards
sindhu tiwari
Merry Xmas
|
|
|
|
|
<html >
<body>
<script language="javascript">
function Square()
{
var tb1 = window.document.getElementById("tb1");
var tb2 = window.document.getElementById("tb2");
tb2.value = "";
if(tb1.value == "" || isNaN(tb1.value))
return;
var temp = parseInt(tb1.value);
tb2.value = temp * temp;
}
</script>
<input type="text" id="tb1" name="tb1" />
<br />
<input type="text" id="tb2" name="tb2" />
<br />
<input type="button" value="Square" onclick="Square();"/>
</body>
</html>
|
|
|
|