|
Yes, you are rite. But my client wants to go page by page. Yes I started a new project, added one MasterPage and Content page called Statement.aspx. Now I want to add this Statement.aspx to in existing ASP application Menu (Div Menu). I changed the menu link to navigate to Statement.aspx and I copied the Statement.aspx and Statement.aspx.vb files to ASP application directory. It asked me for Master file, than I copied Master page and the required dlls also. Its giving me error "Object reference not set to an instance of an object. " in the statment "Private connString As String = ConfigurationManager.AppSettings("sqlConn").ToString".
Thanks,
Satheesh M
|
|
|
|
|
Your client is an idiot. It's not wrong to politely tell them so.
medasatheesh wrote: "Object reference not set to an instance of an object. " in the statment "Private connString As String = ConfigurationManager.AppSettings("sqlConn").ToString".
you're in way over your depth. Tell your client you have no idea what you're doing, and a complete rewrite is the only way you're likely to cope with this task.
Short version, you cannot just copy aspx files into an asp project, you need the web.config, etc. It still will plain not work, you won't be sharing session data for a start. It's a mess.
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 am trying to add checkbox column to gridview and pick the rows which were selected ,
while doing this i am not able to get the rows selected,
could some one say what could be the problem in the code
the code i am working on is
added a new check box column to gridview as
<asp:templatefield>
<itemtemplate>
<asp:checkbox id="chkassignpaper" runat="server">;
;
;
to retrieve the rows selected i am using the code
CheckBox cbCelda = new CheckBox();
int i = 0;
while (i < grdViewpapers.Rows.Count)
{
cbCelda = (CheckBox)grdViewpapers.Rows[i].FindControl("chkassignpaper");
if (cbCelda.Checked)
{
Response.Write("hi" + i);
}
i++;
}
can some one say what could be the problem in accessing rows.....
Thanks
srini
|
|
|
|
|
What error messages are you getting?
Have you stepped through your code?
Have you populated the gridview with data?
|
|
|
|
|
May be change your code like this
int i = 0;
while (i < grdViewpapers.Rows.Count)
{
CheckBox cbCelda = (CheckBox)grdViewpapers.Rows[i].FindControl("chkassignpaper");
if(cbCelda != null)
{
if (cbCelda.Checked)
{
Response.Write("hi" + i);
}
}
i++;
}
|
|
|
|
|
Hi,
Thanks for the quick response, i got the problem solved.
Thanks
Mukkanti
|
|
|
|
|
|
Hi,
I am new to web development; I've created the a web site in asp.net2.0 with SQL Server 2000. I've published the website in the webserver.But when i type the url(domain name) in the browser i get the following error message:
Server Error in '/' Application.
Plz help
|
|
|
|
|
Subin Alex wrote: Plz help
Maite, you atleast need to provide with error message you are getting.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Look into the Event Viewer in the server whether any error message relating to your site is recorded.
|
|
|
|
|
Hi Freinds
I am using CalendarExtendar Control of AjaxControlToolKit.
now i need to disable all dates which is greater then today's date.
is this possible? if yes let me know.
please reply if u have other way to hide future date in calendar control
thanks
Regards
Keyur Satyadev
|
|
|
|
|
Hope this will help you
<pre>
<head runat="server">
<title>Calendar Extender</title>
<script type="text/javascript">
function checkDate(sender,args)
{
if (sender._selectedDate > new Date())
{
alert("You cannot select a day greater than today!");
sender._selectedDate = new Date();
// set the date back to the current date
sender._textbox.set_Value(sender._selectedDate.format(sender._format))
}
}
</script>
</head>
Call the code:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1"
runat="server" OnClientDateSelectionChanged="checkDate" TargetControlID="TextBox1" />
</div>
</form>
</pre>
|
|
|
|
|
|
it is not working , what parameters do i give whole calling the java script function in the extender control :
<cc1:calendarextender id="cReqDateFrom" runat="server" targetcontrolid="tb_From"
="" format="dd-MMM-yyyy" onclientdateselectionchanged="checkDate">
for the check Date Function what Arguments do I give while calling , as my java script function is not letting the calendar control work .
function checkDate(sender, args) {
alert('WHAT');
if (sender._selectedDate <; new Date()) {
alert("You cannot select a day earlier than today!");
sender._selectedDate = new Date();
// set the date back to the current date
sender._textbox.set_Value(sender._selectedDate.format(sender._format))
}
}
Fad .
|
|
|
|
|
Hi all,
How to make a website or a webpage with audio record and playback it with minimum requirements like record, play, pause and stop..
please anyone can suggest, if there is any tool or dll is available
i would appreciate if anybody can help me with the code that already running successfully..
Thanks in advance.
Vittal
|
|
|
|
|
Here [^]you go
i wonder, why everyone wants to play music today...there is another similar post just 4-5 messages down.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
//Preview is the folder name and FRENCH.AVI is my video file name...
<embed src="Preview/FRENCH.AVI" style="HEIGHT: 331px; LEFT: 83px; TOP: 171px; WIDTH: 538px" />
Padmanabhan
|
|
|
|
|
Hi,
Can anyone explain me or Give me a sample Example to write a mapping file using
Stored Procedures that have joins. and executing sps to get Data from DB using NHibernate
|
|
|
|
|
Hope this[^] will help you
|
|
|
|
|
|
Hi,
How can I find the example section in MSDN.
I want to get the example of the below mentioned code.
http://msdn.microsoft.com/en-us/library/ms366537(VS.80).aspx
Rgds,
Rains
|
|
|
|
|
You question is no different from this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
If you find any question silly then it is good that you do not answer.
I am finding difficult to get the example section and hence I asked.
You need not be so rude.
rgds,
rains
|
|
|
|
|
As far as I can see the example code is shown on the page. I don't think there is a download available, they expect you to copy and paste.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
yes the code is there. But I am getting erros on that code. So I thought of getting the whole downloadable code. In the note section they have mentioned that
"The complete source code is listed in the Example section."
So I thought.
Thanks,
Rains
|
|
|
|