|
hi where you are getting error is event fired?
|
|
|
|
|
It can't give error but when i insert new record or update record then it is not insert into database or not update in both Gridview.
|
|
|
|
|
Hello Ankit
Please check my code and reply me as soon as possible
Thanks.
|
|
|
|
|
I need an advice regarding the following: No codes
Requirement:
Design a website, with the whole content updatable. I have been given the design, and they want it to look exactly as is – no APS controls. It looks more static. Think Wikipedia without the edit links. – They also don’t want to see the login buttons or link on the website.
The only functionality will be the contact us form.
My Thinking
I will have two identical applications, one for administration and another for the public.
Why Two? Use friendliness: The administrators will have the same look as the public website so they know where to update the website. Think Wikipedia edit links.
Tools:
KnockoutJS- I will learn it in the next 5 days – I am clueless with it, and have 3 weeks to complete the website. I choose it because I will be able to bind the content to the HTML tags, remember, no ASP control on the public Website. I will only be using Knockout for displaying and nothing else.
MVVC – When going through lots of article, I noted that knowledge of MVVC is a required to work with KnockoutJS. I am also clueless in this field. Also to be learnt in the next 5 days.
Would you be so kindly to advise if you think I am taking a proper path and if possible advise on what you would have done without adding tools for me to learn. I do like to learn but not now , except for KnockoutJS and MVVC – I am also maintaining other applications, I will actually be learning during the night.
Current skill/knowledge: C#, ASP.Net, Ajax, SQL, XML, Oracle, HTML, CSS, DevEpress
Thanking you in advance.
I remain joe!
|
|
|
|
|
Am I talking to myself? I think I do.
Planning to study things without having full details about them is not wise.
My expectation about was to be achieved with knockoutjs was wrong, I thought it can connect to SQL and bind the data without additional tools. After going through the book (Knockoutjs_Succinctly), I leant that it’s mainly used for binding data. I know have to lean Json for data manipulation.
So, I ask; will Json be able to communicate with SQL Server?
I know nothing about, I will learn in the next few day. Basic knockout took me a day, so I don’t expect Json to go beyond 3 days.
Advice welcome the path I am talking is welcomed.
Thanking you in advance.
I remain joe!
|
|
|
|
|
JSON won't talk to SQL for you. JSON isn't a language it is just a serialized JavaScript object. If you're using Knockout you will need a webservice you can call (coded in something like .NET perhaps) that will return a JSON object.
|
|
|
|
|
Thanks for the explanation, it helped a lot. I researched a bit following your comment/explanation and now know what to do. I still have to study JSON to at least intermediate level, for now.
Thanks once more, much appreciated.
I remain joe!
|
|
|
|
|
I am designing a asp.net web based form . In which I used 11 panel controls . By Default 4 of them are hidden. Inside the panel control I have created 10R ,6 C layout table . Column 1 and 4 is having texts and 2 and 5th column is haing asp.net control like texbox ,Dropdown list etc .
My problem is I have create css to manage width and color .
But all panels are not align properly however i am using same css class for all .
Please guide .
|
|
|
|
|
Panels or div elements are hard to align, until you understand CSS, and Float. Clear, Display, Block, Inline
If you position 3 div's in a row, then the total width of the 3 div's must not exceed the width of the parent container, or else it will block, block meaning the 3rd div will position down 1 row. Block is the term used in the CSS Display, in which block and inline are valid options.
If you want to stack 3 div's on top of each other, block, then you can use display: block and they will stack in a column.
If you want to create a row of 3 div's, you have to float the 2nd div, and 3rd div to get it to align to the first div.
float: left; display: inline;
It's probably easier to hand assign the CSS for each panel until you get it right, rather that using a class from a CSS File. Then you can get a better idea of how the CSS works for div's.
There use to be a really good tutorial on div alignment but I could not find it. It had picture examples of how to align div elements, or aka panel control in asp.net
http://coding.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/[^]
http://stackoverflow.com/questions/2417130/how-to-align-two-divs-horizontally[^]
modified 4-Aug-13 17:36pm.
|
|
|
|
|
|
Hey,
can any one provide me the help regarding how to retrive the Question and Ans for online quiz model from text file and how can i compare the ans
|
|
|
|
|
Don't use a text file, use a database. There are lots of articles around on this type of application.
Use the best guess
|
|
|
|
|
sir i want to upload file and data to access data base sql and provide solution for that
|
|
|
|
|
Hello,
I need a tool that can be used to write mathematical, chemistry and physics symbols or fomular in my ASP.NET application. The scenario is that, my clients will be solving mathematical, chemistry or physics questions from the ASP.NET application and they will need to write the formular using a tool build in my ASP.NET application to solve any question(from algebra, trigonometry, set theory e.t.c...) in a way they think the answer to the question should be. I am stuck here as I do not know the kind of tool that can be used to accomplish this.
I will be glad to hear a favourable reply on this forum.
Thank You,
|
|
|
|
|
Image compression using half a coding or another.(algorithm)
|
|
|
|
|
You already posted this in the Algorithm forum, and it did not make any sense there either.
Use the best guess
|
|
|
|
|
i am giving some value in textbox1 (take for example vishal). so, when i give tab, it(vishal) should assign in textbox2.
so, i used the following in aspx and java script:
aspx:
onchange="getval()"
javascript
function getval() {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
document.getElementById('<%=textbox2.ClientID %>').value = document.getElementById('<%=textbox1.ClientID %>').value;
}
It works correctly in chrome . but, not working in firefox. pls help me out.
|
|
|
|
|
Issue with event keyword. Some browser are not support only "event" keyword. So try to use event called "onblur".
It's opposite of onfocus:
function getval() {
document.getElementById('<%=textbox2.ClientID %>').value = document.getElementById('<%=textbox1.ClientID %>').value;
}
Parwej Ahamad
|
|
|
|
|
rather then change use onkeyup or onkeydown blur will have minimize issues
|
|
|
|
|
Dear All,
I have a table named images in sql server 2008 and it contains two colums imageid and image.Now i am able to insert images in to image column using file uploader controller and image which i have converted to binary form for storing.Now i want to disply the images in a image box correspondance with the image id.I am used textbox for receiving the id and a button to execute the command for displaying.I am using asp.net as front end.
public void ShowImage()
{
SqlConnection con = new SqlConnection();
con.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["anu"].ToString();
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Select ID,Image from Images where ID=" + txtid.Text;
cmd.CommandType = System.Data.CommandType.Text;
cmd.Connection = con;
con.Open();
SqlDataReader dreader = cmd.ExecuteReader();
dreader.Read();
Context.Response.BinaryWrite((byte[])dreader["image"]);
dreader.Close();
con.Close();
}
This code is working fine but it displaying the picture in a diifrent page but i need to display the picture in the image box which i have added.If anyone who know the answer, please help me.
Regards,
Rajeev K.
|
|
|
|
|
Hi Tadit,
Thanks for answering my question.
could you please explain how processrequest method can receive the ID( id column in database) from text box,then only it could possible to take diffrent images from database based on the id.Also explain how to load the same picture to imange controller.
Regards,
Rajeev K.
|
|
|
|
|
can you try your image
<img src="showimage()"/>
in your handler which will return output as image
regards..
|
|
|
|
|
I used iTextSharp.dll to create pdf. but that works only for text HTML content. if i use images in my page it throughs exception that images are not found...
my Design file
<asp:Panel ID="pdfPannel" runat="server">
Sample Text
<img src="../Images/image1.png"/>
</asp:Panel>
<asp:Button ID="btnSave" runat="server" Text="Save As PDF" onclick="btnSave_Click" />
my method:
protected void btnSave_Click(object sender, EventArgs e)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=print.pdf");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
pdfPannel.RenderControl(hw);
StringReader sr = new StringReader(sw.ToString());
Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f);
HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
pdfDoc.Open();
htmlparser.Parse(sr);
pdfDoc.Close();
Response.Write(pdfDoc);
Response.End();
}
when i click that save button im getting error
Could not find a part of the path 'C:\Program Files\Common Files\Microsoft Shared\DevServer\Images\image1.png'.
Please tell me is there any alternate solution is there to create pdf.
Thanks in Advance..
|
|
|
|
|
|
In which of the lines do you get that error?
And is that img src="../Images/image1.png" ever shown correctly on your page?
|
|
|
|