
sj1187534
Avatar/Signature-
Posts
113 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by sj1187534
-
Hi... As far as I understand, the validators do not get into effect until the page is submitted. This is not the case when you are testing the form on a local machine because, the javascript code that is executed for validation is on the machine itself. Whereas, when you are testing the form on a live site, the form needs to be submitted to the server for the javascript validation code to check the validity of the form. Once you enter the fields in the form, "submit" the form and you can see that the regular expression validator is fired. Let me know if this is working for you. SJ
-
Hi..What if we want to load the label from the database? In your example, you are loading it with a constant value. If the datalist is loaded from the dataset, how do we use it to show a specific value in the label? Thanks SJ
-
can u explain more on how to use the itemdatabound event? Thanks SJ
-
Hi...I am trying to load data from the database into a datalist. I want to do this programmatically instead of using the <%# Databinder.Eval(Container.DataItem,"") %>. The datalist has some controls in it, like labels where the data need to be loaded. Thats because I need to modify some data that I get from the database, before I load it into the datalist. Any ideas? SJ
-
Hi...I tried to do that. But I think you know that a user control does not have 'tabindex' attribute!! And of course, if we set up a tabindex to some number within the user control, we cannot re-use the control in another form as the position of the user control may vary. SJ
-
Hi...I have a couple of User Controls, one of them contains a dropdown list that loads a list of the US States from the database. When I have this user control in a form, along with many other textboxes, how do I make the tab index work? Let us suppose I have two textboxes and the user control in a form. The tab index of the first textbox is 1, and that of the second textbox is 2. But if I want to move the control on the form to the usercontrol after the textbox2, how do I set up the tab index of the usercontrol. One way I can achieve that is by setting up the tabindex to 3 while creating the user control. But this is not going to work when I have more than two controls before the usercontrol in another form!!! I hope you understood what I mean. Thanks in advance, SJ
-
Hi...Can anyone tell me whats wroing with this part of the code??? <asp:HyperLink Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"name")%>' NavigateUrl='Profile.aspx?id=<%#DataBinder.Eval (Container.DataItem,"idNum")%>'> </asp:HyperLink> the first part, i.e. the column text is showing correctly but the id of the profile in the second set of the asp tags is not coming??? whatever is in the <%#DataBinder.Eval (Container.DataItem,"idNum")%> is showing as a string in the link along with the asp tags!!! Thanks, SJ
-
Hi..I appreciate ur patience....but i am sorry that i didn't find any difference between ur code and mine...except the way u closed the tags...i tried that too but it just doesn't work. SJ
-
Bad news!!! I am sorry about the last one...I tried like this now... <asp:HyperLink Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"name")%>' NavigateUrl='/GB.Web/BarOwner/BarProfile.aspx?id=<%# Encrypt(Container.DataItem("idNum"))%>' > </asp:HyperLink> Not working!!!! By the way...I forgot to ask u....the MyFunction() function u are trying, is it in the code-behind or did u write that function in the HTML page itself? SJ
-
this is what I have .... <asp:HyperLink Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"name")%>' NavigateUrl='/GB.Web/BarOwner/BarProfile.aspx?id=<%# Encrypt(DataBinder.Eval(Container.DataItem,"idNum"))%>' > </asp:HyperLink> I even tried with the '=' sign before the Encrypt() function like this <asp:HyperLink Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"name")%>' NavigateUrl='/GB.Web/BarOwner/BarProfile.aspx?id=<%# =Encrypt(DataBinder.Eval(Container.DataItem,"idNum"))%>' > </asp:HyperLink> Its not working..still showing the string!!!!
-
<asp:TemplateColumn SortExpression="name" HeaderText="5" HeaderStyle-Font-Name="webdings"> </asp:TemplateColumn> why does the above code does not show the "upward arrow" of the webdings. the headertext is just displaying the number '5' but not the arrow!!
-
Now...it is not giving me any error but whatever is in the asp tags is being displayed as string!!!! Like this--- Profile.aspx?id=<%# =Encrypt(DataBinder.Eval(Container.DataItem,"idNum"))%>
-
Nope..not working...giving me the same error SJ
-
Hi...Right now..I have a nice datagrid with both sorting and paging working fine. Here, I am sorting the results by clicking the header text of the datagrid column. by default, the sorting direction for a datagrid column is Ascending. How can we achive sorting in both directions by the alternate clicks on the header text? Thanks SJ
-
Hi...this is how I am trying to call the function in the code-behind: <asp:TemplateColumn HeaderStyle-Width="150px" SortExpression="name" HeaderText="Bar" ItemStyle-BackColor="BlanchedAlmond"> <ItemTemplate> <asp:HyperLink Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"name")%>' NavigateUrl='<%# "/GB.Web/BarOwner/BarProfile.aspx?id=" & =StringOperations.Encrypt(DataBinder.Eval(Container.DataItem,"idNum"))%>'> </asp:HyperLink> </ItemTemplate> </asp:TemplateColumn> And I am getting this error: BC30516: Overload resolution failed because no accessible 'ToString' accepts this number of arguments. Can u tell me whats wrong... The StringOperations is a class where the Encrypt() is a shared function which takes an integer and returns a string SJ
-
Hi...I am trying to implement cookieless authentication. Thats the reason I am appending the encrypted ticket to all the URLs. SJ
-
Hi...I am trying to call a function in the code-behind from the HTML side of the page using the asp tags <% .. %>. Can anyone tell me if we can do that and how? SJ
-
Scenario: Hi...I have implemented cookieless forms authentication. In this case...what I am doing is, I am appending the encrypted authentication ticket created by the FormsAuthentication to each and every URL in the website. This is allowing me to browse all the secured pages because whenever a secured page is loaded...it looks for the authentication cookie. Now...everything is working smooth until now.. Problem: When I am signing out using the FormsAuthentication.SignOut() method and going to the Login page, I am able to come back to the previous page. And i am not only able to see the info but also modify it. I know this is happening because the browser is still able to find the authentication string in the URL when i go back since it is just the history of the browser..I would really appreciate if anyone can tell me how to handle the situation... I have already implemented the checking of "httpcontext.current.user.isauthenticated" thing. I created a base page for the secured pages and in the page_load method of the secured page, I am seeing if the user is still authenticated. But to my bad luck...it is returning true even the user was logged out. Any other way? Thanks, SJ
-
HI..thanks for the response. I figured out how to do it. We just need to set the "CausesValidation" property of all the link buttons and the buttons we use for navigation, to False. Thanks, SJ
-
Hi....I have a form which has a few "RequiredFieldValidator"s. for these validators to work, we need them enabled. but what if we want to click on another link on the same page. the field validators are not allowing u to do that. all the validators are being fired and i am not able to go out of that page. Is there any solution to this? Thanks SJ
-
I have a hyperlink column in a datagrid and I have to append the value of a textbox on the webform to the hyperlink URL as a querystring. How can I do that? this is the column I have in the datagrid and the textbox is txtKeywords: <asp:HyperLinkColumn Target="_self" DataNavigateUrlField="ResumeID" DataNavigateUrlFormatString="ResumeDetails.aspx?id={0}&keywords='txtKeywords.Text'" Thanks, SJ
-
Hi....Thanks for the replies guys. I was able to accomplish what I wanted by just making the AutoGenerateColumns property "False" and inserting the Databound columns manually...That seems the best thing to do. Thank u once again... SJ
-
Hi...Can anyone tell me what is the best way to highlight all the "keywords" in a page. Assuming that the keywords are passed through a query string. Can we achieve that by using javscript, if we can, how can we call from the server side script Thanks SJ
-
create a new table from an existing one
sj1187534 replied to sj1187534's topic in Database / XML / Reporting
yeah...this is a one time thing...i am going to use that table in the future SJ