|
Building a map of strings to buttons is about your only option, unless you have an event and can make the button the tag for the event that causes this to happen
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks Christian
I was afraid that was the case
|
|
|
|
|
hello code project gurus.
i am very new to asp.net i have developed a simple two page website where i can view first page as anonymous where as i need to login to be able to view the second page.
web pages are developed in asp.net 2.0 and sql 2005 my hosting has created a database named xyz and given me server login details
Server Name:HamaraShehar.com,25000
Log In:loginxxx
Password:passwdxxx
now i need to upload this solution to my shared hosting space and see if it works there.
please guide me how to do so.
thanx in advance.
|
|
|
|
|
Well, it depends on the host, if they have SQL Server installed, and how they give you access to it, to set up your DB
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I'm new here, so sorry if i'm in the wrong forum.
I'm in need of a multiple combobox that interact with each other. what i mean is when the user select an item from the first combobox the system show the second combobox with items that is related with the first combobox end it will be stored in the database with the 2 items that the user choosed from the 2 comboboxes
i hope you understand me
thnx!
|
|
|
|
|
Jenfi wrote: I'm new here,
Hi Jenfi, Welcome to the Code Project
Jenfi wrote: I'm in need of a multiple combobox that interact with each other. what i mean is when the user select an item from the first combobox the system show the second combobox with items that is related with the first combobox end it will be stored in the database with the 2 items that the user choosed from the 2 comboboxes
I believe you want to mean interaction of Dropdown List in your web page . Am I correct ?
You can easily implement that, On the Selected Change Index of First Dropdown list , Load the data of Second dropdown list.
Suppose, your first Dropdown contain all the Country name, and on selection of country you want to show the states of that country on the second dropdown list, then call a Stored procedure on selection index changed event of first dropdown list and pass the country name which returns all the state name in a dataset and bind that with second Dropdown list.
Hope this will help you to go ahead.
Please let us know if any more issue.
|
|
|
|
|
i don't want to give my code part of web application to client. In asp.net 2.0 ,i publish the website but there is no publish option in asp.net 1.1
One person's data is another person's program.
--J.Walia
|
|
|
|
|
J walia wrote: i don't want to give my code part of web application to client. In asp.net 2.0 ,i publish the website but there is no publish option in asp.net 1.1
Try this
How do I precompile my ASP.NET 1.1 application[^]
Hope this will help you
|
|
|
|
|
I took advantage of some code I found on these forums and have created a form that has a nested gridview. The first gridview is bound using the SqlDataSource and on the OnRowBound event, bind data to the nested gridview. Then using JavaScript i hide the nested gridview until the user clicks on an image. The code I found for the javascript nested grid view is here. I then added code to highlight the selected row in the the first gridview. What i need to know is how would I go about adding code to make it so that I can do the same for the nested gridview?
Sample code
protected void Page_PreRenderComplete(object sender, System.EventArgs e)
{
//GridView nestedGrid = (GridView)GridView1.FindControl("GridView2");
foreach (GridViewRow y in GridView1.Rows)
{
y.Attributes.Add("onclick", "setSelected(this);");
}
}
function setSelected(selRow)
{
// alert(selRow.rowIndex);
var tbl = document.getElementById("GridView1");
for(var i = 1; i < tbl.rows.length; i++)
{
if(selRow.rowIndex == i)
{
selRow.style.fontWeight = "Bold";
selRow.style.backgroundColor = "Yellow";
}
}
}
But once i moved to child grid that time Click event of parent Grid cell does not fired so all highlited row of parent grid gone.
so how to solve it
Raghvendra
Raghvendra
|
|
|
|
|
Please don't cross post. If you posted the same question, before few hours back.
|
|
|
|
|
OK Next time i will take care , but i request u to ans my problem if no one else
Raghvendra
|
|
|
|
|
I am trying to deploy the ms sql express with my program and attach a mdf file automatically. I read about the attachdbfilename attribute in the connections string but I can't get it to work. Can any one give me some help?
I have looked on Microsoft website and they don't give good examples. Also on Google, I am doing (I think) what I am suppose to but get errors.
Example connections string:
"Data Source=WALZLM1;Initial Catalog=;AttachDBFileName=scantrack.mdf;Integrated Security=True"
I get this error: An attempt to attach an auto-named database for file scantrack.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share.
Things you may want to know. The Sqlexpress is on a networked server. The mdf is local.
What am I doing wrong?
I can't think of anything cool and nerdy to say.
|
|
|
|
|
A database with the same name exists
Have you checked this?
Niladri Biswas
|
|
|
|
|
Cory Kimble wrote: "Data Source=WALZLM1;Initial Catalog=;AttachDBFileName=scantrack.mdf;Integrated Security=True"
I get this error: An attempt to attach an auto-named database for file scantrack.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share.
Have a look[^]
|
|
|
|
|
Hi,
I have one datatable and i applied select on that datatable now i have the result.
Now i am adding that result into arraylist. but it is giving runtime error.
The code which written is mentioned below
DataTable myTable=null ;
DataRow[] foundRows = null;
dsForData = new DataSet();
ArrayList RequiredList = new ArrayList();
dsForData= Session[strSessionDataList] as DataSet;
myTable = dsForData.Tables[0];
if (myTable.Rows.Count > 0)
{
foundRows = myTable.Select("val like '" + item + "%'");
for (int count = 0; count < (foundRows.Length) - 1; count++)
{
RequiredList.Add(foundRows[count].ItemArray[0]);
}
}
can anybody guide me.... How to bind the data into arraylist.
|
|
|
|
|
dayakar_dn wrote: but it is giving runtime error.
and what is the exception you are getting?
only two letters away from being an asset
|
|
|
|
|
But I use your code only (with a bit modification for putting the code into work).
And It is working fine.
Here is the code
protected void Button1_Click(object sender, EventArgs e)
{
DataTable myTable = null;
DataRow[] foundRows = null;
ArrayList RequiredList = new ArrayList();
myTable = functiongettable();
string item = "Nil";
if (myTable.Rows.Count > 0)
{
foundRows = myTable.Select("Name like '" + item + "%'");
for (int count = 0; count < (foundRows.Length) - 1; count++)
{
RequiredList.Add(foundRows[count].ItemArray[0]);
}
}
}
public DataTable functiongettable()
{
DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Rows.Add("Nil1");
dt.Rows.Add("Nil5");
dt.Rows.Add("Nil6");
dt.Rows.Add("Nil3");
dt.Rows.Add("Nil6");
return dt;
}
Can you tell in which line and what error message you are getting?
Niladri Biswas
|
|
|
|
|
dayakar_dn wrote: but it is giving runtime error.
What is the error ? As per Nilidri's Answer, your code is correct. I guess you are missing with some Namespace or Session related part.
So, check what error its giving !
|
|
|
|
|
Hi all,
I have to integrate the webcame into Asp.net web application . i mean using the webcame i want to capture the picture and then store into database kindly suggest me good links where i can learn .
Best Regards
|
|
|
|
|
Rameez Raja wrote: I have to integrate the webcame into Asp.net web application .
ASP.NET has nothing to do with WEB CAM.
|
|
|
|
|
Abhijit Jana wrote:
ASP.NET has nothing to do with WEB CAM.
Thanks for fast reply , then how i deal with webcam ? Any Idea what i have to do ? suggest me the road map.
Best Regards
|
|
|
|
|
You really cannot, not without an ActiveX component ( which means your site will only work in IE ).
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
Thanks for reply
I googles allot bt not found the suitable artilce thatswhy i posted here for getting some help from ur experience else i will continue google it for webcam .
you people only give me the suggestions how i can integrate the webcam into Asp.net application
iam studying ur provided artilce link expect more suggestions
Best Regards
|
|
|
|
|
Hi All,
I have to show the reports in the form of graphs/charts on a web page
Is there any good tool available ?
I know there are many tools but want to check if any one has extensive experience on any of the tool who can give me some feeback.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|