|
Youn can find one solution for that you can add some other listitem in place of listitem at 0 index as select or please select one or select one, or 0th index item you keep it nothing like
<asp:dropdownlist id="_TableDropDownList" ...="" onselectedindexchanged="_TableDropDownList_SelectedIndexChanged">
<asp:listitem>
<asp:listitem>cities
<asp:listitem courses<="" asp:listitem="">
|
|
|
|
|
I'm king of lost here...
this situation is very weird because the event is not fired when I select the first item in my drop down list..!
Let me tell you the exact problem:
I have a user control with a drop down list control.
This control is auto post back to server when index is changed.
When I select the second(or third, forth etc) item - the event method
_TableDropDownList_SelectedIndexChanged is being called.
When I select the first item this event isn't fired - so _TableDropDownList_SelectedIndexChanged is not being called!
I use breakpoints in this event method and also in page_load method and I can say that page_load is happend but _TableDropDownList_SelectedIndexChanged isn't. it just ignores it somehow when I select the first item...
Someone please
RoyRose
|
|
|
|
|
hello any one can provide me links for active reports for vb source code how to design checkbox and button and barcode in active reports (i.e) pdf format and when we click a link in the asp page it will invoke pdf format .Can any one tell me how to do it . any examples or any links.
Thanks in advance.
|
|
|
|
|
This is the ASP.NET forum, try the web development forum for asp questions.
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 )
|
|
|
|
|
Check new username availability with ASP.NET without sending request to server.can you provide me the complete code
|
|
|
|
|
Visit GridView Javascript Click Row and Ajax.
Its totally differ from ur requirement but U can accomplish ur task using this.
best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Dear All,
I have a gridview where first 2 columns are bound fields.
Next 3 columns have template fields with textboxes which are requiered to be filled by user.
i want if user does not provide any value, should be informed then and there through javascript.
I have written one which displays message but focus moves to next field.
I have given my code below.
Please help me.
Thanks;
-----------------------------
var gridViewCtlId = '<%=gridview1.ClientID%>';
var gridViewCtl = null;
var curSelRow = null;
var curRowIdx = -1;
function getGridViewControl()
{
if (null == gridViewCtl)
{
gridViewCtl = document.getElementById(gridViewCtlId);
}
}
function onGridViewRowSelected(rowIdx)
{
var selRow = getSelectedRow(rowIdx);
if (null != selRow)
{
curSelRow = selRow;
var cellValue = getCellValue(rowIdx, 0);
alert(cellValue);
}
}
function getSelectedRow(rowIdx)
{
return getGridRow(rowIdx);
}
function getGridRow(rowIdx)
{
getGridViewControl();
if (null != gridViewCtl)
{
return gridViewCtl.rows[rowIdx];
}
return null;
}
function getGridColumn(rowIdx, colIdx)
{
var gridRow = getGridRow(rowIdx);
if (null != gridRow)
{
return gridRow.cells[colIdx];
}
return null;
}
function getCellValue(rowIdx, colIdx)
{
var gridCell = getGridColumn(rowIdx, colIdx);
switch(gridCell.childNodes.item(0).value)
{
case "":
gridCell.childNodes.item(0).focus();
alert("Please enter the value");
break;
return false;
default:
return true;
}
}
--------------------------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
LoadGridData()
End If
For Each row As GridViewRow In GridView1.Rows
rowIndex = rowIndex + 1
For ctr = 0 To 4
CType(row.FindControl("Textbox" + (ctr + 1).ToString), TextBox).Attributes("onblur") = "javascript: return getCellValue(" + rowIndex.ToString() + "," + ctr.ToString() + ")"
Next
Next
End Sub
sanjay kumar samantaray
|
|
|
|
|
Validate Textboxes values on RowDataBound Event of Gridview.
Try this code
OnRowDataBound Event:-
((TextBox)e.Row.FindControl("Textbox)).Attributes.Add("onblur","return Validate("+((TextBox)e.Row.FindControl("Textbox)).ClientID+");");
Javascript Function:-
Validate(txtID)<br />
{<br />
if(document.GetElementByID(txtID).value=="")<br />
{<br />
alert('Please Eneter Value.');return false;<br />
}<br />
else<br />
{<br />
return true;<br />
}<br />
}
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
I have a solution from the internet to acheive transferring of session variables. My application is failing with the following message:
The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect.
Does anyone know what needs to be done to "read" ASP forms in an ASP.Net 2.0 web application?
Thank you,
Patrice
|
|
|
|
|
You can't. The best you can do is to look for solutions, which generally involve thngs like a windows service, which stores and passes values using the session Id, which will be the same.
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 everyone
i need to know how can i make submenus dropped out of menus through onmouseover event
just like those on the disney and india websites
http://www.incredibleindia.org/
http://disneybooks.disney.go.com/
thanks for your help
|
|
|
|
|
They are done with javascript or css and dhtml, there are lots of free menus available, try google.
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 )
|
|
|
|
|
How to open the MS Outlook Express from Asp.net
nandakumar
|
|
|
|
|
You can have a mailto tag, that will open a mail in the default program.
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,
I have a custom validator custval1 through which I am validating a Gridview1. In my form I have two Gridviews. I need to do same type of validation for the both Gridviews. On the Custval1_ServerValidate -> I implemented that check in logic. Can I use the one custom Validator for both the Gridviews. Or use one custom validator for each Gridview, both contain same logic.
|
|
|
|
|
I have the following hyperlink in my GridView. I want two values to be
passed on to another aspx page when I click on hyperlink.
<asp:hyperlinkfield datatextfield="proxy" headertext="Proxy"
navigateurl="~/Proxy.aspx"
datanavigateurlformatstring="Proxy.aspx?FirstName={0},LastName={1}"
datanavigateurlfields="FirstName,LastName">
In My proxy.aspx page I did the following to get the values. But it giving
me
Mary LastName=Miller
But the output should be
Mary Miller
string yourValue = (Request.QueryString["FirstName"]);
string yourValue2 = (Request.QueryString["LastName"]);
this.Label1.Text = Convert.ToString(yourValue + yourValue2);
seema
|
|
|
|
|
I haven't used the format string but perhaps
"Proxy.aspx?FirstName={0}&LastName={1}"
I didn't get any requirements for the signature
|
|
|
|
|
this is a image button inside a formview, but the concept is the same for template fields in gridview, i hope this is what you are looking for, this link pass two values on the string to the next page. where i read them
"pid" in this case is the field returne fron the database, you just have to make it twice, for name and last name instead imagtype=3
<asp:ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/><br /><br />
<asp:Image ID="Image3" runat="server" ImageUrl='<%#"images_prod/"+ Eval("psupp_facts")%>' /><br />
<br />
|
|
|
|
|
<br />
<asp:ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/><br /><br />
<asp:Image ID="Image3" runat="server" ImageUrl='<%#"images_prod/"+ Eval("psupp_facts")%>' /><br />
<br /><br />
|
|
|
|
|
i hope i can post the code now,
ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/><br /><br />
<asp:Image ID="Image3" runat="server" ImageUrl='<%#"images_prod/"+ Eval("psupp_facts")%>'
|
|
|
|
|
i hope i can post the code now,
ImageButton ID="ImageButton3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/update_1.gif" PostBackUrl='<%# "product_imageupdte.aspx?pid=" + Eval("pid", "{0}") + "&" + "imgtype=3" %>'/><br /><br />
<asp:Image ID="Image3" runat="server" ImageUrl='<%#"images_prod/"+ Eval("psupp_facts")%>'
|
|
|
|
|
I have the following hyperlink in my GridView. I want two values to be passed on to another aspx page when I click on hyperlink.
<asp:hyperlinkfield datatextfield="proxy" headertext="Proxy" navigateurl="~/Proxy.aspx" datanavigateurlformatstring="Proxy.aspx?FirstName={0},LastName={1}" datanavigateurlfields="FirstName,LastName">
In My proxy.aspx page I did the following to get the values. But it giving me
Mary LastName=Miller
But the output should be
Mary Miller
string yourValue = (Request.QueryString["FirstName"]);
string yourValue2 = (Request.QueryString["LastName"]);
this.Label1.Text = Convert.ToString(yourValue + yourValue2);
seema
|
|
|
|
|
can you post the request address (url) for us to look at?
I didn't get any requirements for the signature
|
|
|
|
|
Can any one provide me the links how to design textbox ,barcode,labels and phone no . in the active reports . I am new to this active reports can any one provide me the links i really appreciate that. Thanks once again
|
|
|
|
|
i m using InProc mode for session in web config,I have set session Timeout="60" for both cookies and session.But all session expires anytime (say after 5 min or 10 min,sometimes 30 min) even when i browsing pages.My application is on single server and i am Not doing any updation for application.
As the session Timout not occurs,so it doesnot redirect me to login page.
Can anyone help me regards this problem???
Thanks in advance
jagmit
|
|
|
|