|
Vipin dev wrote: using Asp.net 2003 with c#
There is no ASP.NET 2003, only ASP.NET 1.0,1.1 and 2.0
In ASP.NET 1.x, there is only double.TryParse - you are probably using 1.x version of ASP.NET.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
HI,
i have a DropDownList,Gridview and buttion on my WebForm.aspx,when User Change the Selection in the Dropdownlist ,i bind the Onclick event of the buttion control at run time,thats working pretty Good but when i click the button it send the Request on the server through XMLHTTPRequest Object and Fill the Gridview,but the PROBLEM is that the Grid cannot befill.i check the Dataset it has the data but could not show in the gridview.i have implement Ajax in Asp.net 2.0 manually,i mean to say i write the Code of XMLHTTPRequest Object in Javascript file and Send the Request to the Server Through Xmlhttprequest Object.i think the Gridview is not Initialize when the Post Request in come on the Server.
The Code of Javascritp is.
// JScript File
var xmlhttp;
function loadData(url)
{
xmlhttp=null;
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
// code for IE
else
if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlhttp!=null)
{
xmlhttp.onreadystatechange=state_Change;
xmlhttp.open("POST",url,true);
xmlhttp.send();
}
else
{
alert("Your browser does not support XMLHTTP.");
}
}
function state_Change()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
{
// if "OK"
if (xmlhttp.status==200)
{
// ...some code here...
}
else
{
alert("Problem retrieving XML data")
}
}
}
The Code of the Aspx file
protected void Page_Load(object sender, EventArgs e)
{
string Query = Request.QueryString["UserId"];
if (!IsPostBack && Query == null)
{
DALayer dal = new DALayer();
DataSet dst = new DataSet();
dst = dal.Fillddl();
ddl.DataSource = dst;
ddl.DataBind();
ddl.Items.Insert(0, "Select UserId");
}
else
if (Query != null)
{
DALayer dal = new DALayer();
DataSet dst2 = new DataSet();
//Here the dataset is filling Well but GridView cannot show the data
dst2 = dal.AjaxGridFill(Query);
GridView1.DataSource = dst2;
GridView1.DataBind();
}
}
|
|
|
|
|
[System::Web::Services::WebMethod]
BYTE PythagoreanTheorem(BYTE Num1, int Num2);
or
[System::Web::Services::WebMethod]
char* PythagoreanTheorem(char* Num1, int Num2);
how on types BYTE or char* error under :
"SByte cannot be serialized because it dose not have a parameterless constructor"
|
|
|
|
|
is it possible to create a report which is editable??
That is,after generating the report,when I click on any of the item thats displayed in the report,Cursor need to appear.I need to do some changes(for example,say i change the text....for example,changing the name from Mohan to Mohana)and take out my cursor out of the field the change need to get saved...
Is this practically possible??
kindly tell me..
Happy Programming!!!
|
|
|
|
|
yeah It is possible but in this case you need to design one page which will take input and will generate the final report, but if you are using crystal reports then it is not possible.
Cheers!!
Rahul Goel
Microsoft Cerfied Solution Developer .Net
Contact me at : rahul.g2510@gmail.com
|
|
|
|
|
Hi All,
I migrated a page from ASP to ASP.NET .Every thing is working fine.
But Design of the Page is some what disturbing.
I have response.Write() in my code behind.
Here is my code behind.......
Call Response.Write("")
If (stopnum - 1) <= totalexperts Then
Call Response.Write("Experts " & startnum & " - " & stopnum - 1 & " of " & totalexperts & " ")
Else
'are on the last page
Call Response.Write("Experts " & startnum & " - " & totalexperts & " of " & totalexperts & " ")
End If
If goback > 0 Then
Call Response.Write("")
End If
Call Response.Write("<< Prev")
Call Response.Write("")
Call Response.Write(" | ")
If (CShort(i) >= CShort(numrows)) And (CShort(i) >= CShort(stopnum)) Then ' the number to retrieve and the number of total records
Call Response.Write("")
End If
Call Response.Write("Next >>")
Call Response.Write("")
Call Response.Write(" |
")
How to get the same design as in ASP Page?
Please help me.
thanks and regards
Narendra Mohan
|
|
|
|
|
What are you doing in it ?
It is not proper way i think
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... "
|
|
|
|
|
Thanks for the reply .Actually i am migrating from asp to asp.net by using
migration tool. now i need this converted asp.net inline code to outline .
here i got whole output but design is missing that alignment .
I copied data which in between <% %> tags.
in that there are several Response.write().which has table design.
Please go through the below code.
i = totalexperts
stopnum = lastRec + numrows
startnum = lastRec
goback = startnum - numrows
numcheck = i - 1
Call Response.Write("")
If (stopnum - 1) <= totalexperts Then
Call Response.Write("Experts " & startnum & " - " & stopnum - 1 & " of " & totalexperts & " ")
Else
'are on the last page
Call Response.Write("Experts " & startnum & " - " & totalexperts & " of " & totalexperts & " ")
lblExperts.Text = " Experts " & startnum & " - " & totalexperts & " of " & totalexperts & " "
End If
If goback > 0 Then
Call Response.Write("")
End If
Call Response.Write("<< Prev")
Call Response.Write("")
Call Response.Write(" | ")
If (CShort(i) >= CShort(numrows)) And (CShort(i) >= CShort(stopnum)) Then ' the number to retrieve and the number of total records
Call Response.Write("")
End If
Call Response.Write("Next >>")
Call Response.Write("") |
|
|
|
|
|
Hi,i have one html table...,
In that data place i am displaying my records...,
I given border value =1 for that table..,
Now my question is...,
While page load itself its displaying table..,
But i need to display that table when i click my button...,
How to do that...,
Regards,
Magi
|
|
|
|
|
I think you can't acess that html table from server side better is
use div tag runat=server and make it visible true or false accroding your need In same way you can also use placeholder control
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... "
|
|
|
|
|
keep id to that and runat="server"
|
|
|
|
|
Apply style "Display:none;" to table tag.
and on button click event "Display:block;".
U can also do that using javascript
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hai Friends,
How to create a textbox on fly in asp.net using vb.net.
Please provide code for that question.
thanks.
|
|
|
|
|
hari4ur wrote: How to create a textbox on fly
Do you want to say dynamically or at run time
We can't provide you code
Create a Textbox object then give it some meaningfull id
Add the Text box Where you want to add on the page
better is first add Placeholder then add the textbox in that placeholder
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... "
|
|
|
|
|
Hai,
Thanks for giving.
on fly...
I mean i want to generate a textbox at runtime.
for that i want to write the code in button click.
|
|
|
|
|
TextBox obj=new TextBox();
obj.Id="GiveMeaningFullId";
This.Page.Controls.Add(obj);
// Check for spelling errors if any
If you want to add TextBox at specific place
Add ASP PlaceHolder Control there (On page)
Now instead of adding to page
add by
PlaceHolder1.Controls.add(obj);
// Write whole code in button click event and please first search on google then post
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... "
|
|
|
|
|
|
ho friend Good Morning
how to input text on hitting the enter key in asp.net
please help
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
|
thanku my dear
it working but its work on double enter key press i wanna on single enter key pressss
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I think some problem in ur page.........Its working fine with me
|
|
|
|
|
no there no any problem in my page it working but on double Hitting
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
can u send me what u have written
|
|
|
|
|
<asp:scriptmanager id="ScriptManager1" runat="server">
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:timer id="Timer1" runat="server">
<asp:textbox id="txtChatWindow" runat="server" height="302px" textmode="MultiLine"
="" width="305px" readonly="True">
<asp:textbox id="txtwrite" name="txtwrite" runat="server" width="228px" style="position: static" ontextchanged="txtwrite_TextChanged">
<asp:button id="btnsend" runat="server" text="send" width="65px" style="position: static">
<asp:button id="Button1" runat="server" style="left: -241px; position: relative;
top: 27px" text="back to home page">
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
Hi friend
After Hitting the key I want cursor focus back on text box how it possible can u help me. I am also using ajax panel all control in ajax panael.
My code for the Focus back on textbox
txtwrite.Focus()
but is work when textbox out of panel
help me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|