|
Hi,
can anybody tell me how to save untouched data in a EditMode of a DeatilsView control. I mean, if I don't put the cursor in the field, even if there is a default data, after I press Update button it doesn't take those default values.
|
|
|
|
|
hell friends
iam the fresher for .net. i have a small doubt. i have 2 button contrls in one web page. when ever i click one button its redirect to one web page and alse i will send some value with that. and second button also same thing but in different web page.
(in short form how can i send some string with response object)
than you.
|
|
|
|
|
You could have a look at passing simple values in the querystring. Have a look at Request.Querystring.
|
|
|
|
|
Response.Redirect("Default1.aspx?strId=" & strValue)
|
|
|
|
|
Hi
U cfan do it with Query String Like Below
This is the Query String That is Passed From Page 1 To Page 2.
PayDetail1.HRef ="~/credit.aspx?typeid=" +Val.ToString();
And
This We Get In Page 2. Like this
if(Request.QueryString.Count>0)
{
if(Request.QueryString["typeid"].ToString()!=null)
{
typeid = Request.QueryString["typeid"];
}
}
Hope This Helps You...
If any problem then ask....
Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
Hello Friends,
I want to send the ImageUrl fetching from the database to the Javascript function
<img onmouseover="javascript:doTooltip(event,0,'<%# DataBinder.Eval(Container.DataItem,"Image") %>')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
But this piece of code throwing an Parser Error given below
The server tag is not well formed.
But if i give the path of a particular image then it works great....as given below
<img onmouseover="javascript:doTooltip(event,0,'Images/img1.jpg')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
|
|
|
|
|
Is that image tag in Databound control (e.g. Gridview or Repeater or etc)?
|
|
|
|
|
Yes this image tag is DataBound control(DataList)
|
|
|
|
|
Hi all
I was trying to generate a PDF document from an html file. Below is what i have tried...
private bool GeneratePDF(string sOutputHTMLFile, string sOutPutFile)
{
try
{
Doc objDoc = new Doc();
objDoc.SetInfo(0, "License", "322-xxx-815-xxx-4945-xxx");
StreamReader sr = new StreamReader(sOutputHTMLFile, Encoding.Default); string input = sr.ReadToEnd();
objDoc.Rect.Inset(50, 50);
objDoc.Page = objDoc.AddPage();
int theID;
theID = objDoc.AddImageHtml(input, true, 1000, false);
while (true)
{
objDoc.FrameRect();
if (!objDoc.Chainable(theID))
break;
objDoc.Page = objDoc.AddPage();
theID = objDoc.AddImageToChain(theID);
}
for (int i = 1; i <= objDoc.PageCount; i++)
{
objDoc.PageNumber = i;
objDoc.Flatten();
}
objDoc.Save(sOutPutFile);
objDoc.Clear();
objDoc.Dispose();
return true;
}
catch (Exception ex)
{
return false;
}
}
These are the input parameters i have used...
http://localhost/webportal/PDF/Report3.html
C:\Inetpub\wwwroot\webportal\PDF\Report3.pdf
But when i execute this function i got an error like this "URI formats are not supported"
This line causes the error--> StreamReader sr = new StreamReader(sOutputHTMLFile, Encoding.Default);
Could you please tell how to solve this issue...............
Thanks in advance......
Regards
Sebastian
|
|
|
|
|
Please let me know , what was wrong with my posting.
I would like to know WHO marked it as ABUSE and WHY?
|
|
|
|
|
hi,
can anyone provide me the method for searching of specific word on the webpage.
Thanks in advance.
|
|
|
|
|
|
|
hahahahahaha ohh boy that is a good one!
probably the best thing I've heard all day!
wow u made my day man!
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
|
Mind Bloooowing
Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
|
(?#WebOrIP)((?#protocol)((http|https):\/\/)?(?#subDomain)(([a-zA-Z0-9]+\.(?#domain)[a-zA-Z0-9\-]+(?#TLD)(\.[a-zA-Z]+){1,2})|(?#IPAddress)((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])))+(?#Port)(:[1-9][0-9]*)?)+(?#Path)((\/((?#dirOrFileName)[a-zA-Z0-9_\-\%\~\+]+)?)*)?(?#extension)(\.([a-zA-Z0-9_]+))?(?#parameters)(\?([a-zA-Z0-9_\-]+\=[a-z-A-Z0-9_\-\%\~\+]+)?(?#additionalParameters)(\&([a-zA-Z0-9_\-]+\=[a-z-A-Z0-9_\-\%\~\+]+)?)*)?
here try this.
www.regexlib.com
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
Hi,
I am sending an embedded image in an email. now i want to change some text in the image for every user.
how can i do that ?
Is there any way that i can fetch the text of an image and change it and then embed the new image in the email.
Thanks and Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
Dear sir/mam
i have created one button dynamicaly and i want to perform some instrustion when this button is clicked. and also want to maintain session of this page to another page with this button click.
any one can help me??? soon
yogesh
|
|
|
|
|
Ho yougesh,
using Delegation u can easily do it.
Check the following code
protected void Page_Load(object sender, EventArgs e)
{
Button mybtn = new Button();
mybtn.Text = "Dynamic Button";
Panel1.Controls.Add(mybtn);
mybtn.Click += new System.EventHandler(mybtn_Click);
}
public void mybtn_Click(object sender, EventArgs e)
{
Response.Write("You have click on this");
}
Hope this will help you !!!!
|
|
|
|
|
sir actualy, i have created a no of buttons in one page using array of buttons. so wht can i do for it???? thank u sir for that
i hv use this code for click event but it does not work
public void btrequest1[i]_Click(object sender, EventArgs e)
{
Response.Write("You have click on this");
}
yogesh
modified on Monday, December 17, 2007 9:31:09 AM
|
|
|
|
|
Hi yogesh,
Use this one
public partial class _Default : System.Web.UI.Page
{
Button[] b = new Button[10];
protected void Page_Load(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
b[i] = new Button();
b[i].Text = "Dynamic Button " + i.ToString() ;
Panel1.Controls.Add(b[i]);
b[i].Click += new System.EventHandler(mybtn_Click);
}
}
public void mybtn_Click(object sender, EventArgs e)
{
Button mybtn =sender as Button;
Response.Write(mybtn.Text.ToString());
}
}
This will solve your problem !!!
|
|
|
|
|
Hi All,
I am working on a web application. I want to handle right click close button's event of IE title bar in my application. I want to fire some code before user’s window closes. I have not found any event (nor using javascript) related to title bar. Can anyone help me?
|
|
|
|
|
garimajain_mca wrote: I have not found any event (nor using javascript)
There isn't one. And there wouldn't be for a known period. Period.
Reason: That would mean a malicious website would intrude into your system and wreak havoc on your security.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|