|
|
hi karthik,
while i cligk the link sent by you it shows that the page has been removed
|
|
|
|
|
|
ur new url gives http 500 internal server error
if u can plz dowload and send it to me plz..
|
|
|
|
|
Hi all
In my web page i have 2 textbox's
1 is textbox.multiline (Textbox1)
2 is normal (Textbox2)
Now i want enter some text in textbox2 it will display in textbox1(multiline) it is displaying
But the scroll bar going down i want to show which is enter resently
Exapmle
if i enter
1
2
to
10 numbers
1 to 5 is showing and 6 to 10 is in scroll down i want to show the 6 to to first
Keerthi
|
|
|
|
|
kirthikirthi wrote: 6 to to first
means......
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Thx for reply
Means
Example :
----------------------------
if u enter 1 to 10 numbers or some large Text in textbox (multiline)
u can a see a scroll bar in the textbox(multiline)
In that u will see first part of the text and if u scroll down u will see
2nd part text
-----------------------------------------
I want to do is when a new text enter in the textbox the scroll bar shud autometically scroll down
Keerthi
|
|
|
|
|
Am new to ASp, i have books that Guide me well ,but i have a Problem on the Following lines. In the Following Code am trying to use the Messagebox in ASP.NET, am using visual Studio 2003
If MessageBox.Show("Do you want to save the Changes?","ContactExternalBase", _<br />
MessageBoxButtons.YESNO,MessageBoxIcon.Question) = DialogResults.Yes then<br />
The MessageBox gives me an Error
and secondly I want to navigate through the Recordset, all the neccessary steps for connection is being done and i get an Error while trying to use
the BindingContext
, it does not Appear in he Intellisense menu. <br />
<br />
Try<br />
With Me.BindingContext(Dataset11,"ContactExtensionBase")<br />
.Position = .Count - 1<br />
DisplayRecordposition()<br />
End with<br />
catch<br />
'Ignore the Errors During Navigation<br />
end try
What do you think is Wrong? , and if these Function are not Avaible For Web Application , what Functions Supposed to be there to Replace the one i mentioned
Vuyiswa
|
|
|
|
|
Vuyiswamb wrote:
The MessageBox gives me an Error
Sorry I am not telepatic, I don't know what error it gives you, how can I help with it??
Anyway, don't use MessageBox.Show() in web application, it just can't work. For this kind of thing you must use client script, e.g. javascript function alert().
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
ok, Problem Solved, on the Message Box issue, on the Following Code
<br />
intRecordPosition = Me.BindingContext(Dataset11,"ContactExtensionBase").Position + 1<br />
i want to use BindingContext Function that i use for Windows Applicatioon to Navigate through the dataset. VS underlines this BindingContext, infact in the Intellisense it does not show.
Help
Vuyiswa
|
|
|
|
|
BindingContext Class [^] is in System.Windows.Forms. Look on MSDN[^] how is data binding done in ASP.NET.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
|
Hi Friends,
I want simple prog for gridview with pushbutton inside gridview.When button click then it should delete data from gridview and also database.I want only in gridview not in DataGrid.
Thanks
|
|
|
|
|
Hi,
Its simple.
You can do this at designe time itself...
Add a command field to grid view.
<br />
<asp:CommandField ButtonType="Button" ShowDeleteButton="True" /><br />
Then add DataKeyNames property to grid view.
<br />
<asp:GridView DataKeyNames="MyRecId" .......><br />
Then add delete command in your data source
<br />
...DeleteCommand="Delete From [MyTable] WHERE [MyRecId]=@MyRecId"..<br />
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hello everybody,
I have bound one column of ultrawebgrid control to DB datasource before,
but I want to do that for one cell now.
Please help if you are experienced in developping with Infragistics.
|
|
|
|
|
Hello ;
I added master page(MasterPage.master) ..and I add web page(default.aspx ) that use to that master page and I want
to use javaScript code in web page (default.aspx) ,to get the value of textbox1 in (default.aspx)...
how can I do that
I have tried
<asp:Content ...>
<script type="text/javascript" >
function ere()
{
var z=document.getElementById("TextBox1").value;
alert(z);
}
</script>
.....
but gives error in browser
tkml123
|
|
|
|
|
Hi,
How you are calling this function?
You can pass TextBox1.ClientId to the function.
Then use that passed variable inside getElementById.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
hi;
I added html button in "defualt.aspx" to call the javaScript function
<input id="Button1" onclick="ere()" ....
you may notice that the textbox1 is server side control....
plz reply as soon as possible
....
thanks
tkml123
|
|
|
|
|
Ok
Do this
In your page load
Button1.Attributes.Add("onclick", "javascript:ere('" & TextBox1.ClientID & "')")
and
function ere(txt)
{
alert(document.getElementById(txt).value);
}
dont forget to give runat=server to your button.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi,
FYI, View the Default.aspx page in browser, and View the source (rigth click on page and select View Source). Then you try to locate the ID of your text box. After rendering, the client ID may not be same as the server control ID that you have supplied while developing the page.
So you have required to pass the ClientID of the text box to your Javascript method.
Try Call JavaScript method like, onclick="javascript:function();"
-- modified at 2:59 Wednesday 30th May, 2007
Regards,
Jay
|
|
|
|
|
hi thanks for ur efforts..
but still not working ...
i get the clientID of textbox as u said....
and have tried to
-alert(textbox1.value); not working
-javascript:function(textbox1.value); not working
-javascript:function('textbox1.value'); not working
-alert( document.getElementById("textbox1").value);not working
i really dont know how to solve it
and also tried to search but nothing useful
if you face this problem can you send to me how to solve it ecxattlyyy..
thanks...
tkml123
|
|
|
|
|
Hi,
C# Code
Any Event handler((eg)button click) --> onclick="JavaScript:SomeFunction('" + tbox1.ClientID + "')";
Javascript code:
function SomeFunction(tboxID)
{
tboxID.Value="Test";
}
This will assign the string "Test" to TextBox tbox1. This will works fine. Let me know, if you find any problem.
Regards,
Jay
|
|
|
|
|
thanks thats help somehow
<input id="Button1" .. onclick="test( ctl00_ContentPlaceHolder1_TextBox1 );"/>
..
I passed only client ID to javaScript and works..
but i have tried to pass Textbox1.clientID and gives error in browser.
but i want to ask is the client id will be same in all users that using the same page
thanks
aj123
|
|
|
|
|
I am using Template Fields in which i had taken ImageButton for edit ,Update adn Cancel. when i am clicking the edit imagebutton it goes through
if (e.Row.RowState == DataControlRowState.Edit)
{
ImageButton imageditformtype = (ImageButton)e.Row.FindControl("imgEditFormType");
imageditformtype.Visible = false;
ImageButton imageupdateformtype = (ImageButton)e.Row.FindControl("imgUpdateFormType");
imageupdateformtype.Visible = true;
ImageButton imageditcancelformtype = (ImageButton)e.Row.FindControl("imgEditCancelFormType");
imageditcancelformtype.Visible = true;
}
so the images changes to update and cancel.
But for Alternate rows the rowstate is Alternate and not goes to edit therefore the ImageButtons are not changed
pls help me out with this .
|
|
|
|
|
I am doing simple application in that i am displaying data and Button also there inside the gridview.I want to delete row of gridview when particular button click in the gridview.But i have done this in 2003 but i didn't understand how to modify this below code in 2005.Pls help me
I am getting error in e.Item.ItemIndex in the second line
Protected Sub DelCmd(sender As [Object], e As DataGridCommandEventArgs)
DeleteRow(Me.DataGrid1.DataKeys(e.Item.ItemIndex).ToString())
BindData()
End Sub 'DelCmd
Thanks
|
|
|
|