|
|
Me too experienced the same probs long back..
Its due to reference and dependencies made by the control to the register.....
Hope u can do it now...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
You can have a look at this[^] .
Apurva Kaushal
|
|
|
|
|
Problem might be If you change the deafult name in Designer.cs file it create object of textbox and assign delgates to it
If you change the name of the control then it is not valid
Did you tried changing the name of control in some other event like Init or preinit i think that will not give problem
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... "
|
|
|
|
|
Hi
I'm trying an application in which I have a DropDownList and a ListBox.
At the time of Page load the DropDownList will be populated with the names of USA states from XML and with a name selection in the DropDownList the ListBox should populate with the counties of USA.
I am successful in populating the DropDownList but I'm unable to populate ListBox.
My XML is something like this.....
<USA>
<State name="Alabama">
<Counties>
<a1>Autauga</a1>
<a2>Baldwin</a2>
<a3>Barbour</a3>
</Counties>
</State>
<State name="Alaska">
<Counties>
<a1>Aleutians East</a1>
<a2>Aleutians West</a2>
<a3>Anchorage</a3>
</Counties>
</State>
<State name="Arkansas">
<Counties>
<a1>Arkansas</a1>
<a2>Ashley</a2>
<a3>Baxter</a3>
</Counties>
</State>
</USA>
What is the path for getting all the county names for each State selection.
Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison
Thank u
Chandu
|
|
|
|
|
chand10 wrote: What is the path
XPath I presume?
/USA/STATE/@name
|
|
|
|
|
Can anybody let me know how to send the Email
wht configuration settings it requires
Thnx in advance
|
|
|
|
|
|
|
I am having a problem in one of my projects in ASP.NET regarding sending a mail....
I have made the programming logic, and tried to send the mail from the web page but what happens actually is, though the mails gets stored in the "Drop" folder of "C:\Inetpub\mailroot\" but i cannot see those mails in my MS outlook 6 though configured for the same.......
the second issue i am having is with the domain name being specified with the SMTPClient.... I have made and alias domain to the default domain in the IIS but if i select the default domain the mail gets stored in the Drop folder (not in outlook though!) but if i select the other domain the mails are found no where.......
I am new to ASP.NET, please teach me with the logic and concept in Configuring SMTP client and Outlook and the theory behind
thanks in advance
Sujay
|
|
|
|
|
Function ClearHTMLTags(ByVal strHTML, ByVal intWorkFlow)
Dim regEx, strTagLess
strTagLess = strHTML
dim regEx=new Regexp
regEx.IgnoreCase = True
regEx.Global = True
If intWorkFlow <> 1 Then
regEx.Pattern = "<[^>]*>"
If strTagLess <> "" Then
strTagLess = regEx.Replace(strTagLess, "")
End If
End If
If intWorkFlow > 0 And intWorkFlow < 3 Then
regEx.Pattern = "[<]"
strTagLess = regEx.Replace(strTagLess, "<")
regEx.Pattern = "[>]"
strTagLess = regEx.Replace(strTagLess, ">")
End If
regEx = Nothing
ClearHTMLTags = strTagLess
End Function
Hi All,
Iam doing a conversion project from asp to asp.net,in asp there is a function which is using Dim RegexObj As Regex = New Regex("") what is the replacement of this in asp.net
Thanks In Advance
Narendra.
|
|
|
|
|
Regex RegexObj = new Regex("");
|
|
|
|
|
hi ,
using Asp.net 2003 with c#
i am validating input is decimal or not
the code is like
decimal decVal ;
if( decimal.TryParse(inputvalue, out decVal))
{
return true;
}
else
{
return false;
}
But the problm is in decimal.TryParse
the error is " 'decimal' does not contain a definition for 'TryParse'"
any solution .or any other logic??
thanks in advance
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
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
|
|
|
|