|
I have only the one solution. I have created an Interface with a class and a DataSet inside this solution but when I go to page_load and type "this." then nothing appears, it's as though the access modifier is set to private but in this case won't make any difference as I am only using the one solution so everything should be accessable.
I have created a DataSet inside the root of my solution and have tried to access it but I cannot access it either!
When I use a Windows Forms Solution everything works fine.
Any suggestions?
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: I have a folder in my solution named "DAL" inside this folder I have a DataSet called dsTSQ.
You are confusing folder with your application structure. Folders are nothing but logical grouping of files. Period. They have nothing to do with your project settings.
If the DataSet code is in the same namespace as your Default.aspx page then you can use it, if not make sure your use the right namespace.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi cp...
i was trying to learn Asp this sunday ...
so in this regards,i am trying to make a page and display some data using C#.
so on page_load i am retrive the data but inside td i am not able to show the data .. any help is appriciated..
vikas da
|
|
|
|
|
I am able to display the values using properties...
can somebody help me here again ...
i have to display data of jan,feb,mar.....etc..
so in this ..jan will be having count of the rows of a table
similarly i have to display for each month... now its 31 march so on 1 st april i want to add automatically add a table with similar look and feel like mar to display the data of april.
can somebody help me here ..
Thanks
vikas da
|
|
|
|
|
9/10 people who want their code fixed, post the code so we can comment.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
i have 2 questions in asp.net
1.How to generate automatic number when the page is loaded?
2.How to copy the value 0f textbox from one page to next page?
(E.G)In VB
form1 conatin one textbox name is textbox1 and one button for go to form2
form2 conatin one textbox name is textbox1
if i click button in form1 whatever value in the textbox1.text is dispaly in form2 textbox1
codeis:::
TextBox1.Text=Form1.Textbox1.Text
in asp.net ?????
|
|
|
|
|
aravindpanchaksharam wrote: How to generate automatic number when the page is loaded?
Look at the GUID[^] structure or Random[^] class. Hard to tell more without knowing what you are trying to do.
aravindpanchaksharam wrote: How to copy the value 0f textbox from one page to next page?
There are several methods. If it is trivial value, just pass it through query string. Other methods include, session, cross page postback etc.
Your post says you have no idea about ASP.NET. Please take a good book work with the examples.
|
|
|
|
|
Why are your controls called textbox1, etc ? Looking for unreadable code ?
In ASP.NET you pass values between controls on the same page, or via the query string. I think you need an ASP.NET book.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi, thanks for looking
Ive having problems with my copy web site tool in VS2008 (It uploads the file(s), but sometimes i get this error and takes more time than it should)
Ive tried with passive mode checked and uncheked, I had never had this error in VS2005,if i use VS2005, this error doesnt show up
This is the error:
Copy from 'D:\ws' to 'ftp://site.com/domains/ws' started at 04/04/2009 07:06:17 p.m..
Copy file Default.aspx from source to remote Web site.
Has error -- Unable to add 'Default.aspx' to the Web site. Could not find a Web server at site.com' on port 21. Please check to make sure that the Web server name is valid and your proxy settings are set correctly. If you are sure that everything is correct, the Web server may be temporarily out of service.
Copy from 'D:\ws' to 'ftp://site.com/domains/ws' is finished. Completed at 04/04/2009 07:06:42 p.m..
Does anyone know how to fix this??
Alexei Rodriguez
|
|
|
|
|
System.Text.StringBuilder sql = new System.Text.StringBuilder();
for (int i = 1; i <= 3; i++)
{
DataTable dt = dao.GetQuestionByType(i).Tables[0];
if (dt != null && dt.Rows.Count > 0)
{
for (int j = 0; j < 5; j++)
{
Random rd = new Random(j);
sql.AppendFormat("insert into TQ_ExamDetail values({0},{1});",temp,(int)dt.Rows[rd.Next(1,dt.Rows.Count)]["TQ_QuestionID"]);
}
}
}
Why is random has the same result?
Thank you in advance!
|
|
|
|
|
you need to seed it first, see here[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Because you asked it to be. AKA RTFM.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
i get precompilation error wat is that?
|
|
|
|
|
how can we possibly help you with out knowing what the error is?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
It means you don't know anything about what you're doing and should learn to use google and buy some books.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hi.
im wondering how to implement a website im building.
in short at has a login screen which a user can login and see a page with left div with information of some sort, middle div that holds couple of tabs, each tab should fill the div with a table of that tab(customers for example). the user will be able to add a client to the table, delete and edit. the other tabs should do the same, that is show table with edit,delete and insert.
in my current implementation i use a user control for each tab.
the user control have the table in it and the delete,insert,edit buttons in it.
when the user delete a record for instance , id like to call a method in the user control that deletes this record and sends back 1 or 0 uppon success or failure.
than using JS in the client i will remove that row in the table. likewise in the other buttons for insert and edit.
the problem now is that i cant call to a method in the user control directly from JS because of .net limitations.
any suggetions to overcome the problem or to use a different implementation?
|
|
|
|
|
How about using WebService to perform Add/Delete operations? You can use js to call webservices.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i thought about doing that. but im not quite sure if this is the best implementation. isnt using webservice can cause an overhead? is it conventional to use webservice for that reasons?
|
|
|
|
|
i want to sum columns as
customer sales1 sales2 sales3 sales4 total
john 100 150 100 200 550
Maya 200 100 100 300 700
i want to display the column "total" in the gridview
how can i do it with code
|
|
|
|
|
there are a number of ways you can do this. Here is very good http://www.asp.net/learn/data-access/tutorial-11-cs.aspx[^] that shows you different cases
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
You can just use this sql:
select sales1,sales2,sales3,sales4,sales1+sales2+sales3+sales4 as total from customer
|
|
|
|
|
hi evryone ............ i downloaded a web application and online community and when i host a website in localhost there is BLAZE APPS versioning to it ........... I WANT TO REMOVE IT ...........THE DESIGN PART OT PROJ DOESNT SHOW THESE pls hlp ........... the appl runs in vb.net2005 and db is optional for mysql and mssql .............. urgent
i can understand that my query intially looks lik to steal someones credits but cant help it
the design view doesnt show the contents
help me to view it atleast
n i heard the designing might have been done in html so that only it appears while running it only is it true??
|
|
|
|
|
nilleshkumar wrote: i downloaded a web application and online community and when i host a website in localhost there is BLAZE APPS versioning to it ........... I WANT TO REMOVE IT
Give me one good reason why you want to remove it.
nilleshkumar wrote: THE DESIGN PART OT PROJ DOESNT SHOW THESE pls hlp
Of course it want show you. Why should they?
nilleshkumar wrote: urgent
not to me
nilleshkumar wrote: i can understand that my query intially looks lik to steal someones credits but cant help it
you cant help it? [note: using your words] Are you saying your can not help it, but steal some ones code? What is wrong if you show their logo? After all they not you, have wrote the code. How do you plan to give them credit.
nilleshkumar wrote: help me to view it atleast
There is one thing I can help you. If it is a free code, download it, then use it to learn something. Then wrote your own application based on what you have learnt from scratch. That way you got to learn something and you end up writing your own code. How is that for starters?
Otherwise, if you want to use their code you need
1. Understand their licencing scheme
2. Give credit where credit is due
if you can not do any of those, then step back and leave the space for someone else.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
c f0r learning purpose i need the design side na
|
|
|
|
|
so for learning purposes why remove it?
I sense more hidden agenda beyond learning. Stop you thief!
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|