|
Hello
I am using my.settings to create a application scope connection string.
The customer would like to change this if they want to connect to another database, and this should update the app.config file with the updated connection string.
My problem I have into the setting and create a connection string (easy). But I don't know and can't find out to update and save the new connection string.
My.Settings.cnnString = "This is example connection" 'Error read-only property
I am using vb.net 2005
Can anyone help,
I got this code and it seem it would work. However, there is a problem with the code. I get a "Object reference not set to an instance of an object."
Here my code.
<br />
Dim config As Configuration.Configuration = Configuration.ConfigurationManager.OpenExeConfiguration(Configuration.ConfigurationUserLevel.None)<br />
config.ConnectionStrings.ConnectionStrings("ServiceMasterConnectionString").ConnectionString = "This is new connection " 'Error - <br />
config.Save()<br />
Thanks in advance,
Steve
|
|
|
|
|
I implemented Datagrid with PageindexChangeevent but i need scrolling concepts in the datagrid. Please do help.
kokila
|
|
|
|
|
hi,
take ur datagrid in DIV tag...
<div style="height: 250px; overflow: auto;">
<asp:DataGrid runat="server" ...>
...
</asp:DataGrid>
</div>
Thanks & Regards...
Amit
|
|
|
|
|
Thanks Amit, and it's working fine.Iam the beginner of .net so thank you for your immediate help . Can you guide me to create popupmenus forweb based project.
Thanks & Regards,
kokila
|
|
|
|
|
hi,
the basic concept behind menus in webbased project is to display and hide html elements. here is the simple code explaining this concept. u can format according to your need...
<HEAD>
<style type="text/css">
a.links:link { font-family : Arial; font-size : 12px; color : white; text-decoration : none; }
a.links:visited { font-family : Arial; font-size : 12px; color :white; text-decoration : none; }
a.links:hover { font-family : Arial; font-size : 12px; color : #FF9C03; text-decoration : none; }
td.menu{background:#4891C6}
table.menu {font-size:100%; position:absolute; visibility:hidden;cursor:hand }
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
</HEAD>
<body topmargin="0" leftmargin="0" rightmargin="0">
<table width="100%">
<tr bgcolor="#4891c6">
<td style="cursor: hand" onclick="location.href='page1.aspx'" width="14%" onmouseover="showmenu('Mainmenu1')" onmouseout="hidemenu('Mainmenu1')">
<a class="links" HREF="page1.aspx">MainMenu1</a><br>
<table class="menu" id="Mainmenu1" width="100%">
<tr>
<td onclick="location.href='page1.aspx'" class="menu"><a class="links" HREF="page1.aspx">MenuItem</a></td>
</tr>
<tr>
<td onclick="location.href='page1.aspx'" class="menu"><a class="links" HREF="page1.aspx">MenuItem</a></td>
</tr>
<tr>
<td onclick="location.href='page1.aspx'" class="menu"><a class="links" HREF="page1.aspx">MenuItem</a></td>
</tr>
</table>
</td>
<td style="cursor: hand" onclick="location.href='page2.aspx'" width="14%" onmouseover="showmenu('Mainmenu2')" onmouseout="hidemenu('Mainmenu2')">
<a class="links" HREF="page2.aspx">MainMenu2</a><br>
<table class="menu" id="Mainmenu2" width="100%">
<tr>
<td onclick="location.href='page2.aspx'" class="menu"><a class="links" HREF="page2.aspx">MenuItem</a></td>
</tr>
<tr>
<td onclick="location.href='page2.aspx'" class="menu"><a class="links" HREF="page2.aspx">MenuItem</a></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
Thanks & Regards...
Amit
|
|
|
|
|
hi,
i m using vs.net 1.0 and not able to run project in debug mode. program doesn't halt at any break point.
help plz...
thanks in advance
Regards...
Amit
|
|
|
|
|
Crystal report version for INVENTORY application. It gives us error to see the crystal reports which uses the crystalreportviewer component in aspx pages.e.g.FormInvSRFViewPrintingDetails.aspx which shows the error.
If we try to use our version /dlls it does not show the report and gives error when the application is running.
The component shows the version as 'Version=9.1.3300.0' and when Sameena asked Milind (Cybertech) about the version of Crystal reports used...he said he'd used version 7 for it. The framework which is used on server is different than our working version. and that is only framework which we cannot use for developement purpose.
If we make changes in the code and build the dll and put it on the server then it gives error when we try to print the reports.(the printing reports are mainly use the crystal reports dlls.)
So any changes done in the code anywhere in the project give us problem related to the report version as the crystal dlls has different version than it has on the server.
We got the crystal report version 8 from CG also ,which itself is giving error when installation takes place...SO it's of no use.
We are looking for the correct version of it which we haven't got yet.
So as of now we cannot proceed further on inventory module. Plz try to look in the matter from your side also .
Hi all,
dfsdfasdfsd
|
|
|
|
|
I am facing specific problem with firefox browser. I have integrated payment gateway in my website. it is working fine in internet explorer. But I am facing problem with firefox and opera browser. I have some values in session like client id, client name. when I redirect from payment gateway to own site(e.g. thankyou page) I want to access all session variable. It works fine in IE but in other browser session value destroy. it works in local system problem is with online only.
Problem occures when I return back from payment gateway to my own web page. e.g.-
step 1. payment page(my website page)
step 2. paypal (payment gateway)
after successfull payment on payment gateway when we click "return to merchant" button..
step 3. thankyou page (my website page)
I want to use session variable "I created in payment page(my website page)"
I can use these session variable in IE but in case of firefox or opera I cannot get these variables.
Thanks
Bhushan
|
|
|
|
|
hi
i am populating datagrid with eno,ename,salary from database. i have taken two link buttons for view and modify all the details of the particular record.When i click the modify link iam displaying all the details in textboxes with previous values in the pageload event of the modify page.Now i edited the values and click the save button on the modify page.But my database is not updating with modified values.i checked my query its syntax is fine.but in query iam not getting the values that i modified.please help me out.
thanks
vijay
|
|
|
|
|
If the modify.aspx is different from you datagrid.aspx then put all the data binding in the Page_load inside IsPostBack.
|
|
|
|
|
Dear Vijay..
Please check whethere the page post back is true or false .. in page_Load Event.. because if you put the post back is true in page load.. The values will not reflacted..
Rame..
|
|
|
|
|
I have a Pb with report viewer, i can print my report correctly but i can't show it in a browser corectly !!!
|
|
|
|
|
Sir,
I am trying to write a web app that allows the user to capture audio from the client machines microphone. Can u help me how to captures the audio.
Thanks
|
|
|
|
|
Hi friends, I need brief information about assemblies and example for that. Please Help Me. Thanks In advance for your help.
Thanks & Regards,
Prya
|
|
|
|
|
|
hi daniel,
Thanks a lot.
I tried to create Assembly program.
I followed the steps in the site. But in Step3 i am getting error.
I dont what is this error because i am new to asp.net. Please tell me.
The Steps
Step 1 : Creating our sample component
Here is the code for the component. It just includes one method which returns a string.
imports system namespace BAJComponents public class Sample public function GetData() as string return "hello world" end function end class end namespace
Step 2 : Generate a key file
To generate the key file issue following command at command prompt.
sn -k sample.key
This will generate the key file in the same folder
Step 3 : Sign your component with the key
Now, wee will sign the assembly with the key file we just created.
vbc sampleGAC.vb /t:library /a.keyfile:sample.key
Step 4 : Host the signed assembly in Global Assembly Cache
We will use AL utility to place the assembly in Global Assembly Cache.
AL /i:sampleGAC.dll
The Error I am getting in step3:
Source file 'sampleGAC.cs' could not be found
S2007: Unrecognized option: '/a.keyfile:sample.key'
Thanks & Regards
Prya
|
|
|
|
|
wrong
vbc sampleGAC.vb /t:library /a.keyfile:sample.key
It should be
vbc /t:library sampleGAC.vb /keyfile:sample.key
wrong
AL /i:sampleGAC.dll
It should be
gacutil /i:sampleGAC.dll to place an assembly into GAC.
|
|
|
|
|
System.IO.Ports is not available in asp.net vb.net 1.1 ?
|
|
|
|
|
Is System.Web.Services.Description.PortCollection what you are looking for?
BR
Stephan
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href=www.stephan-pilz.de>www.stephan-pilz.de</a> |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
Thanks for ur attention But Services class is not available in web.
|
|
|
|
|
Hi,
System.IO.Ports is new to .NET Framework 2.0
Regards,
sdaniel_cst
|
|
|
|
|
Did u say about the SerialPort Class.
With Regards
Satips
|
|
|
|
|
All,
How to identify a window opened with CTRL+N option, for example when a new window is opened with CTRL+N option i want to show alert message saying in 'You opened with CTRL+N option'.
|
|
|
|
|
Hi,
You could probably do that by checking the ASCII value of keys pressed Ctrl
and N key and then show the alert message accordingly..
sdaniel_cst
|
|
|
|
|
hello
someone can help me
i have a CustomerDS typed
i learn with the "http://msdn.microsoft.com/practices/apptype/webapps/default.aspx?pull=/library/en-us/dnpag/html/diforwc-ap02.asp#diforwc-ap02_plag_howtodesigncrudform"
so in my data access component ican´t instance CustomerDs.Customer
i have the follow option CustomerDS.CustomerDataTable
CustomerDS.CustomerDataRow
i don´t know why?
' Return the customer with the specified ID
Public Function GetById(customerId As Integer) As CustomerDs.Customer
Try
Dim customer As New CustomerDs()
' Execute the "select single entity" stored procedure
Dim reader As SqlDataReader = SqlHelper.ExecuteReader(Me.connectionStr, "Customer_SelectByID", customerId)
Try
' Populate the dataset with reader rows
SQLHelperExtension.Fill(reader, customer, customer.Customers.TableName, 0, 1)
Finally
reader.Dispose()
End Try
' Return the first row
Return customer.Customers(0)
Catch e As SqlException
Throw New TechnicalException(Me.ResourceMgr.GetString("TechnicalException.CantGetCustomer", System.Globalization.CultureInfo.CurrentUICulture), e)
End Try
End Function 'GetById
|
|
|
|