|
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
|
|
|
|
|
Can u Please explain ur problem again in the same thread.
|
|
|
|
|
hello
thanks for the time
first all the function getbyid en the articel return CustomerDS.Customer
i cant return CustomerDS.Customer
i know why i dont return CustomerDS.Customer
in my function i have Public Function GetById(customerId As Integer) As CustomerDs
SQLHelperExtension.Fill i can't use SQLHelperExtension this instruccion give me a error. i have imports application block
the function in the article is
' 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
|
|
|
|
|
Hi,
I have a FormView that is bound to an SQLDataSource.
The FormView displays the values taken from the SQLDatasource in tags like this:
<br />
<asp:Label ID="NameLabel1" runat="server" Text='<%# Bind("Name") %>'></asp:Label><br />
<asp:Label ID="AddressLabel" runat="server" Text='<%# Bind("Address") %>'></asp:Label>
Now the Address value has linebreaks in it, however of course these linebreaks to not translate to linebreaks in HTML, so I have a function to do this:
<br />
' Function BreakMe<br />
' This function replaces the line break character - Chr(10) - into<br />
' the HTML line break tag <br><br />
Function BreakMe(ByVal strString As String)<br />
Dim strSearchFor As String = Chr(10)<br />
Dim strReplaceWith As String = "<br>"<br />
If InStr(strString, strSearchFor) Then<br />
Dim strBreaked As String = Replace(strString, strSearchFor, strReplaceWith)<br />
Return strBreaked<br />
Else<br />
Return strString<br />
End If<br />
End Function<br />
How can I pass the Address value to my function before it is assigned to the Label?
|
|
|
|
|
Hi there,
You can call the BreakMe method in the data binding express, but the Bind method cannot be used in this context, and you use the Eval instead. Something looks like:
Text='<%# BreakMe(CType(Eval("Address"),string)) %>'
|
|
|
|
|
Thankyou! That works perfectly.
I was trying something very similar, but using the Bind method - but of course it makes sense to use Eval in this context.
|
|
|
|
|
Hi,
I have a problem with a simple Composite Control I am trying to make.
It's in fact a superclassed control.
My projectname is SortedTextBox. My testapp is TestSortedTextBox.
SortedTextBox:
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.WebControls
<toolboxdata("<{0}:sortedtextbox runat="server">")>
_
Public Class SortTextBox
Inherits System.Web.UI.WebControls.TextBox
Public Sub Sort()
Dim arrText As String()
arrText = Me.Text.Split(" ")
Array.Sort(arrText)
Me.Text = String.Join(" ", arrText)
End Sub
End Class
In my TestSortedTextBox I have to following html:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="TestSortedTextBox.WebForm1"%>
<%@ Register TagPrefix="Custom" NameSpace="SortedTextBox"
Assembly="SortedTextBox" %>
<title>WebForm1
<custom:sortedtextbox id="SrtText"
runat="server">
When I Build the project, it builds fine. However, when I want to
visualize the control (design view in VS.Net 2003) in
TestSortedTextBox, the control says "Error creating control". When I
run the project, of course I get an error at <custom:sortedtextbox
id="srttext" runat="server"> in Internet Explorer.
What do I forget? What do I do wrong?
|
|
|
|
|
Do you see the error details in the design view (or when you hover the error control)?
|
|
|
|
|
Yes, it's : Parser Error Message: Could not load type RedText.RedText from assembly RedText, Version=1.0.2459.29417, Culture=neutral, PublicKeyToken=null
|
|
|
|