|
Hi
I have some very fussy users.
Normally when you tick a tickbox it shows a tick in the box.
They requested a X to show in the box,
any1 know if thats possible?
thanks
We are not a Code Charity
|
|
|
|
|
.netman wrote: Normally when you tick a tickbox it shows a tick in the box.
They requested a X to show in the box,
any1 know if thats possible?
I think that is not possible but instead of checkBox,you can also use images like as checkbox. Take two image with and change alternate both image and store value in hidden field.If it is chcked,value is 1 otherwise value is 0.
Regards
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
OK thanks
as I suspected you cant do, I think doing it the image way would be to much hassle.
cheers
We are not a Code Charity
|
|
|
|
|
Hello everyone,
I have an ASP.Net web application that is using Asynchronous paging. I have checkboxes on it, the value of each checkboxes are IP addresses. If a user has checked all checkboxes then the program will collect all IP address. The program works fine if a user only check 1 checkbox only, the most complicated part when a user checks multiple checkboxes. The reason why I am using checkbox control is because I am collecting data that are came from different SQL server thru the IP addresses of checkboxes, and merge all data using dataset if a user checks multiple checkboxes. I will show you my code:
Session("IpAddrs1") = "Server=" & chkHallList.Items(0).Value & ";" & strHallCon -> (used for initializing connection string depending on checkbox value)
Dim task1 As New AsyncTasks.Tasks()
Dim asyncTask1 As New PageAsyncTask(AddressOf task1.OnBegin1, _
AddressOf task1.OnEnd1, _
AddressOf task1.OnTimeout1, _
"AsyncTask1", _
True)
Page.RegisterAsyncTask(asyncTask1)
Page.ExecuteRegisteredAsyncTasks()
Above codes are only used if there is 1 IP address, my problem is how can I enhance my program that can use multiple Asycnrhonous tasks? Would that be possible? I know that we can use multiple Asynchronous processing, but how can I do that dynamically?
Thanks in advance.
|
|
|
|
|
just use += to keep adding a selected checkbox value to a session if thats where you want to store it
We are not a Code Charity
|
|
|
|
|
Hi .netman,
Thanks for your immediate reply, i really appreciate that. So, you mean that I will be using a loop and parse it so I can get the value of let say 2 checkboxes?
Thanks in advance.
|
|
|
|
|
Yeah thats basically it
We are not a Code Charity
|
|
|
|
|
Oh, I already did that and it is also works fine. But I think the problem with that is although I am using asynchronous technique, the way my program is being called is not parallel because I am using a loop. If the
first task is not completed yet then the next task will have to wait until the first task is completed. I will show you my code:
For i = 0 To chkHallList.Items.Count - 1
If chkHallList.Items(i).Selected Then
strNewHallCon = "Server=" & chkHallList.Items(i).Value & ";" & strHallCon
Dim task As New AsyncTasks.Tasks()
Dim asyncTask As New PageAsyncTask(AddressOf task.OnBegin, _
AddressOf task.OnEnd, _
AddressOf task.OnTimeout, _
"AsyncTask", _
True)
Session("IpAddrs") = strNewHallCon
Page.RegisterAsyncTask(asyncTask)
Page.ExecuteRegisteredAsyncTasks()
If Not task.GetAsyncDatasetResults() Is Nothing Then
dsGetResults.Merge(task.GetAsyncDatasetResults())
End If
End If
Next
Above code are works fine, but as I have said the way my program being called is not parallel. Is there any other technique that should I consider? I think the only way is using dynamic call of procedure to run the sql query and merge it thru dataset. Is that possible? The code that runs the sql query is residing in task.OnBegin function.
Thanks in advance.
|
|
|
|
|
drop down list: id is ddlProductName
I want to access text value of this ddl using javascript function.
code written below not working
('<%=ddlProductName.ClientID%>').value
You get the best out of others when you give the best of yourself.
|
|
|
|
|
try
var ddl = document.getElementById('<%=ddlProductName.ClientID%>');
var text = ddl.options[ddl.selectedIndex].text;
alert(text);
|
|
|
|
|
both code
not abel to pick up ddl text value
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Post your complete code block
|
|
|
|
|
BOTs - running in my mind wrote: var ddl = document.getElementById('<%=ddlProductName.ClientID%>');
var text = ddl.options[ddl.selectedIndex].text;
What About this?
alert(<%=ddlProductName.SelectedItem.Text%>);
Regard
kHAn
please don't forget to vote on the post that helped you.
|
|
|
|
|
try this code
var ObjID=document.getElementById('ddlProductName');
alert(ObjID.options[ObjID.selectedIndex].value);
Regard
Imrankhan
please don't forget to vote on the post that helped you.
modified on Thursday, June 12, 2008 5:31 AM
|
|
|
|
|
Hi,
I creating a websetup project after creating that i could get only that installation file image icon, how can i add my own image to that one.it should be my icon,while double clicking that the installation process should be done.how ca i achieve this one..
Rgrds
Kanna
|
|
|
|
|
Can you explain in more detail, I dont really undersatnd what you are trying to achieve
We are not a Code Charity
|
|
|
|
|
Thnx For ur interest,
While we are creating setup file, the setup file look likes the installation file view, either we can change into our customized image icon to that installation setup.in asp.net 2.0
|
|
|
|
|
So your creating a set-up file for a customer to use to install your application?
You want to change that icon?
We are not a Code Charity
|
|
|
|
|
|
check this icon:
http://www.15seconds.com/issue/030820.htm
I have never done this before, not sure how easy it is though.
We are not a Code Charity
|
|
|
|
|
Hi i have used one of my form javascript in body load event...,
When page getting postback the javascript also firing once again...,
Ex:
i have checkbox list its autopostback true..,
If select any of the checkbox with postback event its firing...,
Now my problem is,
I dont want to use postback in my form,so i used updatepanel...,
And for my checkbox list in inside the update panel...,
And i given triggers event of checkbox...,
If i use that whenever updatepanel refresh the javascript also want to fire...,
But its not doing that,in normal postback its firing body load javascript..,
Y its not firing in update panel refresh?,
How to solve this?,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Once you start using UpdatePanel, the page postback event is completely handled my Microsoft Ajax. So usually your page will not postback and onload event page will not work. To make it work, use Ajax ClientSide Scripting.
For Example, add the below code after the ScriptManager tag in the HTML source.
<script>
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(funcPageLoaded);
function funcPageLoaded(){
alert("Page Loaded");
}
</script>
|
|
|
|
|
hello frnds,
i have a grid containing template column of textboxes. i entered values
in textboxes and go to next page.
if i back to the grid page all the textboxes values are cleared and i have to reentered that values.
how can i persist them between postbacks ???
any suggesation ??? helpful links ???
thankx in advance
koolprasad2003
|
|
|
|
|
Read the values and keep it in a session when page index changes. You can read it back when you come back to that page.
|
|
|
|
|
I want to migrate CFM to asp.net , if any software or tool you know then please help me
|
|
|
|