|
Hey, I've been trying to fix this and I haven't found anything on the internet about it. I have a text field, and when the page posts back, the value in it has a comma in front of what was typed in. I'm also using asp .net ajax on the page. Has anyone come across this one before?
--Steven
|
|
|
|
|
It is highly unlikely that the comma is just magically appearing with no interaction. Perhaps if you showed some of the code involved we could spot the issue.
only two letters away from being an asset
|
|
|
|
|
Hey, I think I found the problem, but it still makes no sense. I've been using the Ajax Toolkit in my project and I just put the latest build into my project. Anyways, I rolled back to the dll I was using before and the problem went away. I can only assume that there's a glitch in the toolkit causing it since none of my code was modifying field values including my hidden fields! I'm going to check out their developer section to see if anyone else has had this issue.
-- Steven
|
|
|
|
|
Hi folks,
I've notice with a project I'm working on that internet explorer tags the name of an anchor onto the page title if the page is loaded from a link pointing to that anchor.
Eg. "MySite | MyBlogTitle" becomes "MySite | MyBlogTitle#comments"
I've tried setting the page title in the page life cycle but the IE's behaviour seems to add the value after the cycle is complete.
Does anyone one know how to fix this without using javascript?
Cheers
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
Hello,
The requirement is file transfer via HTTP from local hard drive to Remote server via Http. And I want to show the directories of remote server so I can upload or download file/folder (just work like FTP does but via HTTP)
I have one question about showing the virtual directories of remote server from web application in Asp.Net.
Please guide me whether it is possible or not.
Regards,
Milind
|
|
|
|
|
Do you want to deploy your application to Remote IIS Server or what ? Why do you want to this ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
<asp:datagrid id="DATAGRID1" runat="server" Width="688px" GridLines="Horizontal" CellPadding="4"
BackColor="White" BorderWidth="3px" BorderStyle="Double" BorderColor="#336666" AutoGenerateColumns="False">
<SelectedItemStyle Font-Bold="True" ForeColor="White" CssClass="secondaryContentBoxLightBlue" BackColor="#339966"></SelectedItemStyle>
<EditItemStyle CssClass="secondaryContentBoxLightBlue"></EditItemStyle>
<AlternatingItemStyle CssClass="secondaryContentBoxLightBlue"></AlternatingItemStyle>
<ItemStyle ForeColor="#333333" CssClass="secondaryContentBoxLightBlue" BackColor="White"></ItemStyle>
<HeaderStyle Font-Size="X-Small" Font-Names="Arial" Font-Bold="True" HorizontalAlign="Center"
ForeColor="White" BackColor="SteelBlue"></HeaderStyle>
<FooterStyle ForeColor="#404040" BackColor="White"></FooterStyle>
<Columns>
<asp:TemplateColumn HeaderText="Rno">
<ItemTemplate>
<asp:TextBox id="TextBox1" runat="server" Width="230px" Text='<%# DataBinder.Eval(Container, "DataItem.Rno") %>'>
</asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="StudentName">
<ItemTemplate>
<asp:TextBox id="TextBox2" width="90px" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.StuName") %>'>
</asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="White" BackColor="#336666" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
code for saving:
button click code:
foreach(DataGridItem dgi in DATAGRID1.Items)
{
TextBox txtRno= (TextBox)(dgi.Cells[0].Controls[1]);
string RollNo= txtRno.Text.Trim();
TextBox txtStuName= (TextBox)(dgi.Cells[1].Controls[1]);
string StuName= txtStuName.Text.Trim();
}
Hafeez
|
|
|
|
|
And the question is?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I have seen in many sites. They display an advertisement banner on top of the home page and if user clicks on it he is diverted to that site else he got a option to close the banner.
I am trying to implement something like this but not sure where to look for the examples and what exactly is it called.
Please guide me to the right direction.
Thank You
|
|
|
|
|
Use AJAX Model Popup Extender for the same.
Best Regards,
Chetan Patel
|
|
|
|
|
AndyInUK wrote: and if user clicks on it he is diverted to that site else he got a option to close the banner.
You want to show it in your page itself or want to redirect ? I didn't get your question clearly. Can you please give some more details.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
He is speaking of those modal pop up based ads. Or the login popups we get on some forums.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
It'd be a DIV styled with CSS. Close button will be an image and when it is clicked, a JS function will be executed which will set the DIV's visibility to hidden.
Best wishes,
Navaneeth
|
|
|
|
|
Hello,
I just started using NUnit to write test cases for my asp.net web application project.
Some of the code written to access database values fetches the ConnectionString from a "section" defined under "configSections" of web.config file.
This works fine during the normal execution of the project on a web browser. But when I access the same method through the test case, WebConfigurationManager.GetSection() always return null.
Initially I was also not able to access AppSettings section of web.config but it got solved when I copied the web.config file into the BIN folder. But still not able to fetch the "section" inside "ConfigSection".
Kindly suggest.
|
|
|
|
|
hi
im using dropdownlist with list items low, mid, top levels..
which are updated in table in sql.
cmd.Parameters.Add("AccessLevel", SqlDbType.NVarChar).Value = DropDownList1.SelectedItem.Value;
im able to update it correctly in sql but when i refresh that web page the dropdownlist always show the 1st list item and it doesnot show the updated list item..
help me...
|
|
|
|
|
You are most likely rebinding the dropdownlist on the postback, however; with see more of the code I can't be sure.
only two letters away from being an asset
|
|
|
|
|
My requirement is to find out whether a user is already logged in or not while the same username is logging in for a second time(may be in another pc/browser). If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active. The user name in first and second log in is the same but may not be the same in person(pc).
Has anyone worked around such a requirement. I plan to use the FormsAuthentication. But I don't mind changing it if this requirement gets satisfied without it
|
|
|
|
|
tonymathewt wrote: If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active.
It should not be ! You should give a message to second user the some one is already logged in from your account.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
My client insists on this feature. He wants the first login to be logged out. Is it possible?
|
|
|
|
|
NavigateUrl="Show.aspx?ID='<%# DataBinder.Eval(Container.DataItem,"ID")%>'"
This is html code I have hyperlink and I need to add the ID in the databinder after the show.aspx?ID=
Something wrong in it it is giving me server side error can anyone help me fix it.
Thanks in advance
|
|
|
|
|
I done my search and I solve my probelm. If anyone else have the same problem here is the solution:
NavigateUrl='<%#"Show.aspx?ID=" & DataBinder.Eval(Container.DataItem,"ID")%>'
|
|
|
|
|
I have the following in my aspx page. My RadioButtonList contains no data. I have 5 records in my DB, and what I need it to display is
Record 1 - RadioButton1 - RadioButton2
.....
Record 5 - RadioButton1 - RadioButton2
<asp:TableRow>
<asp:TableCell CssClass="NormLabel">
<asp:CheckBoxList ID="Upd_AccessList" runat="server" RepeatColumns="1" RepeatDirection="Horizontal"
DataSourceID="DataSource" DataTextField="networkAccessDriveDesc"
DataValueField="networkAccessEmail" >
</asp:CheckBoxList>
<asp:AccessDataSource ID="DataSource" runat="server" DataFile="~/App_Data/MyDatabase.mdb"
SelectCommand="SELECT * FROM NetworkAccess ORDER BY networkAccessDriveDesc"></asp:AccessDataSource>
</asp:TableCell>
<asp:TableCell CssClass="NormLabel">
<asp:Repeater runat="server" ID="Upd_Repeater">
<ItemTemplate>
<asp:RadioButtonList runat="server" ID="Upd_RBL" RepeatColumns="2" RepeatDirection="Horizontal"
TextAlign="Left">
<asp:ListItem>Read</asp:ListItem>
<asp:ListItem>Read/Write/Delete</asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
</asp:Repeater>
</asp:TableCell>
</asp:TableRow>
|
|
|
|
|
i'm new to vb.net...How do i create dynamic tabs...for my project i need dynamic tabs, i created tabs and it works fine...but adding tabs dynamically is where i got stuck up...
|
|
|
|
|
Which TAB control are you using ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
it is in asp.net....so i'm using menus and multiview....
|
|
|
|