|
how i can make an editable selection list in html using javascript
|
|
|
|
|
|
This question have posted already yesterday.
I am using query string. and pick a value in through query string.
but i want to pick a text through a query string.
I have wrote alreayd this code.
StrCom = (String)Request.QueryString["Pivid"];
Label1.Text = StrCom;
but this code pick a value not for text.
please write a correct syntax.
deepak_272@yahoo.com
|
|
|
|
|
Gagan Deep Garg wrote: This question have posted already yesterday
Do you realy think posting the same question would realy help?
Now only a hint:
QueryString Treat it as an array
|
|
|
|
|
|
Your question makes as little sense as when you asked it yesterday. What text is it that you want?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
hi
what u mean by text?as describe in ur code u want the 'pivid' as your output or the value wchich u have passed in querystring
Jintal Patel
|
|
|
|
|
Hi,
How write a multiple query in stroed procedure with write a example
|
|
|
|
|
CREATE PROCEDURE submitworkertimecardtempemployee
(
@projectid as int,
@empid as int,
@carddate as datetime,
@shift as varchar(15),
@intime as smallint,
@outtime as smallint,
@Problemfaced as varchar(500),
@approveby as int,
@approvesite as int,
@Type as char(1),
@Breaks as smallint
)
As
Declare
@cardno as numeric,
@Counts as int,
@revcode as int
Begin Transaction
Begin
select @revcode = isnull(max(revcode),0) FROM dbo.tbltempsalarymaster INNER JOIN dbo.tblmasterManpower
ON dbo.tbltempsalarymaster.salaryid = dbo.tblmasterManpower.SalaryId
where dbo.tbltempsalarymaster.sdate <=@carddate and left(dbo.tblmasterManpower.tempempid,5)=@empid
--------select @revcode=isnull(max(revcode),0) from tbltempsalarymaster where sdate <=@carddate and empid=@empid
if @revcode >0
begin
select @Counts=count(empid) from tbltempempTimeCardmain where empid=@empid and carddate=@carddate
if @Counts=0
Begin
select @cardno=isnull(max(cardno),0)+1 from tbltempempTimeCardmain
insert into dbo.tbltempempTimeCardmain(cardno,carddate,intime,outtime,projectid,empid,shift,breaks,revcode)
values(@cardno,@carddate,@intime,@outtime,@projectid,@empid,@shift,@breaks,@revcode)
end
if @Counts >0
Begin
select @Counts=count(empid) from dbo.tbltempempTimeCardmain where projectid=@projectid and empid=@empid and carddate=@carddate and app1=1
if @Counts=0
begin
update dbo.tbltempempTimeCardmain set intime=@intime,outtime=@outtime,shift=@shift,
breaks=@breaks,revcode=@revcode where empid=@empid and carddate=@carddate
end
end
end
if @@ERROR<>0
RollBack Transaction
else
commit Transaction
end
GO
My sample Query...,
Hope this will help u...,
Regards,
Magi
|
|
|
|
|
IF U LIKE PLZ GIVE ME THE GRADE POINTS
Regards,
Magi
|
|
|
|
|
|
A single stored procedure can execute multiple queries. Example[^]
Regards - J O N -
|
|
|
|
|
Either I did totally misunderstand your question, or the answer is ridiculously simple:
create procedure x<br />
as<br />
select 1<br />
select 2
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
how to send textbox(dropdownlist) value of one page to textbox(dropdownlist) of another page???
yogesh
|
|
|
|
|
Hi Yogesh,
you can use session or querystring for this.....
Regards...
Keep Smiling
|
|
|
|
|
you can use datatype s=request.form["controlid of the first page"]in the 2nd page
|
|
|
|
|
Use Response.Redirect and pass the value of TextBox as QueryString to the next page and in the next page Use Request.QueryString to retrieve it.
Page-1
Reponse.Redirect("Page2.aspx?value=" + TextBox1.Text)
Page-2
Dim txtValue as String<br />
txtValue = Request.QueryString("value")
Regards - J O N -
|
|
|
|
|
hi
thanks for solution but there is an error that"QjeryString is a property, it is used like method"
there is "Page2.aspx?value=" can i write that "Hotelsearchresult.aspx?value" in my coding???
in the second page any using directive is required????
yogesh
|
|
|
|
|
'QjeryString' is it a typo or u gave it aa QjeryString?
querystring is the correct name and u shud call as querystring[] not querystring() if in C#.
Regards
Sean
http://www.codepal.co.nr
|
|
|
|
|
iam having a dropdown list in which i defined 1to12 numbers .if users wants more than 12 number how i can allow user to enter the number he wants in the dropdown list.and also using javascript how we can get the user entered value.
-- modified at 1:46 Saturday 20th October, 2007
|
|
|
|
|
You can have an item in the dropdownlist saying "Add More value". On selection of that Item, display a textbox and Button. On the click of the Button write a javascript which will add the entered value to the DropDownList.
Regards - J O N -
|
|
|
|
|
Please take your time answering this - it isn't urgent ( Sorry Pete if you're reading...!)
On my dev box I have MS Word installed and all my interop stuff through ASP.NET / C# works a treat. I now have to implement on the client's IIS box and realised they don't have MS Word on theirs. They have a corporate licence, so that isn't an issue, but what do I need to install as a minimum to create MS word docs? Do I have to install MS Word as a whole, or can I just do the PIA?
I am googling for this, but if anybody has experience of this before it would be a help.
[edit] I have to install MS Word, so I have, but now getting Insufficient memory diskspace to display font error. There is 54Gb HD space free and 2G Ram after clean reboot. Shed loads of KB articles on this, but none seem to apply. Buggers. Another late night.. [/edit]
Cheers
Malc
-- modified at 18:31 Friday 19th October, 2007
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
This is the validator.
<asp:CustomValidator runat="server" id="DelFunctionCustomValidator" ClientValidationFunction= "ValidateDelegFn"
ErrorMessage="Please assign Delegate to any function" ForeColor="White" >*</asp:CustomValidator>
The javascript function is:
function ValidateDelegFn()
{
if((document.getElementById('<%=checkbox1.ClientID%>').checked== false)
{
return(false);}
else
{return(true);}
}
From code behind, addDelegateImageButton.Attributes.Add("onclick", "ValidateDelegFn()");
Still, it gets into addDelegateImageButton_Click(object sender, ImageClickEventArgs e) function.
How do I make it get into the addDelegateImageButton_Click function only if ValidateDelegFn returns true?
Please help
Thanks
|
|
|
|
|
ss.mmm wrote: From code behind, addDelegateImageButton.Attributes.Add("onclick", "ValidateDelegFn()");
addDelegateImageButton.Attributes.Add("onclick", "return ValidateDelegFn();");
Regards - J O N -
|
|
|
|
|
I have been tyin to learn asp.net 2.0 going on 4 months now. I have tried to build several online photo albums with no success. I have tried to find a teacher...no success. Can anyone get me going in the right dirrection.
Sincerly
Depressed in NorthEast Ohio
|
|
|
|