Showing posts with label wich. Show all posts
Showing posts with label wich. Show all posts

Saturday, March 31, 2012

table1_onclick generated without javascript function

Hi,

I have a website in dotnet2.0 with a masterpage.

Here is my code of page wich use the masterpage :

<%@dotnet.itags.org. Page Language="VB" AutoEventWireup="false" CodeFile="WfSelectExp.aspx.vb" Inherits="WebForm_WfSelectExp" MasterPageFile="~/MasterPage.master" Title="Appolo" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %><asp:Content ID="ContentSelectBL" ContentPlaceHolderID="ContentPlaceHolderCentral" runat="Server"> <table border="0" cellpadding="0" cellspacing="0" class="TABLE" width="100%"> <tr> <td colspan="2" style="height: 10px; width: 5px;"></td> </tr> <tr> <td style="width: 5px;"></td> <td align="center"> <table id="Table" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td><!-- table presentation -->

And IIS will generated a page with the following code :

 <table id="TABLE1" border="0" cellpadding="0" cellspacing="0" class="TABLE" onload="javascript:CloseFenAttente()" style="height: 87%" width="100%" onclick="return TABLE1_onclick()"> <tr> <td colspan="5" style="height: 5px; width: 5px;"> <input type="hidden" name="ctl00$ContentPlaceHolderCentral$HiddenFieldPoidsTotal" id="ctl00_ContentPlaceHolderCentral_HiddenFieldPoidsTotal" value="0" /> <input type="hidden" name="ctl00$ContentPlaceHolderCentral$HiddenFieldQuantCommPAL" id="ctl00_ContentPlaceHolderCentral_HiddenFieldQuantCommPAL" value="0" /> <input type="hidden" name="ctl00$ContentPlaceHolderCentral$HiddenFieldQuantExpPAL" id="ctl00_ContentPlaceHolderCentral_HiddenFieldQuantExpPAL" value="0" /> <input type="hidden" name="ctl00$ContentPlaceHolderCentral$HiddenFieldQuantCommUL" id="ctl00_ContentPlaceHolderCentral_HiddenFieldQuantCommUL" value="0" /> <input type="hidden" name="ctl00$ContentPlaceHolderCentral$HiddenFieldQuantExpUL" id="ctl00_ContentPlaceHolderCentral_HiddenFieldQuantExpUL" value="0" /> <input type="hidden" name="ctl00$ContentPlaceHolderCentral$HiddenFieldRetour" id="ctl00_ContentPlaceHolderCentral_HiddenFieldRetour" value="0" /> </td> </tr> <tr> <td style="width: 10px; height: 59px;"></td> <td align="center" colspan="3" style="height: 59px"><!-- Table presentation -->

And as you can see you have a Table1.onclick() whereas no function is create before.

I have a lot of code around so I can not post all the page else I have to post all the website..

But it seems to be a bug in dotnet 2.0

I have search on google and found few people with the same issue, someone know more about this?

Or have a solution to this?

thanks,

I have the same problem.....

need help!!!!!!! AJAX applications are useless if very time it raises an error,isn't it?

Thursday, March 22, 2012

take only the "number" from QueryString - how?

hi,

i have a stored procedure witch returns details about a picture and wich have an input parameter (PictureID)

the page is something like this "Picture.aspx?PictureID=5"

how can i take only the 5 from the Rrequest.QueryString["PictureID"] to use it as input parameter to stored procedure?

thanks

Are you asking how to get the value from the querystring, or how to give it as a parameter to your sproc?

Getting the value is simple. Convert.ToInt32(Request.QueryString["PictureID"])


Hello zuperboy,

Use in the page_load event:

int PictureId = Convert.ToInt32(Request.QueyString["PictureID"]);

Set PictureId as the input parameter of the stored procedure. I guess you know how that part works.

Jeroen Molenaar.


thank you to you two, this was easy:P