|
I had the following code:
Dim constr as string<br />
Dim mysystem as system.configuration.configuration<br />
mysystem=system.web.configuration.webconfigurationmanager.openwebconfigura tion(Nothing)<br />
Dim mycon as System.Configuration.ConnectionSettings<br />
mycon=mysystem.connectionstrings.connectionstrings("CString1")<br />
constr =mycon.connectionstring he code above returned the error below:
"Object not sent to an instance of an object" on the line
constr =mycon.connectionstring<br />
Please where did I get it wrong.
Thanks
|
|
|
|
|
To read a connection string from web.config using WebConfigurationManager , all you need to do is:
Dim constr As String = WebConfigurationManager.ConnectionStrings("CString1")
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
in web.config:
<appSettings><br />
<br />
<add key="ConnString" value="server=(local);database=Northwind;Integrated Security=SSPI" /><br />
<br />
</appSettings>
call in u r web page as
<br />
Imports System.Web.Configuration<br />
<br />
dim constr as string<br />
constr=ConfigurationManager.ConnectionStrings("ConnString").ConnectionString<br />
<br />
use this
hope this helps
|
|
|
|
|
hi
it will run in localhost, when upload to server it will come error
the error..
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
|
|
|
|
|
|
hai all plse help me to solve this problem.
I have two aspx pages.from one page i am calling 2nd page through java script(window.open). in second page i have one grid. when i select one recrod from tat grid i will get one id. based on that id i need to populate the dropdown in first page.
plse help me
Thanks in advance.
Lijo Rajan
|
|
|
|
|
In your parent's Page_Load event, add a block at the top to look for a Request.QueryString("id")
So...
Page_Load:
If Not Request.QueryString("id") Is Nothing Then
'Do databinding here to the drop down list based on this ID.
End If
Then redirect the parent page to itself using the ID query string ("id=value").
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
Thank you verymuch Mr Daniel Minnaar for ur reply.In my case i am not redirecting my 2nd page to first page.I am calling 2nd page as a popwindow through javascript.so based on the id selecting from 2nd page grid at that time itself the dropdown list should be populated with out redirecting to parent page.in this case how i can use page load event?
plse give me a proper solution.
Lijo Rajan
|
|
|
|
|
Hi Guys,
I need to create an Application in C#/ASP.NET (in Server1) which can create an Website in SharePoint 2007 (in Server2). Both C#/ASP.NET Application & Sharepoint 2007 are in different Servers.
Please send me information regarding this.
thank you
Mohamed Nazeem
Software Engineer
Bangalore
|
|
|
|
|
You'll need to look in to Programmatically modifying DNS, and IIS. Simple Google's on both will yeild tons of results.
You may also need to check out permissions.
Good luck.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
hello every one
I am facing a problem with the IFrame, I have to load the url into IFrame and when the user click on any link within this Iframe It will have to open a new browser window with the clicked link. So I am unable to open the clicked link from the Iframe into new browser window, When I opened clicked link from Iframe, each time it opens page(home page /first page loaded into Iframe of the url link).
1)How can I open clicked link from the Iframe into new browser.
Also I have to take the value of clicked link url from the child browser when the user close the child browser.
So
2) How can I get clicked link value into my form control eg in a TextBox from the child browser.
Thanks
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
From point 2 I means that for eg. In my form there is textbox and I frame. Textbox contains values of url and url have to be loaded into IFrame. Suppose http:\\www.yahoo.com is the value in the text box and http:\\www.yahoo.com is loaded into Iframe.
So problem start from here-- when user clicked on any link of yahoo.com from the Iframe, the clicked link have to open in a new browser and user can click any link of the new browser window, So finally when the user close the new browser window, the url value of the browser window have to be come into textbox. So i have to take the clicked link url values into my form , How can I do this..???
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
Hello,
I am working in oracle 10g,
and I have done package that contains cursor
and I have use cursor to return rows from DB.
the package
TYPE T_CURSOR IS REF CURSOR;
output of stored procedure
-PISLAST : to check the last page (Yes/No)
-PCUROR :["PCUROR" OUT T_CURSOR] is the result of the query
The procedure works great in Oracle
I want to use cursor as datasource of data list
I have done the following
....
Iam using Oracle.DataAccess.Client; name space
....
OracleParameter ResultSet = new OracleParameter();
ResultSet.Direction = ParameterDirection.Output;
ResultSet.ParameterName = "PCUROR";
ResultSet.OracleDbType = OracleDbType.RefCursor;
cmd.Parameters.Add(ResultSet);
.....
I know how to use stored procedure in .net and out variable but I did know how to the cursor
thanks
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
|
I am having Numeric and character valuues in normal dropdown box .... noe i have to load the Numeric value in one gridview textbox and character in another GV textbox..
help me.
|
|
|
|
|
In the SelectedIndexChanged event of your drop down list, seperate your value types using the IsNumeric function in Visual Basic.
If IsNumeric(myDropDownList.Items(0).ToString())
myNumericTextBox.Text = myDropDownList.Items(0).ToString()
Actually, the drop down list might use a property of SelectedText or something. Can't remember.
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
i have retun coding to bind the value from to gridview textbox.... if i select the dropddoewn value i am getting both the numeric and character value in a single gridview textbox... i need to display the numeric value in 1 txt box and char in another inside the gridview
|
|
|
|
|
hi all
In Treeview have function showcheckbox for node
I check it is true
Nomal when i check to the checkbox and click on text, treeview will postback to server on event TreeNodeCheckChanged
But i want to check on CheckBox so it will postback to server on event TreeView1_TreeNodeCheckChanged
dont need click on text.
How can i do that ?
|
|
|
|
|
To put it simply, you can't. The TreeView control that ships with ASP .NET is designed like that. You could however, create a custom control which inherits from the TreeView and modify it slightly, but thats going to require some work...
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
Hi
I want to implement paypal in my website. I my website user have to pay some amount to become member of my site. I want to implement paypal for payment gateway. I don't want to redirect user to paypal i am taking all user credit card info on my page and sending this info to paypal (like authorize.net)and receive the response. How can i do this.
Thanks.
People Laugh on me Because i am
Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Pretty sure its in Paypals rules that your not allowed to take card details before it gets to their site.
I recently did an ASP.NET site with paypal and all I ended up parsing was a cost, product type, and my own reference number. You can either parse the info in a querystring or you can parse the info to paypal in a post.
You can customise paypal pages to look like your site though.
|
|
|
|
|
hi friends
i created tellyourfriend concept in asp.net
i use the field like this.
1.name
2.mail
3.friendname
4.friend mail
5.comment
here friendmail textbox i give two mail id instead of one but the mail didnot go..
if i give one mail id (it works fine)
can u help me?
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
|
but Michael
i am not give the mail.TO in static,it dynamically enter in textbox
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
saravanan05 wrote: i am not give the mail.TO in static,it dynamically enter in textbox
Yah. I know. that's why I'm telling you to put the ";" between each mail id. what you can do for validation is that if the user enter more than one email id, you should check whether it's seperated by ";" or not. if not then ask the user to enter ";" between mail addresses...
|
|
|
|