|
If you want to carry a value to the page you're linking to, just put it on the query string. Don't abuse the session object.
And try posting code when you want help, so we can see what you're trying to do, and where it's broken.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
maybe i dont put the clear message
well i have a datagrid view extracting values name(linklabel) and imagename(imagebutton) from database
the paging is enabled i just want the value of linklabel to get fecthed for use in next page.
|
|
|
|
|
OK, I think you need to drop your tools, buy a BASIC ASP.NET book and READ it. You need to do EXACTLY what I said. Your link to the next page should put whatever you want to pass, on the URL. If you want to pass lots of things, you're better off passing an Id and reading the whole record from the database, in the page.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi frnds i am a beginner of ajax controls in asp.net c# .so as it is i am having so much problems in using advance controls like mouserover, accordian etc.....
can youy help me with articles or refer books .
i tried some asp.net books but they are not so much helping for all ajax controls
|
|
|
|
|
Alok sharma ji wrote: can youy help me with articles or refer books
Look Here[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
thanks this should help me lot, but can you refer something for more to advance skills in ajax so i dont need to put question again.
thanks again
|
|
|
|
|
Alok sharma ji wrote: but can you refer something for more to advance skills in ajax
First Start from W3School[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
If u r a beginner or not ur question has no urgency for us.It wont get any special attention if u use "urgent" or "i am dying".So b4 posting the question read and learn how to post the question decently.
|
|
|
|
|
Just so you know, you're not learning AJAX at all, AJAX is hidden from you, you're playing with some controls that use AJAX, I doubt you have the remotest idea how that works.
So, look for books like 'Mastering ASP.NET AJAX. If you buy AJAX books, they will just confuse you and will not pertain to the controls you're talking about.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I want to develop simple antivirus which scan files from pc with virus names and if it found virus then that can be deleted.
So can any one help me for logic behind that and how can I compare files.
Where I have to store virus database.
Thanks in advance.
|
|
|
|
|
is this the topic of asp.net maybe not you should post it to a different forum or
you are wasting your time
|
|
|
|
|
If u r not able to answer so plz don,t reply. No need to laugh. Don't waste ure time.
|
|
|
|
|
swami samarth wrote: I want to develop simple antivirus which scan files from pc with virus names and if it found virus then that can be deleted
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
All are asking doubts here and sharing their knowledge here ,your question is not important than others ,all will have the same priority.So dont use "urgent".
|
|
|
|
|
This is not an answer of my question.
|
|
|
|
|
If someone is paying you for this, they are more lost even than you are. If you're programming for fun, then choose a more sensible project.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
This is not an answer to my question.
|
|
|
|
|
Hi All,
i have 4 textboxes.
when the length of text in first textbox is equal to 4 then it should "automatically" change its focus to next textbox. i have set the autopostback to true but i need to click on screen to make a postback.
i used onKeyPress, onKeyUp, onTextChanged but nothing is working for me... or is there any mistake in my code..
.aspx page :
<asp:textbox id="TextBox1" runat="server" onkeyup="textLength()" xmlns:asp="#unknown">
javascript code :
function textLength() {
var val = document.getElementById("TextBox2").value;
if (val.length == 4) {
document.getElementById("TextBox3").Focus();
}
}
in .aspx.cs page:
TextBox2.Attributes.Add("onKeyUp", "javascript: textLength();");
is there any way to achieve this..
Thanks in Advance.
|
|
|
|
|
What do you mean by 'not working' ? I'd write a method that takes the id of the textbox you want to move to, the textbox you're in, and the length you're looking for, so you can reuse it. onkeyup="myfunc(this)" would pass the control instance, then you only need to look up the other one.
Make sure that the client side id is 'TextBox2', it probably isn't. You use the ClientID property of the server control to get the client side Id.
Never use a control you got with getElementById without checking first if it's null.
You can also install firebug for firefox and step through your script to make sure it's called, and see how it's working. Or use alerts to tell you when they get called, if you want something less functional but easier to set up.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
thanks for replying...
my javascript is not executing .
i verified my code many times. iam unable to figure it out (why javascript is not executing).
this is my entire code:
protected void page_load(object sender, EventArgs e)
{
if(Page.IsPostBack)
{
TextBox2.Attributes.Add("onKeyUp", "javascript: textLength();");
}
}
]]>
<title>Untitled Page
function textLength() {
alert("its called");
var val = document.getElementById("TextBox1").value;
if (val.length == 4) {
document.getElementById("TextBox2").Focus();
}
}
<asp:textbox id="TextBox1" runat="server" autopostback="true" xmlns:asp="#unknown">
onKeyUp="textLength(this)" >
<asp:textbox id="TextBox2" name="t2" runat="server" ontextchanged="TextBox_TextChanged" xmlns:asp="#unknown">
Is everything is correct ?
|
|
|
|
|
I think onkeyup should be all lowercase.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
still its not working...
any other suggestions....
thanks
|
|
|
|
|
why should'nt you tried it in c# ontextchanged event and still if you want your javascrit running are you sure you checked advance browser settings to enable javascript
(are you disabled them???? )
or maybe this onkeyup="texlenght()" need a ";" or onkeyup="textlenght();"
hope this should help.
|
|
|
|
|
Make sure onkeyup is a javascript event, and look at the HTML that's being generated to see if it looks the way you'd expect.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am inserting a new row in a database table (MSSQL).
I want to retrieve the value of Identity column associated with 'this' new row.
My stored procedure is as follows :
ALTER PROCEDURE dbo.Insert
(
@SubCategoryId tinyint,
@text nvarchar(MAX),
@Url nvarchar(2000)
)
AS
SET NOCOUNT ON;
INSERT INTO Table1
(SubCategoryId, text, Url)
VALUES (@SubCategoryId,@text,@Url)
SELECT NEWID = SCOPE_IDENTITY()
Now, I have a table-adapter in which i have any Insert function which uses the above stored procedure.
From the code-behind, i am inserting the data.
DataSetTableAdapters.Table1TableAdapter t1 = new DataSetTableAdapters.Table1TableAdapter();
int result = t1.Insert((byte)int.Parse(ddlSubCategory.SelectedValue), txtText.Text, txtUrl.Text);
The row is inserted in the database, but the returned value is not the Identity column ...
Is the stored procedure incorrect ?
I posted this in ASP.NET forum, because i want to do this in ASP.NET, i found the stored procedure on a database related site, still the stored-procedure is not working ...
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|