|
Hi
I am showing some data from the database in the repeater like this.
<ItemTemplate>
<asp:Label ID = "lbl_CourseName" runat="server" Text='<%# Eval("Name") %>'/>
<asp:Label ID = "lbl_SectionID" runat="server" Text='<%# Eval("ID") %>' Visible="false"/>
</ItemTemplate>
So now what i want is when i click the Name, it should go to the "admin.ascx" page along with the corresponding ID. Any ideas ??
suchita
|
|
|
|
|
Like this[^] one? There's a helpfull list of howto's on the bottom, just above the example-usage of the LinkButton
I are Troll
|
|
|
|
|
thanks. I got it done already.
suchita
|
|
|
|
|
Hi,
I have problem that session start is getting fired each time I click on a page. But on other machine it is gets fired only once when session is started. I have the same code on both machine.
here is my code
string strOut = @"<SCRIPT language='JavaScript'>try{var tparent;if(parent.EnableClock == null){if(parent.parent.EnableClock == null){tparent = parent.parent.parent;}else{tparent = parent.parent;}}else{tparent = parent;} tparent.resetClock();tparent.EnableClock = true;tparent.startClock(" + Session.Timeout.ToString() + ");}catch(err){}</SCRIPT>";
Please Help,
Raghvendra Panda
modified on Wednesday, November 17, 2010 10:52 PM
|
|
|
|
|
suppose i have many update panel in my web page and based on few condition update panel is refresh from javascript at the time of page load.
is it possible to know which update panel causes partial post back from server side code. please help.
thanks
tbhattacharjee
|
|
|
|
|
hi guys
i create a mobile website but this is more wider a mobile page 240*320
and now i want to create a standard mobile resoulation
thanks a lot
|
|
|
|
|
There is no such thing as a "standard" mobile screen size. See here[^] for alist of common ones...
|
|
|
|
|
yup, Good Link.
|
|
|
|
|
Hi Experts,
In my applicaition User will be receiving mail through the applicaiton to Outlook and Lotus Notes. Now the problem is the applications sents the mail with the formatted text to the plain mail or to the Lotus Notes.
Now my requirement is if it is sending to the Outlook then it must be a HTML and if it is sending to the Lotus Notes then it must be a plain text. Any idea is much appreciated.
|
|
|
|
|
And what if the Outlook user has set it to read email in plain text format? You cannot control how users will read their email, nor even determine what method they use to do so. You need to send your emails in multi-part form - an HTML part and a plain text part - and let the email client determine which to use. See here[^] for guidance.
|
|
|
|
|
Thanks for you help!
I have used the link which is provided by you and sent a mail to both Outlook and Lotus Notes, both are same mail with no chages.
//if Lotus Notes
AlternateView plainView = AlternateView.CreateAlternateViewFromString("This is my plain text content, viewable by those clients that don't support html", null, "text/plain");
//if Outlook
AlternateView htmlView = AlternateView.CreateAlternateViewFromString("<b>this is bold text, and viewable by those mail clients that support html</b>", null, "text/html");
This is not happening. I am getting only the HTML message on both the cases
|
|
|
|
|
I am not sure exactly what you are doing, but you need to send both "views" (HTML and plain text) as part of the same email - if you have done that and you are seeing the HTML view in Lotus Notes then I can only assume that is because that instance of Lotus Notes is set up to read HTML emails. You cannot force it to read the plain text view in your code.
|
|
|
|
|
I have a requirement in which i have to import an xml file of 180mb into the database. i tried to read the file using stringbuilder,session....but nothing worked .every time i tried to read the file ..i got an error of out of memory exception..
Please Help,
Raghvendra Panda
|
|
|
|
|
raghvendrapanda wrote: every time i tried to read the file ..i got an error of out of memory exception..
Shouldn't happen with a XmlReader[^]. Fetch a record, process it, and onto the next.
I are Troll
|
|
|
|
|
When I read your question I have to think of something I encountered.
My problem had to do with a limitation of Datasets. When the data exceeds about 100mb an 'out of memory' exception is thrown.
So if you use a Dataset to read/write the data, then the answer is probably to do this without using a dataset.
|
|
|
|
|
that's exactly what my problem is ,i am unable to find a control which can hold huge data upto 200 mb.as i want to pass it as an parameter into the database, i have to send the data as a parameter,kindly suggest me what i should do.
|
|
|
|
|
suppose i have three gridview on my page one after another and will display three different info like books detail,moview details and games detail. i want that when page will be displayed then my three different gridview will populate at a time idependly and when three busy indicator will be shown for three different gridview. which one will be polated first then busy indicator for that grid will be invisible. i want to do it using MS-ajax. please guide me how can i do it.
tbhattacharjee
|
|
|
|
|
You can use threads to fetch data for the different grids. Threads were independently and you can use ajax to show busy indicator.
S Kumar
|
|
|
|
|
I am working on screen scraping application, I have one webpage and web page as an iframe control , and iframe internally has one text area control, but the iframe and text area control were rendered by using the javascript file, Now my requirement is how can I assign the value to the text area control from the .cs (i.e from the code behind)
|
|
|
|
|
I am working on screen scraping application, I have one webpage and web page as an iframe control , and iframe internally has one text area control, but the iframe and text area control were rendered by using the javascript file, Now my requirement is how can I assign the value to the text area control from the .cs (i.e from the code behind)
|
|
|
|
|
suppose i have many multi line text boxes on my web form one after one. i want to block any multi line text box using modal popup extender. is it possible. i want to block in such a way modal popup will display on target input control with the same height,width and left, top of the target control. if i can do it so in this way we can block multi line text box for entering something. i know there are many way to block input control but i want to block this way. plzz anyone help me with sample code.
thanks
tbhattacharjee
|
|
|
|
|
in VS 2008 IDE when i am trying to drag the control then control is not being positioned where i want to place. so please tell me what to do to fix this problem. i am new in VS2008 IDE.
tbhattacharjee
|
|
|
|
|
Is it perhaps "jumping" to align with another control? Or is it inside of some flow control that determines where its children are positioned?
If not, you can always position it precisely with the arrow keys or by typing the position in the properties.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Hi tridip
Here in vs 2008 you can not move control directly by selecting it,,, to move controls you just click the lines of a control in left corner then move to left or right ,if you want to move top or down positions you have to click on left top corner lines then drag the position where you want.
Hope you understand the answer..
|
|
|
|
|
here i generate a div from javascript and position over the text box.
i found two problem
1) my code is working only for IE.
2) text inside in div is not getting positioned vertically center.
here is my code.
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>
<script type="text/javascript" language="javascript">
var modalWindow = null;
function drawDiv()
{
var txt = document.getElementById('TextBox1');
var dime = new Dimension(txt);
modalWindow = document.createElement('div');
modalWindow.style.position = 'absolute';
modalWindow.setAttribute("align", "center");
modalWindow.setAttribute("vertical-align", "middle");
modalWindow.innerHTML = '<p>hello...</p>';
modalWindow.style.left = dime.x;
modalWindow.style.top = dime.y;
modalWindow.style.width = dime.w;
modalWindow.style.height = dime.h;
modalWindow.style.backgroundColor = '#C0C0C0';
document.body.appendChild(modalWindow);
return false;
}
function hider(whichDiv)
{
document.getElementById(modalWindow).style.display = 'none';
}
function Dimension(element)
{
this.x = -1;
this.y = -1;
this.w = 0;
this.h = 0;
if (element == document)
{
this.x = element.body.scrollLeft;
this.y = element.body.scrollTop;
this.w = element.body.clientWidth;
this.h = element.body.clientHeight;
}
else if (element != null)
{
var e = element;
var left = e.offsetLeft;
while ((e = e.offsetParent) != null)
{
left += e.offsetLeft;
}
var e = element;
var top = e.offsetTop;
while ((e = e.offsetParent) != null)
{
top += e.offsetTop;
}
this.x = left;
this.y = top;
this.w = element.offsetWidth;
this.h = element.offsetHeight;
}
}
</script>
</head>
<body>
<div>
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" Height="180px" Style="left: 307px; position: relative;
top: 264px" TextMode="MultiLine" Width="432px"></asp:TextBox>
<asp:Button ID="Button1" runat="server"
Text="Button" OnClientClick=" return drawDiv()" />
</form>
</div>
</body>
</html>
please run this code and make it cross browser. also tell me why the content in div is not vertically centered.
thanks
tbhattacharjee
|
|
|
|