|
Well, assuming we had it, and gave it to you, that would not be coding, now would it ? Why don't you buy a book, work through it, and ask specific questions as you work through this task.
Or try google, and find some source code to work with.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a user control built with a checkbox list as part of it. It was built by someoneelse and i am just attempting to use it. I want to be able to handle the checkboxlist selectedindexchanged event when using the control as part of another webpage. Can someone help me as to how I should do this please? Its got me a little confused. I have set up a property to return the checkboxlist as an object but don't know how to set it up to get the event.
i have snipped and edited down the whole control and it is detailed below. Sorry if its a lot of code but better that you have all the info.
<%@ Control Language="VB" ClassName="ctlDropDownCheckBox" %>
<script runat="server">
Protected Width As Long = 150
Public ReadOnly Property List() As CheckBoxList
Get
List = chkResults
End Get
End Property
</script>
<div style="width:<%= Width %>px;">
<div id="<%= Me.ClientID %>" style="position:relative;">
<div class="uiSelectTopBox"><span id="<%= Me.ClientID & Me.ClientIDSeparator & "Count" %>"></span><input type="button" onclick="javascript:<%= Me.ClientID %>_Focus();" onfocus="javascript:<%= Me.ClientID %>_Update();" onblur="javascript:<%= Me.ClientID %>_Update();" style="position:absolute;right:0px;top:0px;bottom:0px;border:1px solid WindowFrame;" value=" ... " /></div>
<div id="<%= Me.ClientID & Me.ClientIDSeparator & "Box" %>" class="uiSelectBox" style="display:none;" onclick="javascript:<%= Me.ClientID %>_Update();" ondatabinding="javascript:alert('100');" >
<asp:CheckBoxList ID="chkResults" runat="server" BorderStyle="none" OnSelectedIndexChanged="chkResults_SelectedIndexChanged">
</asp:CheckBoxList>
</div>
</div>
</div>
Cheers
Ian
|
|
|
|
|
You don't want to return the checkbox as a property. Use a delegate to define an event when the check changes, that you can then subscribe to in the containing page, and that gets called when the check changed gets called inside the control.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks a ton Christian,
You know when a solution is staring you right in the face and you can't see it!! Most of that I think was down to me using another person's control and attempting to make it work with what they had done...note to self...think outside the box
Cheers
Ian
|
|
|
|
|
Hi,
Can anybody tell me how to convert a .resx file to a dll programatically
Thanks,
Prajin
|
|
|
|
|
One Post is enough.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
I'll agree. You can stop posting now.
only two letters away from being an asset
|
|
|
|
|
Hi,
Can anybody tell me how to convert a .resx file to a dll programatically
Thanks,
Regards
|
|
|
|
|
Just a single resx file ? You can't. What do you want to do ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi friends
How can i use the webservice present in my system in project of another system.......
I.e
i had created a webservice in my system........
my friend needs to use this service in his system.........
How can we do this without sending my webservice in mail...........
Urgent please................
|
|
|
|
|
honeyss wrote: How can we do this without sending my webservice in mail...........
Do you have static IP ? If yes using that you can access. Or you need to find your dynamic IP when you connect to internet and give that to your friend
|
|
|
|
|
|
Hi,
I have successfully to create popup window when smartnavigation= true. But
how to set the focus on the child window instead of parent one.
Please help if any body knows this problem....
Thanks
Regards
lak
|
|
|
|
|
How to save horizontal scroll bar position on page postback
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
|
its not working yaar
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
hi friends,
i am using 12-hour format time and
i have two textboxes such as start time and reach time...
i want to compare two textboxes time values being entered...
compare validator is not working since i am using 12-hour format..
can u suggest me the alternative...
regards
gayathri...
gayathri
|
|
|
|
|
|
thank you deepak..
but the above code is working to compare system time with a specific time..
my requirement is that i have to enter starttime and reachtime in textboxes and then compare accordigly...
if u have nay idea then please send me..
|
|
|
|
|
use Javascript to compare both textbox.
Devjit ..
|
|
|
|
|
can u please send me the javascript to be made use of...
|
|
|
|
|
You Can get the value using javascript like this
document.getElementById('textboxid').value;
and compare as u want.
Devjit ....
|
|
|
|
|
I have a small site where I want to allow people to upload a small XML file (via FileUpload control) and then "load" it into another page to edit and save back.
At the moment I am loading the file into an XmlDataDocument using FileUpload.PostedFile.InputStream and I am then storing this in the Session object as I don't want to save anything to the server if poss. e.g Session["myXml"]
This works perfectly locally and 90% of the time works on the server...but occasionally I get a null object error...despite having try/catch blocks around everything. Wierdly, if you F5 refresh the page, it usually loads after a refresh or two.
a) Is using the session object like this a "bad thing"?
b) Is there a better way?
c) Any idea how I trap the null object error as there is already a try/catch on the method that fails and around ALL the code in Page_Load().
Thanks for ANY help! It's doing my nut in!
|
|
|
|
|
What would be the xml file size (max)??
|
|
|
|
|
Are you angry with your webserver? Too big objects in Session degrade performance. You may need to review your design.
|
|
|
|