|
Fair enough.
Which bit do you need help with ? Do you know how to build the ASP.NET pages ? Do you understand how the data is laid out ? The trick is to look for rules you can apply to the data, to get out the information you need. I'm thinking of the fact that you have three groups of answers, for three questions, and each group of answers has a different number next to it. It's a lousy design IMO, I'd have done a bridging table that allowed you to have 'yes' in the answer list once and reference it as needed, but the Id of 1 is the answers for the first question, 2 is the second, etc. Knowing this, do you know how to write the SQL ?
I assume this is homework, and it's therefore safe to assume that your teacher *thinks* she has given you all you need to do this. If we can establish which bits you're stuck on, we're happy to offer guidance, but we're definately going to err on the side of trying to help you work it out, and not writing the code for you, because the point of the homework is that you learn how to do this, not that you get it done, per se.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
In GrdiView I have a text in a cell with a value "CLCA00090". I need to make a wordwrap in such a way the value looks "CLCA" in first line and the rest in next line.. How can I achieve this.. Currently it is a bound field..
|
|
|
|
|
I haven`t tried this but it may work out....
In the ItemDataBound event of the grid replace the contents of the desired cell
Try this...
eg: string a,b;
string str=e.Cell[0].text;
a=str.Substring(0,4);
b=str.substring(5);
str=a+" "+b;
e.Cell[0].Text=str;
|
|
|
|
|
Hi All,
I have an ajax page, In which When I select some thing from dropdown list the other dropdown list is filled acording to that selected item. Everything is ok but a lattle problem is that the other dropdown list is not filled. Although I m getting the Data. I m adding values to that dropdown list like this , Pls check it what is the problem in that. How should I add to that dropdown list.
function ClearAndSet(itemNode)
{
var stateNode= itemNode;
for (var count = 0; count < stateNode.length; count++)
{
document.getElementById("drpClass").value = stateNode;
}
}
Thanks in Advance.
|
|
|
|
|
I have absolutely no idea what that function does. It appears to iterate through an array? but it does exactly the same thing on every iteration?
|
|
|
|
|
Khan Bangash wrote: document.getElementById("drpClass").value = stateNode;
First of all, don't call getElementById over and over. Secondly, when you do call it, check that it doesn't return null before you try to use the value.
Setting the value property over and over isn't going to add items to a list, obviously. There's tons of info on the web on this, this looks like a good resource, and it's he first hit I got with a google search:
http://www.mredkj.com/tutorials/tutorial005.html[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Is it possible to define a namespace for the web page, that does not have a separate code-behind class?
If yes, how?
|
|
|
|
|
I have created a custom DropDownList in an attempt to extend the existing System.Web.UI.DropDownList in ASP.NET. In the implementation I have had to override Render and RenderContents while using some JavaScript to define the control behaviour. Everything is fine about the control and it renders properly on a 'normal' asp page until I take it to a page that uses a masterpage. Then it becomes distorted with the pulldown appearing some distance away from the textarea. Where should I start looking. The control's javascript or the masterpage.
|
|
|
|
|
I'd probably have a look at the source of the page once rendered, typically when using a master page and assumingly Content Place Holder(s), dynamic element ID's have a way of changing.
e.g. Your control might have been cmbStates in your (solo) aspx page, but once added to a master page, that very same control might now be ctl100_cmbStates or something similar.
So, if you were relying on JS to interact with the controls ID, it might have changed. I would certainly start there first.
Also make sure if you are using CSS sheets, that it is properly referenced and defined properly.
|
|
|
|
|
Thanks alot. I had forgotten that since my masterpage made provision for a content panel and an index panel, I needed to do to some adjustment to the position of the control inorder to position it correctly on the page relative to other controls on the page. Your idea was an eyeopener
|
|
|
|
|
Glad I could be of some help.
|
|
|
|
|
the error is coming while i am using the following code. This is for add a connection string to datasource dynamically
code:
string cnStr;
cnStr =
ConfigurationSettings.ConnectionStrings["MyNWind"].ConnectionString;
SqlConnection cnObj = new SqlConnection(cnStr);
error:
'System.Configuration.ConfigurationSettings' does not contain a definition for 'ConnectionStrings'
itsvery urgent. TIA
|
|
|
|
|
Hi,
Did you add a key like this inside your web.config file
I think you should add like this.
<connectionStrings>
<add name="MyNWind"
connectionString="My Connection String" />
</connectionStrings>
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
yes i did that. but still its giving error
|
|
|
|
|
here is the code in home.aspx:
SqlDataSource ds = new SqlDataSource();
ds.ConnectionString = ConfigurationSettings.connectionStrings["ConnectionString2"].connectionString;
ds.SelectCommand = "SELECT DEPTNO, DNAME FROM DEPT1 where deptno=@deptno";
here is the code in web.config:
<connectionstrings>
<add name="ConnectionString" connectionstring="Data Source=localhost;Persist Security Info=True;User ID=hr;Password=narayana;Unicode=True"
="" providername="System.Data.OracleClient">
<add name="ConnectionString2" connectionstring="Data Source=localhost;Persist Security Info=True;User ID=hr;Password=narayana;Unicode=True"
="" providername="System.Data.OracleClient">
i alreadymentioned my error that what i am getting. try to help me asap. TIA
|
|
|
|
|
Shouldn't it be:
ConfigurationManager.ConnectionStrings["your_con_string"].ToString()
Assuming this is for 2.0 and you've added the proper imports/using statement.
e.g. (C#) using System.Configuration;
(VB) Imports System.Configuration
Hope this helps :->
|
|
|
|
|
i am not able to change the selected value in the drop down.i am using the drop down in grid view.how can i do that
kanwal
|
|
|
|
|
Hi,
You can use
SelectedValue='<%# Bind("MyField") %>'
To set selected value.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
I am having a problem connecting to a MS SQL server on my web host due to a firewall here at work. I am able to get it to work at home and it works once I send it to the website, but I can’t test it in my development environment at work. My question is, if I use a local database in the APP_DATA directory, does this use a lot more bandwidth than connecting to a MS SQL server. I am concerned that each time someone would use this database, it would have to download a copy to their PC and then run the query. Can someone explain how this works? Any help or advice would be appreciated.
|
|
|
|
|
Hi Guys,
I have placed a google site search on my web site.The problem is, this search is working fine in a html page.but not on my web site.I have placed this code in my user control and called it.
If anybody has suggestions for this please reply.
Thanks
Jith
|
|
|
|
|
HI,
NOt able to see the code.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Chetan Ranpariya wrote: NOt able to see the code.
As he has not posted code.
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... "
|
|
|
|
|
jithbiz003 has wrote:
I have placed this code in my user control and called it.
Which Code??????????????
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi all
i have a problem in my java script code is working IE but in moziall firefox it does not working.
document.selection.createRange();
i am seek of it.
Pavan Pareta
|
|
|
|
|