|
ASP.net doesn't have rich textbox control. It is in windows form.
|
|
|
|
|
hence 'of some description'. Try the FCK Editor or similar.Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|
I'll bet there's a jQuery extension for that.
|
|
|
|
|
how could i change dynamically the hyperlink look & behavior using css. suppose for few users i will show hyperlink and for few users i will show label. i think hyperlink can behave like label if proper css can be use. so if possible please someone give me a snippet of css which will make a hyperlink a just label.
thanks in advancetbhattacharjee
|
|
|
|
|
Why dont you use label and link and Show/Hide them according your requirement. Cheers!!
Brij
|
|
|
|
|
Hello Friends,
I've a tab control in my form. and a GridView When click on the Select commaqnd of GridView then it's not displaying my tabcontrol and throwing a javascript error as shown below
Sys.ArgumentNullException: Value cannot be null.
Parmeter name: element
|
|
|
|
|
hi
i hav a problem on logout.after logout when i click on back button it show me the page from where i logout.
plZ help me how to solve it.
|
|
|
|
|
|
actualy i have problem on opera and firefox browser.my code is work good in IE.Back Button of opera and firefox is working after logout.
|
|
|
|
|
Assuming you're using formsauthentication and not something homecooked:
FormsAuthentication.SignoutMy postings are a natural product. The slight variations in spelling and grammar enhance their individual character and beauty and are in no way to be considered flaws or defects.
|
|
|
|
|
For the login control that I am using, there is a connectionstring which is automatically created in the web.config file.
I ran an .exe file which populated the specified database with all the asp login related tables and stored procedures...
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=localmachineName;Initial Catalog=DBName;Persist Security Info=True;User ID=DBUserName;Password=password" providerName="System.Data.SqlClient"/>
</connectionStrings>
Question:
How can I point the login control to a different Database based on the database selection by a user i.e. the user can change the name of the database and so the login should point to that database.
Thanks
|
|
|
|
|
i have search form on asp dot net.
drop down list 1
drop down list 2
grid view control
selection in drop down list 1 populates ddl2 and after click on search button it searches fine.
but after search when i change ddl1, although it populates ddl2 accordingly but it also disturb gridview data. where as it should not disturb gridview because i only changes Drop down lists. grid's data should only be changed with Search button.
help plz
|
|
|
|
|
i think ajax will help you here
|
|
|
|
|
Use updatepanel and put your grid inside taht.Update the grid whenever required. Cheers!!
Brij
|
|
|
|
|
Hi,
I am getting this error There is an error in XML document (1, 2) When i Deserialize following Xml.
<EnvironmentConfigurations>
<EnvironmentConfiguration>
<EnvironmentName>ABC</EnvironmentName>
<CMSConfiguration>
<Address>net.tcp://localhost:9000/Manager</Address>
<Binding>netTcpBinding</Binding>
<Contract>Common.Interfaces.Server</Contract>
</CMSConfiguration>
</EnvironmentConfiguration>
<EnvironmentConfiguration>
<EnvironmentName>XYZ</EnvironmentName>
<CMSConfiguration>
<Address>net.tcp://localhost:9000/Manager</Address>
<Binding>netTcpBinding</Binding>
<Contract>Common.Interfaces.Server</Contract>
</CMSConfiguration>
</EnvironmentConfiguration>
</EnvironmentConfigurations>
|
|
|
|
|
use the code below..
System.Xml.Serialization.XmlRootAttribute xRoot = new System.Xml.Serialization.XmlRootAttribute();
xRoot.ElementName = "EnvironmentConfigurations";
xRoot.IsNullable = true;
System.Xml.Serialization.XmlSerializer ser = new System.Xml.Serialization.XmlSerializer(typeof(<your Type>), xRoot);
<your type> x = (<your Type>)ser.Deserialize(new System.IO.StringReader(<your xml>));
|
|
|
|
|
There are several connectionstrings in the web.cofig file.
<add name="DBConnection1" connectionString="Data Source=server1;Initial Catalog=database1;User Id=username;Password=password" providerName="System.Data.SqlClient"/>
<add name="DBConnection2" connectionString="Data Source=server1;Initial Catalog=database2;User Id=username;Password=password" providerName="System.Data.SqlClient"/>
...
...
I can retrieve each one of them by using the following code . i.e.
string strConn = ConfigurationManager.ConnectionStrings["DBConnection1"].ConnectionString;
Question:
How can I retrieve all the connectionstrings into one array of strings so that I can populate the names of the databases into a dropdown control? I ask because the list of the connectionstring in the web.config can grow. So I need a way to retrieve all the connectionstrings without hardcoding the connectionname as I have done above.
Any thoughts please?
Thanks
|
|
|
|
|
My first thought is load the web.config into and xmldocument and parse it yourself using SelectNodes.
|
|
|
|
|
Any other thoughts apart fro mxmldocument?
Thanks
|
|
|
|
|
<asp:DropDownList ID="ddl" runat="server"></asp:DropDownList>
ConnectionStringSettingsCollection a = ConfigurationManager.ConnectionStrings;
ListItem lst = new ListItem();
foreach (ConnectionStringSettings s in a)
{
lst = new ListItem(s.ConnectionString, s.ConnectionString);
ddl.Items.Add(lst);
}
ddl.Items.RemoveAt(0);
you can use any loop once it is populated in ConnectionStringSettingsCollection.
it populates one connection string from machine.config file. so i have removed 1st one.
Hope this will be helpful for u.
|
|
|
|
|
Hi,
In my Web Application I have my database on central server. There is one table A which is associated with 10-12 table. i.e. A tables primary key used as Foreign Key in other table. I used web service.
Now I have other application(Desktop Application) where I used web service. Now in that case I directly uses web service where in that I directly connect to the central database.
Now my problem is I have my 3rd application(Desktop application) where I dont want to connect directly to the central database. Means at first time its Ok to connect to the central database but for other manupulation it wont connect to the central database. I want to done it locally. Once all finish it will then update to the central database with all tables updated records.
Both 2nd and 3rd application run simultaneously. So because of local applications data is not updated 2nd application which is running will also provide the same primary key as local applications data once database manipulation done.
So if I integrate these database then it will overwrite the data or my 2nd applications data will lost.
I am using cache concept. But there is another problem of using caching if shut down the computer or power interrupt it will again lost the data.
So what can i do?
Thanks
Sjs
|
|
|
|
|
You can have two ID in Tables
1 is LocalID and another is CentralID
Might be the solution.Best Regards,
Chetan Patel
|
|
|
|
|
Thanks for the reply.
Now just I will explain what exactly problem is
My A table is very important. Now when my 2nd application run and when I login then automatically 1 entry is inserted into A table. Some work done on windows application and when going to next level it will again insert 1 entry to A table So if my A table start with 19th entry it will finish with 20th entry. There are some process in windows application where each time 1 entry inserted into A table. So near about 4-5 time each entry inserted.
Having Same application 3rd application running locally with same database manupulation. i.e. one entry inserted after login. so if after 2nd aplication login if my local 3rd application run and once user login then it will automatically generate next primary key i.e.20 at local machine which is already there on server database. And All my other forms which is depends on that primary key.
If I going to update server database with local entry then it will conflict.
Thanks
Sjs
|
|
|
|
|
Hi Everyone,
I am trying to create a simple customer object with firstname, lastname and dateofbirth
properties.
Then I would like to populate 4 of them or so and put them into a collection
and then populate them onto a page for display with a repeater control.
As I am not very expert in ASP.NET.
Please let me know your thoughts with sample code.
Thnaks
|
|
|
|
|
<asp:Repeater ID="Repeater1" runat="server" >
<HeaderTemplate >
<table width="100%">
<tr style="background-color:Black; color:White; font-weight:bold" >
<td >firstname</td>
<td >lastname</td>
<td >dateofbirth</td>
<td ></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td height="30px"><%#DataBinder.Eval(Container.DataItem,"firstname") %></td>
<td height="30px"><%#DataBinder.Eval(Container.DataItem,"lastname")%></td>
<td height="30px"><%#DataBinder.Eval(Container.DataItem,"dateofbirth")%></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
|
|
|
|