|
|
hi,
this link is not working....
whenever i click it post me at Google search...
please send me full link.
Regards,
MF
|
|
|
|
|
Hi all,
How can I convert a HTML file to .Doc file in C#.net? Currently i am using ghtmldoc.exe with arguments "--webpage -f " + DocFile + " " + html file". However the conversion is successful but the resulting Doc file is missing images in it. Can somebody help me out or knows some other workaround to convert HTML to DOC.
Happy Coding,
Vivek Rathore
|
|
|
|
|
Hi guys,
Hope you are doing well.
I have a Onix complaint XML document that I want to validate it with some Onix complaint DTD. I did coding for same in C#
XmlReaderSettings settings = null;
try
{
string xmlPath = Server.MapPath("XML/nielsen_onix.XML");
//Load XML into XmlTextReader
// reader = new XmlTextReader(xmlPath);
//Load XmlTextReader into XmlValidatingReader
settings = new XmlReaderSettings();
//Set the validation type
settings.ValidationType = ValidationType.DTD;
settings.ProhibitDtd = false;
settings.CheckCharacters = false;
//Hook up the XmlValidatingReader’s
//ValidationEventHandler to a call
//back method named ValidationCallBack
settings.ValidationEventHandler += new ValidationEventHandler(
this.ValidationCallBack);
XmlReader reader = XmlReader.Create(xmlPath, settings);
//Read through the XML document by calling
//the Read() method
while (reader.Read()) { }
//Check boolean field named valid (located at top of code)
if (valid)
Response.Write("Validation is Successful!");
reader.Close();
}
catch(Exception ex) {
Response.Write(ex.Message);
}
This code runs good and show the xml file invaid while my xml file is valid when I validated it on
http://www.w3schools.com/XML/xml_validator.asp[^]
Could you please check what's wrong going with me?
Any help would be highly appreciable.
Thanks
Rohit
|
|
|
|
|
Hello All!!!
I have a problem with UpdatePanel. My .aspx Page contains UpdatePanel control, for load Ajax controls. And inside UpdatePanel control i have a FileUpload control, when i add one file in this control and press button Upload (in here onclick function i verify FileUpload control contain or no file: if(idofUpdatePanel.HasFile)) i obtain HasFile = false.
I thing this problem is because control UpdatePanel.
Help me please for resolve it...
Thanks!!!
|
|
|
|
|
Hi wertyk,
Try to use Trigger(Post Back trigger) with ControlID="uploadbtnId" within the update panel and check,then it works fine.
Regards,
sundeep
|
|
|
|
|
Hi.. I have to use html editor for my asp.net page. Pls tell any dll name for htmleditor. i have already used Winthusiasm dll... Is there any dll available other than it...
|
|
|
|
|
how to display a message box after execution of save button code
I am doing this
savempdet();
updaddbook();
txt_contactno.Text = "";
txt_addline1.Text = "";
txt_addline2.Text = "";
txt_addline3.Text = "";
txt_coradd.Text = "";
lbl_msg.Visible = true;
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Message", "alert('data saved successfully');", true);
lbl_msg.Text = "Data Update Sucessfully";
but message box comes before the execution of the code.
|
|
|
|
|
Hi, try this
Public Sub MessageBox(ByVal Page As System.Web.UI.Page, ByVal Msg As String)
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType, "clientScript", "javascript:alert('" & Msg & "');", True)
End Sub
Hope this one can help
|
|
|
|
|
This gives the same result as mine code ....i want message after execution of the code.
|
|
|
|
|
try this...
Response.Write("alert('message')");
beula.
CMOTS INFOTECH
|
|
|
|
|
Hi Friends,
i am new to asp.net technology.i developed one site using VS-2005 and Sql server-2005 on windows xp.
i tried to run this site in another system.in that system there is no VS-2005 and sql server 2005 installed.
Is there any way to run my site without installing these softwares?(i already developed my site and i want to run on Intranet).
Please help me...
I searched many sites but i not found exact answer.
Thanks in advance.
|
|
|
|
|
Hi,
Are you using a Database?
If yes, pls configurate your web config.
Nothing to install any software to the another pc.
If you have an error, pls post it.
Thanks
|
|
|
|
|
You have to install .net framework, iis and sql server in one pc
|
|
|
|
|
Thank you for your repliy friends,
my site has database.
while running it is giving the code of my Home.aspx page.
Also tell me how to install .net framework?
i developed my site using asp.net v2.0.
Thanks in advance
|
|
|
|
|
Hi,
Few days ago I posted my problem in the forum and even after long discussion no conclusion was arrived. Now i came to know that problem was beacuse of I.E. 8
and after clikcing on the Compatibilty View button to support earlier versions such problem can be overcome.
But i want to know how to make IE8 compatible applications so that such issues cant arise.
Abhijit, Yusuf or anyone else any idea about this.
|
|
|
|
|
i have a table with fiELds
pARTICULARS , MA, ME, MD, MV, MF, MP (CHAR 1)
electronics a e v
plastics e d
rubber a e d v f p
this table is displayed in a grid
i need to disable that cell of the grid which is blank
at present i have
i execute the query with a datareader
For I = 0 To grid1.Rows.Count - 1
qry="select particulars from table"
if datareader("ma")="" then
disable the cell
end if
if datareader("me")="" then
disable the cell
end if
if datareader("md")="" then
disable the cell
end if
next
i am not getting the desired thing . how do i exceute it
|
|
|
|
|
Hi,
How you are binding to gridview, means what am asking is are you using any itemtemplate inside gridview ???????????????
kannak
|
|
|
|
|
Hi,
The Following code in Inline code,
<asp:gridview id="grdDatatbl" runat="server" autogeneratecolumns="false" xmlns:asp="#unknown">
<columns> <asp:templatefield>
<itemtemplate>
<asp:textbox id="txttmp1" runat="server" text="<%# Eval(" one")%>"="">
<asp:templatefield>
<itemtemplate>
<asp:textbox id="txttmp2" runat="server" text="<%# Eval(" two")%>"="">
<asp:templatefield>
<itemtemplate>
<asp:textbox id="txttmp3" runat="server" text="<%# Eval(" three")%>"="">
The Following code from code behind in gridview_rowdatabound(),
If e.Row.RowType = DataControlRowType.DataRow Then
txt1 = CType(e.Row.FindControl("txttmp1"), TextBox)
txt2 = CType(e.Row.FindControl("txttmp2"), TextBox)
txt3 = CType(e.Row.FindControl("txttmp3"), TextBox)
Dim s1 = txt1.Text
Dim s2 = txt2.Text
Dim s3 = txt3.Text
If s1 = "" Then
CType(e.Row.FindControl("txttmp1"), TextBox).Enabled = False
ElseIf s2 = "" Then
CType(e.Row.FindControl("txttmp2"), TextBox).Enabled = False
ElseIf s3 = "" Then
CType(e.Row.FindControl("txttmp3"), TextBox).Enabled = False
End If
End If
i hope this will works fine....
kannak
|
|
|
|
|
Hello friends, I want to post one value from one form to another ..I added that value to session and tried to get the session value. I got the value in another page and assigned it to textbox control. but the textbox did not display it. If i refresh the page again textbox display the value? Is there any other solution for posting value from one page to other?
Thanks
|
|
|
|
|
How did you assigned the value to the textbox control, and most important when (where in your code)? Please provide the snippet of your code where you assign the value to the control.
|
|
|
|
|
Thanks for reply..
protected void Page_Load(object sender, EventArgs e)
{
if (Session["test"] == null)
{ }
else
{
Text1.Value = Convert.ToString(Session["test"]);
TextBox1.Text = Convert.ToString(Session["test"]);
}
}
This is how i assigned the values? is there any other way?
|
|
|
|
|
Hmmm, seems quite right to me. Maybe you should check for a postback before:
protected void Page_Load(object sender, EventArgs e)
{
if(!this.IsPostBack)) {
if (Session["test"] == null)
{ }
else
{
Text1.Value = Convert.ToString(Session["test"]);
TextBox1.Text = Convert.ToString(Session["test"]);
}
}
}
|
|
|
|
|
I tried that also..but not working
|
|
|
|
|
Hi, you can try this
in your webform1
session("id")= textbox1.text
in your webform2
textbox2.text = session("id")
Hope this one can help.
Thanks
|
|
|
|